Changeset View
Changeset View
Standalone View
Standalone View
kcm/package/contents/ui/OutputPanel.qml
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 70 | Controls.SpinBox { | |||
---|---|---|---|---|---|
87 | } | 87 | } | ||
88 | valueFromText: function(text, locale) { | 88 | valueFromText: function(text, locale) { | ||
89 | return Number.fromLocaleString(locale, text) * factor / 100.0 | 89 | return Number.fromLocaleString(locale, text) * factor / 100.0 | ||
90 | } | 90 | } | ||
91 | onValueModified: element.scale = realValue | 91 | onValueModified: element.scale = realValue | ||
92 | } | 92 | } | ||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | Controls.ButtonGroup { | 95 | Orientation {} | ||
96 | buttons: orientation.children | | |||
97 | } | | |||
98 | | ||||
99 | RowLayout { | | |||
100 | id: orientation | | |||
101 | Kirigami.FormData.label: i18n("Orientation:") | | |||
102 | | ||||
103 | RotationButton { | | |||
104 | value: 0 | | |||
105 | } | | |||
106 | RotationButton { | | |||
107 | value: 90 | | |||
108 | } | | |||
109 | RotationButton { | | |||
110 | value: 180 | | |||
111 | } | | |||
112 | RotationButton { | | |||
113 | value: 270 | | |||
114 | } | | |||
115 | } | | |||
116 | 96 | | |||
117 | Controls.ComboBox { | 97 | Controls.ComboBox { | ||
118 | Kirigami.FormData.label: i18n("Refresh rate:") | 98 | Kirigami.FormData.label: i18n("Refresh rate:") | ||
119 | model: element.refreshRates | 99 | model: element.refreshRates | ||
120 | currentIndex: element.refreshRateIndex ? | 100 | currentIndex: element.refreshRateIndex ? | ||
121 | element.refreshRateIndex : 0 | 101 | element.refreshRateIndex : 0 | ||
122 | onActivated: element.refreshRateIndex = currentIndex | 102 | onActivated: element.refreshRateIndex = currentIndex | ||
123 | } | 103 | } | ||
Show All 14 Lines |