diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-12 17:44:25 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-12 17:44:25 +0900 |
commit | 9fda22b87349c212f5694e769493ed15addd7cee (patch) | |
tree | 0c56d8a974bb06b4283b015c43f7d65af72b38a4 /demo#3/horizontal/homescreen/homescreen/src/toucharea.h | |
parent | feaf630569134f6fa5e297353dd45b2bcd7467b3 (diff) |
Add homescreen and launcher for horizontal mode
Add homescreen and launcher for horizontal mode
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'demo#3/horizontal/homescreen/homescreen/src/toucharea.h')
-rw-r--r-- | demo#3/horizontal/homescreen/homescreen/src/toucharea.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/demo#3/horizontal/homescreen/homescreen/src/toucharea.h b/demo#3/horizontal/homescreen/homescreen/src/toucharea.h new file mode 100644 index 0000000..69c6872 --- /dev/null +++ b/demo#3/horizontal/homescreen/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 |