26 Q_PROPERTY(
int horizontalLines READ horizontalLines WRITE setHorizontalLines NOTIFY horizontalLinesChanged)
27 Q_PROPERTY(
int verticalLines READ verticalLines WRITE setVerticalLines NOTIFY verticalLinesChanged)
28 Q_PROPERTY(
float horizontalStep READ horizontalStep WRITE setHorizontalStep NOTIFY horizontalStepChanged)
29 Q_PROPERTY(
float verticalStep READ verticalStep WRITE setVerticalStep NOTIFY verticalStepChanged)
30 QML_NAMED_ELEMENT(GridGeometry)
34 ~GridGeometry() override;
36 int horizontalLines()
const;
37 int verticalLines()
const;
38 float horizontalStep()
const;
39 float verticalStep()
const;
42 void setHorizontalLines(
int count);
43 void setVerticalLines(
int count);
44 void setHorizontalStep(
float step);
45 void setVerticalStep(
float step);
48 void horizontalLinesChanged();
49 void verticalLinesChanged();
50 void horizontalStepChanged();
51 void verticalStepChanged();
56 int m_horLines = 1000;
57 int m_vertLines = 1000;
58 float m_horStep = .1f;
59 float m_vertStep = .1f;