repo.or.cz
/
lcapit-junk-code.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Introduce old redir program
[lcapit-junk-code.git]
/
qt-course
/
drawing
/
exer681-polygon
/
MyWidget.h
blob
c0d21047c19a1731f26e427fa7a7e4e6a221d493
1
#ifndef MYWIDGET_H
2
#define MYWIDGET_H
3
4
#include <QPoint>
5
#include <QWidget>
6
#include <QVector>
7
#include <QPaintEvent>
8
#include <QMouseEvent>
9
10
class
MyWidget
:
public
QWidget
11
{
12
Q_OBJECT
;
13
public
:
14
MyWidget
(
QWidget
*
parent
=
0
);
15
~
MyWidget
();
16
17
private
:
18
QVector
<
QPoint
>
m_points
;
19
20
protected
:
21
void
paintEvent
(
QPaintEvent
*
event
);
22
void
mousePressEvent
(
QMouseEvent
*
event
);
23
};
24
25
#endif
// MYWIDGET_H