26 #include <QInputDialog> |
26 #include <QInputDialog> |
27 |
27 |
28 #include "hwconsts.h" |
28 #include "hwconsts.h" |
29 #include "playrecordpage.h" |
29 #include "playrecordpage.h" |
30 |
30 |
31 PagePlayDemo::PagePlayDemo(QWidget* parent) : QWidget(parent) |
31 PagePlayDemo::PagePlayDemo(QWidget* parent) : AbstractPage(parent) |
32 { |
32 { |
33 QFont * font14 = new QFont("MS Shell Dlg", 14); |
33 QFont * font14 = new QFont("MS Shell Dlg", 14); |
34 QGridLayout * pageLayout = new QGridLayout(this); |
34 QGridLayout * pageLayout = new QGridLayout(this); |
35 pageLayout->setColumnStretch(0, 1); |
35 pageLayout->setColumnStretch(0, 1); |
36 pageLayout->setColumnStretch(1, 2); |
36 pageLayout->setColumnStretch(1, 2); |
37 pageLayout->setColumnStretch(2, 1); |
37 pageLayout->setColumnStretch(2, 1); |
38 pageLayout->setRowStretch(2, 100); |
38 pageLayout->setRowStretch(2, 100); |
39 |
39 |
40 BtnBack = new QPushButton(this); |
40 BtnBack = addButton(":/res/Exit.png", pageLayout, 3, 0, true); |
41 BtnBack->setFont(*font14); |
|
42 BtnBack->setText(QPushButton::tr("Back")); |
|
43 pageLayout->addWidget(BtnBack, 3, 0); |
|
44 |
41 |
45 BtnPlayDemo = new QPushButton(this); |
42 BtnPlayDemo = new QPushButton(this); |
46 BtnPlayDemo->setFont(*font14); |
43 BtnPlayDemo->setFont(*font14); |
47 BtnPlayDemo->setText(QPushButton::tr("Play demo")); |
44 BtnPlayDemo->setText(QPushButton::tr("Play demo")); |
48 pageLayout->addWidget(BtnPlayDemo, 3, 2); |
45 pageLayout->addWidget(BtnPlayDemo, 3, 2); |