aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/toucharea.h
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-05-28 14:00:55 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-05-28 14:00:55 +0800
commit7d29d877baafe52cc0e0bbdf7d86deff61073651 (patch)
treeb3d106a241e5c3b5be6b7f1fbe596ac3024ae0ad /homescreen/src/toucharea.h
parent33c89065c315edd838873116bec8723326f43488 (diff)
registerShortcut
Change-Id: I66dbf6f12a890e67908594ed238556f5456b7ed7
Diffstat (limited to 'homescreen/src/toucharea.h')
-rw-r--r--homescreen/src/toucharea.h30
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