Merge lp:~mzanetti/qtcreator-plugin-ubuntu/devicepage-high-res into lp:qtcreator-plugin-ubuntu

Proposed by Michael Zanetti
Status: Merged
Approved by: Benjamin Zeller
Approved revision: 356
Merged at revision: 357
Proposed branch: lp:~mzanetti/qtcreator-plugin-ubuntu/devicepage-high-res
Merge into: lp:qtcreator-plugin-ubuntu
Diff against target: 100 lines (+27/-7)
1 file modified
share/qtcreator/ubuntu/qml/DevicesPage/DevicePage.qml (+27/-7)
To merge this branch: bzr merge lp:~mzanetti/qtcreator-plugin-ubuntu/devicepage-high-res
Reviewer Review Type Date Requested Status
Zoltan Balogh Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+250555@code.launchpad.net

Commit message

fix some issues with high-res in DevicePage

Description of the change

fix some issues with high-res in DevicePage

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

OK

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'share/qtcreator/ubuntu/qml/DevicesPage/DevicePage.qml'
--- share/qtcreator/ubuntu/qml/DevicesPage/DevicePage.qml 2015-02-05 08:28:21 +0000
+++ share/qtcreator/ubuntu/qml/DevicesPage/DevicePage.qml 2015-02-22 15:41:26 +0000
@@ -81,9 +81,9 @@
81 visible: !devicesModel.busy81 visible: !devicesModel.busy
82 Controls.SplitView {82 Controls.SplitView {
83 orientation: Qt.Vertical83 orientation: Qt.Vertical
84 width: 20084 width: units.gu(25)
85 Layout.minimumWidth: 20085 Layout.minimumWidth: units.gu(25)
86 Layout.maximumWidth: 40086 Layout.maximumWidth: units.gu(50)
8787
88 Controls.ScrollView {88 Controls.ScrollView {
89 Layout.fillHeight: true89 Layout.fillHeight: true
@@ -101,7 +101,12 @@
101101
102 TextField{102 TextField{
103 id: editor103 id: editor
104 anchors.fill: parent104 anchors {
105 left: parent.left
106 right: parent.right
107 verticalCenter: parent.verticalCenter
108 margins: units.gu(1)
109 }
105 visible: false110 visible: false
106111
107 property bool changed: false112 property bool changed: false
@@ -169,10 +174,13 @@
169 Layout.maximumHeight: units.gu(5)174 Layout.maximumHeight: units.gu(5)
170 Row{175 Row{
171 anchors.fill: parent176 anchors.fill: parent
172 spacing: units.gu(2)177 spacing: units.gu(1)
173 Controls.ToolButton {178 Controls.ToolButton {
174 text: i18n.tr("Refresh devices")179 text: i18n.tr("Refresh devices")
175 tooltip: text180 tooltip: text
181 height: parent.height - units.gu(1)
182 width: height
183 anchors.verticalCenter: parent.verticalCenter
176 iconSource: "qrc:/ubuntu/images/reload.svg"184 iconSource: "qrc:/ubuntu/images/reload.svg"
177 onClicked: devicesModel.refresh()185 onClicked: devicesModel.refresh()
178 }186 }
@@ -180,6 +188,9 @@
180 text: i18n.tr("Add Emulator")188 text: i18n.tr("Add Emulator")
181 tooltip: text189 tooltip: text
182 iconSource: "qrc:/ubuntu/images/list-add.svg"190 iconSource: "qrc:/ubuntu/images/list-add.svg"
191 height: parent.height - units.gu(1)
192 width: height
193 anchors.verticalCenter: parent.verticalCenter
183 onClicked: {194 onClicked: {
184 if(!devicesModel.emulatorInstalled){195 if(!devicesModel.emulatorInstalled){
185 PopupUtils.open(resourceRoot+"/DevicesPage/EmulatorNotInstalled.qml",devicePage);196 PopupUtils.open(resourceRoot+"/DevicesPage/EmulatorNotInstalled.qml",devicePage);
@@ -199,7 +210,7 @@
199210
200 Item {211 Item {
201 id: centerItem212 id: centerItem
202 Layout.minimumWidth: 400213 Layout.minimumWidth: units.gu(50)
203 Layout.fillWidth: true214 Layout.fillWidth: true
204215
205 Repeater {216 Repeater {
@@ -226,11 +237,14 @@
226 anchors.top: parent.top237 anchors.top: parent.top
227 Row{238 Row{
228 anchors.fill: parent239 anchors.fill: parent
229 spacing: units.gu(2)240 spacing: units.gu(1)
230 Controls.ToolButton {241 Controls.ToolButton {
231 text: i18n.tr("Run Emulator")242 text: i18n.tr("Run Emulator")
232 tooltip: text243 tooltip: text
233 iconSource: "qrc:/projectexplorer/images/run.png"244 iconSource: "qrc:/projectexplorer/images/run.png"
245 height: parent.height - units.gu(1)
246 width: height
247 anchors.verticalCenter: parent.verticalCenter
234 onClicked: devicesModel.startEmulator(emulatorImageName)248 onClicked: devicesModel.startEmulator(emulatorImageName)
235 visible: connectionState === DeviceConnectionState.Disconnected && machineType === DeviceMachineType.Emulator249 visible: connectionState === DeviceConnectionState.Disconnected && machineType === DeviceMachineType.Emulator
236 }250 }
@@ -238,6 +252,9 @@
238 text: i18n.tr("Stop Emulator")252 text: i18n.tr("Stop Emulator")
239 tooltip: text253 tooltip: text
240 iconSource: "qrc:/projectexplorer/images/stop.png"254 iconSource: "qrc:/projectexplorer/images/stop.png"
255 height: parent.height - units.gu(1)
256 width: height
257 anchors.verticalCenter: parent.verticalCenter
241 onClicked: devicesModel.stopEmulator(emulatorImageName)258 onClicked: devicesModel.stopEmulator(emulatorImageName)
242 visible: connectionState !== DeviceConnectionState.Disconnected && machineType === DeviceMachineType.Emulator259 visible: connectionState !== DeviceConnectionState.Disconnected && machineType === DeviceMachineType.Emulator
243 }260 }
@@ -245,6 +262,9 @@
245 text: i18n.tr("Delete")262 text: i18n.tr("Delete")
246 tooltip: text263 tooltip: text
247 iconSource: "qrc:/core/images/clear.png"264 iconSource: "qrc:/core/images/clear.png"
265 height: parent.height - units.gu(1)
266 width: height
267 anchors.verticalCenter: parent.verticalCenter
248 onClicked: {268 onClicked: {
249 if(machineType === DeviceMachineType.Emulator)269 if(machineType === DeviceMachineType.Emulator)
250 PopupUtils.open(resourceRoot+"/DevicesPage/DeleteDeviceDialog.qml",devicePage, {"emulatorImageName": emulatorImageName,"deviceId": -1 });270 PopupUtils.open(resourceRoot+"/DevicesPage/DeleteDeviceDialog.qml",devicePage, {"emulatorImageName": emulatorImageName,"deviceId": -1 });

Subscribers

People subscribed via source and target branches