|
|
|
@ -63,6 +63,9 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
|
|
|
|
QDialogButtonBox* dbb = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
|
|
|
|
QDialogButtonBox* dbb = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
|
|
|
|
Qt::Horizontal,
|
|
|
|
Qt::Horizontal,
|
|
|
|
this );
|
|
|
|
this );
|
|
|
|
|
|
|
|
dbb->button( QDialogButtonBox::Cancel )->setText( tr( "&Cancel" ) );
|
|
|
|
|
|
|
|
dbb->button( QDialogButtonBox::Ok )->setText( tr( "&OK" ) );
|
|
|
|
|
|
|
|
|
|
|
|
mainLayout->addWidget( dbb );
|
|
|
|
mainLayout->addWidget( dbb );
|
|
|
|
|
|
|
|
|
|
|
|
connect( dbb->button( QDialogButtonBox::Ok ), &QPushButton::clicked,
|
|
|
|
connect( dbb->button( QDialogButtonBox::Ok ), &QPushButton::clicked,
|
|
|
|
@ -83,9 +86,7 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
|
|
|
|
} );
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
|
|
if ( selected > -1 )
|
|
|
|
if ( selected > -1 )
|
|
|
|
{
|
|
|
|
|
|
|
|
m_localesWidget->setCurrentRow( selected );
|
|
|
|
m_localesWidget->setCurrentRow( selected );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|