16 qDeleteAll (m_gridLinesContainer);
21 m_gridLinesContainer.push_back (gridLine);
26 for (
int i = 0; i < m_gridLinesContainer.count(); i++) {
27 GridLine *gridLine = m_gridLinesContainer [i];
31 m_gridLinesContainer.clear();
36 for (
int i = 0; i < m_gridLinesContainer.count(); i++) {
37 m_gridLinesContainer [i]->setPen (pen);
43 for (
int i = 0; i < m_gridLinesContainer.count(); i++) {
44 m_gridLinesContainer [i]->setVisible (visible);
Single grid line drawn a straight or curved line.
GridLines()
Single constructor.
void setVisible(bool visible)
Make all grid lines visible or hidden.
void add(GridLine *gridLine)
Add specified grid line. Ownership of all allocated QGraphicsItems is passed to new GridLine.
void clear()
Deallocate and remove all grid lines.
void setPen(const QPen &pen)
Set the pen style of each grid line.
~GridLines()
Destructor deallocates memory.