summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindowsysteminterface_qpa.cpp
diff options
context:
space:
mode:
authorChristoph Schleifenbaum <christoph.schleifenbaum@kdab.com>2012-04-05 16:31:40 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-11 15:11:20 +0200
commit358fd91951f26cbb552daaf9d28c49429302b6ab (patch)
tree99bfeed60f506670cbb801396861a4188bb3d714 /src/gui/kernel/qwindowsysteminterface_qpa.cpp
parente3bbfe00d1f71ba21889eec438e9438c0ee35c0a (diff)
Make QFileOpenEvents delivered again.
Create a FileOpenEvent within QWindowSystemInterfacePrivate and handle it in QWindowSystemSystemInterface and QGuiApplication Change-Id: Ie777c923958d83d56e8648c9bfb1f9dcb985654d Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface_qpa.cpp')
-rw-r--r--src/gui/kernel/qwindowsysteminterface_qpa.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa.cpp b/src/gui/kernel/qwindowsysteminterface_qpa.cpp
index c3136b0b0a..c011fa4e13 100644
--- a/src/gui/kernel/qwindowsysteminterface_qpa.cpp
+++ b/src/gui/kernel/qwindowsysteminterface_qpa.cpp
@@ -520,4 +520,10 @@ bool QWindowSystemInterface::handleNativeEvent(QWindow *window, const QByteArray
return QGuiApplicationPrivate::processNativeEvent(window, eventType, message, result);
}
+void QWindowSystemInterface::handleFileOpenEvent(const QString& fileName)
+{
+ QWindowSystemInterfacePrivate::FileOpenEvent e(fileName);
+ QGuiApplicationPrivate::processWindowSystemEvent(&e);
+}
+
QT_END_NAMESPACE