~ubuntu-branches/ubuntu/vivid/qtcreator-plugin-ubuntu/vivid

« back to all changes in this revision

Viewing changes to share/qtcreator/ubuntu/devicespage/DeviceStatusTab.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Benjamin Zeller
  • Date: 2015-01-30 06:05:59 UTC
  • mfrom: (1.1.81)
  • Revision ID: package-import@ubuntu.com-20150130060559-1kirdtmm6bl6eb26
Tags: 3.1.1+15.04.20150130-0ubuntu1
[ Benjamin Zeller ]
Refactoring of the publish Tab

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import QtQuick 2.0
2
 
import QtQuick.Controls 1.0 as Controls
3
 
import QtQuick.Layouts 1.0
4
 
import Ubuntu.Components 1.0
5
 
import Ubuntu.Components.ListItems 1.0 as ListItem
6
 
import Ubuntu.DevicesModel 0.1
7
 
 
8
 
RowLayout {
9
 
    Controls.ScrollView {
10
 
        id: scrollView
11
 
        Layout.fillHeight: true
12
 
        Layout.minimumWidth: units.gu(78)
13
 
        ColumnLayout {
14
 
            width: scrollView.width
15
 
            Row {
16
 
                Label {
17
 
                    text:"Device Status: "+detectionStateString
18
 
                    fontSize: "large"
19
 
                }
20
 
                Item {
21
 
                    width: units.gu(2)
22
 
                    height: parent.height
23
 
                }
24
 
                ActivityIndicator{
25
 
                    visible: deviceItemView.deviceBusy
26
 
                    running: visible
27
 
                }
28
 
            }
29
 
 
30
 
            ListItem.SingleValue {
31
 
                text:i18n.tr("Serial ID")
32
 
                Layout.fillWidth: true
33
 
                value: serial
34
 
            }
35
 
            ListItem.SingleValue {
36
 
                text:i18n.tr("Device")
37
 
                Layout.fillWidth: true
38
 
                value: deviceInfo
39
 
            }
40
 
            ListItem.SingleValue {
41
 
                text:i18n.tr("Model")
42
 
                Layout.fillWidth: true
43
 
                value: modelInfo
44
 
            }
45
 
            ListItem.SingleValue {
46
 
                text:i18n.tr("Product")
47
 
                Layout.fillWidth: true
48
 
                value: productInfo
49
 
            }
50
 
 
51
 
            FeatureStateItem {
52
 
                text: "Has network connection"
53
 
                input: hasNetworkConnection
54
 
                inputRole: "hasNetworkConnection"
55
 
                Layout.fillWidth: true
56
 
                checkable: hasNetworkConnection == FeatureState.NotAvailable && !deviceItemView.deviceBusy
57
 
            }
58
 
            FeatureStateItem {
59
 
                text: "Has developer mode enabled"
60
 
                input: developerModeEnabled
61
 
                inputRole: "developerModeEnabled"
62
 
                Layout.fillWidth: true
63
 
                checkable: !deviceItemView.deviceBusy
64
 
            }
65
 
            ListItem.Divider{}
66
 
 
67
 
            DeviceKitManager{
68
 
                Layout.fillWidth: true
69
 
            }
70
 
        }
71
 
    }
72
 
}