QTfrontend/pages.cpp
changeset 2072 6e0fcbcc3f60
parent 2071 0faa147c47df
child 2076 aa3263e57b8f
equal deleted inserted replaced
2071:0faa147c47df 2072:6e0fcbcc3f60
   206 	CBFort->setMaxCount(65535);
   206 	CBFort->setMaxCount(65535);
   207 	GBFLayout->addWidget(CBFort, 0, 0);
   207 	GBFLayout->addWidget(CBFort, 0, 0);
   208 	FortPreview = new SquareLabel(GBoxFort);
   208 	FortPreview = new SquareLabel(GBoxFort);
   209 	FortPreview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
   209 	FortPreview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
   210 	FortPreview->setPixmap(QPixmap());
   210 	FortPreview->setPixmap(QPixmap());
       
   211     // perhaps due to handling its own paintevents, SquareLabel doesn't play nice with the stars
       
   212     //FortPreview->setAttribute(Qt::WA_PaintOnScreen, true);
   211 	GBFLayout->addWidget(FortPreview, 1, 0);
   213 	GBFLayout->addWidget(FortPreview, 1, 0);
   212 	vbox3->addWidget(GBoxFort);
   214 	vbox3->addWidget(GBoxFort);
   213 
   215 
   214 	QDir tmpdir;
   216 	QDir tmpdir;
   215 	tmpdir.cd(datadir->absolutePath());
   217 	tmpdir.cd(datadir->absolutePath());
   329 	QGridLayout * gbTBLayout = new QGridLayout(gbTwoBoxes);
   331 	QGridLayout * gbTBLayout = new QGridLayout(gbTwoBoxes);
   330 	gbTBLayout->setMargin(0);
   332 	gbTBLayout->setMargin(0);
   331 	gbTBLayout->setSpacing(0);
   333 	gbTBLayout->setSpacing(0);
   332 	{
   334 	{
   333 		teamsBox = new IconedGroupBox(this);
   335 		teamsBox = new IconedGroupBox(this);
       
   336         //teamsBox->setAttribute(Qt::WA_PaintOnScreen, true);
   334 		teamsBox->setIcon(QIcon(":/res/teamicon.png"));
   337 		teamsBox->setIcon(QIcon(":/res/teamicon.png"));
   335 		teamsBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   338 		teamsBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   336 		teamsBox->setTitle(QGroupBox::tr("Teams"));
   339 		teamsBox->setTitle(QGroupBox::tr("Teams"));
   337 
   340 
   338 		QVBoxLayout * GBTlayout = new QVBoxLayout(teamsBox);
   341 		QVBoxLayout * GBTlayout = new QVBoxLayout(teamsBox);