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