void checkDock::toggleErrorMarker() { QList<QgsRubberBand*>::const_iterator it; for ( it = mRbErrorMarkers.begin(); it != mRbErrorMarkers.end(); ++it ) { QgsRubberBand* rb = *it; if ( mToggleRubberband->isChecked() ) { rb->show(); } else { rb->hide(); } } }
void checkDock::toggleErrorMarkers() { QList<QgsRubberBand*>::const_iterator it; for ( it = mRbErrorMarkers.begin(); it != mRbErrorMarkers.end(); ++it ) { QgsRubberBand* rb = *it; if ( mMarkersVisible == true ) { rb->hide(); } else { rb->show(); } } mMarkersVisible = !mMarkersVisible; }