summaryrefslogtreecommitdiff
path: root/noncore/games/kcheckers/field.h
authorleseb <leseb>2002-03-14 10:31:39 (UTC)
committer leseb <leseb>2002-03-14 10:31:39 (UTC)
commit1003de6f3b0c508960e0e717333a64603fffb133 (patch) (unidiff)
treedbc1c56f0644f0348e35e6e5856ef07110f7fcb7 /noncore/games/kcheckers/field.h
parent13d8ac43bf8d4c6e492e57d2ab3c7353935a9365 (diff)
downloadopie-1003de6f3b0c508960e0e717333a64603fffb133.zip
opie-1003de6f3b0c508960e0e717333a64603fffb133.tar.gz
opie-1003de6f3b0c508960e0e717333a64603fffb133.tar.bz2
Initial commit
Diffstat (limited to 'noncore/games/kcheckers/field.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kcheckers/field.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/noncore/games/kcheckers/field.h b/noncore/games/kcheckers/field.h
new file mode 100644
index 0000000..d929e49
--- a/dev/null
+++ b/noncore/games/kcheckers/field.h
@@ -0,0 +1,27 @@
1
2#ifndef FIELD_H
3#define FIELD_H
4
5#include <qwidget.h>
6#include <qpixmap.h>
7
8#define SIZE 28
9
10class Field:public QWidget
11{
12 Q_OBJECT
13 public:
14 Field(QWidget*,int);
15 void draw(QImage*);
16 signals:
17 void click(int);
18 protected:
19 void paintEvent(QPaintEvent*);
20 void mousePressEvent(QMouseEvent*);
21 private:
22 int number;
23 QPixmap *pixmap;
24
25};
26
27#endif