summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxtextedit.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-12 01:46:36 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-12 01:46:36 (GMT)
commit4ea4c6d103034cbe063004ba7a533cf4e56b1922 (patch)
tree1cf975970d4fef159ba0ff62c8845adef264559b /src/declarative/fx/qfxtextedit.h
parent1d48c20c9471a8079a15247522becd2908e3c114 (diff)
downloadQt-4ea4c6d103034cbe063004ba7a533cf4e56b1922.zip
Qt-4ea4c6d103034cbe063004ba7a533cf4e56b1922.tar.gz
Qt-4ea4c6d103034cbe063004ba7a533cf4e56b1922.tar.bz2
TextEdit fixes and improvements.
Get cursor blinking working again. Add focusOnPress to make it easy to gain focus when the mouse is pressed.
Diffstat (limited to 'src/declarative/fx/qfxtextedit.h')
-rw-r--r--src/declarative/fx/qfxtextedit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxtextedit.h b/src/declarative/fx/qfxtextedit.h
index 5d95cd1..0aaa17b 100644
--- a/src/declarative/fx/qfxtextedit.h
+++ b/src/declarative/fx/qfxtextedit.h
@@ -77,6 +77,7 @@ class Q_DECLARATIVE_EXPORT QFxTextEdit : public QFxPaintedItem
Q_PROPERTY(TextFormat textFormat READ textFormat WRITE setTextFormat)
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
Q_PROPERTY(bool cursorVisible READ isCursorVisible WRITE setCursorVisible)
+ Q_PROPERTY(bool focusOnPress READ focusOnPress WRITE setFocusOnPress)
Q_CLASSINFO("DefaultProperty", "text")
public:
@@ -127,6 +128,9 @@ public:
bool isCursorVisible() const;
void setCursorVisible(bool on);
+ bool focusOnPress() const;
+ void setFocusOnPress(bool on);
+
virtual void dump(int depth);
virtual QString propertyInfo() const;