summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindowsysteminterface_qpa_p.h
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_p.h
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_p.h')
-rw-r--r--src/gui/kernel/qwindowsysteminterface_qpa_p.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa_p.h b/src/gui/kernel/qwindowsysteminterface_qpa_p.h
index c7ad197b3c..f026f1ca33 100644
--- a/src/gui/kernel/qwindowsysteminterface_qpa_p.h
+++ b/src/gui/kernel/qwindowsysteminterface_qpa_p.h
@@ -68,7 +68,8 @@ public:
ScreenLogicalDotsPerInch,
ScreenRefreshRate,
ThemeChange,
- Expose
+ Expose,
+ FileOpen
};
class WindowSystemEvent {
@@ -257,6 +258,14 @@ public:
QRegion region;
};
+ class FileOpenEvent : public WindowSystemEvent {
+ public:
+ FileOpenEvent(const QString& fileName)
+ : WindowSystemEvent(FileOpen), fileName(fileName)
+ { }
+ QString fileName;
+ };
+
static QList<WindowSystemEvent *> windowSystemEventQueue;
static QMutex queueMutex;