diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-11-19 04:37:15 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-11-19 04:37:15 (GMT) |
commit | 678c03f5cfecc6448af6474c52c116644f9f54f9 (patch) | |
tree | 6bd7eeb870a106eb3e3af4c8479051ec16a9f2a0 /src/declarative/graphicsitems | |
parent | 08c45e83b05aa22b0d37a16aa01cbf5b3056bd15 (diff) | |
download | Qt-678c03f5cfecc6448af6474c52c116644f9f54f9.zip Qt-678c03f5cfecc6448af6474c52c116644f9f54f9.tar.gz Qt-678c03f5cfecc6448af6474c52c116644f9f54f9.tar.bz2 |
Remove useless, untested methods from QmlGraphicsTextEdit
I don't think we'll need to expose QTextCursor for QML.
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicstextedit.cpp | 52 | ||||
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicstextedit_p.h | 7 |
2 files changed, 0 insertions, 59 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicstextedit.cpp b/src/declarative/graphicsitems/qmlgraphicstextedit.cpp index b691304..a6b5ae0 100644 --- a/src/declarative/graphicsitems/qmlgraphicstextedit.cpp +++ b/src/declarative/graphicsitems/qmlgraphicstextedit.cpp @@ -686,29 +686,6 @@ Qt::TextInteractionFlags QmlGraphicsTextEdit::textInteractionFlags() const } /*! - Returns the cursor for the point at the given \a pos on the - text edit. -*/ -QTextCursor QmlGraphicsTextEdit::cursorForPosition(const QPoint &pos) const -{ - Q_D(const QmlGraphicsTextEdit); - return d->control->cursorForPosition(pos); -} - -/*! - Returns the rectangle where the given text \a cursor is rendered - within the text edit. -*/ -QRect QmlGraphicsTextEdit::cursorRect(const QTextCursor &cursor) const -{ - Q_D(const QmlGraphicsTextEdit); - if (cursor.isNull()) - return QRect(); - - return d->control->cursorRect(cursor).toRect(); -} - -/*! Returns the rectangle where the text cursor is rendered within the text edit. */ @@ -720,35 +697,6 @@ QRect QmlGraphicsTextEdit::cursorRect() const /*! - Sets the text cursor for the text edit to the given \a cursor. -*/ -void QmlGraphicsTextEdit::setTextCursor(const QTextCursor &cursor) -{ - Q_D(QmlGraphicsTextEdit); - d->control->setTextCursor(cursor); -} - -/*! - Returns the text cursor for the text edit. -*/ -QTextCursor QmlGraphicsTextEdit::textCursor() const -{ - Q_D(const QmlGraphicsTextEdit); - return d->control->textCursor(); -} - -/*! -Moves the cursor by performing the given \a operation. - -If \a mode is QTextCursor::KeepAnchor, the cursor selects the text it moves over. This is the same effect that the user achieves when they hold down the Shift key and move the cursor with the cursor keys. -*/ -void QmlGraphicsTextEdit::moveCursor(QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode) -{ - Q_D(QmlGraphicsTextEdit); - d->control->moveCursor(operation, mode); -} - -/*! \overload Handles the given \a event. */ diff --git a/src/declarative/graphicsitems/qmlgraphicstextedit_p.h b/src/declarative/graphicsitems/qmlgraphicstextedit_p.h index fa95373..1ddfa6b 100644 --- a/src/declarative/graphicsitems/qmlgraphicstextedit_p.h +++ b/src/declarative/graphicsitems/qmlgraphicstextedit_p.h @@ -169,15 +169,8 @@ public: void setTextInteractionFlags(Qt::TextInteractionFlags flags); Qt::TextInteractionFlags textInteractionFlags() const; - QTextCursor cursorForPosition(const QPoint &pos) const; - QRect cursorRect(const QTextCursor &cursor) const; QRect cursorRect() const; - void setTextCursor(const QTextCursor &cursor); - QTextCursor textCursor() const; - - void moveCursor(QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); - QVariant inputMethodQuery(Qt::InputMethodQuery property) const; Q_SIGNALS: |