Commit c4d73539 authored by Dominik Haumann's avatar Dominik Haumann

move signal readWriteChanged(KTE::Document*) to KTE::Document

parent 2e70a390
......@@ -445,14 +445,16 @@ The following interfaces were merged, in order:
\section kte_port_rename Interface Changes
The following interfaces were changed:
- \p KTextEditor::View::setSelection(const Cursor &position, int length, bool wrap);
- \p KTextEditor::View::setSelection(const Cursor &position, int length, bool wrap)
was removed in favour of the Range based KTextEditor::View::setSelection()
- \p KTextEditor::Document::wordRangeAt(const Cursor &position);
- \p KTextEditor::Document::wordRangeAt(const Cursor &position)
returns the Range of the word under \p position.
- \p KTextEditor::Document::wordAt(const Cursor &position);
- \p KTextEditor::Document::wordAt(const Cursor &position)
returns the word under \p position.
- \p KTextEditor::Document::character(const Cursor &position); was renamed to
\p KTextEditor::Document::characterAt(const Cursor &position);
- \p KTextEditor::Document::character(const Cursor &position) was renamed to
\p KTextEditor::Document::characterAt(const Cursor &position)
- \p KTextEditor::Document::readWriteChanged(Document *document) \n
This signal is emitted whenever the read-only state of the document changes.
\section kte_port_new New Interfaces
The following interfaces are new:
......
......@@ -220,10 +220,12 @@ class KTEXTEDITOR_EXPORT Document : public KParts::ReadWritePart
void modifiedChanged ( KTextEditor::Document *document );
/**
* This signal is emitted whenever the readWrite state of a document changes
* This signal is emitted whenever the readWrite state of a document
* changes.
* \param document the document whose read/write property changed
* \see KParts::setReadWrite()
*/
//warning ADD IN KDE5
// void readWriteChanged (KTextEditor::Document *document);
void readWriteChanged ( KTextEditor::Document *document );
/*
* VERY IMPORTANT: Methods to set and query the current encoding of the
......
......@@ -130,12 +130,6 @@ class KATEPART_TESTS_EXPORT KateDocument : public KTextEditor::Document,
*/
virtual QWidget *widget();
Q_SIGNALS:
// TODO for KDE5: move to KTE::Document
void readWriteChanged (KTextEditor::Document *document);
public:
bool readOnly () const { return m_bReadOnly; }
bool browserView () const { return m_bBrowserView; }
......
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