QTfrontend/ui/page/pagetraining.cpp
changeset 6699 83dd3447a212
parent 6616 f77bb02b669f
child 6700 e04da46ee43c
equal deleted inserted replaced
6698:804e9076d136 6699:83dd3447a212
    38 
    38 
    39 // left column
    39 // left column
    40 
    40 
    41     // declare start button, caption and description
    41     // declare start button, caption and description
    42     btnPreview = formattedButton(":/res/Trainings.png", true);
    42     btnPreview = formattedButton(":/res/Trainings.png", true);
    43     btnPreview->setToolTip(QPushButton::tr("Go!"));
       
    44 
    43 
    45     // make both rows equal height
    44     // make both rows equal height
    46     pageLayout->setRowStretch(0, 1);
    45     pageLayout->setRowStretch(0, 1);
    47     pageLayout->setRowStretch(1, 1);
    46     pageLayout->setRowStretch(1, 1);
    48 
    47 
    74     pageLayout->setAlignment(infoLayout, Qt::AlignLeft);
    73     pageLayout->setAlignment(infoLayout, Qt::AlignLeft);
    75 
    74 
    76 
    75 
    77     // mission list
    76     // mission list
    78     lstMissions = new QListWidget(this);
    77     lstMissions = new QListWidget(this);
       
    78     lstMissions->setWhatsThis(tr("Pick the mission or training to play"));
    79     pageLayout->addWidget(lstMissions, 1, 0, 1, 2); // span 2 columns
    79     pageLayout->addWidget(lstMissions, 1, 0, 1, 2); // span 2 columns
    80 
    80 
    81     // let's not make the list use more space than needed
    81     // let's not make the list use more space than needed
    82     lstMissions->setFixedWidth(400);
    82     lstMissions->setFixedWidth(400);
    83     pageLayout->setAlignment(lstMissions, Qt::AlignHCenter);
    83     pageLayout->setAlignment(lstMissions, Qt::AlignHCenter);
    88 QLayout * PageTraining::footerLayoutDefinition()
    88 QLayout * PageTraining::footerLayoutDefinition()
    89 {
    89 {
    90     QBoxLayout * bottomLayout = new QVBoxLayout();
    90     QBoxLayout * bottomLayout = new QVBoxLayout();
    91 
    91 
    92     btnStart = formattedButton(QPushButton::tr("Go!"));
    92     btnStart = formattedButton(QPushButton::tr("Go!"));
       
    93     btnStart->setWhatsThis(tr("Start fighting"));
    93     btnStart->setFixedWidth(140);
    94     btnStart->setFixedWidth(140);
    94 
    95 
    95     bottomLayout->addWidget(btnStart);
    96     bottomLayout->addWidget(btnStart);
    96 
    97 
    97     bottomLayout->setAlignment(btnStart, Qt::AlignRight | Qt::AlignVCenter);
    98     bottomLayout->setAlignment(btnStart, Qt::AlignRight | Qt::AlignVCenter);