From 606c7f651d668349da79313806d5ecefbc6ed221 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Sat, 7 Nov 2015 13:15:50 +0100 Subject: [PATCH] [TabBarLayout] Layout sooner CHANGELOG: Fix TabBar items being cramped together on initial creation, which can be observed in eg. Kickoff after Plasma start REVIEW: 125978 --- .../plasmacomponents/qml/private/TabBarLayout.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml b/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml index 6bc6fc9a5..49f08a7b2 100644 --- a/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml +++ b/src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml @@ -68,12 +68,11 @@ Item { property int minimumWidth: 0 property int minimumHeight: 0 - Component.onCompleted: priv.layoutChildren() + Component.onCompleted: layoutTimer.restart() onChildrenChanged: layoutTimer.restart() onWidthChanged: layoutTimer.restart() onHeightChanged: layoutTimer.restart() - Keys.onPressed: { if (event.key == Qt.Key_Right || event.key == Qt.Key_Left) { if (event.key == Qt.Key_Right || priv.mirrored) { @@ -90,9 +89,10 @@ Item { Timer { id: layoutTimer - interval: 150 + interval: 10 onTriggered: priv.layoutChildren() } + MouseEventListener { anchors.fill: parent onWheelMoved: {