summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-02 05:25:07 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-02 05:25:07 (GMT)
commit60e128f577da3f26b68876eeba3432366c7f270f (patch)
tree6127febad52e043d4062f549db10866b9a988003
parenta5009e6c0a261a7d1107a9c4db658a94854da14d (diff)
Use new connect api
-rw-r--r--src/texteditor/plaintexteditor/plaintexteditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/texteditor/plaintexteditor/plaintexteditor.cpp b/src/texteditor/plaintexteditor/plaintexteditor.cpp
index 1ab4421..7d8913a 100644
--- a/src/texteditor/plaintexteditor/plaintexteditor.cpp
+++ b/src/texteditor/plaintexteditor/plaintexteditor.cpp
@@ -167,10 +167,10 @@ void PlainTextEditor::contextMenuEvent(QContextMenuEvent *event)
}
if (!d->speller->availableBackends().isEmpty()) {
if (!emptyDocument) {
- popup->addAction(QIcon::fromTheme(QStringLiteral("tools-check-spelling")), i18n("Check Spelling..."), this, SLOT(slotCheckSpelling()));
+ popup->addAction(QIcon::fromTheme(QStringLiteral("tools-check-spelling")), i18n("Check Spelling..."), this, &PlainTextEditor::slotCheckSpelling);
popup->addSeparator();
}
- QAction *autoSpellCheckAction = popup->addAction(i18n("Auto Spell Check"), this, SLOT(slotToggleAutoSpellCheck()));
+ QAction *autoSpellCheckAction = popup->addAction(i18n("Auto Spell Check"), this, &PlainTextEditor::slotToggleAutoSpellCheck);
autoSpellCheckAction->setCheckable(true);
autoSpellCheckAction->setChecked(checkSpellingEnabled());
popup->addAction(autoSpellCheckAction);