From 2a117cc570574099839da41a5ae9fbb2a5ca9e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20=C5=81ukasik?= Date: Mon, 21 Apr 2014 11:53:35 +0200 Subject: Imported Upstream version 14.3.0 --- src/myapplication.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/myapplication.h') 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 + Copyright (C) 2006-2014 Ricardo Villalba 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 + +#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(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 -- cgit v1.2.3