QTfrontend/ui/page/pageoptions.cpp
changeset 7678 8aabba680598
parent 7630 13fa53bb3134
child 7680 46a91cbed8db
equal deleted inserted replaced
7677:f63c55db82eb 7678:8aabba680598
   176         }
   176         }
   177 
   177 
   178         {
   178         {
   179             IconedGroupBox* groupMisc = new IconedGroupBox(this);
   179             IconedGroupBox* groupMisc = new IconedGroupBox(this);
   180             //groupMisc->setContentTopPadding(0);
   180             //groupMisc->setContentTopPadding(0);
   181             groupMisc->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
   181             //groupMisc->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
   182             groupMisc->setIcon(QIcon(":/res/miscicon.png"));
   182             groupMisc->setIcon(QIcon(":/res/miscicon.png"));
   183             //groupMisc->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   183             //groupMisc->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
   184             groupMisc->setTitle(QGroupBox::tr("Misc"));
   184             groupMisc->setTitle(QGroupBox::tr("Misc"));
   185             QGridLayout * MiscLayout = new QGridLayout(groupMisc);
   185             QGridLayout * MiscLayout = new QGridLayout(groupMisc);
   186 
   186 
   365             CBAltDamage->setText(QCheckBox::tr("Alternative damage show"));
   365             CBAltDamage->setText(QCheckBox::tr("Alternative damage show"));
   366             GBAlayout->addWidget(CBAltDamage);
   366             GBAlayout->addWidget(CBAltDamage);
   367 
   367 
   368             page1Layout->addWidget(AGGroupBox, 0, 1, 3, 1);
   368             page1Layout->addWidget(AGGroupBox, 0, 1, 3, 1);
   369         }
   369         }
       
   370 
       
   371         page1Layout->addWidget(new QWidget(this), 3, 0);
       
   372 
   370     }
   373     }
   371 
   374 
   372     { // page 2
   375     { // page 2
   373         QGridLayout * page2Layout = new QGridLayout(page2);
   376         QGridLayout * page2Layout = new QGridLayout(page2);
   374 
   377 
   375         {
   378         {
   376             IconedGroupBox * gbColors = new IconedGroupBox(this);
   379             IconedGroupBox * gbColors = new IconedGroupBox(this);
   377             //gbColors->setIcon(QIcon(":/res/teamicon.png"));
   380             gbColors->setIcon(QIcon(":/res/lightbulb_on.png"));
   378             gbColors->setTitle(QGroupBox::tr("Custom colors"));
   381             gbColors->setTitle(QGroupBox::tr("Custom colors"));
   379             page2Layout->addWidget(gbColors, 0, 0);
   382             page2Layout->addWidget(gbColors, 0, 0);
   380             QGridLayout * gbCLayout = new QGridLayout(gbColors);
   383             QGridLayout * gbCLayout = new QGridLayout(gbColors);
   381 
   384 
   382             QSignalMapper * mapper = new QSignalMapper(this);
   385             QSignalMapper * mapper = new QSignalMapper(this);
   398             connect(mapper, SIGNAL(mapped(int)), this, SLOT(colorButtonClicked(int)));
   401             connect(mapper, SIGNAL(mapped(int)), this, SLOT(colorButtonClicked(int)));
   399         }
   402         }
   400 
   403 
   401         {
   404         {
   402             IconedGroupBox * gbMisc = new IconedGroupBox(this);
   405             IconedGroupBox * gbMisc = new IconedGroupBox(this);
       
   406             gbMisc->setIcon(QIcon(":/res/Settings.png"));
   403             gbMisc->setTitle(QGroupBox::tr("Miscellaneous"));
   407             gbMisc->setTitle(QGroupBox::tr("Miscellaneous"));
   404             page2Layout->addWidget(gbMisc, 0, 1);
   408             page2Layout->addWidget(gbMisc, 0, 1);
   405             QVBoxLayout * gbCLayout = new QVBoxLayout(gbMisc);
   409             QVBoxLayout * gbCLayout = new QVBoxLayout(gbMisc);
   406 
   410 
   407             QHBoxLayout * GBAfpslayout = new QHBoxLayout(0);
   411             QHBoxLayout * GBAfpslayout = new QHBoxLayout(0);