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

index b854846cb62ca17319af680b047c7eb5859b8608..9c1314b91e1897e6b5d95437e3d3a807e1094a37 100644 (file)
@@ -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 );