diff options
author | tiansen <tian_sen@dl.cn.nexty-ele.com> | 2018-11-02 10:08:22 +0800 |
---|---|---|
committer | tiansen <tian_sen@dl.cn.nexty-ele.com> | 2018-11-02 10:08:22 +0800 |
commit | c5aad6f23f523bf44bf58419bb2fc41262be2180 (patch) | |
tree | b7b3331bc10a8e327d54ac634545e836579d55a4 /homescreen/src/toucharea.h | |
parent | 33d31b5bac3c8c9105d43d6566174f39ef7a4ea4 (diff) |
horizontalsandbox/tiansen/horizontal
Diffstat (limited to 'homescreen/src/toucharea.h')
-rw-r--r-- | homescreen/src/toucharea.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/homescreen/src/toucharea.h b/homescreen/src/toucharea.h new file mode 100644 index 0000000..69c6872 --- /dev/null +++ b/homescreen/src/toucharea.h @@ -0,0 +1,30 @@ +#ifndef TOUCHAREA_H +#define TOUCHAREA_H + +#include <QBitmap> +#include <QQuickWindow> + +enum { + NORMAL=0, + FULLSCREEN +}; + +class TouchArea : public QObject +{ + Q_OBJECT +public: + explicit TouchArea(); + ~TouchArea(); + + Q_INVOKABLE void switchArea(int areaType); + void setWindow(QQuickWindow* window); + +public slots: + void init(); + +private: + QBitmap bitmapNormal, bitmapFullscreen; + QQuickWindow* myWindow; +}; + +#endif // TOUCHAREA_H |