fixed "nothing to push error"
This commit is contained in:
@@ -22,6 +22,7 @@ Container {
|
||||
boxRadius: 8
|
||||
boxWidth: (2 * rowLeftMargin) + (workspaceCount * workspaceWidth) + ((workspaceCount - 1)
|
||||
* workspaceButtonSpacing)
|
||||
defaultItem: placeholder
|
||||
exclusiveMonitor: monitor
|
||||
|
||||
states: [
|
||||
@@ -31,11 +32,17 @@ Container {
|
||||
|
||||
PropertyChanges {
|
||||
root.barHeight: 30
|
||||
root.workspaceWidth: 25
|
||||
root.workspaceWidth: 20
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Component {
|
||||
id: placeholder
|
||||
|
||||
Item {}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
spacing: root.workspaceButtonSpacing
|
||||
|
||||
@@ -64,9 +71,22 @@ Container {
|
||||
property string workspaceId: modelData.id
|
||||
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
height: root.barHeight - 7
|
||||
implicitHeight: root.barHeight - 7
|
||||
implicitWidth: root.workspaceWidth
|
||||
|
||||
Behavior on implicitHeight {
|
||||
SpringAnimation {
|
||||
damping: 0.3
|
||||
spring: 4
|
||||
}
|
||||
}
|
||||
Behavior on implicitWidth {
|
||||
SpringAnimation {
|
||||
damping: 0.3
|
||||
spring: 4
|
||||
}
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
id: tapHandler
|
||||
|
||||
|
||||
Reference in New Issue
Block a user