diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-06-01 03:25:08 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-06-01 03:25:08 (GMT) |
commit | b9f484ae5d415d95df897e18059c054527111374 (patch) | |
tree | 48e5c68e87125b657203ed00e6021bc14b4c6672 /src/declarative/fx/qfxtextedit.h | |
parent | e4ea96a48bd6d4c8b96859fc0364a5d9c7c686d6 (diff) | |
download | Qt-b9f484ae5d415d95df897e18059c054527111374.zip Qt-b9f484ae5d415d95df897e18059c054527111374.tar.gz Qt-b9f484ae5d415d95df897e18059c054527111374.tar.bz2 |
Add textMargin property and more flexible key handling to TextEdit
Diffstat (limited to 'src/declarative/fx/qfxtextedit.h')
-rw-r--r-- | src/declarative/fx/qfxtextedit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxtextedit.h b/src/declarative/fx/qfxtextedit.h index 37bc327..e30b9ed 100644 --- a/src/declarative/fx/qfxtextedit.h +++ b/src/declarative/fx/qfxtextedit.h @@ -79,7 +79,7 @@ class Q_DECLARATIVE_EXPORT QFxTextEdit : public QFxPaintedItem Q_PROPERTY(bool cursorVisible READ isCursorVisible WRITE setCursorVisible) Q_PROPERTY(bool focusOnPress READ focusOnPress WRITE setFocusOnPress) Q_PROPERTY(bool preserveSelection READ preserveSelection WRITE setPreserveSelection) - Q_CLASSINFO("DefaultProperty", "text") + Q_PROPERTY(qreal textMargin READ textMargin WRITE setTextMargin) public: QFxTextEdit(QFxItem *parent=0); @@ -135,6 +135,9 @@ public: bool preserveSelection() const; void setPreserveSelection(bool on); + qreal textMargin() const; + void setTextMargin(qreal margin); + virtual void dump(int depth); virtual QString propertyInfo() const; |