#ifndef RM_TESTING_H #define RM_TESTING_H #if (RM_TESTING) #include #include #include class RMTesting : public QObject { Q_OBJECT public: explicit RMTesting(QObject *parent = nullptr); static RMTesting* instance() { static RMTesting * _instance = 0; if ( _instance == 0 ) { _instance = new RMTesting(); } return _instance; } private: QElapsedTimer mouseFilterTimer; QPoint mouse; protected: bool eventFilter(QObject* object, QEvent* event); signals: public slots: }; #endif // RM_TESTING #endif // RM_TESTING_H