diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-08-16 13:10:21 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-16 06:41:46 +0200 |
commit | ee0a9ce6518f4423dec83102293dcc5b9c0d4c7f (patch) | |
tree | 50c3f2deff73e28088c22a2bb4bfe3f6414db645 /examples | |
parent | 520d645259e3f57ea8ab0dab5adb539a9805ac5d (diff) |
Avoid overriding changed signal
This functionality is not officially supported and may break in the future.
Change-Id: I35ec69a4fd91cbda2249046eec0b3bfb34805f50
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml b/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml index 435ad2644f..b22a025b6b 100644 --- a/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml +++ b/examples/demos/photoviewer/PhotoViewerCore/EditableButton.qml @@ -46,7 +46,6 @@ Item { property string label signal clicked - signal labelChanged(string label) width: textInput.width + 70 ; height: textInput.height + 18 @@ -61,11 +60,11 @@ Item { TextInput { id: textInput; text: label; font.pixelSize: 15; anchors.centerIn: parent; smooth: true Keys.onReturnPressed: { - container.labelChanged(textInput.text) + container.label = textInput.text container.focus = true } Keys.onEnterPressed: { - container.labelChanged(textInput.text) + container.label = textInput.text container.focus = true } Keys.onEscapePressed: { |