Commit 73afcc2a authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: Fixed double click. Apparently a double click is not two press events, but...

QT: Fixed double click. Apparently a double click is not two press events, but its own unique event.
parent d33f315b
......@@ -348,6 +348,7 @@ int FlowDrawQt::event_handler(FlowCtx* ctx, QEvent* event, QWidget* target)
}
break;
}
case QEvent::MouseButtonDblClick:
case QEvent::MouseButtonPress: {
QMouseEvent* mouseEvent = ((QMouseEvent*)event);
switch (mouseEvent->button()) {
......
......@@ -406,6 +406,7 @@ int 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