141 |
141 |
142 const QIcon& lp = QIcon(":/res/Start.png"); |
142 const QIcon& lp = QIcon(":/res/Start.png"); |
143 QSize sz = lp.actualSize(QSize(65535, 65535)); |
143 QSize sz = lp.actualSize(QSize(65535, 65535)); |
144 BtnStart = new QPushButton(); |
144 BtnStart = new QPushButton(); |
145 BtnStart->setText(tr("Start")); |
145 BtnStart->setText(tr("Start")); |
|
146 BtnStart->setStyleSheet("padding: 5px 10px"); |
146 BtnStart->setWhatsThis(tr("Start fighting (requires at least 2 teams)")); |
147 BtnStart->setWhatsThis(tr("Start fighting (requires at least 2 teams)")); |
147 BtnStart->setMinimumWidth(sz.width() + 60); |
|
148 BtnStart->setIcon(lp); |
148 BtnStart->setIcon(lp); |
149 BtnStart->setFixedHeight(50); |
149 BtnStart->setFixedHeight(50); |
150 BtnStart->setIconSize(sz); |
150 BtnStart->setIconSize(sz); |
151 BtnStart->setFlat(true); |
151 BtnStart->setFlat(true); |
152 BtnStart->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
152 BtnStart->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); |
153 bottomLayout->addWidget(BtnStart, 0, Qt::AlignBottom); |
153 bottomLayout->addWidget(BtnStart, 0, Qt::AlignBottom); |
154 |
154 |
155 return bottomLayout; |
155 return bottomLayout; |
156 } |
156 } |
157 |
157 |