[vlc-commits] commit: Qt: translate all buttons in openurl (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Mon Apr 26 01:13:39 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 26 01:02:17 2010 +0200| [56346f34baf42e385401fa258587ffe91768a156] | committer: Jean-Baptiste Kempf 

Qt: translate all buttons in openurl

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56346f34baf42e385401fa258587ffe91768a156
---

 modules/gui/qt4/dialogs/openurl.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/openurl.cpp b/modules/gui/qt4/dialogs/openurl.cpp
index d588898..e9a549c 100644
--- a/modules/gui/qt4/dialogs/openurl.cpp
+++ b/modules/gui/qt4/dialogs/openurl.cpp
@@ -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 */



More information about the vlc-commits mailing list