Repository navigation
Expand file tree
/
Copy pathFinishSetup.cpp
More file actions
48 lines (39 loc) · 1.43 KB
/
Copy pathFinishSetup.cpp
File metadata and controls
48 lines (39 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "FinishSetup.h"
FinishSetup::FinishSetup(QWidget *parent) : QWidget(parent) {
headingLabel = new QLabel(tr("<b>Congratulations!</b>"));
mainLabel = new QLabel(tr("The setup is complete. Surf and enjoy!"));
imageLabel = new WebRenderAnimation;
// exploreButton = new QPushButton(tr("Explore the tour"));
finishButton = new QPushButton(tr("Finish"));
headingLabelLayout = new QHBoxLayout;
headingLabelLayout->addStretch();
headingLabelLayout->addWidget(headingLabel);
headingLabelLayout->addStretch();
mainLabelLayout = new QHBoxLayout;
mainLabelLayout->addStretch();
mainLabelLayout->addWidget(mainLabel);
mainLabelLayout->addStretch();
imageLabelLayout = new QHBoxLayout;
imageLabelLayout->addStretch();
imageLabelLayout->addWidget(imageLabel);
imageLabelLayout->addStretch();
buttonsLayout = new QHBoxLayout;
buttonsLayout->addStretch();
// buttonsLayout->addWidget(exploreButton);
buttonsLayout->addWidget(finishButton);
buttonsLayout->addStretch();
mainLayout = new QVBoxLayout;
mainLayout->addLayout(headingLabelLayout);
mainLayout->addLayout(mainLabelLayout);
mainLayout->addSpacing(10);
mainLayout->addLayout(imageLabelLayout);
mainLayout->addSpacing(10);
mainLayout->addLayout(buttonsLayout);
mainLayout->addStretch();
setFixedSize(810,610);
setLayout(mainLayout);
connect(finishButton, SIGNAL(clicked()), this, SIGNAL(setupFinished()));
}
void FinishSetup::getReady() {
imageLabel->startAnimation();
}