-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWTWordTreeView.h
More file actions
36 lines (27 loc) · 896 Bytes
/
WTWordTreeView.h
File metadata and controls
36 lines (27 loc) · 896 Bytes
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
/*
* header file for WTWordTreeView class
* Original by: christian moellinger <ch.moellinger@gmail.com>
* Modified by: Chung-Yeon Lee <cylee@bi.snu.ac.kr> and Beom-Jin Lee <bjlee@bi.snu.ac.kr>
* 03/2011 - 06/2011 Project "InfoVis: Word Tree"
* 11/2013 - 12/2013 Project "InfoVis: Word Tree ++"
*/
#ifndef WTWORDTREEVIEW_H
#define WTWORDTREEVIEW_H
#include <QGraphicsView>
/// this class is simply an inherited class of QGraphicsView
/// which only reimplements some event handling to react on mouse clicks
class WTWordTreeView : public QGraphicsView
{
Q_OBJECT
public:
explicit WTWordTreeView(QWidget *parent = 0);
protected:
void mousePressEvent (QMouseEvent * e);
void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event);
bool m_bControlPressed;
signals:
void OnClicked(int, int, bool);
public slots:
};
#endif // WTWORDTREEVIEW_H