Cell balancing calculation added. Fixed rounding of real numbers to the second decimal place
This commit is contained in:
8
qml/Utils/MathHelper.qml
Normal file
8
qml/Utils/MathHelper.qml
Normal file
@@ -0,0 +1,8 @@
|
||||
pragma Singleton
|
||||
import QtQuick 2.12
|
||||
|
||||
QtObject {
|
||||
function roundDouble(value) {
|
||||
return Math.round((value + Number.EPSILON) * 100) / 100
|
||||
}
|
||||
}
|
||||
@@ -22,5 +22,6 @@ QtObject {
|
||||
property color hoveredButtonColor: "#03AC61"
|
||||
property color pressedButtonColor: "#057845"
|
||||
|
||||
property color informationColor: "#4C68ED"
|
||||
property color invalidColor: "#A31C00"
|
||||
}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
module utils
|
||||
singleton Palette 1.0 Palette.qml
|
||||
singleton MathHelper 1.0 MathHelper.qml
|
||||
|
||||
Reference in New Issue
Block a user