diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-03-08 05:26:30 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-03-09 05:47:00 (GMT) |
commit | 4367951cbb4a0ddb739724878dc9a1cabad5a773 (patch) | |
tree | 75ec265505c522eda16ee97ccc2db5440bd3b8e5 /src/declarative/graphicsitems/qdeclarativetextinput.cpp | |
parent | 173994419413e89e6b1c7ab3cf58dff82f1e5789 (diff) | |
download | Qt-4367951cbb4a0ddb739724878dc9a1cabad5a773.zip Qt-4367951cbb4a0ddb739724878dc9a1cabad5a773.tar.gz Qt-4367951cbb4a0ddb739724878dc9a1cabad5a773.tar.bz2 |
Make QDeclarativeItem NOTIFY signals canonical
Task-number: QTBUG-7193
Reviewed-by: akennedy
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativetextinput.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextinput.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp index 3382628..6df3533 100644 --- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp @@ -636,12 +636,12 @@ int QDeclarativeTextInput::xToPos(int x) return d->control->xToPos(x - d->hscroll); } -void QDeclarativeTextInput::focusChanged(bool hasFocus) +void QDeclarativeTextInputPrivate::focusChanged(bool hasFocus) { - Q_D(QDeclarativeTextInput); - d->focused = hasFocus; - setCursorVisible(hasFocus); - QDeclarativeItem::focusChanged(hasFocus); + Q_Q(QDeclarativeTextInput); + focused = hasFocus; + q->setCursorVisible(hasFocus); + QDeclarativeItemPrivate::focusChanged(hasFocus); } void QDeclarativeTextInput::keyPressEvent(QKeyEvent* ev) |