Use qOverload macro instead of QOverload
This commit is contained in:
@@ -101,7 +101,7 @@ DlgCustomKeyboardImp::DlgCustomKeyboardImp( QWidget* parent )
|
||||
|
||||
ui->shortcutTimeout->onRestore();
|
||||
QTimer *timer = new QTimer(this);
|
||||
QObject::connect(ui->shortcutTimeout, QOverload<int>::of(&QSpinBox::valueChanged), timer, [=](int) {
|
||||
QObject::connect(ui->shortcutTimeout, qOverload<int>(&QSpinBox::valueChanged), timer, [=](int) {
|
||||
timer->start(100);
|
||||
});
|
||||
QObject::connect(timer, &QTimer::timeout, [=]() {
|
||||
@@ -220,7 +220,7 @@ DlgCustomKeyboardImp::initCommandList(QTreeWidget *commandTreeWidget,
|
||||
timer->start(100);
|
||||
});
|
||||
|
||||
QObject::connect(combo, QOverload<int>::of(&QComboBox::activated), timer, [timer]() {
|
||||
QObject::connect(combo, qOverload<int>(&QComboBox::activated), timer, [timer]() {
|
||||
timer->start(100);
|
||||
});
|
||||
|
||||
|
||||
@@ -238,8 +238,8 @@ DlgSettingsWorkbenchesImp::DlgSettingsWorkbenchesImp( QWidget* parent )
|
||||
ui->wbList->setDefaultDropAction(Qt::MoveAction);
|
||||
|
||||
connect(ui->wbList->model(), &QAbstractItemModel::rowsMoved, this, &DlgSettingsWorkbenchesImp::wbItemMoved);
|
||||
connect(ui->AutoloadModuleCombo, QOverload<int>::of(&QComboBox::activated), this, &DlgSettingsWorkbenchesImp::onStartWbChanged);
|
||||
connect(ui->WorkbenchSelectorPosition, QOverload<int>::of(&QComboBox::activated), this, &DlgSettingsWorkbenchesImp::onWbSelectorChanged);
|
||||
connect(ui->AutoloadModuleCombo, qOverload<int>(&QComboBox::activated), this, &DlgSettingsWorkbenchesImp::onStartWbChanged);
|
||||
connect(ui->WorkbenchSelectorPosition, qOverload<int>(&QComboBox::activated), this, &DlgSettingsWorkbenchesImp::onWbSelectorChanged);
|
||||
connect(ui->CheckBox_WbByTab, &QCheckBox::toggled, this, &DlgSettingsWorkbenchesImp::onWbByTabToggled);
|
||||
}
|
||||
|
||||
@@ -573,4 +573,4 @@ void DlgSettingsWorkbenchesImp::onWbByTabToggled(bool val)
|
||||
}
|
||||
|
||||
#include "moc_DlgSettingsWorkbenchesImp.cpp"
|
||||
#include "DlgSettingsWorkbenchesImp.moc"
|
||||
#include "DlgSettingsWorkbenchesImp.moc"
|
||||
|
||||
Reference in New Issue
Block a user