16 m_gridLinesContainer.push_back (gridLine);
21 for (
int i = 0; i < m_gridLinesContainer.count(); i++) {
22 GridLine *gridLine = m_gridLinesContainer [i];
26 m_gridLinesContainer.clear();
31 for (
int i = 0; i < m_gridLinesContainer.count(); i++) {
32 m_gridLinesContainer [i]->setPen (pen);
38 for (
int i = 0; i < m_gridLinesContainer.count(); i++) {
39 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.