TextEditor: Shuffle some convenience functions

Remove rarely used ones, add a currentTextEditorWidget()

Change-Id: I27b97c17927c71e07dc3b489785b7f2f76eb801e
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
hjk
2014-09-30 17:35:35 +02:00
parent 577fcd97d4
commit 96be6ae15f
7 changed files with 32 additions and 43 deletions

View File

@@ -147,7 +147,6 @@ public:
TextDocument *textDocument() const;
// Some convenience text access
QTextDocument *qdocument() const;
void setTextCursor(const QTextCursor &cursor);
QTextCursor textCursor() const;
QChar characterAt(int pos) const;
@@ -184,9 +183,6 @@ public:
/*! Converts the \a pos in characters from beginning of document to \a line and \a column */
virtual void convertPosition(int pos, int *line, int *column) const;
/*! Returns the cursor rectangle in pixels at \a pos, or current position if \a pos = -1 */
virtual QRect cursorRect(int pos = -1) const;
virtual QString selectedText() const;
/*! Removes \a length characters to the right of the cursor. */
@@ -574,6 +570,8 @@ public:
QString contextHelpId();
void setContextHelpId(const QString &id);
static TextEditorWidget *currentTextEditorWidget();
protected:
/*!
Reimplement this function to enable code navigation.