[keyboard] Do not use deprecated Qt4-era indexChanged for text

This commit is contained in:
Adriaan de Groot 2020-09-22 23:51:35 +02:00
parent 02423c823d
commit 6b07bdf6ed

View File

@ -77,7 +77,7 @@ KeyboardPage::KeyboardPage( QWidget* parent )
ui->buttonRestore, &QPushButton::clicked, [this] { ui->comboBoxModel->setCurrentIndex( m_defaultIndex ); } );
connect( ui->comboBoxModel,
static_cast< void ( QComboBox::* )( const QString& ) >( &QComboBox::currentIndexChanged ),
&QComboBox::currentTextChanged,
[this]( const QString& text ) {
QString model = m_models.value( text, "pc105" );