QTfrontend/ui/page/pagetraining.cpp
changeset 11973 de1b616fd5e6
parent 11970 f6fc7e9bef3d
child 12236 a0ed4caa6d35
equal deleted inserted replaced
11972:4aeec1597621 11973:de1b616fd5e6
   102 
   102 
   103 QLayout * PageTraining::footerLayoutDefinition()
   103 QLayout * PageTraining::footerLayoutDefinition()
   104 {
   104 {
   105     QBoxLayout * bottomLayout = new QVBoxLayout();
   105     QBoxLayout * bottomLayout = new QVBoxLayout();
   106 
   106 
   107     btnStart = formattedButton(QPushButton::tr("Go!"));
   107     const QIcon& lp = QIcon(":/res/Start.png");
       
   108     QSize sz = lp.actualSize(QSize(65535, 65535));
       
   109     btnStart = new QPushButton();
       
   110     btnStart->setText(QPushButton::tr("Start"));
   108     btnStart->setWhatsThis(tr("Start fighting"));
   111     btnStart->setWhatsThis(tr("Start fighting"));
   109     btnStart->setFixedWidth(140);
   112     btnStart->setMinimumWidth(sz.width() + 60);
       
   113     btnStart->setIcon(lp);
       
   114     btnStart->setFixedHeight(50);
       
   115     btnStart->setIconSize(sz);
       
   116     btnStart->setFlat(true);
       
   117     btnStart->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
   110 
   118 
   111     bottomLayout->addWidget(btnStart);
   119     bottomLayout->addWidget(btnStart);
   112 
   120 
   113     bottomLayout->setAlignment(btnStart, Qt::AlignRight | Qt::AlignVCenter);
   121     bottomLayout->setAlignment(btnStart, Qt::AlignRight | Qt::AlignVCenter);
   114 
   122