Commit 8f971a41 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: translate all buttons in plugins dialog

parent 56346f34
...@@ -524,10 +524,12 @@ ExtensionInfoDialog::ExtensionInfoDialog( const ExtensionCopy& extension, ...@@ -524,10 +524,12 @@ ExtensionInfoDialog::ExtensionInfoDialog( const ExtensionCopy& extension,
layout->addWidget( line, 6, 2, 1, -1 ); layout->addWidget( line, 6, 2, 1, -1 );
// Close button // Close button
QDialogButtonBox *group = new QDialogButtonBox( QDialogButtonBox::Close, QDialogButtonBox *group = new QDialogButtonBox( this );
Qt::Horizontal, this ); QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
group->addButton( closeButton, QDialogButtonBox::AcceptRole );
BUTTONACT( closeButton, close() );
layout->addWidget( group, 7, 0, 1, -1 ); layout->addWidget( group, 7, 0, 1, -1 );
connect( group, SIGNAL(clicked(QAbstractButton*)), this, SLOT(close()) );
// Fix layout // Fix layout
layout->setColumnStretch( 2, 1 ); layout->setColumnStretch( 2, 1 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment