Commit b9f7fdd4 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fixed double click. The second click is apparently not a second press...

QT: Fixed double click. The second click is apparently not a second press event, but its own unique event.
parent 91cac3e0
......@@ -307,6 +307,7 @@ void FlowDrawQt::event_handler(FlowCtx* ctx, QEvent* event, QWidget* target)
}
break;
}
case QEvent::MouseButtonDblClick:
case QEvent::MouseButtonPress: {
QMouseEvent* mouseEvent = ((QMouseEvent*)event);
switch (mouseEvent->button()) {
......
......@@ -382,6 +382,7 @@ void GlowDrawQt::event_handler(QEvent* event, QWidget* target)
}
break;
}
case QEvent::MouseButtonDblClick:
case QEvent::MouseButtonPress: {
QMouseEvent* mouseEvent = ((QMouseEvent*)event);
switch (mouseEvent->button()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment