summaryrefslogtreecommitdiff
path: root/noncore/games/kcheckers/field.h
blob: d929e493ff1e1a9a7c4da2077bb5c7869c1ecb47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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