blob: 69c687210ecae289a021f99e702bbaa9c3871088 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|