diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-05-21 01:45:41 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-05-21 01:45:41 (GMT) |
commit | 942ea5202d4a329376c27015b07406c2018437ff (patch) | |
tree | b8bd7f482458b2f65b5d8df63a0a2cb2825c1955 /src/declarative/fx/qfxtextedit.h | |
parent | f6b9e75f3f7fd7bdef3855dd07ffdc9fa10b2dae (diff) | |
download | Qt-942ea5202d4a329376c27015b07406c2018437ff.zip Qt-942ea5202d4a329376c27015b07406c2018437ff.tar.gz Qt-942ea5202d4a329376c27015b07406c2018437ff.tar.bz2 |
Add a preserveSelection property to TextEdit.
This property will allow us to get line edit-like behavior, where the
selection is removed when the item loses focus.
Diffstat (limited to 'src/declarative/fx/qfxtextedit.h')
-rw-r--r-- | src/declarative/fx/qfxtextedit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxtextedit.h b/src/declarative/fx/qfxtextedit.h index d195a80..1456cd8 100644 --- a/src/declarative/fx/qfxtextedit.h +++ b/src/declarative/fx/qfxtextedit.h @@ -78,6 +78,7 @@ class Q_DECLARATIVE_EXPORT QFxTextEdit : public QFxPaintedItem 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_PROPERTY(bool preserveSelection READ preserveSelection WRITE setPreserveSelection) Q_CLASSINFO("DefaultProperty", "text") public: @@ -131,6 +132,9 @@ public: bool focusOnPress() const; void setFocusOnPress(bool on); + bool preserveSelection() const; + void setPreserveSelection(bool on); + virtual void dump(int depth); virtual QString propertyInfo() const; |