mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-10-23 21:45:01 +00:00
drop C-like fabs function
This commit is contained in:
1 parent
c3c46ff1b1
commit
ea1d5fca86
1 file changed
+2
-2
@@ -143,9 +143,9 @@ QPixmap AWDataAggregator::tooltipImage()
|
|||||||
for (int j = 0; j < m_values[key].count() - 1; j++) {
|
for (int j = 0; j < m_values[key].count() - 1; j++) {
|
||||||
// some magic here
|
// some magic here
|
||||||
float x1 = j * normX + shift;
|
float x1 = j * normX + shift;
|
||||||
float y1 = -fabs(m_values[key].at(j)) * normY + 5.0f;
|
float y1 = -std::fabs(m_values[key].at(j)) * normY + 5.0f;
|
||||||
float x2 = (j + 1) * normX + shift;
|
float x2 = (j + 1) * normX + shift;
|
||||||
float y2 = -fabs(m_values[key].at(j + 1)) * normY + 5.0f;
|
float y2 = -std::fabs(m_values[key].at(j + 1)) * normY + 5.0f;
|
||||||
if (key == QString("batTooltip")) {
|
if (key == QString("batTooltip")) {
|
||||||
if (m_values[key].at(j + 1) > 0)
|
if (m_values[key].at(j + 1) > 0)
|
||||||
pen.setColor(
|
pen.setColor(
|
||||||
|
|||||||
Reference in new issue
Block a user