nysh/src/widgets/workspaces/Workspaces.qml

32 lines
618 B
QML

pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Layouts
import "../../base"
BRectangle {
id: root
height: 100 + layout.spacing * (workspaces.amount - 1)
WorkspaceIPC {
id: workspaces
}
ColumnLayout {
id: layout
anchors.fill: parent
anchors.topMargin: 5
anchors.bottomMargin: 5
Layout.alignment: Qt.AlignHCenter
spacing: 1
Repeater {
model: workspaces.amount
WorkspaceElem {
required property int modelData
wnum: modelData + 1
}
}
}
}