重新改进支持Qt4.6-Qt6.1
This commit is contained in:
@@ -128,11 +128,13 @@ void Battery::updateValue()
|
||||
if (isForward) {
|
||||
currentValue -= step;
|
||||
if (currentValue <= value) {
|
||||
currentValue = value;
|
||||
timer->stop();
|
||||
}
|
||||
} else {
|
||||
currentValue += step;
|
||||
if (currentValue >= value) {
|
||||
currentValue = value;
|
||||
timer->stop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user