summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qmlgraphicstextedit_p_p.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-01 03:01:16 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-01 03:01:16 (GMT)
commit91ba9959e4339dc547cea98a15d2aac011ac060e (patch)
treee23ddc947d59b5d3fee4fecd717516993e02edfd /src/declarative/graphicsitems/qmlgraphicstextedit_p_p.h
parentd83baff44e5f8992509ffde4a7df90bd3c87ff8f (diff)
downloadQt-91ba9959e4339dc547cea98a15d2aac011ac060e.zip
Qt-91ba9959e4339dc547cea98a15d2aac011ac060e.tar.gz
Qt-91ba9959e4339dc547cea98a15d2aac011ac060e.tar.bz2
Make focusOnPress the default behaviour for TextEdit (like TextInput).
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicstextedit_p_p.h')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicstextedit_p_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicstextedit_p_p.h b/src/declarative/graphicsitems/qmlgraphicstextedit_p_p.h
index 4cbc56d..6541921 100644
--- a/src/declarative/graphicsitems/qmlgraphicstextedit_p_p.h
+++ b/src/declarative/graphicsitems/qmlgraphicstextedit_p_p.h
@@ -69,7 +69,7 @@ class QmlGraphicsTextEditPrivate : public QmlGraphicsPaintedItemPrivate
public:
QmlGraphicsTextEditPrivate()
: color("black"), imgDirty(true), hAlign(QmlGraphicsTextEdit::AlignLeft), vAlign(QmlGraphicsTextEdit::AlignTop),
- dirty(false), wrap(false), richText(false), cursorVisible(false), focusOnPress(false),
+ dirty(false), wrap(false), richText(false), cursorVisible(false), focusOnPress(true),
persistentSelection(true), textMargin(0.0), lastSelectionStart(0), lastSelectionEnd(0),
cursorComponent(0), cursor(0), format(QmlGraphicsTextEdit::AutoText), document(0)
{