fixed "nothing to push error"

This commit is contained in:
2026-08-06 17:43:50 +01:00
parent 185e7618a4
commit 78f92f1dbf

View File

@@ -22,6 +22,7 @@ Container {
boxRadius: 8 boxRadius: 8
boxWidth: (2 * rowLeftMargin) + (workspaceCount * workspaceWidth) + ((workspaceCount - 1) boxWidth: (2 * rowLeftMargin) + (workspaceCount * workspaceWidth) + ((workspaceCount - 1)
* workspaceButtonSpacing) * workspaceButtonSpacing)
defaultItem: placeholder
exclusiveMonitor: monitor exclusiveMonitor: monitor
states: [ states: [
@@ -31,11 +32,17 @@ Container {
PropertyChanges { PropertyChanges {
root.barHeight: 30 root.barHeight: 30
root.workspaceWidth: 25 root.workspaceWidth: 20
} }
} }
] ]
Component {
id: placeholder
Item {}
}
RowLayout { RowLayout {
spacing: root.workspaceButtonSpacing spacing: root.workspaceButtonSpacing
@@ -64,9 +71,22 @@ Container {
property string workspaceId: modelData.id property string workspaceId: modelData.id
Layout.alignment: Qt.AlignLeft Layout.alignment: Qt.AlignLeft
height: root.barHeight - 7 implicitHeight: root.barHeight - 7
implicitWidth: root.workspaceWidth implicitWidth: root.workspaceWidth
Behavior on implicitHeight {
SpringAnimation {
damping: 0.3
spring: 4
}
}
Behavior on implicitWidth {
SpringAnimation {
damping: 0.3
spring: 4
}
}
TapHandler { TapHandler {
id: tapHandler id: tapHandler