26 #include <QInputDialog> |
26 #include <QInputDialog> |
27 |
27 |
28 #include "hwconsts.h" |
28 #include "hwconsts.h" |
29 #include "pageplayrecord.h" |
29 #include "pageplayrecord.h" |
30 |
30 |
31 PagePlayDemo::PagePlayDemo(QWidget* parent) : AbstractPage(parent) |
31 QLayout * PagePlayDemo::bodyLayoutDefinition() |
32 { |
32 { |
33 QFont * font14 = new QFont("MS Shell Dlg", 14); |
33 QGridLayout * pageLayout = new QGridLayout(); |
34 QGridLayout * pageLayout = new QGridLayout(this); |
34 |
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 |
52 |
52 |
53 DemosList = new QListWidget(this); |
53 DemosList = new QListWidget(this); |
54 DemosList->setGeometry(QRect(170, 10, 311, 311)); |
54 DemosList->setGeometry(QRect(170, 10, 311, 311)); |
55 pageLayout->addWidget(DemosList, 0, 1, 3, 1); |
55 pageLayout->addWidget(DemosList, 0, 1, 3, 1); |
56 |
56 |
|
57 return pageLayout; |
|
58 } |
|
59 |
|
60 void PagePlayDemo::connectSignals() |
|
61 { |
57 connect(BtnRenameRecord, SIGNAL(clicked()), this, SLOT(renameRecord())); |
62 connect(BtnRenameRecord, SIGNAL(clicked()), this, SLOT(renameRecord())); |
58 connect(BtnRemoveRecord, SIGNAL(clicked()), this, SLOT(removeRecord())); |
63 connect(BtnRemoveRecord, SIGNAL(clicked()), this, SLOT(removeRecord())); |
|
64 } |
59 |
65 |
60 |
66 PagePlayDemo::PagePlayDemo(QWidget* parent) : AbstractPage(parent) |
61 BtnBack = addButton(":/res/Exit.png", pageLayout, 3, 0, true); |
67 { |
62 connect(BtnBack, SIGNAL(clicked()), this, SIGNAL(goBack())); |
68 initPage(); |
63 } |
69 } |
64 |
70 |
65 void PagePlayDemo::FillFromDir(RecordType rectype) |
71 void PagePlayDemo::FillFromDir(RecordType rectype) |
66 { |
72 { |
67 QDir dir; |
73 QDir dir; |