first commit
This commit is contained in:
34
project/fm_viewer/tester/rm_testing.h
Normal file
34
project/fm_viewer/tester/rm_testing.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef RM_TESTING_H
|
||||
#define RM_TESTING_H
|
||||
|
||||
#if (RM_TESTING)
|
||||
#include <QObject>
|
||||
#include <QPoint>
|
||||
#include <QElapsedTimer>
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user