summaryrefslogtreecommitdiff
path: root/src/myapplication.h
diff options
context:
space:
mode:
authorMateusz Łukasik <mati75@linuxmint.pl>2014-04-21 11:53:35 +0200
committerMateusz Łukasik <mati75@linuxmint.pl>2014-04-21 11:53:35 +0200
commit2a117cc570574099839da41a5ae9fbb2a5ca9e55 (patch)
tree6107da409f9c7f07c0ffa0869a26a161b097aea7 /src/myapplication.h
parentaa68b7bd585a157e8952881e87e2c09de6ec742f (diff)
Imported Upstream version 14.3.0
Diffstat (limited to 'src/myapplication.h')
-rw-r--r--src/myapplication.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/myapplication.h b/src/myapplication.h
index 0ed5e4e..2c324f5 100644
--- a/src/myapplication.h
+++ b/src/myapplication.h
@@ -1,5 +1,5 @@
/* smplayer, GUI front-end for mplayer.
- Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
+ Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -19,6 +19,14 @@
#ifndef MYAPPLICATION_H
#define MYAPPLICATION_H
+#include <QtGlobal>
+
+#ifdef Q_OS_WIN
+ #if QT_VERSION < 0x050000
+ #define USE_WINEVENTFILTER
+ #endif
+#endif
+
#ifdef SINGLE_INSTANCE
#include "QtSingleApplication"
@@ -37,6 +45,10 @@ public:
inline static MyApplication * instance() {
return qobject_cast<MyApplication*>(QApplication::instance());
}
+
+#ifdef USE_WINEVENTFILTER
+ virtual bool winEventFilter(MSG * msg, long * result);
+#endif
};
#else
@@ -52,6 +64,10 @@ public:
virtual void commitData ( QSessionManager & /*manager*/ ) {
// Nothing to do, let the application to close
}
+
+#ifdef USE_WINEVENTFILTER
+ virtual bool winEventFilter(MSG * msg, long * result);
+#endif
};
#endif