Changeset View
Changeset View
Standalone View
Standalone View
src/kcm/package/contents/ui/Advanced.qml
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Line(s) | 137 | Grid { | |||
---|---|---|---|---|---|
142 | 142 | | |||
143 | Item { | 143 | Item { | ||
144 | width: grid.width/3 | 144 | width: grid.width/3 | ||
145 | height: 50 | 145 | height: 50 | ||
146 | 146 | | |||
147 | Button{ | 147 | Button{ | ||
148 | text: i18n("Front Left") | 148 | text: i18n("Front Left") | ||
149 | anchors.centerIn: parent | 149 | anchors.centerIn: parent | ||
150 | visible: sinks.pulseObject ? sinks.pulseObject.channels.indexOf("Front Left") > -1 : false | 150 | visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("front-left") > -1 : false | ||
151 | onClicked: sinks.pulseObject.testChannel("Front Left") | 151 | onClicked: sinks.pulseObject.testChannel("front-left") | ||
152 | } | 152 | } | ||
153 | } | 153 | } | ||
154 | Item { | 154 | Item { | ||
155 | width: grid.width/3 | 155 | width: grid.width/3 | ||
156 | height: 50 | 156 | height: 50 | ||
157 | 157 | | |||
158 | Button{ | 158 | Button{ | ||
159 | text: i18n("Front Center") | 159 | text: i18n("Front Center") | ||
160 | anchors.centerIn: parent | 160 | anchors.centerIn: parent | ||
161 | visible: sinks.pulseObject ? sinks.pulseObject.channels.indexOf("Front Center") > -1 : false | 161 | visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("front-center") > -1 : false | ||
162 | onClicked: sinks.pulseObject.testChannel("Front Center") | 162 | onClicked: sinks.pulseObject.testChannel("front-center") | ||
163 | } | 163 | } | ||
164 | } | 164 | } | ||
165 | Item { | 165 | Item { | ||
166 | width: grid.width/3 | 166 | width: grid.width/3 | ||
167 | height: 50 | 167 | height: 50 | ||
168 | 168 | | |||
169 | Button{ | 169 | Button{ | ||
170 | text: i18n("Front Right") | 170 | text: i18n("Front Right") | ||
171 | anchors.centerIn: parent | 171 | anchors.centerIn: parent | ||
172 | visible: sinks.pulseObject ? sinks.pulseObject.channels.indexOf("Front Right") > -1 : false | 172 | visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("front-right") > -1 : false | ||
173 | onClicked: sinks.pulseObject.testChannel("Front Right") | 173 | onClicked: sinks.pulseObject.testChannel("front-right") | ||
174 | } | 174 | } | ||
175 | } | 175 | } | ||
176 | Item { | 176 | Item { | ||
177 | width: grid.width/3 | 177 | width: grid.width/3 | ||
178 | height: 50 | 178 | height: 50 | ||
179 | 179 | | |||
180 | Button{ | 180 | Button{ | ||
181 | text: i18n("Side Left") | 181 | text: i18n("Side Left") | ||
182 | anchors.centerIn: parent | 182 | anchors.centerIn: parent | ||
183 | visible: sinks.pulseObject ? sinks.pulseObject.channels.indexOf("Side Left") > -1 : false | 183 | visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("side-left") > -1 : false | ||
184 | onClicked: sinks.pulseObject.testChannel("Side Left") | 184 | onClicked: sinks.pulseObject.testChannel("side-left") | ||
185 | 185 | | |||
186 | } | 186 | } | ||
187 | } | 187 | } | ||
188 | Item { | 188 | Item { | ||
189 | width: grid.width/3 | 189 | width: grid.width/3 | ||
190 | height: 50 | 190 | height: 50 | ||
191 | 191 | | |||
192 | KCoreAddons.KUser { | 192 | KCoreAddons.KUser { | ||
193 | id: kuser | 193 | id: kuser | ||
194 | } | 194 | } | ||
195 | 195 | | |||
196 | Image { | 196 | Image { | ||
197 | source: kuser.faceIconUrl | 197 | source: kuser.faceIconUrl | ||
198 | anchors.centerIn: parent | 198 | anchors.centerIn: parent | ||
199 | width: 50 | 199 | width: 50 | ||
200 | height: 50 | 200 | height: 50 | ||
201 | } | 201 | } | ||
202 | } | 202 | } | ||
203 | Item { | 203 | Item { | ||
204 | width: grid.width/3 | 204 | width: grid.width/3 | ||
205 | height: 50 | 205 | height: 50 | ||
206 | Button{ | 206 | Button{ | ||
207 | text: i18n("Side Right") | 207 | text: i18n("Side Right") | ||
208 | anchors.centerIn: parent | 208 | anchors.centerIn: parent | ||
209 | visible: sinks.pulseObject ? sinks.pulseObject.channels.indexOf("Side Right") > -1 : false | 209 | visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("side-right") > -1 : false | ||
210 | onClicked: sinks.pulseObject.testChannel("Side Right") | 210 | onClicked: sinks.pulseObject.testChannel("side-right") | ||
211 | } | 211 | } | ||
212 | } | 212 | } | ||
213 | Item { | 213 | Item { | ||
214 | width: grid.width/3 | 214 | width: grid.width/3 | ||
215 | height: 50 | 215 | height: 50 | ||
216 | Button{ | 216 | Button{ | ||
217 | text: i18n("Rear Left") | 217 | text: i18n("Rear Left") | ||
218 | anchors.centerIn: parent | 218 | anchors.centerIn: parent | ||
219 | visible: sinks.pulseObject ? sinks.pulseObject.channels.indexOf("Rear Left") > -1 : false | 219 | visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("rear-left") > -1 : false | ||
220 | onClicked: sinks.pulseObject.testChannel("Rear Left") | 220 | onClicked: sinks.pulseObject.testChannel("rear-left") | ||
221 | } | 221 | } | ||
222 | } | 222 | } | ||
223 | Item { | 223 | Item { | ||
224 | width: grid.width/3 | 224 | width: grid.width/3 | ||
225 | height: 50 | 225 | height: 50 | ||
226 | Button{ | 226 | Button{ | ||
227 | text: i18n("Subwoofer") | 227 | text: i18n("Subwoofer") | ||
228 | anchors.centerIn: parent | 228 | anchors.centerIn: parent | ||
229 | visible: sinks.pulseObject ? sinks.pulseObject.channels.indexOf("Subwoofer") > -1 : false | 229 | visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("lfe") > -1 : false | ||
230 | onClicked: sinks.pulseObject.testChannel("Subwoofer") | 230 | onClicked: sinks.pulseObject.testChannel("subwoofer") | ||
231 | } | 231 | } | ||
232 | } | 232 | } | ||
233 | Item { | 233 | Item { | ||
234 | width: grid.width/3 | 234 | width: grid.width/3 | ||
235 | height: 50 | 235 | height: 50 | ||
236 | Button{ | 236 | Button{ | ||
237 | text: i18n("Rear Right") | 237 | text: i18n("Rear Right") | ||
238 | anchors.centerIn: parent | 238 | anchors.centerIn: parent | ||
239 | visible: sinks.pulseObject ? sinks.pulseObject.channels.indexOf("Rear Right") > -1 : false | 239 | visible: sinks.pulseObject ? sinks.pulseObject.rawChannels.indexOf("rear-right") > -1 : false | ||
240 | onClicked: sinks.pulseObject.testChannel("Rear Right") | 240 | onClicked: sinks.pulseObject.testChannel("rear-right") | ||
241 | } | 241 | } | ||
242 | } | 242 | } | ||
243 | } | 243 | } | ||
244 | } | 244 | } | ||
245 | } | 245 | } |