void GL_widget_2::mouseMoveEvent(QMouseEvent *e) { emit(s_mouseMoveEvent(e)); emit mouse_at(QPointF(x_real(e->x()), y_real(e->y()))); std::vector<Visualization_layer*>::iterator it; for(it = layers.begin(); it!= layers.end(); it++) if((*it)->is_active()) (*it)->mouseMoveEvent(e); }
void Qt_widget::mouseMoveEvent(QMouseEvent *e) { emit(s_mouseMoveEvent(e)); if(!does_standard_eat_events()) { std::list<Qt_widget_layer*>::iterator it; for(it = qt_layers.begin(); it!= qt_layers.end(); it++) if((*it)->is_active()) (*it)->mouseMoveEvent(e); } if(is_standard_active()) { std::list<Qt_widget_layer*>::iterator it; for(it = qt_standard_layers.begin(); it!= qt_standard_layers.end(); it++) if((*it)->is_active()) (*it)->mouseMoveEvent(e); } }