Qt4 - Podcast dialog: Don't use the default OK/Cancel buttons, because they wouldn...
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 5 Sep 2007 17:46:04 +0000 (17:46 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 5 Sep 2007 17:46:04 +0000 (17:46 +0000)
modules/gui/qt4/dialogs/podcast_configuration.cpp
modules/gui/qt4/ui/podcast_configuration.ui

index f113c14..617453a 100644 (file)
@@ -27,6 +27,10 @@ PodcastConfigurationDialog::PodcastConfigurationDialog( intf_thread_t *_p_intf )
     :p_intf( _p_intf )
 {
     ui.setupUi( this );
+    QPushButton *okButton = new QPushButton( qtr( "OK" ), this );
+    QPushButton *cancelButton = new QPushButton( qtr( "Cancel" ), this );
+    ui.okCancel->addButton( okButton, QDialogButtonBox::AcceptRole );
+    ui.okCancel->addButton( cancelButton, QDialogButtonBox::RejectRole );
     CONNECT( ui.podcastAdd, clicked(), this, add() );
     CONNECT( ui.podcastDelete, clicked(), this, remove() );
 
index e17d4b2..2712e9d 100644 (file)
    </item>
    <item row="3" column="2" colspan="2" >
     <widget class="QDialogButtonBox" name="okCancel" >
-     <property name="orientation" >
-      <enum>Qt::Horizontal</enum>
-     </property>
      <property name="standardButtons" >
-      <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
+      <set>QDialogButtonBox::NoButton</set>
      </property>
     </widget>
    </item>