[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:13:39 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 26 01:05:38 2010 +0200| [8f971a410d3fb7eee0dfa30218699f37e71a9580] | committer: Jean-Baptiste Kempf
Qt: translate all buttons in plugins dialog
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f971a410d3fb7eee0dfa30218699f37e71a9580
---
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