# HG changeset patch # User unc0rr # Date 1162125841 0 # Node ID 6e64db60222c3f32a5daceb10c52d90ba09ba71e # Parent d2a47da0e9e6324f1d45c0ff5e16c929853db543 Better-looking game config widget diff -r d2a47da0e9e6 -r 6e64db60222c QTfrontend/gamecfgwidget.cpp --- a/QTfrontend/gamecfgwidget.cpp Sun Oct 29 10:42:04 2006 +0000 +++ b/QTfrontend/gamecfgwidget.cpp Sun Oct 29 12:44:01 2006 +0000 @@ -17,16 +17,35 @@ */ #include +#include +#include #include "gamecfgwidget.h" -GameCFGWidget::GameCFGWidget(QWidget* parent) : +GameCFGWidget::GameCFGWidget(QWidget* parent) : QWidget(parent), mainLayout(this) { - CB_mode_Forts = new QCheckBox(this); + QGroupBox *GBoxMap = new QGroupBox(this); + GBoxMap->setTitle(QGroupBox::tr("Landscape")); + GBoxMap->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + mainLayout.addWidget(GBoxMap); + + QHBoxLayout *GBoxMapLayout = new QHBoxLayout(GBoxMap); + pMapContainer = new HWMapContainer(GBoxMap); + GBoxMapLayout->addWidget(new QWidget); + GBoxMapLayout->addWidget(pMapContainer); + GBoxMapLayout->addWidget(new QWidget); + + QGroupBox *GBoxOptions = new QGroupBox(this); + GBoxOptions->setTitle(QGroupBox::tr("Game scheme")); + GBoxOptions->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); + mainLayout.addWidget(GBoxOptions); + + QVBoxLayout *GBoxOptionsLayout = new QVBoxLayout(GBoxOptions); + CB_mode_Forts = new QCheckBox(GBoxOptions); CB_mode_Forts->setText(QCheckBox::tr("Forts mode")); - mainLayout.addWidget(CB_mode_Forts); - pMapContainer=new HWMapContainer(this); - mainLayout.addWidget(pMapContainer, 80); + GBoxOptionsLayout->addWidget(CB_mode_Forts); + + mainLayout.addWidget(new QWidget, 100); } quint32 GameCFGWidget::getGameFlags()