[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
This commit is contained in:
parent
af32d8b42f
commit
606c7f651d
@ -68,12 +68,11 @@ Item {
|
|||||||
property int minimumWidth: 0
|
property int minimumWidth: 0
|
||||||
property int minimumHeight: 0
|
property int minimumHeight: 0
|
||||||
|
|
||||||
Component.onCompleted: priv.layoutChildren()
|
Component.onCompleted: layoutTimer.restart()
|
||||||
onChildrenChanged: layoutTimer.restart()
|
onChildrenChanged: layoutTimer.restart()
|
||||||
onWidthChanged: layoutTimer.restart()
|
onWidthChanged: layoutTimer.restart()
|
||||||
onHeightChanged: layoutTimer.restart()
|
onHeightChanged: layoutTimer.restart()
|
||||||
|
|
||||||
|
|
||||||
Keys.onPressed: {
|
Keys.onPressed: {
|
||||||
if (event.key == Qt.Key_Right || event.key == Qt.Key_Left) {
|
if (event.key == Qt.Key_Right || event.key == Qt.Key_Left) {
|
||||||
if (event.key == Qt.Key_Right || priv.mirrored) {
|
if (event.key == Qt.Key_Right || priv.mirrored) {
|
||||||
@ -90,9 +89,10 @@ Item {
|
|||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: layoutTimer
|
id: layoutTimer
|
||||||
interval: 150
|
interval: 10
|
||||||
onTriggered: priv.layoutChildren()
|
onTriggered: priv.layoutChildren()
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseEventListener {
|
MouseEventListener {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onWheelMoved: {
|
onWheelMoved: {
|
||||||
|
Loading…
Reference in New Issue
Block a user