From: Jean-Baptiste Kempf Date: Wed, 5 Sep 2007 17:46:04 +0000 (+0000) Subject: Qt4 - Podcast dialog: Don't use the default OK/Cancel buttons, because they wouldn... X-Git-Tag: 0.9.0-test0~5848 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7b19600d12e6264ca87d295bdbcf9b61b21f91cc;p=vlc Qt4 - Podcast dialog: Don't use the default OK/Cancel buttons, because they wouldn't be translated if we do it the default way. This does almost the same output. --- diff --git a/modules/gui/qt4/dialogs/podcast_configuration.cpp b/modules/gui/qt4/dialogs/podcast_configuration.cpp index f113c14f7a..617453a4a5 100644 --- a/modules/gui/qt4/dialogs/podcast_configuration.cpp +++ b/modules/gui/qt4/dialogs/podcast_configuration.cpp @@ -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() ); diff --git a/modules/gui/qt4/ui/podcast_configuration.ui b/modules/gui/qt4/ui/podcast_configuration.ui index e17d4b2607..2712e9db76 100644 --- a/modules/gui/qt4/ui/podcast_configuration.ui +++ b/modules/gui/qt4/ui/podcast_configuration.ui @@ -65,11 +65,8 @@ - - Qt::Horizontal - - QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok + QDialogButtonBox::NoButton