Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 318ff493 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent d4ad26f7
......@@ -914,8 +914,7 @@ void AgendaView::connectAgenda(Agenda *agenda, Agenda *otherAgenda)
this, &AgendaView::slotDeleteIncidence);
// drag signals
connect(agenda, SIGNAL(startDragSignal(KCalCore::Incidence::Ptr)),
SLOT(startDrag(KCalCore::Incidence::Ptr)));
connect(agenda, &Agenda::startDragSignal, this, [this](const KCalCore::Incidence::Ptr &ptr) { startDrag(ptr); });
// synchronize selections
connect(agenda, &Agenda::incidenceSelected,
......
......@@ -198,7 +198,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, SIGNAL(clicked()), this, SLOT(printJournal()));
connect(mPrintButton, &QPushButton::clicked, this, QOverload<>::of(&JournalFrame::printJournal));
mPrintPreviewButton = new QPushButton(this);
mPrintPreviewButton->setText(i18n("Print preview"));
......
......@@ -299,10 +299,10 @@ ListView::ListView(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *parent, b
layoutTop->setMargin(0);
layoutTop->addWidget(d->mTreeWidget);
QObject::connect(d->mTreeWidget, SIGNAL(doubleClicked(QModelIndex)),
SLOT(defaultItemAction(QModelIndex)));
QObject::connect(d->mTreeWidget, QOverload<const QModelIndex &>::of(&QTreeWidget::doubleClicked), this,
QOverload<const QModelIndex &>::of(&ListView::defaultItemAction));
QObject::connect(d->mTreeWidget,
&QWidget::customContextMenuRequested,
&QTreeWidget::customContextMenuRequested,
this, &ListView::popupMenu);
QObject::connect(d->mTreeWidget, &QTreeWidget::itemSelectionChanged,
this, &ListView::processSelectionChange);
......
......@@ -338,7 +338,7 @@ TodoView::TodoView(const EventViews::PrefsPtr &prefs, bool sidebarView, QWidget
QAction *a = mItemPopupMenu->addAction(
i18nc("@action:inmenu edit the to-do", "&Edit..."),
this, SLOT(editTodo()));
this, &TodoView::editTodo);
mItemPopupMenuReadWriteEntries << a;
mItemPopupMenuItemOnlyEntries << a;
......@@ -346,7 +346,7 @@ TodoView::TodoView(const EventViews::PrefsPtr &prefs, bool sidebarView, QWidget
mItemPopupMenuItemOnlyEntries << mItemPopupMenu->addAction(
QIcon::fromTheme(QStringLiteral("document-print")),
i18nc("@action:inmenu print the to-do", "&Print..."),
this, SIGNAL(printTodo()));
this, &TodoView::printTodo);
mItemPopupMenuItemOnlyEntries << mItemPopupMenu->addAction(
QIcon::fromTheme(QStringLiteral("document-print-preview")),
......
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