author | leseb <leseb> | 2002-03-14 10:31:39 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-03-14 10:31:39 (UTC) |
commit | 1003de6f3b0c508960e0e717333a64603fffb133 (patch) (side-by-side diff) | |
tree | dbc1c56f0644f0348e35e6e5856ef07110f7fcb7 /noncore/games/kcheckers/field.h | |
parent | 13d8ac43bf8d4c6e492e57d2ab3c7353935a9365 (diff) | |
download | opie-1003de6f3b0c508960e0e717333a64603fffb133.zip opie-1003de6f3b0c508960e0e717333a64603fffb133.tar.gz opie-1003de6f3b0c508960e0e717333a64603fffb133.tar.bz2 |
Initial commit
Diffstat (limited to 'noncore/games/kcheckers/field.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/kcheckers/field.h | 27 |
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 @@ + +#ifndef FIELD_H +#define FIELD_H + +#include <qwidget.h> +#include <qpixmap.h> + +#define SIZE 28 + +class Field:public QWidget +{ + Q_OBJECT + public: + Field(QWidget*,int); + void draw(QImage*); + signals: + void click(int); + protected: + void paintEvent(QPaintEvent*); + void mousePressEvent(QMouseEvent*); + private: + int number; + QPixmap *pixmap; + +}; + +#endif |