summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/quickfix.h
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2010-08-13 12:49:11 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2010-08-13 12:51:22 +0200
commit7a5df3c39dc6bd16ceec4e15da62b96dd70090aa (patch)
tree776f98eca91e5ac236055e2353043d373c5ead0d /src/plugins/texteditor/quickfix.h
parentbbe64796a0f3a8c57718a5121fff85ba0b14c7a0 (diff)
downloadqt-creator-7a5df3c39dc6bd16ceec4e15da62b96dd70090aa.tar.gz
QuickFix: Move helpers from QuickFixData to RefactoringFile.
Makes them easy to use everywhere. Also when calling QuickFixData::textOf and friends, it wasn't really clear which file they would run on.
Diffstat (limited to 'src/plugins/texteditor/quickfix.h')
-rw-r--r--src/plugins/texteditor/quickfix.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/plugins/texteditor/quickfix.h b/src/plugins/texteditor/quickfix.h
index f632ac32c8..d2171cb240 100644
--- a/src/plugins/texteditor/quickfix.h
+++ b/src/plugins/texteditor/quickfix.h
@@ -56,42 +56,8 @@ public:
TextEditor::BaseTextEditor *editor() const;
- /*!
- \returns A QTextCursor positioned as the editor's visible cursor, including
- possible selections.
- */
- QTextCursor textCursor() const;
-
- /// \returns The character offset in the document where the selection starts.
- int selectionStart() const;
-
- /// \returns The character offset in the document where the selection ends.
- int selectionEnd() const;
-
- /*!
- Calculates the offset in the document for the given line and column.
-
- \param line The line number, 1-based.
- \param column The column number, 1-based.
- \return The offset in the \c QTextDocument of the editor.
- */
- int position(int line, int column) const;
-
- /// \returns The character at the given offset in the editor's text document.
- QChar charAt(int offset) const;
-
- /*!
- \returns The text between the given start- and end-offset in the editor's
- text document.
- */
- QString textOf(int start, int end) const;
-
- /// Utility method to create a range.
- static Utils::ChangeSet::Range range(int start, int end);
-
private:
TextEditor::BaseTextEditor *_editor;
- QTextCursor _textCursor;
};
/*!