593 QFont * font14 = new QFont("MS Shell Dlg", 14); |
593 QFont * font14 = new QFont("MS Shell Dlg", 14); |
594 QVBoxLayout * vLayout = new QVBoxLayout(this); |
594 QVBoxLayout * vLayout = new QVBoxLayout(this); |
595 QHBoxLayout * topLine = new QHBoxLayout(); |
595 QHBoxLayout * topLine = new QHBoxLayout(); |
596 QHBoxLayout * middleLine = new QHBoxLayout(); |
596 QHBoxLayout * middleLine = new QHBoxLayout(); |
597 QHBoxLayout * bottomLine = new QHBoxLayout(); |
597 QHBoxLayout * bottomLine = new QHBoxLayout(); |
|
598 vLayout->addStretch(); |
598 vLayout->addLayout(topLine); |
599 vLayout->addLayout(topLine); |
599 vLayout->addLayout(middleLine); |
600 vLayout->addLayout(middleLine); |
|
601 vLayout->addStretch(); |
600 vLayout->addLayout(bottomLine); |
602 vLayout->addLayout(bottomLine); |
601 |
603 |
602 BtnSimpleGamePage = addButton(":/res/SimpleGame.png", topLine, 0, true); |
604 BtnSimpleGamePage = addButton(":/res/SimpleGame.png", topLine, 0, true); |
603 BtnMultiplayer = addButton(":/res/Multiplayer.png", topLine, 1, true); |
605 BtnMultiplayer = addButton(":/res/Multiplayer.png", topLine, 1, true); |
604 // pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter); |
606 // pageLayout->setAlignment(BtnSinglePlayer, Qt::AlignHCenter); |
605 BtnTrainPage = addButton(":/res/Trainings.png", middleLine, 0, true); |
607 BtnTrainPage = addButton(":/res/Trainings.png", middleLine, 0, true); |
606 |
608 |
607 BtnBack = addButton(":/res/Exit.png", bottomLine, 0, true); |
609 BtnBack = addButton(":/res/Exit.png", bottomLine, 0, true); |
|
610 bottomLine->addStretch(); |
|
611 |
608 BtnDemos = addButton(tr(":/res/Record.png"), bottomLine, 1, true); |
612 BtnDemos = addButton(tr(":/res/Record.png"), bottomLine, 1, true); |
609 |
|
610 BtnLoad = addButton(":/res/Save.png", bottomLine, 2, true); |
613 BtnLoad = addButton(":/res/Save.png", bottomLine, 2, true); |
611 BtnLoad->setStyleSheet("QPushButton{margin: 12px 0px 12px 0px;}"); |
614 BtnLoad->setStyleSheet("QPushButton{margin: 12px 0px 12px 0px;}"); |
612 } |
615 } |
613 |
616 |
614 PageTraining::PageTraining(QWidget* parent) : AbstractPage(parent) |
617 PageTraining::PageTraining(QWidget* parent) : AbstractPage(parent) |