summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <gladhorn@kde.org>2014-01-19 18:51:57 (GMT)
committerFrederik Gladhorn <gladhorn@kde.org>2014-01-19 18:53:10 (GMT)
commit3df630b5ec345d4011dad88be2dfef32e976cd72 (patch)
tree48bfac8e5bfff5ae27bd4bac3637e242f7c355b3
parent4f498af0974ff3d38ea4918d94c0bd22fca3f00b (diff)
Fix invalid disconnect
disconnect for connections with the new connect syntax needs to also use the new syntax.
-rw-r--r--src/utils/katetemplatehandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/katetemplatehandler.cpp b/src/utils/katetemplatehandler.cpp
index 83d0aaf..be79026 100644
--- a/src/utils/katetemplatehandler.cpp
+++ b/src/utils/katetemplatehandler.cpp
@@ -185,17 +185,17 @@ void KateTemplateHandler::slotTemplateInserted(Document *document, const Range &
m_wholeTemplateRange = doc()->newMovingRange(range, KTextEditor::MovingRange::ExpandLeft | KTextEditor::MovingRange::ExpandRight);
- disconnect(doc(), SIGNAL(textInserted(KTextEditor::Document*,KTextEditor::Range)),
- this, SLOT(slotTemplateInserted(KTextEditor::Document*,KTextEditor::Range)));
+ disconnect(doc(), &KTextEditor::Document::textInserted,
+ this, &KateTemplateHandler::slotTemplateInserted);
}
void KateTemplateHandler::cleanupAndExit()
{
ifDebug(qCDebug(LOG_PART) << "cleaning up and exiting";)
- disconnect(doc(), SIGNAL(viewCreated(KTextEditor::Document*,KTextEditor::View*)),
- this, SLOT(slotViewCreated(KTextEditor::Document*,KTextEditor::View*)));
- disconnect(doc(), SIGNAL(textInserted(KTextEditor::Document*,KTextEditor::Range)),
- this, SLOT(slotTextChanged(KTextEditor::Document*,KTextEditor::Range)));
+ disconnect(doc(), &KTextEditor::Document::viewCreated,
+ this, &KateTemplateHandler::slotViewCreated);
+ disconnect(doc(), &KTextEditor::Document::textInserted,
+ this, &KateTemplateHandler::slotTextChanged);
disconnect(doc(), &KTextEditor::Document::textRemoved,
this, &KateTemplateHandler::slotTextChanged);