return size;
}
+void Field::setSize (int size)
+{
+ Q_ASSERT(size >= 0 && size < NUM_SIZES);
+
+ if (this->size == size)
+ return;
+
+ this->size = (FieldSize)size;
+ randomize();
+}
+
void Field::randomize ()
{
FieldRect rect;
+
+ rect.brush = 0;
rect.flood = false;
data.clear();
if (finished)
{
QMessageBox box;
+ box.setWindowTitle("Color Flood");
box.setText(msg);
box.exec();
randomize();