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

Use qOverload directly (scripted)

parent f5f3fa9e
Pipeline #77331 passed with stage
in 6 minutes and 34 seconds
......@@ -894,13 +894,13 @@ void AgendaView::connectAgenda(Agenda *agenda, Agenda *otherAgenda)
// rescheduling of todos by d'n'd
connect(agenda,
QOverload<const KCalendarCore::Incidence::List &, const QPoint &, bool>::of(&Agenda::droppedIncidences),
qOverload<const KCalendarCore::Incidence::List &, const QPoint &, bool>(&Agenda::droppedIncidences),
this,
QOverload<const KCalendarCore::Incidence::List &, const QPoint &, bool>::of(&AgendaView::slotIncidencesDropped));
qOverload<const KCalendarCore::Incidence::List &, const QPoint &, bool>(&AgendaView::slotIncidencesDropped));
connect(agenda,
QOverload<const QList<QUrl> &, const QPoint &, bool>::of(&Agenda::droppedIncidences),
qOverload<const QList<QUrl> &, const QPoint &, bool>(&Agenda::droppedIncidences),
this,
QOverload<const QList<QUrl> &, const QPoint &, bool>::of(&AgendaView::slotIncidencesDropped));
qOverload<const QList<QUrl> &, const QPoint &, bool>(&AgendaView::slotIncidencesDropped));
}
void AgendaView::slotIncidenceSelected(const KCalendarCore::Incidence::Ptr &incidence, QDate date)
......
......@@ -81,9 +81,9 @@ void JournalDateView::addJournal(const Akonadi::Item &j)
connect(entry, &JournalFrame::editIncidence, this, &JournalDateView::editIncidence);
connect(entry, &JournalFrame::incidenceSelected, this, &JournalDateView::incidenceSelected);
connect(entry,
QOverload<const KCalendarCore::Journal::Ptr &, bool>::of(&JournalFrame::printJournal),
qOverload<const KCalendarCore::Journal::Ptr &, bool>(&JournalFrame::printJournal),
this,
QOverload<const KCalendarCore::Journal::Ptr &, bool>::of(&JournalDateView::printJournal));
qOverload<const KCalendarCore::Journal::Ptr &, bool>(&JournalDateView::printJournal));
}
Akonadi::Item::List JournalDateView::journals() const
......@@ -176,7 +176,7 @@ JournalFrame::JournalFrame(const Akonadi::Item &j, const Akonadi::ETMCalendar::P
mPrintButton->setToolTip(i18n("Print this journal entry"));
mPrintButton->setWhatsThis(i18n("Opens a print dialog for this journal entry"));
buttonsLayout->addWidget(mPrintButton);
connect(mPrintButton, &QPushButton::clicked, this, QOverload<>::of(&JournalFrame::printJournal));
connect(mPrintButton, &QPushButton::clicked, this, qOverload<>(&JournalFrame::printJournal));
mPrintPreviewButton = new QPushButton(this);
mPrintPreviewButton->setText(i18n("Print preview"));
......
......@@ -295,9 +295,9 @@ ListView::ListView(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *parent, b
layoutTop->addWidget(d->mTreeWidget);
QObject::connect(d->mTreeWidget,
QOverload<const QModelIndex &>::of(&QTreeWidget::doubleClicked),
qOverload<const QModelIndex &>(&QTreeWidget::doubleClicked),
this,
QOverload<const QModelIndex &>::of(&ListView::defaultItemAction));
qOverload<const QModelIndex &>(&ListView::defaultItemAction));
QObject::connect(d->mTreeWidget, &QTreeWidget::customContextMenuRequested, this, &ListView::popupMenu);
QObject::connect(d->mTreeWidget, &QTreeWidget::itemSelectionChanged, this, &ListView::processSelectionChange);
QObject::connect(d->mTreeWidget->header(), &QHeaderView::sortIndicatorChanged,
......
......@@ -189,7 +189,7 @@ TodoView::TodoView(const EventViews::PrefsPtr &prefs, bool sidebarView, QWidget
if (!mSidebarView) {
mQuickSearch = new TodoViewQuickSearch(calendar(), this);
mQuickSearch->setVisible(prefs->enableTodoQuickSearch());
connect(mQuickSearch, &TodoViewQuickSearch::searchTextChanged, mProxyModel, QOverload<const QString &>::of(&QSortFilterProxyModel::setFilterRegExp));
connect(mQuickSearch, &TodoViewQuickSearch::searchTextChanged, mProxyModel, qOverload<const QString &>(&QSortFilterProxyModel::setFilterRegExp));
connect(mQuickSearch, &TodoViewQuickSearch::searchTextChanged, this, &TodoView::restoreViewState);
connect(mQuickSearch, &TodoViewQuickSearch::filterCategoryChanged, mProxyModel, &TodoViewSortFilterProxyModel::setCategoryFilter);
connect(mQuickSearch, &TodoViewQuickSearch::filterCategoryChanged, this, &TodoView::restoreViewState);
......
Markdown is supported
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