@@ -962,10 +962,17 void VisualizationGraphWidget::mousePressEvent(QMouseEvent *event) | |||
|
962 | 962 | impl->startDrawingRect(event->pos()); |
|
963 | 963 | break; |
|
964 | 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 | 971 | setCursor(Qt::ClosedHandCursor); |
|
966 | 972 | impl->enterPlotDrag(event->pos()); |
|
967 | 973 | } |
|
968 | 974 | } |
|
975 | } | |
|
969 | 976 | //event->accept(); |
|
970 | 977 | QWidget::mousePressEvent(event); |
|
971 | 978 | } |
General Comments 0
You need to be logged in to leave comments.
Login now