16 m_gridLinesContainer.push_back (gridLine);
21 for (
int i = 0; i < m_gridLinesContainer.count(); i++) {
22 GridLine *gridLine = m_gridLinesContainer [i];
28 m_gridLinesContainer.clear();
33 for (
int i = 0; i < m_gridLinesContainer.count(); i++) {
34 m_gridLinesContainer [i]->setPen (pen);
40 for (
int i = 0; i < m_gridLinesContainer.count(); i++) {
41 m_gridLinesContainer [i]->setVisible (visible);
void clear()
Deallocate and remove all grid lines.
void setPen(const QPen &pen)
Set the pen style of each grid line.
void setVisible(bool visible)
Make all grid lines visible or hidden.
GridLines()
Single constructor.
void add(GridLine *gridLine)
Add specified grid line. Ownership of all allocated QGraphicsItems is passed to new GridLine...
Single grid line drawn a straight or curved line.