2 Copyright 2010 Serge Ziryukin <ftrvxmtrx@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; version 2 of the License.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
21 setWindowTitle(tr("Color Flood"));
23 //setWindowState(windowState() | Qt::WindowFullScreen);
25 QPushButton *button = new QPushButton("randomize", this);
26 field = new Field(this);
28 QObject::connect(button, SIGNAL(pressed()), this, SLOT(randomize()));
30 QHBoxLayout *layout = new QHBoxLayout;
31 layout->addWidget(button);
32 layout->setAlignment(button, Qt::AlignLeft);
33 layout->addWidget(field);
34 layout->setAlignment(field, Qt::AlignRight);
38 void Window::randomize ()