aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-19 17:12:31 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-19 17:14:39 (GMT)
commit60a2de20ccf0ed98a1c39c2b9f65c04ade46e1e8 (patch)
treecf2aac5a191ebddd6f17197d531286a8c9da15ae
parentea3ae71c8644c4231892d1b45a1c3ae6fe70c6e9 (diff)
the complex textChanged was never ever emitted ;)
-rw-r--r--src/include/ktexteditor/document.h13
-rw-r--r--src/view/kateviewinternal.cpp12
-rw-r--r--src/view/kateviewinternal.h1
3 files changed, 0 insertions, 26 deletions
diff --git a/src/include/ktexteditor/document.h b/src/include/ktexteditor/document.h
index 95ba764..ab16100 100644
--- a/src/include/ktexteditor/document.h
+++ b/src/include/ktexteditor/document.h
@@ -656,19 +656,6 @@ Q_SIGNALS:
void textRemoved(KTextEditor::Document *document, const KTextEditor::Range &range, const QString &oldText);
/**
- * The \p document emits this signal whenever the text in range
- * \p oldRange was removed and replaced with the text now in \e newRange,
- * e.g. the user selects text and pastes new text to replace the selection.
- * \note \p oldRange.start() is guaranteed to equal \p newRange.start().
- * \param document document which emitted this signal
- * \param oldRange range that the text previously occupied
- * \param oldText old text that has been replaced
- * \param newRange range that the changed text now occupies
- * \see insertText(), insertLine(), removeText(), removeLine(), clear()
- */
- void textChanged(KTextEditor::Document *document, const KTextEditor::Range &oldRange, const QString &oldText, const KTextEditor::Range &newRange);
-
- /**
* Warn anyone listening that the current document is about to close.
* At this point all of the information is still accessible, such as the text,
* cursors and ranges.
diff --git a/src/view/kateviewinternal.cpp b/src/view/kateviewinternal.cpp
index 764a268..6af1ef3 100644
--- a/src/view/kateviewinternal.cpp
+++ b/src/view/kateviewinternal.cpp
@@ -216,9 +216,6 @@ KateViewInternal::KateViewInternal(KTextEditor::ViewPrivate *view)
#endif
connect(doc(), &KTextEditor::Document::textInserted, this, &KateViewInternal::documentTextInserted);
connect(doc(), &KTextEditor::Document::textRemoved, this, &KateViewInternal::documentTextRemoved);
- connect(doc(),
- static_cast<void (KTextEditor::Document::*)(KTextEditor::Document *, const KTextEditor::Range&, const QString&, const KTextEditor::Range&)>(&KTextEditor::Document::textChanged),
- this, &KateViewInternal::documentTextChanged);
// update is called in KTextEditor::ViewPrivate, after construction and layout is over
// but before any other kateviewinternal call
@@ -3759,12 +3756,3 @@ void KateViewInternal::documentTextRemoved(KTextEditor::Document */*document*/,
QAccessible::updateAccessibility(&ev);
}
}
-
-void KateViewInternal::documentTextChanged(KTextEditor::Document *document, const KTextEditor::Range &oldRange, const QString &oldText, const KTextEditor::Range &newRange)
-{
- if (QAccessible::isActive()) {
- QAccessibleTextUpdateEvent ev(this,
- KateViewAccessible::positionFromCursor(this, oldRange.start()), oldText, document->text(newRange));
- QAccessible::updateAccessibility(&ev);
- }
-}
diff --git a/src/view/kateviewinternal.h b/src/view/kateviewinternal.h
index 3c57949..6c5ffdb 100644
--- a/src/view/kateviewinternal.h
+++ b/src/view/kateviewinternal.h
@@ -417,7 +417,6 @@ private Q_SLOTS:
void documentTextInserted(KTextEditor::Document *document, const KTextEditor::Range &range);
void documentTextRemoved(KTextEditor::Document *document, const KTextEditor::Range &range, const QString &oldText);
- void documentTextChanged(KTextEditor::Document *document, const KTextEditor::Range &oldRange, const QString &oldText, const KTextEditor::Range &newRange);
//TextHint
public: