From 6b07bdf6eddafd74946ab93eed05117d5b95b4a6 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 22 Sep 2020 23:51:35 +0200 Subject: [PATCH] [keyboard] Do not use deprecated Qt4-era indexChanged for text --- src/modules/keyboard/KeyboardPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/keyboard/KeyboardPage.cpp b/src/modules/keyboard/KeyboardPage.cpp index 56036001f..bd300d7e3 100644 --- a/src/modules/keyboard/KeyboardPage.cpp +++ b/src/modules/keyboard/KeyboardPage.cpp @@ -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" );