From ab926916d2b831979293a1a10af0ad759563913c Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Thu, 11 Oct 2012 13:09:56 +0200 Subject: [PATCH] Fix "open with" functionality on OSX (FileOpenEvent) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit QGuiApplicationPrivate::processWindowSystemEvent needs to handle the FileOpen event type so that applications can receive the events from the Finder. This makes it possible to e.g. double-click a qml file and open it in QML Viewer. Task-number: QTBUG-26855 Change-Id: I1e14e478460e8823095e4a33cee1e0defbf76d8b Reviewed-by: Topi Reiniö Reviewed-by: Gabriel de Dietrich --- src/gui/kernel/qguiapplication.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 84f22de..f9b38d2 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -1207,6 +1207,10 @@ void QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePriv QGuiApplicationPrivate::processPlatformPanelEvent( static_cast(e)); break; + case QWindowSystemInterfacePrivate::FileOpen: + QGuiApplicationPrivate::processFileOpenEvent( + static_cast(e)); + break; default: qWarning() << "Unknown user input event type:" << e->type; break; -- 2.7.4