Commit 2552ed53 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qOverload directly (scripted)

parent e9eedcca
Pipeline #77320 passed with stage
in 14 minutes and 37 seconds
......@@ -211,7 +211,7 @@ void CryptoOperationsConfigWidget::setupProfileGui(QBoxLayout *layout)
applyProfile(combo->currentText());
});
connect(combo, QOverload<const QString &>::of(&QComboBox::currentTextChanged), this, [this] (const QString &text) {
connect(combo, qOverload<const QString &>(&QComboBox::currentTextChanged), this, [this] (const QString &text) {
mApplyBtn->setEnabled(!text.isEmpty());
});
}
......
......@@ -137,7 +137,7 @@ CertificateLineEdit::CertificateLineEdit(AbstractKeyListModel *model,
this, &CertificateLineEdit::editChanged);
connect(mLineAction, &QAction::triggered,
this, &CertificateLineEdit::dialogRequested);
connect(mCompleter, QOverload<const QModelIndex &>::of(&QCompleter::activated),
connect(mCompleter, qOverload<const QModelIndex &>(&QCompleter::activated),
this, [this] (const QModelIndex &index) {
Key key = mCompleter->completionModel()->data(index, KeyList::KeyRole).value<Key>();
auto group = mCompleter->completionModel()->data(index, KeyList::GroupRole).value<KeyGroup>();
......
......@@ -93,7 +93,7 @@ public:
{
connect(ui.inSB, &QSpinBox::valueChanged,
q, [this] () { slotInAmountChanged(); });
connect(ui.inCB, QOverload<int>::of(&QComboBox::currentIndexChanged),
connect(ui.inCB, qOverload<int>(&QComboBox::currentIndexChanged),
q, [this] () { slotInUnitChanged(); });
connect(ui.onCW, &QCalendarWidget::selectionChanged,
q, [this] () { slotOnDateChanged(); });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment