]> git.sesse.net Git - vlc/commitdiff
Qt: translate all buttons in openurl
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 25 Apr 2010 23:02:17 +0000 (01:02 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 25 Apr 2010 23:11:25 +0000 (01:11 +0200)
modules/gui/qt4/dialogs/openurl.cpp

index d58889825930f9c5562c92f32fece940ed9f7962..e9a549cb80d785cea3343d2b70a9feae2d08997e 100644 (file)
@@ -51,12 +51,13 @@ OpenUrlDialog::OpenUrlDialog( intf_thread_t *_p_intf,
     QPushButton *but;
 
     QDialogButtonBox *box = new QDialogButtonBox( this );
-    but = box->addButton( QDialogButtonBox::Ok );
+    but = box->addButton( qtr( "&Play" ), QDialogButtonBox::AcceptRole );
     CONNECT( but, clicked(), this, play() );
-    but = box->addButton( QDialogButtonBox::Cancel );
+
     but = box->addButton( qtr( "&Enqueue" ), QDialogButtonBox::AcceptRole );
     CONNECT( but, clicked(), this, enqueue() );
 
+    but = box->addButton( qtr( "&Cancel" ) , QDialogButtonBox::RejectRole );
     CONNECT( box, rejected(), this, reject() );
 
     /* Info label and line edit */