fixed "nothing to push error"
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user