mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 01:34:46 +00:00
don't crash with Qt 5.6
This commit is contained in:
parent
8c9c331444
commit
3c16c13f12
1 changed files with 4 additions and 4 deletions
|
|
@ -136,10 +136,6 @@ FocusScope {
|
||||||
property alias maximumValue: brightnessSlider.maximumValue
|
property alias maximumValue: brightnessSlider.maximumValue
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
icon: "video-display-brightness"
|
|
||||||
label: i18n("Screen Brightness")
|
|
||||||
value: batterymonitor.screenBrightness
|
|
||||||
maximumValue: batterymonitor.maximumScreenBrightness
|
|
||||||
// KeyNavigation.tab: keyboardBrightnessSlider
|
// KeyNavigation.tab: keyboardBrightnessSlider
|
||||||
// KeyNavigation.backtab: batteryList
|
// KeyNavigation.backtab: batteryList
|
||||||
|
|
||||||
|
|
@ -148,6 +144,7 @@ FocusScope {
|
||||||
|
|
||||||
PlasmaCore.IconItem {
|
PlasmaCore.IconItem {
|
||||||
id: brightnessIcon
|
id: brightnessIcon
|
||||||
|
source: "video-display-brightness"
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
width: units.iconSizes.medium
|
width: units.iconSizes.medium
|
||||||
height: width
|
height: width
|
||||||
|
|
@ -163,6 +160,7 @@ FocusScope {
|
||||||
id: brightnessLabel
|
id: brightnessLabel
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: paintedHeight
|
height: paintedHeight
|
||||||
|
text: i18n("Screen Brightness")
|
||||||
}
|
}
|
||||||
|
|
||||||
PlasmaComponents.Slider {
|
PlasmaComponents.Slider {
|
||||||
|
|
@ -170,7 +168,9 @@ FocusScope {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
// Don't allow the slider to turn off the screen
|
// Don't allow the slider to turn off the screen
|
||||||
// Please see https://git.reviewboard.kde.org/r/122505/ for more information
|
// Please see https://git.reviewboard.kde.org/r/122505/ for more information
|
||||||
|
value: batterymonitor.screenBrightness
|
||||||
minimumValue: maximumValue > 100 ? 1 : 0
|
minimumValue: maximumValue > 100 ? 1 : 0
|
||||||
|
maximumValue: batterymonitor.maximumScreenBrightness
|
||||||
stepSize: 1
|
stepSize: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue