forked from josiahseaman/skittle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPanel.h
41 lines (31 loc) · 991 Bytes
/
MainPanel.h
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
//MainPanel.h
#ifndef SKITTLE_MAINPANEL_H
#define SKITTLE_MAINPANEL_H
#include <QAbstractScrollArea>
#include <QScrollBar>
class MainPanelPrivate;
class MainPanel : public QAbstractScrollArea
{
Q_OBJECT
public:
MainPanel();
void setWidget(QWidget* widget);
void setWidgetResizable(bool b);
void contextMenuEvent ( QContextMenuEvent * e );
void dragEnterEvent ( QDragEnterEvent * event );
void dragLeaveEvent ( QDragLeaveEvent * event );
void dragMoveEvent ( QDragMoveEvent * event );
void dropEvent ( QDropEvent * event );
void keyPressEvent ( QKeyEvent * e );
void mouseDoubleClickEvent ( QMouseEvent * e );
void mouseMoveEvent ( QMouseEvent * e );
void mousePressEvent ( QMouseEvent * e );
void mouseReleaseEvent ( QMouseEvent * e );
void paintEvent ( QPaintEvent * event );
void resizeEvent ( QResizeEvent * event );
void scrollContentsBy ( int dx, int dy );
bool viewportEvent ( QEvent * event );
void wheelEvent ( QWheelEvent * e );
private:
};
#endif // QSCROLLAREA_H