From c1814477fd466c1e03688abb3a0e205ab0ccb6c1 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 13 Jan 2015 12:48:48 +0100 Subject: [PATCH] trigger button switch on mouse wheel BUG:342778 Change-Id: Idfa06319ac84762040eea07074042061a4bc313c --- .../plasmacomponents/qml/private/TabBarLayout.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml b/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml index c67be4d5e..e39e1eb79 100644 --- a/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml +++ b/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml @@ -132,6 +132,10 @@ Item { break } } + + if (root.children[oldIndex]) { + root.children[oldIndex].clicked(); + } } function goPreviousTab() { @@ -153,6 +157,10 @@ Item { break } } + + if (root.children[oldIndex]) { + root.children[oldIndex].clicked(); + } } function currentButtonIndex() {