Use proper start button in training menu
authorWuzzy <almikes@aol.com>
Sun, 20 Nov 2016 05:11:19 +0100
changeset 11978 de1b616fd5e6
parent 11977 4aeec1597621
child 11979 1d07f4ceb8c6
Use proper start button in training menu
QTfrontend/ui/page/pagetraining.cpp
--- a/QTfrontend/ui/page/pagetraining.cpp	Sun Nov 20 05:02:59 2016 +0100
+++ b/QTfrontend/ui/page/pagetraining.cpp	Sun Nov 20 05:11:19 2016 +0100
@@ -104,9 +104,17 @@
 {
     QBoxLayout * bottomLayout = new QVBoxLayout();
 
-    btnStart = formattedButton(QPushButton::tr("Go!"));
+    const QIcon& lp = QIcon(":/res/Start.png");
+    QSize sz = lp.actualSize(QSize(65535, 65535));
+    btnStart = new QPushButton();
+    btnStart->setText(QPushButton::tr("Start"));
     btnStart->setWhatsThis(tr("Start fighting"));
-    btnStart->setFixedWidth(140);
+    btnStart->setMinimumWidth(sz.width() + 60);
+    btnStart->setIcon(lp);
+    btnStart->setFixedHeight(50);
+    btnStart->setIconSize(sz);
+    btnStart->setFlat(true);
+    btnStart->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
 
     bottomLayout->addWidget(btnStart);