# HG changeset patch # User Wuzzy # Date 1479615079 -3600 # Node ID de1b616fd5e628fba74743d8752f0c639edd78a8 # Parent 4aeec1597621ece0b51beb4cc48b59be954c1e71 Use proper start button in training menu diff -r 4aeec1597621 -r de1b616fd5e6 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);