diff options
author | Olivier Tilloy <olivier.tilloy@canonical.com> | 2012-10-04 17:16:14 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier.tilloy@canonical.com> | 2012-10-04 17:16:14 +0200 |
commit | 957046e27eafa963e828b2c9b80d8d4bc6a36084 (patch) | |
tree | 79fa26cebce9ebf47817e65b589707631ef6bac3 /examples | |
parent | 8e65ebba7d53f5ea59b567e31edc64f06db62796 (diff) | |
download | qmenumodel-957046e27eafa963e828b2c9b80d8d4bc6a36084.tar.gz qmenumodel-957046e27eafa963e828b2c9b80d8d4bc6a36084.tar.bz2 qmenumodel-957046e27eafa963e828b2c9b80d8d4bc6a36084.zip |
Ignore clicks on menu items that do not have a submenu.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/render-menumodel.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/render-menumodel.qml b/examples/render-menumodel.qml index 0128b37..45daf0d 100644 --- a/examples/render-menumodel.qml +++ b/examples/render-menumodel.qml @@ -3,7 +3,7 @@ // /com/canonical/testmenu. import QtQuick 1.1 -import QMenuModel 0.1 // uninstalled, run qmlviewer with "-I ../src" +import QMenuModel 0.1 Item { id: container @@ -51,9 +51,9 @@ Item { MouseArea { id: delegatearea anchors.fill: parent - //enabled: linkSubMenu != null hoverEnabled: true onClicked: { + if (linkSubMenu == null) return var newback = view.__back newback.push(view.model) view.__back = newback |