@@ -11,64 +11,16 @@ Item {
11 Rectangle { anchors.fill: parent; color: "blue"; opacity: .3 }
11 Rectangle { anchors.fill: parent; color: "blue"; opacity: .3 }
14− anchors.centerIn: parent
14+ anchors.bottom: parent.bottom
15+ anchors.bottomMargin: units.gu(1)
16+ anchors.horizontalCenter: parent.horizontalCenter
15 spacing: units.gu(1)
17 spacing: units.gu(1)
17 Repeater {
19 Repeater {
18 model: Screens
20 model: Screens
20− delegate: Rectangle {
22+ delegate: WorkspacePreview {
22− height: root.height * .5
23+ height: root.height - units.gu(6)
26− property int screenWidth: model.geometry.width
27− property int screenHeight: model.geometry.height
30− text: model.name + "," + model.geometry.width
35− anchors.topMargin: units.gu(4)
38− id: topLevelSurfaceRepeater
39− model: topLevelSurfaceList
40− delegate: Rectangle {
41− width: surfaceItem.width
42− height: surfaceItem.height
43− x: model.window.position.x * surfaceItem.previewScale
44− y: model.window.position.y * surfaceItem.previewScale
46− z: topLevelSurfaceRepeater.count - index
52− property real previewScale: previewSpace.width / previewSpace.screenWidth
54− width: implicitWidth * previewScale
55− height: implicitHeight * previewScale
56−// fillMode: MirSurfaceItem.Stretch
59− onImplicitHeightChanged: print("item", surfaceItem, "height changed", implicitHeight)
61− // surfaceHeight: 100
62− // requestedHeight: 100// -1// !counterRotate ? root.requestedHeight - d.requestedDecorationHeight : root.requestedWidth
63− // requestedWidth: 100// -1// !counterRotate ? root.requestedWidth : root.requestedHeight - d.requestedDecorationHeight
65− // application: model.application
66− surface: model.window.surface