]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.hpp
QT4 wineventfilter for Win32, allows WM_APPCOMMAND stuff
[vlc] / modules / gui / qt4 / qt4.hpp
old mode 100644 (file)
new mode 100755 (executable)
index 2a0e004..f9a4663
@@ -48,6 +48,19 @@ class DialogsProvider;
 class VideoWidget;
 class QSettings;
 
+#if defined(Q_WS_WIN)
+#include <QApplication>
+
+class WinQtApp : public QApplication
+{
+public:
+    WinQtApp ( int & argc, char ** argv, bool GUIenabled ) : QApplication( argc, argv, GUIenabled ) {}
+    ~WinQtApp() {}
+protected:
+    bool winEventFilter(MSG *msg, long *result);
+};
+#endif /* Q_WS_WIN */
+
 struct intf_sys_t
 {
     QApplication *p_app;