diff options
author | Jens Bache-Wiig <jensb.bache-wiig@nokia.com> | 2011-09-20 11:36:04 +0200 |
---|---|---|
committer | Jens Bache-Wiig <jensb.bache-wiig@nokia.com> | 2011-09-20 11:36:04 +0200 |
commit | 1e6ce30ffe3687704276f68a873d23d174c75d91 (patch) | |
tree | d2ccdb9a43fd672c7e7ec6f97ef9fae3e2b5dc89 | |
parent | 2b92d284baf835977e6460589fa1a329761909fa (diff) | |
download | qtquickcontrols-1e6ce30ffe3687704276f68a873d23d174c75d91.tar.gz |
Fixed a regression on checkbox
-rw-r--r-- | components/custom/CheckBox.qml | 4 | ||||
-rw-r--r-- | src/styleitem/qcursorarea.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/components/custom/CheckBox.qml b/components/custom/CheckBox.qml index 4008d1d3..90a1c38d 100644 --- a/components/custom/CheckBox.qml +++ b/components/custom/CheckBox.qml @@ -26,7 +26,7 @@ FocusScope { focus: true anchors.fill: parent checkable: true - onClicked: {if (activeFocusOnPress)checkBox.forceActiveFocus(); checkBox.clicked(); checked = !checked; } + onClicked: {if (activeFocusOnPress)checkBox.forceActiveFocus(); checkBox.clicked(); } } - Keys.onSpacePressed: behavior.clicked() + Keys.onSpacePressed: {clicked(); checked = !checked; } } diff --git a/src/styleitem/qcursorarea.h b/src/styleitem/qcursorarea.h index da12afa3..4ccb74b8 100644 --- a/src/styleitem/qcursorarea.h +++ b/src/styleitem/qcursorarea.h @@ -18,9 +18,7 @@ public: WaitCursor, PointingHandCursor }; - explicit QCursorArea(QDeclarativeItem *parent = 0); - void setCursor(Cursor str); Cursor cursor() const { return m_cursor; } |