Commit 7b19600d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Podcast dialog: Don't use the default OK/Cancel buttons, because they...

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. 
parent 7a1020ae
...@@ -27,6 +27,10 @@ PodcastConfigurationDialog::PodcastConfigurationDialog( intf_thread_t *_p_intf ) ...@@ -27,6 +27,10 @@ PodcastConfigurationDialog::PodcastConfigurationDialog( intf_thread_t *_p_intf )
:p_intf( _p_intf ) :p_intf( _p_intf )
{ {
ui.setupUi( this ); 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.podcastAdd, clicked(), this, add() );
CONNECT( ui.podcastDelete, clicked(), this, remove() ); CONNECT( ui.podcastDelete, clicked(), this, remove() );
......
...@@ -65,11 +65,8 @@ ...@@ -65,11 +65,8 @@
</item> </item>
<item row="3" column="2" colspan="2" > <item row="3" column="2" colspan="2" >
<widget class="QDialogButtonBox" name="okCancel" > <widget class="QDialogButtonBox" name="okCancel" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" > <property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set> <set>QDialogButtonBox::NoButton</set>
</property> </property>
</widget> </widget>
</item> </item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment