summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-12-10 15:28:45 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-12-10 15:28:45 (GMT)
commit7b45f8dd55bc1b02f20913cf77441fb1069603b1 (patch)
tree8a1a86dfd412f1138d6eb179c641708a1ca8c83b /src
parenta0e5b65b96cbe6a06f481d4930ac67ba415c8c66 (diff)
downloadQt-7b45f8dd55bc1b02f20913cf77441fb1069603b1.zip
Qt-7b45f8dd55bc1b02f20913cf77441fb1069603b1.tar.gz
Qt-7b45f8dd55bc1b02f20913cf77441fb1069603b1.tar.bz2
Expose cursorRect for TextInput
Needed to implement a LineEdit widget.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicstextinput_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicstextinput_p.h b/src/declarative/graphicsitems/qmlgraphicstextinput_p.h
index c22c637..85b8beb 100644
--- a/src/declarative/graphicsitems/qmlgraphicstextinput_p.h
+++ b/src/declarative/graphicsitems/qmlgraphicstextinput_p.h
@@ -72,6 +72,7 @@ class Q_DECLARATIVE_EXPORT QmlGraphicsTextInput : public QmlGraphicsPaintedItem
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
Q_PROPERTY(bool cursorVisible READ isCursorVisible WRITE setCursorVisible)
Q_PROPERTY(int cursorPosition READ cursorPosition WRITE setCursorPosition NOTIFY cursorPositionChanged)
+ Q_PROPERTY(QRect cursorRect READ cursorRect NOTIFY cursorPositionChanged)
Q_PROPERTY(QmlComponent *cursorDelegate READ cursorDelegate WRITE setCursorDelegate)
Q_PROPERTY(int selectionStart READ selectionStart WRITE setSelectionStart NOTIFY selectionStartChanged)
Q_PROPERTY(int selectionEnd READ selectionEnd WRITE setSelectionEnd NOTIFY selectionEndChanged)