19class LinePropertiesGroup :
public QObject
23 QML_UNCREATABLE(
"Grouped Property")
28 Q_PROPERTY(
bool visible READ visible WRITE setVisible NOTIFY propertiesChanged)
30 void setVisible(
bool newVisible);
34 void setColor(const
QColor &newColor);
36 Q_PROPERTY(
float lineWidth READ lineWidth WRITE setLineWidth NOTIFY propertiesChanged)
37 float lineWidth() const;
38 void setLineWidth(
float newLineWidth);
40 Q_PROPERTY(
int frequency READ frequency WRITE setFrequency NOTIFY propertiesChanged)
41 int frequency() const;
42 void setFrequency(
int newFrequency);
44 Q_PROPERTY(
int count READ count WRITE setCount NOTIFY propertiesChanged)
46 void setCount(
int newCount);
52 bool m_visible = true;
54 float m_lineWidth = 1.0;
68 enum class Direction { Horizontal, Vertical };
75 Q_PROPERTY(GridLines::Direction direction READ direction WRITE setDirection NOTIFY directionChanged)
76 Direction direction()
const;
77 void setDirection(GridLines::Direction newDirection);
82 void setChart(
XYChart *newChart);
85 Q_PROPERTY(
float spacing READ spacing WRITE setSpacing NOTIFY spacingChanged)
86 float spacing()
const;
87 void setSpacing(
float newSpacing);
90 Q_PROPERTY(LinePropertiesGroup *major READ majorGroup CONSTANT)
91 LinePropertiesGroup *majorGroup()
const;
93 Q_PROPERTY(LinePropertiesGroup *minor READ minorGroup CONSTANT)
94 LinePropertiesGroup *minorGroup()
const;
97 QSGNode *updatePaintNode(
QSGNode *node, QQuickItem::UpdatePaintNodeData *)
override;
98 void updateLines(
LineGridNode *node, LinePropertiesGroup *properties);
100 GridLines::Direction m_direction = Direction::Horizontal;
102 float m_spacing = 10.0;
104 std::unique_ptr<LinePropertiesGroup> m_major;
105 std::unique_ptr<LinePropertiesGroup> m_minor;
An item that renders a set of lines to make a grid for a chart.
A base class for Charts that are based on an X/Y grid.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:54 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.