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

git at videolan.org git at videolan.org
Mon Apr 26 01:16:57 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 26 01:05:38 2010 +0200| [c445ae57a6d547bdeeb5b81ca2cb098dea366059] | committer: Jean-Baptiste Kempf 

Qt: translate all buttons in plugins dialog
(cherry picked from commit 8f971a410d3fb7eee0dfa30218699f37e71a9580)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/gui/qt4/dialogs/plugins.cpp b/modules/gui/qt4/dialogs/plugins.cpp
index b854846..9c1314b 100644
--- a/modules/gui/qt4/dialogs/plugins.cpp
+++ b/modules/gui/qt4/dialogs/plugins.cpp
@@ -524,10 +524,12 @@ ExtensionInfoDialog::ExtensionInfoDialog( const ExtensionCopy& extension,
     layout->addWidget( line, 6, 2, 1, -1 );
 
     // Close button
-    QDialogButtonBox *group = new QDialogButtonBox( QDialogButtonBox::Close,
-                                                    Qt::Horizontal, this );
+    QDialogButtonBox *group = new QDialogButtonBox( this );
+    QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
+    group->addButton( closeButton, QDialogButtonBox::AcceptRole );
+    BUTTONACT( closeButton, close() );
+
     layout->addWidget( group, 7, 0, 1, -1 );
-    connect( group, SIGNAL(clicked(QAbstractButton*)), this, SLOT(close()) );
 
     // Fix layout
     layout->setColumnStretch( 2, 1 );



More information about the vlc-commits mailing list