109 |
109 |
110 PageEditTeam::PageEditTeam(QWidget* parent) : QWidget(parent) |
110 PageEditTeam::PageEditTeam(QWidget* parent) : QWidget(parent) |
111 { |
111 { |
112 QFont * font14 = new QFont("MS Shell Dlg", 14); |
112 QFont * font14 = new QFont("MS Shell Dlg", 14); |
113 QGridLayout * pageLayout = new QGridLayout(this); |
113 QGridLayout * pageLayout = new QGridLayout(this); |
114 pageLayout->setColumnStretch(0, 100); |
114 pageLayout->setColumnStretch(0, 1); |
115 pageLayout->setColumnMinimumWidth(0, 150); |
115 pageLayout->setColumnMinimumWidth(0, 150); |
116 pageLayout->setColumnStretch(1, 100); |
116 pageLayout->setColumnStretch(1, 100); |
117 pageLayout->setColumnMinimumWidth(1, 200); |
117 pageLayout->setColumnMinimumWidth(1, 200); |
118 pageLayout->setColumnStretch(2, 250); |
118 pageLayout->setColumnStretch(2, 150); |
119 pageLayout->setColumnMinimumWidth(2, 250); |
119 pageLayout->setColumnMinimumWidth(2, 250); |
120 |
120 |
121 GBoxTeam = new QGroupBox(this); |
121 GBoxTeam = new QGroupBox(this); |
122 GBoxTeam->setTitle(QGroupBox::tr("Team")); |
122 GBoxTeam->setTitle(QGroupBox::tr("Team")); |
123 GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
123 GBoxTeam->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); |
212 QGridLayout * GBFLayout = new QGridLayout(GBoxFort); |
212 QGridLayout * GBFLayout = new QGridLayout(GBoxFort); |
213 CBFort = new QComboBox(GBoxFort); |
213 CBFort = new QComboBox(GBoxFort); |
214 CBFort->setMaxCount(65535); |
214 CBFort->setMaxCount(65535); |
215 GBFLayout->addWidget(CBFort, 0, 0); |
215 GBFLayout->addWidget(CBFort, 0, 0); |
216 FortPreview = new SquareLabel(GBoxFort); |
216 FortPreview = new SquareLabel(GBoxFort); |
|
217 FortPreview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
217 FortPreview->setPixmap(QPixmap()); |
218 FortPreview->setPixmap(QPixmap()); |
218 FortPreview->setScaledContents(true); |
|
219 GBFLayout->addWidget(FortPreview, 1, 0); |
219 GBFLayout->addWidget(FortPreview, 1, 0); |
220 pageLayout->addWidget(GBoxFort, 2, 2, 1, 1); |
220 pageLayout->addWidget(GBoxFort, 2, 2, 1, 1); |
221 |
221 |
222 BtnTeamSave = new QPushButton(this); |
222 BtnTeamSave = new QPushButton(this); |
223 BtnTeamSave->setFont(*font14); |
223 BtnTeamSave->setFont(*font14); |