[keyboard] Do not use deprecated Qt4-era indexChanged for text
This commit is contained in:
parent
02423c823d
commit
6b07bdf6ed
@ -77,7 +77,7 @@ KeyboardPage::KeyboardPage( QWidget* parent )
|
|||||||
ui->buttonRestore, &QPushButton::clicked, [this] { ui->comboBoxModel->setCurrentIndex( m_defaultIndex ); } );
|
ui->buttonRestore, &QPushButton::clicked, [this] { ui->comboBoxModel->setCurrentIndex( m_defaultIndex ); } );
|
||||||
|
|
||||||
connect( ui->comboBoxModel,
|
connect( ui->comboBoxModel,
|
||||||
static_cast< void ( QComboBox::* )( const QString& ) >( &QComboBox::currentIndexChanged ),
|
&QComboBox::currentTextChanged,
|
||||||
[this]( const QString& text ) {
|
[this]( const QString& text ) {
|
||||||
QString model = m_models.value( text, "pc105" );
|
QString model = m_models.value( text, "pc105" );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user