28 Q_PROPERTY(
int horizontalLines READ horizontalLines WRITE setHorizontalLines NOTIFY horizontalLinesChanged)
29 Q_PROPERTY(
int verticalLines READ verticalLines WRITE setVerticalLines NOTIFY verticalLinesChanged)
30 Q_PROPERTY(
float horizontalStep READ horizontalStep WRITE setHorizontalStep NOTIFY horizontalStepChanged)
31 Q_PROPERTY(
float verticalStep READ verticalStep WRITE setVerticalStep NOTIFY verticalStepChanged)
32 QML_NAMED_ELEMENT(GridGeometry)
36 ~GridGeometry() override;
38 int horizontalLines()
const;
39 int verticalLines()
const;
40 float horizontalStep()
const;
41 float verticalStep()
const;
44 void setHorizontalLines(
int count);
45 void setVerticalLines(
int count);
46 void setHorizontalStep(
float step);
47 void setVerticalStep(
float step);
50 void horizontalLinesChanged();
51 void verticalLinesChanged();
52 void horizontalStepChanged();
53 void verticalStepChanged();
58 int m_horLines = 1000;
59 int m_vertLines = 1000;
60 float m_horStep = .1f;
61 float m_vertStep = .1f;