From 4970b13af15b2f31eda2ee7d44919948459dc4a4 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Tue, 19 Oct 2021 17:12:13 +0200 Subject: [PATCH] try out whether the code works should be reverted --- examples/iotdashboard/Skin.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/iotdashboard/Skin.cpp b/examples/iotdashboard/Skin.cpp index 5fda4df0..34163219 100644 --- a/examples/iotdashboard/Skin.cpp +++ b/examples/iotdashboard/Skin.cpp @@ -21,6 +21,8 @@ #include "UsageBox.h" #include "UsageDiagram.h" +#include +#include #include #include #include @@ -115,7 +117,13 @@ void Skin::initHints( const Palette& palette ) ed.setGradient( TopBarItem::Item4, { QskGradient::Horizontal, "#6100FF", "#6776FF" } ); // the bar gradient is defined through the top bar items above + ed.setArcBorderMetrics( CircularProgressBar::Bar, { 3, 3, 3, 3 } ); + ed.setArcBorderColors( CircularProgressBar::Bar, Qt::magenta ); + ed.setArcMetrics( CircularProgressBar::Groove, { 8.53, 90 * 16, -360 * 16 } ); + ed.setArcBorderMetrics( CircularProgressBar::Groove, { 1, 1, 1, 1 } ); + ed.setArcBorderColors( CircularProgressBar::Groove, Qt::cyan ); + // the span angle will be set in the progress bar, we just give a dummy // value here: ed.setArcMetrics( CircularProgressBar::Bar, { 8.53, 90 * 16, -180 * 16 } );