diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2012-10-11 13:09:56 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-13 05:51:19 +0200 |
commit | ab926916d2b831979293a1a10af0ad759563913c (patch) | |
tree | d62d4f1818acb4a349a2dfd62255c90aa57ca391 /src/gui/kernel | |
parent | bcbcf5e71884b006b0c89c4509af171de5aa59d7 (diff) |
Fix "open with" functionality on OSX (FileOpenEvent)
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ƶ <topi.reinio@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 84f22de322..f9b38d2e6d 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<QWindowSystemInterfacePrivate::PlatformPanelEvent *>(e)); break; + case QWindowSystemInterfacePrivate::FileOpen: + QGuiApplicationPrivate::processFileOpenEvent( + static_cast<QWindowSystemInterfacePrivate::FileOpenEvent *>(e)); + break; default: qWarning() << "Unknown user input event type:" << e->type; break; |