qt: Use template function qOverload in signal-slot connections

This commit does not change behavior.
This commit is contained in:
Hennadii Stepanov
2021-03-24 05:37:56 +02:00
parent e1e1e708fa
commit cdbc2bd1f1
9 changed files with 20 additions and 20 deletions

View File

@@ -7,7 +7,7 @@
QValueComboBox::QValueComboBox(QWidget *parent) :
QComboBox(parent), role(Qt::UserRole)
{
connect(this, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &QValueComboBox::handleSelectionChanged);
connect(this, qOverload<int>(&QComboBox::currentIndexChanged), this, &QValueComboBox::handleSelectionChanged);
}
QVariant QValueComboBox::value() const