qt: Use new Qt5 connect syntax

This commit is contained in:
João Barbosa
2018-06-24 16:18:22 +01:00
parent 8aa9badf5e
commit f78558f1e3
33 changed files with 301 additions and 301 deletions

View File

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