Commit a6fcdf5d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qOverload directly (scripted)

parent 478fc1bb
Pipeline #77332 passed with stage
in 5 minutes and 48 seconds
...@@ -75,7 +75,7 @@ ArchiveDialog::ArchiveDialog(const Akonadi::ETMCalendar::Ptr &cal, Akonadi::Inci ...@@ -75,7 +75,7 @@ ArchiveDialog::ArchiveDialog(const Akonadi::ETMCalendar::Ptr &cal, Akonadi::Inci
connect(descLabel, &QLabel::linkActivated, this, &ArchiveDialog::showWhatsThis); connect(descLabel, &QLabel::linkActivated, this, &ArchiveDialog::showWhatsThis);
auto radioBG = new QButtonGroup(this); auto radioBG = new QButtonGroup(this);
connect(radioBG, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked), this, &ArchiveDialog::slotActionChanged); connect(radioBG, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &ArchiveDialog::slotActionChanged);
auto dateLayout = new QHBoxLayout(); auto dateLayout = new QHBoxLayout();
dateLayout->setContentsMargins(0, 0, 0, 0); dateLayout->setContentsMargins(0, 0, 0, 0);
......
...@@ -70,8 +70,8 @@ NoteEditDialog::NoteEditDialog(QWidget *parent) ...@@ -70,8 +70,8 @@ NoteEditDialog::NoteEditDialog(QWidget *parent)
mCollectionCombobox->setAccessibleDescription(i18nc("@info", "Calendar where the new note will be stored.")); mCollectionCombobox->setAccessibleDescription(i18nc("@info", "Calendar where the new note will be stored."));
#endif #endif
mCollectionCombobox->setToolTip(i18nc("@info:tooltip", "Calendar where the new note will be stored.")); mCollectionCombobox->setToolTip(i18nc("@info:tooltip", "Calendar where the new note will be stored."));
connect(mCollectionCombobox, QOverload<int>::of(&Akonadi::CollectionComboBox::currentIndexChanged), this, &NoteEditDialog::slotCollectionChanged); connect(mCollectionCombobox, qOverload<int>(&Akonadi::CollectionComboBox::currentIndexChanged), this, &NoteEditDialog::slotCollectionChanged);
connect(mCollectionCombobox, QOverload<int>::of(&Akonadi::CollectionComboBox::activated), this, &NoteEditDialog::slotCollectionChanged); connect(mCollectionCombobox, qOverload<int>(&Akonadi::CollectionComboBox::activated), this, &NoteEditDialog::slotCollectionChanged);
mNoteText = new KPIMTextEdit::RichTextEditorWidget(parent); mNoteText = new KPIMTextEdit::RichTextEditorWidget(parent);
mNoteText->setObjectName(QStringLiteral("notetext")); mNoteText->setObjectName(QStringLiteral("notetext"));
......
...@@ -202,7 +202,7 @@ CalPrintDialog::CalPrintDialog(int initialPrintType, const PrintPlugin::List &pl ...@@ -202,7 +202,7 @@ CalPrintDialog::CalPrintDialog(int initialPrintType, const PrintPlugin::List &pl
splitterRightLayout->addWidget(mOrientationSelection, 1, 1); splitterRightLayout->addWidget(mOrientationSelection, 1, 1);
// signals and slots connections // signals and slots connections
connect(mTypeGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked), this, &CalPrintDialog::setPrintType); connect(mTypeGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &CalPrintDialog::setPrintType);
orientationLabel->setBuddy(mOrientationSelection); orientationLabel->setBuddy(mOrientationSelection);
// First insert the config widgets into the widget stack. This possibly assigns // First insert the config widgets into the widget stack. This possibly assigns
......
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