QTfrontend/ui/page/pageeditteam.cpp
changeset 11808 ffe6e1344ebd
parent 11672 98545abbedb3
child 11809 f412d539284e
equal deleted inserted replaced
11803:d85d273cb3aa 11808:ffe6e1344ebd
    98     QGridLayout * GBTLayout = new QGridLayout(GBoxTeam);
    98     QGridLayout * GBTLayout = new QGridLayout(GBoxTeam);
    99     QLabel * tmpLabel = new QLabel(GBoxTeam);
    99     QLabel * tmpLabel = new QLabel(GBoxTeam);
   100     tmpLabel->setText(QLabel::tr("Name"));
   100     tmpLabel->setText(QLabel::tr("Name"));
   101     GBTLayout->addWidget(tmpLabel, 0, 0);
   101     GBTLayout->addWidget(tmpLabel, 0, 0);
   102     tmpLabel = new QLabel(GBoxTeam);
   102     tmpLabel = new QLabel(GBoxTeam);
   103     tmpLabel->setText(QLabel::tr("Type"));
   103     tmpLabel->setText(QLabel::tr("Player"));
   104     GBTLayout->addWidget(tmpLabel, 1, 0);
   104     GBTLayout->addWidget(tmpLabel, 1, 0);
   105     tmpLabel = new QLabel(GBoxTeam);
   105     tmpLabel = new QLabel(GBoxTeam);
   106     tmpLabel->setText(QLabel::tr("Grave"));
   106     tmpLabel->setText(QLabel::tr("Grave"));
   107     GBTLayout->addWidget(tmpLabel, 2, 0);
   107     GBTLayout->addWidget(tmpLabel, 2, 0);
   108     tmpLabel = new QLabel(GBoxTeam);
   108     tmpLabel = new QLabel(GBoxTeam);
   116     TeamNameEdit->setMaxLength(64);
   116     TeamNameEdit->setMaxLength(64);
   117     GBTLayout->addWidget(TeamNameEdit, 0, 1);
   117     GBTLayout->addWidget(TeamNameEdit, 0, 1);
   118     vbox2->addWidget(GBoxTeam);
   118     vbox2->addWidget(GBoxTeam);
   119 
   119 
   120     CBTeamLvl = new QComboBox(GBoxTeam);
   120     CBTeamLvl = new QComboBox(GBoxTeam);
   121     CBTeamLvl->setIconSize(QSize(48, 48));
   121     CBTeamLvl->setIconSize(QSize(32, 32));
   122     CBTeamLvl->addItem(QIcon(":/res/botlevels/0.png"), QComboBox::tr("Human"));
   122     CBTeamLvl->addItem(QIcon(":/res/botlevels/small0.png"), QComboBox::tr("Human"));
   123     for(int i = 5; i > 0; i--)
   123     for(int i = 5; i > 0; i--)
   124         CBTeamLvl->addItem(
   124         CBTeamLvl->addItem(
   125             QIcon(QString(":/res/botlevels/%1.png").arg(6 - i)),
   125             QIcon(QString(":/res/botlevels/small%1.png").arg(6 - i)),
   126             QString("%1 %2").arg(QComboBox::tr("Level")).arg(i)
   126             QComboBox::tr("Computer (Level %1)").arg(i)
   127         );
   127         );
       
   128     CBTeamLvl->setFixedHeight(38);
   128     GBTLayout->addWidget(CBTeamLvl, 1, 1);
   129     GBTLayout->addWidget(CBTeamLvl, 1, 1);
   129 
   130 
   130     CBGrave = new QComboBox(GBoxTeam);
   131     CBGrave = new QComboBox(GBoxTeam);
   131     CBGrave->setMaxCount(65535);
   132     CBGrave->setMaxCount(65535);
   132     CBGrave->setMaxVisibleItems(20);
   133     CBGrave->setMaxVisibleItems(20);
   133     CBGrave->setIconSize(QSize(32, 32));
   134     CBGrave->setIconSize(QSize(32, 32));
       
   135     CBGrave->setFixedHeight(44);
   134     GBTLayout->addWidget(CBGrave, 2, 1);
   136     GBTLayout->addWidget(CBGrave, 2, 1);
   135 
   137 
   136     CBFlag = new QComboBox(GBoxTeam);
   138     CBFlag = new QComboBox(GBoxTeam);
   137     CBFlag->setMaxCount(65535);
   139     CBFlag->setMaxCount(65535);
   138     CBFlag->setMaxVisibleItems(50);
   140     CBFlag->setMaxVisibleItems(50);
   151 
   153 
   152     GBoxFort = new QGroupBox(this);
   154     GBoxFort = new QGroupBox(this);
   153     GBoxFort->setTitle(QGroupBox::tr("Fort"));
   155     GBoxFort->setTitle(QGroupBox::tr("Fort"));
   154     QGridLayout * GBFLayout = new QGridLayout(GBoxFort);
   156     QGridLayout * GBFLayout = new QGridLayout(GBoxFort);
   155     CBFort = new QComboBox(GBoxFort);
   157     CBFort = new QComboBox(GBoxFort);
       
   158     CBFort->setMaxVisibleItems(25);
   156     CBFort->setMaxCount(65535);
   159     CBFort->setMaxCount(65535);
   157     GBFLayout->addWidget(CBFort, 0, 0);
   160     GBFLayout->addWidget(CBFort, 0, 0);
   158     FortPreview = new SquareLabel(GBoxFort);
   161     FortPreview = new SquareLabel(GBoxFort);
   159     FortPreview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
   162     FortPreview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
   160     FortPreview->setMinimumSize(128, 128);
   163     FortPreview->setMinimumSize(128, 128);