summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-31 12:21:55 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-31 12:21:55 (GMT)
commitd9d83a1388028fe311487e6b8321368f342eaa73 (patch)
tree12111739a64e9578c512e457f344542d01f37cac
parent010aec79c9842b6c68f166781eadb0b8f6027612 (diff)
USe new connect api
-rw-r--r--src/ksieveui/widgets/managesievewidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ksieveui/widgets/managesievewidget.cpp b/src/ksieveui/widgets/managesievewidget.cpp
index a2583a9..4d56502 100644
--- a/src/ksieveui/widgets/managesievewidget.cpp
+++ b/src/ksieveui/widgets/managesievewidget.cpp
@@ -162,18 +162,18 @@ void ManageSieveWidget::slotContextMenuRequested(const QPoint &p)
QMenu menu;
if (isFileNameItem(item)) {
// script items:
- menu.addAction(i18n("Edit Script..."), this, SLOT(slotEditScript()));
- menu.addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18n("Delete Script"), this, SLOT(slotDeleteScript()));
+ menu.addAction(i18n("Edit Script..."), this, &ManageSieveWidget::slotEditScript);
+ menu.addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18n("Delete Script"), this, &ManageSieveWidget::slotDeleteScript);
if (itemIsActived(item)) {
menu.addSeparator();
- menu.addAction(i18n("Deactivate Script"), this, SLOT(slotDeactivateScript()));
+ menu.addAction(i18n("Deactivate Script"), this, &ManageSieveWidget::slotDeactivateScript);
}
} else if (!item->parent()) {
// top-levels:
if (!serverHasError(item) && mJobs.keys(item).isEmpty()) {
- menu.addAction(QIcon::fromTheme(QStringLiteral("document-new")), i18n("New Script..."), this, SLOT(slotNewScript()));
+ menu.addAction(QIcon::fromTheme(QStringLiteral("document-new")), i18n("New Script..."), this, &ManageSieveWidget::slotNewScript);
} else if (!mJobs.keys(item).isEmpty()) { //In Progress
- menu.addAction(KStandardGuiItem::cancel().icon(), KStandardGuiItem::cancel().text(), this, SLOT(slotCancelFetch()));
+ menu.addAction(KStandardGuiItem::cancel().icon(), KStandardGuiItem::cancel().text(), this, &ManageSieveWidget::slotCancelFetch);
}
}
if (!menu.actions().isEmpty()) {