eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot/qt board_widget.cpp


From: Olivier Teulière
Subject: [Eliot-dev] eliot/qt board_widget.cpp
Date: Sat, 15 Jan 2011 21:47:43 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>       11/01/15 21:47:43

Modified files:
        qt             : board_widget.cpp 

Log message:
        Make sure the board is cleared when a game stops

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/qt/board_widget.cpp?cvsroot=eliot&r1=1.24&r2=1.25

Patches:
Index: board_widget.cpp
===================================================================
RCS file: /cvsroot/eliot/eliot/qt/board_widget.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- board_widget.cpp    1 Nov 2010 17:49:55 -0000       1.24
+++ board_widget.cpp    15 Jan 2011 21:47:42 -0000      1.25
@@ -138,6 +138,18 @@
             }
         }
     }
+    else
+    {
+        // Clear the board
+        for (unsigned int row = BOARD_MIN; row <= BOARD_MAX; ++row)
+        {
+            for (unsigned int col = BOARD_MIN; col <= BOARD_MAX; ++col)
+            {
+                m_widgetsMatrix[row][col]->tileChanged(
+                        Tile(), false, TileWidget::NORMAL);
+            }
+        }
+    }
     update();
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]