@@ -962,10 +962,17 void VisualizationGraphWidget::mousePressEvent(QMouseEvent *event) | |||||
962 | impl->startDrawingRect(event->pos()); |
|
962 | impl->startDrawingRect(event->pos()); | |
963 | break; |
|
963 | break; | |
964 | default: |
|
964 | default: | |
|
965 | if(auto item = impl->m_plot->itemAt(event->pos())) | |||
|
966 | { | |||
|
967 | emit impl->m_plot->itemClick(item,event); | |||
|
968 | } | |||
|
969 | else | |||
|
970 | { | |||
965 | setCursor(Qt::ClosedHandCursor); |
|
971 | setCursor(Qt::ClosedHandCursor); | |
966 | impl->enterPlotDrag(event->pos()); |
|
972 | impl->enterPlotDrag(event->pos()); | |
967 | } |
|
973 | } | |
968 | } |
|
974 | } | |
|
975 | } | |||
969 | //event->accept(); |
|
976 | //event->accept(); | |
970 | QWidget::mousePressEvent(event); |
|
977 | QWidget::mousePressEvent(event); | |
971 | } |
|
978 | } |
General Comments 0
You need to be logged in to leave comments.
Login now