Don't forget updated project
[vexed] / fieldview.h
index 3a4dc4a..197e830 100644 (file)
@@ -9,8 +9,8 @@
 
 namespace FV
 {
-    const int FIELD_WIDTH=34; //GUI size
-    const int FIELD_HEIGHT=34;
+    const int FIELD_WIDTH=45; //GUI size
+    const int FIELD_HEIGHT=45;
 }
 
 class Animation
@@ -68,9 +68,6 @@ private:
         PlayField *playField;
         int selX, selY;
         int moveX, moveY;
-        QStateMachine *machine;
-        QState *rotL, *rotR;
-        QTimer timer;
         bool moving;
         QList<Animation*> *moves;
 
@@ -91,9 +88,9 @@ protected:
 
         void mousePressEvent(QMouseEvent *event);
         void mouseReleaseEvent(QMouseEvent *event);
-        void updateWidgets();
+        virtual void updateWidgets();
 
-        void paintCell(int x, int y, int cell, QPainter &painter);
+        //void paintCell(int x, int y, int cell, QPainter &painter);
         QWidget *cellWidget(int w, int h);
         QRect coo(int x, int y, int off=1)
         {