Changing default piece counts
[impuzzle] / src / puzzleitem.h
index 8cf4819..3e8297e 100644 (file)
@@ -40,6 +40,11 @@ public:
     void moveMeTo(const QPointF &location);
     static int moveCount();
     static void resetMoveCount();
+    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
+    void setPieceNumber(const int pieceNumber);
+    int pieceNumber() const;
+    void setDrawNumber(bool value);
+    bool drawNumber() const;
 
 protected:
     void mousePressEvent(QGraphicsSceneMouseEvent *event);
@@ -51,5 +56,7 @@ private:
     bool movable_;
     QPropertyAnimation *moveAnimation_;
     static int moveCount_;
+    int pieceNumber_;
+    bool drawNumber_;
 };
 #endif