void PathGroups::makePathConnections() { for(int i=0; i<m_paths.count(); i++) m_paths[i]->disconnect(); for(int i=0; i<m_paths.count(); i++) { connect(m_paths[i], SIGNAL(selectForEditing(int, int)), this, SLOT(selectForEditing(int, int))); connect(m_paths[i], SIGNAL(deselectForEditing()), this, SLOT(deselectForEditing())); } }
void ClipPlanes::makeClipConnections() { for(int i=0; i<m_clips.count(); i++) m_clips[i]->disconnect(); for(int i=0; i<m_clips.count(); i++) { connect(m_clips[i], SIGNAL(selectForEditing()), this, SLOT(selectForEditing())); connect(m_clips[i], SIGNAL(deselectForEditing()), this, SLOT(deselectForEditing())); } }
void Grids::makeGridConnections() { for(int i=0; i<m_grids.count(); i++) m_grids[i]->disconnect(); for(int i=0; i<m_grids.count(); i++) { connect(m_grids[i], SIGNAL(selectForEditing(int, int)), this, SLOT(selectForEditing(int, int))); connect(m_grids[i], SIGNAL(deselectForEditing()), this, SLOT(deselectForEditing())); } }
void ClipGrabber::mouseReleaseEvent(QMouseEvent* const event, Camera* const camera) { m_pressed = false; m_pointPressed = -1; setActive(false); emit deselectForEditing(); }