blob: 56210e0ff417702776c29b553c7e06934755adff (
plain)
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
|
#include <QtGui>
#include "welcome.h"
#include "../listdelegate.h"
#include "../listitem.h"
wpWelcome::wpWelcome(QWidget *parent) : QWizardPage(parent)
{
setupUi(this);
backend = Backend::instance();
connect(backend, SIGNAL(finishedCommand(QString)), this, SLOT(backendFinishedCommand(QString)));
setComplete(false);
backend->exec("init_installer");
}
void wpWelcome::backendFinishedCommand(QString command)
{
if(command == "init_installer") setComplete(true);
}
void wpWelcome::setComplete(bool c)
{
complete = c;
emit completeChanged();
}
bool wpWelcome::isComplete() const
{
return complete;
}
bool wpWelcome::validatePage()
{
return complete;
}
|