--- 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<QColor> availableColors;
QList<QColor>::Iterator currentColor;
-
+
QVBoxLayout mainLayout;
typedef map<HWTeam, QWidget*> tmapTeamToWidget;
tmapTeamToWidget teamToWidget;
--- 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);
--- 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"));
--- 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 <QWidget>
+#include <QGroupBox>
#include <QVBoxLayout>
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);