21 Q_PROPERTY(
double value
49 static constexpr QColor
BOARD_COLOR = QColor(160, 160, 160);
73 static constexpr QColor
START_COLOR = QColor(255, 0, 0);
76 static constexpr QColor
END_COLOR = QColor(0, 255, 0);
79 static constexpr int TICK_CNT { 55 };
97 static constexpr QColor
TICK_COLOR = QColor(255, 255, 255);
103 static constexpr QColor
LABEL_COLOR = QColor(255, 255, 255);
144 inline double value()
const {
return current_value; }
169 double current_value { 0.0 };
182 void setValue(
const double val) {
183 if (qFuzzyCompare(current_value, val))
190 void drawBackground(QPainter& p);
191 void drawArc(QPainter& p);
192 void drawTicks(QPainter& p);
193 void drawLabels(QPainter& p);
194 void drawNeedle(QPainter& p);
195 void drawCenter(QPainter& p);
196 void drawTexts(QPainter& p);