Skip to content

Commit

Permalink
Drop MySlider.qml in favor of compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Jun 14, 2020
1 parent 4768666 commit c3c7aa8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 296 deletions.
1 change: 0 additions & 1 deletion application/application.pro
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ SOURCES += src/harbour-batterybuddy.cpp \
DISTFILES += qml/harbour-batterybuddy.qml \
qml/components/AboutLabel.qml \
qml/components/MyLabel.qml \
qml/components/MySlider.qml \
qml/pages\LicensePage.qml \
qml/cover/CoverPage.qml \
../rpm/harbour-batterybuddy.spec \
Expand Down
287 changes: 0 additions & 287 deletions application/qml/components/MySlider.qml

This file was deleted.

14 changes: 6 additions & 8 deletions application/qml/pages/SettingsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Page {
onCheckedChanged: settings.limitEnabled = checked
}

MySlider {
Slider {
id: highLimitSlider
handleVisible: enabled
width: parent.width
Expand All @@ -170,7 +170,6 @@ Page {
maximumValue: 95
stepSize: 1
valueText: value + "%"
highlightDirection: Qt.RightToLeft
onValueChanged: {
if(lowLimitSlider.value >= value)
lowLimitSlider.value = value - 1
Expand All @@ -180,7 +179,7 @@ Page {
settings.highLimit = value
}
}
MySlider {
Slider {
id: lowLimitSlider
handleVisible: enabled
width: parent.width
Expand Down Expand Up @@ -231,15 +230,14 @@ Page {
text: qsTr("Show low charge notification")
onCheckedChanged: settings.lowNotificationsEnabled = checked
}
MySlider {
Slider {
id: highAlertSlider
width: parent.width
label: qsTr("Battery full notification")
minimumValue: 11
maximumValue: 100
stepSize: 1
valueText: value + "%"
highlightDirection: Qt.RightToLeft
onValueChanged: {
if(lowAlertSlider.value >= value)
lowAlertSlider.value = value - 1
Expand All @@ -249,7 +247,7 @@ Page {
settings.highAlert = value
}
}
MySlider {
Slider {
id: lowAlertSlider
width: parent.width
label: qsTr("Battery low notification")
Expand All @@ -266,7 +264,7 @@ Page {
settings.highAlert = highAlertSlider.value
}
}
MySlider {
Slider {
id: highIntervalSlider
width: parent.width
label: qsTr("Battery high notification interval")
Expand All @@ -276,7 +274,7 @@ Page {
valueText: Math.floor(value / 60) + (value % 60 < 10 ? ":0" + value % 60 : ":" + value % 60)
onReleased: settings.highNotificationsInterval = value
}
MySlider {
Slider {
id: lowIntervalSlider
width: parent.width
label: qsTr("Battery low notification interval")
Expand Down

0 comments on commit c3c7aa8

Please sign in to comment.