forked from dixonary/draft-reMarkable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainview.cpp
46 lines (38 loc) · 872 Bytes
/
mainview.cpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "mainview.h"
MainView::MainView()
{
}
void MainView::keyPressEvent(QKeyEvent* ke)
{
qDebug() << Q_FUNC_INFO;
qDebug() << "mw" << ke->key() << "down";
QQuickView::keyPressEvent(ke); // base class implementation
}
void MainView::mouseMoveEvent(QMouseEvent* me)
{
qDebug() << Q_FUNC_INFO;
qDebug() << me->pos();
QQuickView::mouseMoveEvent(me);
}
void MainView::mousePressEvent(QMouseEvent* me)
{
qDebug() << Q_FUNC_INFO;
qDebug() << me->pos();
QQuickView::mousePressEvent(me);
}
void MainView::mouseReleaseEvent(QMouseEvent* me)
{
qDebug() << Q_FUNC_INFO;
qDebug() << me->pos();
QQuickView::mouseReleaseEvent(me);
}
void MainView::tabletEvent(QTabletEvent* te)
{
qDebug() << Q_FUNC_INFO;
qDebug() << te;
}
void MainView::touchEvent(QTouchEvent* te)
{
qDebug() << Q_FUNC_INFO;
qDebug() << te;
}