author | leseb <leseb> | 2002-06-11 16:25:06 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-06-11 16:25:06 (UTC) |
commit | 2cfbb2adc058b59140a14ba6bbfc057266fea0b8 (patch) (unidiff) | |
tree | 2dc8756a9d691cdfb46b537955453f46171ceeff /noncore/games/kcheckers/field.h | |
parent | d709dd35dc07d4a204380354f00a89ceb4d1f845 (diff) | |
download | opie-2cfbb2adc058b59140a14ba6bbfc057266fea0b8.zip opie-2cfbb2adc058b59140a14ba6bbfc057266fea0b8.tar.gz opie-2cfbb2adc058b59140a14ba6bbfc057266fea0b8.tar.bz2 |
Version 0.3 port
Diffstat (limited to 'noncore/games/kcheckers/field.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/kcheckers/field.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/noncore/games/kcheckers/field.h b/noncore/games/kcheckers/field.h index d929e49..297d94e 100644 --- a/noncore/games/kcheckers/field.h +++ b/noncore/games/kcheckers/field.h | |||
@@ -13,12 +13,29 @@ class Field:public QWidget | |||
13 | public: | 13 | public: |
14 | Field(QWidget*,int); | 14 | Field(QWidget*,int); |
15 | void draw(QImage*); | 15 | |
16 | void setFrame(QImage*); | ||
17 | void setPicture(QImage*); | ||
18 | void setPattern(QImage*); | ||
19 | void setLabel(const QString &); | ||
20 | |||
16 | signals: | 21 | signals: |
17 | void click(int); | 22 | void click(int); |
23 | |||
18 | protected: | 24 | protected: |
19 | void paintEvent(QPaintEvent*); | 25 | void paintEvent(QPaintEvent*); |
20 | void mousePressEvent(QMouseEvent*); | 26 | void mousePressEvent(QMouseEvent*); |
27 | |||
21 | private: | 28 | private: |
29 | void draw(); | ||
30 | |||
22 | int number; | 31 | int number; |
32 | |||
33 | // pixmap = pattern + label + picture + frame; | ||
34 | |||
35 | QImage* frame; | ||
36 | QImage* picture; | ||
37 | QImage* pattern; | ||
38 | QString label; | ||
39 | |||
23 | QPixmap *pixmap; | 40 | QPixmap *pixmap; |
24 | 41 | ||