summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxtextedit.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-21 01:45:41 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-21 01:45:41 (GMT)
commit942ea5202d4a329376c27015b07406c2018437ff (patch)
treeb8bd7f482458b2f65b5d8df63a0a2cb2825c1955 /src/declarative/fx/qfxtextedit.h
parentf6b9e75f3f7fd7bdef3855dd07ffdc9fa10b2dae (diff)
downloadQt-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.h4
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;