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,
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 );
......
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