Diffstat (limited to 'noncore/games/kcheckers/field.h') (more/less context) (show 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 @@ -11,16 +11,33 @@ class Field:public QWidget { Q_OBJECT public: Field(QWidget*,int); - void draw(QImage*); + + void setFrame(QImage*); + void setPicture(QImage*); + void setPattern(QImage*); + void setLabel(const QString &); + signals: void click(int); + protected: void paintEvent(QPaintEvent*); void mousePressEvent(QMouseEvent*); + private: + void draw(); + int number; + + // pixmap = pattern + label + picture + frame; + + QImage* frame; + QImage* picture; + QImage* pattern; + QString label; + QPixmap *pixmap; }; |