14#include "RangeGroup.h"
72 Q_PROPERTY(
bool filled READ filled WRITE setFilled NOTIFY filledChanged)
74 void setFilled(
bool newFilled);
75 Q_SIGNAL
void filledChanged();
81 Q_PROPERTY(qreal thickness READ thickness WRITE setThickness NOTIFY thicknessChanged)
82 qreal thickness()
const;
83 void setThickness(qreal newThickness);
84 Q_SIGNAL
void thicknessChanged();
90 Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing NOTIFY spacingChanged)
91 qreal spacing()
const;
92 void setSpacing(qreal newSpacing);
93 Q_SIGNAL
void spacingChanged();
99 Q_PROPERTY(
QColor backgroundColor READ backgroundColor WRITE setBackgroundColor NOTIFY backgroundColorChanged)
100 QColor backgroundColor()
const;
101 void setBackgroundColor(
const QColor &color);
102 Q_SIGNAL
void backgroundColorChanged();
109 Q_PROPERTY(qreal fromAngle READ fromAngle WRITE setFromAngle NOTIFY fromAngleChanged)
110 qreal fromAngle()
const;
111 void setFromAngle(qreal newFromAngle);
112 Q_SIGNAL
void fromAngleChanged();
118 Q_PROPERTY(qreal toAngle READ toAngle WRITE setToAngle NOTIFY toAngleChanged)
119 qreal toAngle()
const;
120 void setToAngle(qreal newToAngle);
121 Q_SIGNAL
void toAngleChanged();
130 Q_PROPERTY(
bool smoothEnds READ smoothEnds WRITE setSmoothEnds NOTIFY smoothEndsChanged)
131 bool smoothEnds()
const;
132 void setSmoothEnds(
bool newSmoothEnds);
133 Q_SIGNAL
void smoothEndsChanged();
146 std::unique_ptr<RangeGroup> m_range;
147 bool m_filled =
false;
148 qreal m_thickness = 10.0;
149 qreal m_spacing = 0.0;
151 qreal m_fromAngle = 0.0;
152 qreal m_toAngle = 360.0;
153 bool m_smoothEnds =
false;
Abstract base class for all charts.
virtual void onDataChanged()=0
Called when the data of a value source changes.
An item to render a pie chart.
An object that can be used as a grouped property to provide a value range for charts.
virtual QSGNode * updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:23 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.