@ -55,13 +55,11 @@ PlasmaComponents3.Page {
focus: true
ColumnLayout {
id: settingsColumn
anchors {
left: parent . left
right: parent . right
top: parent . top
margins: PlasmaCore . Units . smallSpacing
fill: parent
topMargin: PlasmaCore . Units . smallSpacing * 2
leftMargin: PlasmaCore . Units . smallSpacing
rightMargin: PlasmaCore . Units . smallSpacing
}
spacing: PlasmaCore . Units . smallSpacing * 2
@ -125,34 +123,31 @@ PlasmaComponents3.Page {
profileHolds: dialog . profileHolds
onActivateProfileRequested: dialog . activateProfileRequested ( profile )
}
}
PlasmaComponents3 . ScrollView {
/ / H A C K : w o r k a r o u n d f o r h t t p s : / / b u g r e p o r t s . q t . i o / b r o w s e / Q T B U G - 8 3 8 9 0
PlasmaComponents3.ScrollBar.horizontal.policy: PlasmaComponents3 . ScrollBar . AlwaysOff
anchors {
top: settingsColumn . bottom
left: parent . left
right: parent . right
bottom: parent . bottom
topMargin: PlasmaCore . Units . gridUnit
leftMargin: PlasmaCore . Units . smallSpacing
rightMargin: PlasmaCore . Units . smallSpacing
}
PlasmaComponents3 . ScrollView {
/ / H A C K : w o r k a r o u n d f o r h t t p s : / / b u g r e p o r t s . q t . i o / b r o w s e / Q T B U G - 8 3 8 9 0
PlasmaComponents3.ScrollBar.horizontal.policy: PlasmaComponents3 . ScrollBar . AlwaysOff
ListView {
id: batteryList
/ / a d d i t i o n a l m a r g i n , b e c a u s e t h e b o t t o m o f P o w e r P r o f i l e I t e m
/ / a n d t h e t o p o f B a t t e r y I t e m a r e m o r e d e n s e .
Layout.topMargin: PlasmaCore . Units . smallSpacing * 2
Layout.fillWidth: true
Layout.fillHeight: true
ListView {
id: batteryList
boundsBehavior: Flickable . StopAtBounds
spacing: PlasmaCore . Units . smallSpacing * 2
boundsBehavior: Flickable . StopAtBounds
spacing: PlasmaCore . Units . smallSpacing * 2
KeyNavigation.tab: brightnessSlider
KeyNavigation.backtab: pmSwitch
KeyNavigation.tab: brightnessSlider
KeyNavigation.backtab: pmSwitch
delegate: BatteryItem {
width: ListView . view . width
battery: model
matchHeightOfSlider: brightnessSlider . slider
delegate: BatteryItem {
width: ListView . view . width
battery: model
matchHeightOfSlider: brightnessSlider . slider
}
}
}
}