summaryrefslogtreecommitdiff
path: root/tizen/src/ui/displaybase.h
diff options
context:
space:
mode:
authorGiWoong Kim <giwoong.kim@samsung.com>2015-04-28 14:57:06 +0900
committerGiWoong Kim <giwoong.kim@samsung.com>2015-04-30 18:53:25 +0900
commit4d7217f8fd3559fe73e5330dca8831cad70f30ad (patch)
tree62eb0dfabe77d5cf8ac5f19ced84e3a72a44b347 /tizen/src/ui/displaybase.h
parent97b375c4d69d6ec14a31a79ec0172a4e8f48cab4 (diff)
downloadqemu-4d7217f8fd3559fe73e5330dca8831cad70f30ad.tar.gz
qemu-4d7217f8fd3559fe73e5330dca8831cad70f30ad.tar.bz2
qemu-4d7217f8fd3559fe73e5330dca8831cad70f30ad.zip
touch: added touch screen helper
Change-Id: I8d870b979320cbffdcede599dca711f71de5f42a Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
Diffstat (limited to 'tizen/src/ui/displaybase.h')
-rw-r--r--tizen/src/ui/displaybase.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/tizen/src/ui/displaybase.h b/tizen/src/ui/displaybase.h
index ed1ccfdcad..8728bd5f88 100644
--- a/tizen/src/ui/displaybase.h
+++ b/tizen/src/ui/displaybase.h
@@ -33,15 +33,12 @@
#include <QWidget>
+#include "input/touchscreenhelper.h"
+
extern "C" {
void qt5_graphic_hw_invalidate(void);
}
-enum {
- TOUCH_PRESS = 1,
- TOUCH_RELEASE = 2,
-};
-
class DisplayBase
{
public:
@@ -49,6 +46,7 @@ public:
void scale(qreal scaleFactor);
void update();
void updateGeometry();
+ QPoint getGuestPos(QPoint hostPos);
protected:
DisplayBase(QRect rect, int angle, qreal scaleFactor, QWidget *w);
@@ -62,14 +60,13 @@ protected:
void handleMouseMove(QMouseEvent *event);
private:
- void sendTouchEvent(int eventType, int clientX, int clientY);
-
QWidget *widget;
QRect rect;
int rotateAngle;
qreal scaleFactor;
bool isDragging;
+ TouchScreenHelper *tsHelper;
};
#endif