Ignore:
Timestamp:
Aug 31, 2016, 5:31:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.8.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/myapplication.h

    r176 r181  
    2323
    2424#ifdef Q_OS_WIN
    25  #if QT_VERSION < 0x050000
    26   #define USE_WINEVENTFILTER
    27  #endif
     25  //#define USE_WINEVENTFILTER
     26#endif
     27
     28#if defined(USE_WINEVENTFILTER) && QT_VERSION >= 0x050000
     29#include <QAbstractNativeEventFilter>
    2830#endif
    2931
     
    3234
    3335class MyApplication : public QtSingleApplication
     36#if defined(USE_WINEVENTFILTER) && QT_VERSION >= 0x050000
     37, QAbstractNativeEventFilter
     38#endif
    3439{
    3540        Q_OBJECT
    3641
    3742public:
    38         MyApplication ( const QString & appId, int & argc, char ** argv )
    39                 : QtSingleApplication(appId, argc, argv) {};
     43        MyApplication ( const QString & appId, int & argc, char ** argv );
    4044
    4145        virtual void commitData ( QSessionManager & /*manager*/ ) {
     
    4953#ifdef USE_WINEVENTFILTER
    5054        virtual bool winEventFilter(MSG * msg, long * result);
     55        #if QT_VERSION >= 0x050000
     56        virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long *result);
     57        #endif
    5158#endif
    5259};
     
    5663
    5764class MyApplication : public QApplication
     65#if defined(USE_WINEVENTFILTER) && QT_VERSION >= 0x050000
     66, QAbstractNativeEventFilter
     67#endif
    5868{
    5969        Q_OBJECT
    6070
    6171public:
    62         MyApplication ( const QString & appId, int & argc, char ** argv ) : QApplication(argc, argv) {};
     72        MyApplication ( const QString & appId, int & argc, char ** argv );
    6373
    6474        virtual void commitData ( QSessionManager & /*manager*/ ) {
     
    6878#ifdef USE_WINEVENTFILTER
    6979        virtual bool winEventFilter(MSG * msg, long * result);
     80        #if QT_VERSION >= 0x050000
     81        virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long *result);
     82        #endif
    7083#endif
    7184};
Note: See TracChangeset for help on using the changeset viewer.