20 #include <QPushButton> |
20 #include <QPushButton> |
21 |
21 |
22 #include "pageinfo.h" |
22 #include "pageinfo.h" |
23 #include "about.h" |
23 #include "about.h" |
24 |
24 |
25 PageInfo::PageInfo(QWidget* parent) : AbstractPage(parent) |
25 QLayout * PageInfo::bodyLayoutDefinition() |
26 { |
26 { |
27 QGridLayout * pageLayout = new QGridLayout(this); |
27 QGridLayout * pageLayout = new QGridLayout(); |
|
28 |
28 pageLayout->setColumnStretch(0, 1); |
29 pageLayout->setColumnStretch(0, 1); |
29 pageLayout->setColumnStretch(1, 1); |
30 pageLayout->setColumnStretch(1, 1); |
30 pageLayout->setColumnStretch(2, 1); |
31 pageLayout->setColumnStretch(2, 1); |
31 |
32 |
32 BtnSnapshots = addButton(":/res/Star.png", pageLayout, 1, 2, true); |
33 BtnSnapshots = addButton(":/res/Star.png", pageLayout, 1, 2, true); |
33 |
34 |
34 about = new About(this); |
35 about = new About(this); |
35 pageLayout->addWidget(about, 0, 0, 1, 3); |
36 pageLayout->addWidget(about, 0, 0, 1, 3); |
36 |
37 |
|
38 return pageLayout; |
|
39 } |
37 |
40 |
38 BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, true); |
41 QLayout * PageInfo::footerLayoutDefinition() |
39 connect(BtnBack, SIGNAL(clicked()), this, SIGNAL(goBack())); |
42 { |
|
43 return NULL; // TODO: move screenshot button here |
40 } |
44 } |
|
45 |
|
46 void PageInfo::connectSignals() |
|
47 { |
|
48 //TODO |
|
49 } |
|
50 |
|
51 PageInfo::PageInfo(QWidget* parent) : AbstractPage(parent) |
|
52 { |
|
53 initPage(); |
|
54 } |
|
55 |