diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2013-09-11 14:21:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-13 14:20:51 +0200 |
commit | ee6cc22ebd0ec236454bc2112fe5f82e31299143 (patch) | |
tree | 6560e9fc78c971a3a656dee9fa13a02b25e66a88 /examples/quick/shared | |
parent | 9c82c105a1886473ca144b802ce9f5bec01e35e8 (diff) |
systemdialogs example bug fix: don't allow clicking through tabs
For example on Font Dialogs tab of
examples/quick/dialogs/systemdialogs/systemdialogs.qml
it was possible to open the color dialog by clicking slightly below
the open button, because the color dialog tab was behind the
current one.
Change-Id: If9917e2baef7cfd49a0d01acd73ffa69dfcee088
Reviewed-by: Liang Qi <liang.qi@digia.com>
Diffstat (limited to 'examples/quick/shared')
-rw-r--r-- | examples/quick/shared/TabSet.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/quick/shared/TabSet.qml b/examples/quick/shared/TabSet.qml index 86050b6073..1fdf476424 100644 --- a/examples/quick/shared/TabSet.qml +++ b/examples/quick/shared/TabSet.qml @@ -56,8 +56,10 @@ Item { Component.onCompleted: setZOrders() function setZOrders() { - for (var i = 0; i < stack.children.length; ++i) + for (var i = 0; i < stack.children.length; ++i) { stack.children[i].z = (i == current ? 1 : 0) + stack.children[i].enabled = (i == current) + } } Row { |