Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/main.qml
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Line(s) | 33 | Item { | |||
---|---|---|---|---|---|
265 | VolumeOSD { | 265 | VolumeOSD { | ||
266 | id: osd | 266 | id: osd | ||
267 | } | 267 | } | ||
268 | 268 | | |||
269 | VolumeFeedback { | 269 | VolumeFeedback { | ||
270 | id: feedback | 270 | id: feedback | ||
271 | } | 271 | } | ||
272 | 272 | | |||
273 | PlasmaComponents.TabBar { | 273 | RowLayout { | ||
274 | id: tabBar | 274 | id: tabBarRow | ||
275 | 275 | | |||
276 | anchors { | 276 | anchors { | ||
277 | top: parent.top | 277 | top: parent.top | ||
278 | left: parent.left | 278 | left: parent.left | ||
279 | right: parent.right | 279 | right: parent.right | ||
280 | } | 280 | } | ||
281 | 281 | | |||
282 | PlasmaComponents.TabBar { | ||||
283 | id: tabBar | ||||
284 | Layout.fillWidth: true | ||||
285 | | ||||
282 | PlasmaComponents.TabButton { | 286 | PlasmaComponents.TabButton { | ||
283 | id: devicesTab | 287 | id: devicesTab | ||
284 | text: i18n("Devices") | 288 | text: i18n("Devices") | ||
285 | } | 289 | } | ||
286 | 290 | | |||
287 | PlasmaComponents.TabButton { | 291 | PlasmaComponents.TabButton { | ||
288 | id: streamsTab | 292 | id: streamsTab | ||
289 | text: i18n("Applications") | 293 | text: i18n("Applications") | ||
290 | } | 294 | } | ||
291 | } | 295 | } | ||
292 | 296 | | |||
297 | PlasmaComponents.ToolButton { | ||||
298 | Layout.alignment: Qt.AlignBottom | ||||
299 | tooltip: i18n("Configure Volume Settings...") | ||||
broulik: Just use
```
plasmoid.action("configure").text
``` | |||||
300 | iconSource: "configure" | ||||
broulik: Rather use `iconName`? | |||||
301 | onClicked: { | ||||
302 | plasmoid.action("configure").trigger(); | ||||
303 | } | ||||
304 | } | ||||
Please also add e.g. Accessible.text: tooltip since the button has no text broulik: Please also add e.g.
```
Accessible.text: tooltip
```
since the button has no text | |||||
305 | } | ||||
306 | | ||||
293 | PlasmaExtras.ScrollArea { | 307 | PlasmaExtras.ScrollArea { | ||
294 | id: scrollView; | 308 | id: scrollView; | ||
295 | 309 | | |||
296 | anchors { | 310 | anchors { | ||
297 | top: tabBar.bottom | 311 | top: tabBarRow.bottom | ||
298 | topMargin: units.smallSpacing | 312 | topMargin: units.smallSpacing | ||
299 | left: parent.left | 313 | left: parent.left | ||
300 | right: parent.right | 314 | right: parent.right | ||
301 | bottom: parent.bottom | 315 | bottom: parent.bottom | ||
302 | } | 316 | } | ||
303 | 317 | | |||
304 | horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff | 318 | horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff | ||
305 | flickableItem.boundsBehavior: Flickable.StopAtBounds; | 319 | flickableItem.boundsBehavior: Flickable.StopAtBounds; | ||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |
Just use