~mterry/unity8/narrow-mouse-hack

« back to all changes in this revision

Viewing changes to tests/qmltests/Stages/tst_DesktopStage.qml

  • Committer: Michael Terry
  • Date: 2016-02-17 14:27:47 UTC
  • mfrom: (2172.1.29 unity8)
  • Revision ID: michael.terry@canonical.com-20160217142747-65vjbwnpsh7auzpq
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
            right: parent.right
90
90
        }
91
91
 
92
 
        Column {
93
 
            anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
94
 
            spacing: units.gu(1)
95
 
 
96
 
            Button {
97
 
                color: "white"
98
 
                text: "Make surface slow to resize"
99
 
                activeFocusOnPress: false
100
 
                onClicked: {
101
 
                    if (ApplicationManager.focusedApplicationId) {
102
 
                        var surface = ApplicationManager.findApplication(ApplicationManager.focusedApplicationId).session.lastSurface;
103
 
                        surface.slowToResize = true;
104
 
                    }
105
 
                }
106
 
            }
107
 
 
108
 
            EdgeBarrierControls {
109
 
                id: edgeBarrierControls
110
 
                text: "Drag here to pull out spread"
111
 
                backgroundColor: "blue"
112
 
                onDragged: { desktopStageLoader.item.pushRightEdge(amount); }
113
 
            }
114
 
 
115
 
            Divider {}
116
 
 
117
 
            Repeater {
118
 
                model: ApplicationManager.availableApplications
119
 
                ApplicationCheckBox {
120
 
                    appId: modelData
121
 
                }
 
92
        Flickable {
 
93
            anchors.fill: parent
 
94
            contentHeight: controlsColumn.height
 
95
            Column {
 
96
                id: controlsColumn
 
97
                spacing: units.gu(1)
 
98
 
 
99
                Button {
 
100
                    color: "white"
 
101
                    text: "Make surface slow to resize"
 
102
                    activeFocusOnPress: false
 
103
                    onClicked: {
 
104
                        if (ApplicationManager.focusedApplicationId) {
 
105
                            var surface = ApplicationManager.findApplication(ApplicationManager.focusedApplicationId).session.lastSurface;
 
106
                            surface.slowToResize = true;
 
107
                        }
 
108
                    }
 
109
                }
 
110
 
 
111
                EdgeBarrierControls {
 
112
                    id: edgeBarrierControls
 
113
                    text: "Drag here to pull out spread"
 
114
                    backgroundColor: "blue"
 
115
                    onDragged: { desktopStageLoader.item.pushRightEdge(amount); }
 
116
                }
 
117
 
 
118
                Divider {}
 
119
 
 
120
                Repeater {
 
121
                    model: ApplicationManager.availableApplications
 
122
                    ApplicationCheckBox {
 
123
                        appId: modelData
 
124
                    }
 
125
                }
 
126
 
 
127
                SurfaceManagerControls { textColor: "white" }
122
128
            }
123
129
        }
124
130
    }