# HG changeset patch # User unc0rr # Date 1163537702 0 # Node ID c7f0a4f7a54a44d2e39243c0f965f9846c2ec840 # Parent f9adf3c73bed014d0eb80d0fdf6ad942b7aef42e Better-looking multiplayer page diff -r f9adf3c73bed -r c7f0a4f7a54a QTfrontend/frameTeam.h --- a/QTfrontend/frameTeam.h Tue Nov 14 20:39:30 2006 +0000 +++ b/QTfrontend/frameTeam.h Tue Nov 14 20:55:02 2006 +0000 @@ -48,7 +48,7 @@ int overallHedgehogs; QList availableColors; QList::Iterator currentColor; - + QVBoxLayout mainLayout; typedef map tmapTeamToWidget; tmapTeamToWidget teamToWidget; diff -r f9adf3c73bed -r c7f0a4f7a54a QTfrontend/gamecfgwidget.cpp --- a/QTfrontend/gamecfgwidget.cpp Tue Nov 14 20:39:30 2006 +0000 +++ b/QTfrontend/gamecfgwidget.cpp Tue Nov 14 20:55:02 2006 +0000 @@ -24,12 +24,14 @@ GameCFGWidget::GameCFGWidget(QWidget* parent) : QWidget(parent), mainLayout(this) { + mainLayout.setMargin(0); QGroupBox *GBoxMap = new QGroupBox(this); GBoxMap->setTitle(QGroupBox::tr("Landscape")); GBoxMap->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); mainLayout.addWidget(GBoxMap); QHBoxLayout *GBoxMapLayout = new QHBoxLayout(GBoxMap); + GBoxMapLayout->setMargin(0); pMapContainer = new HWMapContainer(GBoxMap); GBoxMapLayout->addWidget(new QWidget); GBoxMapLayout->addWidget(pMapContainer); diff -r f9adf3c73bed -r c7f0a4f7a54a QTfrontend/teamselect.cpp --- a/QTfrontend/teamselect.cpp Tue Nov 14 20:39:30 2006 +0000 +++ b/QTfrontend/teamselect.cpp Tue Nov 14 20:55:02 2006 +0000 @@ -89,8 +89,9 @@ } TeamSelWidget::TeamSelWidget(QWidget* parent) : - QWidget(parent), mainLayout(this) + QGroupBox(parent), mainLayout(this) { + setTitle(QGroupBox::tr("Playing teams")); framePlaying=new FrameTeams(); frameDontPlaying=new FrameTeams(); addScrArea(framePlaying, QColor("DarkTurquoise")); diff -r f9adf3c73bed -r c7f0a4f7a54a QTfrontend/teamselect.h --- a/QTfrontend/teamselect.h Tue Nov 14 20:39:30 2006 +0000 +++ b/QTfrontend/teamselect.h Tue Nov 14 20:55:02 2006 +0000 @@ -19,7 +19,7 @@ #ifndef _TEAM_SELECT_INCLUDED #define _TEAM_SELECT_INCLUDED -#include +#include #include class QFrame; @@ -33,10 +33,10 @@ using namespace std; -class TeamSelWidget : public QWidget +class TeamSelWidget : public QGroupBox { Q_OBJECT - + public: TeamSelWidget(QWidget* parent=0); void addTeam(HWTeam team);