From ee6cc22ebd0ec236454bc2112fe5f82e31299143 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Wed, 11 Sep 2013 14:21:20 +0200 Subject: 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 --- examples/quick/shared/TabSet.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/quick/shared/TabSet.qml') 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 { -- cgit v1.2.3