Changeset View
Changeset View
Standalone View
Standalone View
Modules/energy/package/contents/ui/main.qml
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 93 | function modifier_chargeState(value) { | |||
---|---|---|---|---|---|
99 | } | 99 | } | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | Component.onCompleted: { | 102 | Component.onCompleted: { | ||
103 | currentBattery = kcm.batteries.get(0) | 103 | currentBattery = kcm.batteries.get(0) | ||
104 | currentUdi = kcm.batteries.udi(0) | 104 | currentUdi = kcm.batteries.udi(0) | ||
105 | } | 105 | } | ||
106 | 106 | | |||
107 | width: units.gridUnit * 25 | 107 | implicitWidth: units.gridUnit * 25 | ||
108 | height: !!currentBattery ? units.gridUnit * 25 : units.gridUnit * 12 | 108 | implicitHeight: !!currentBattery ? units.gridUnit * 25 : units.gridUnit * 12 | ||
109 | 109 | | |||
110 | SystemPalette { | 110 | SystemPalette { | ||
111 | id: syspal | 111 | id: syspal | ||
112 | } | 112 | } | ||
113 | 113 | | |||
114 | ScrollView { | 114 | ScrollView { | ||
115 | id: scrollView | 115 | id: scrollView | ||
116 | anchors.fill: parent | 116 | anchors.fill: parent | ||
▲ Show 20 Lines • Show All 381 Lines • Show Last 20 Lines |