mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
qt: fix compilation on older QT6 (#1886)
* fix compilation on older QT6 * fix indent my C++ is very rusty * fix indents again * Fixed formatting --------- Co-authored-by: OpenSauce04 <opensauce04@gmail.com>
This commit is contained in:
parent
d97da17263
commit
ccd61d0134
1 changed files with 5 additions and 0 deletions
|
|
@ -230,8 +230,13 @@ void ConfigureMotionTouch::ConnectEvents() {
|
||||||
poll_timer->start(200); // Check for new inputs every 200ms
|
poll_timer->start(200); // Check for new inputs every 200ms
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
connect(ui->touchpad_checkbox, &QCheckBox::StateChanged, this, [this]() { UpdateUiDisplay(); });
|
||||||
|
#else
|
||||||
connect(ui->touchpad_checkbox, &QCheckBox::checkStateChanged, this,
|
connect(ui->touchpad_checkbox, &QCheckBox::checkStateChanged, this,
|
||||||
[this]() { UpdateUiDisplay(); });
|
[this]() { UpdateUiDisplay(); });
|
||||||
|
#endif
|
||||||
|
|
||||||
connect(ui->touchpad_config_btn, &QPushButton::clicked, this, [this]() {
|
connect(ui->touchpad_config_btn, &QPushButton::clicked, this, [this]() {
|
||||||
if (QMessageBox::information(this, tr("Information"),
|
if (QMessageBox::information(this, tr("Information"),
|
||||||
tr("After pressing OK, tap the touchpad on the controller "
|
tr("After pressing OK, tap the touchpad on the controller "
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue