diff options
Diffstat (limited to 'wizard/welcome.cpp')
-rw-r--r-- | wizard/welcome.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/wizard/welcome.cpp b/wizard/welcome.cpp new file mode 100644 index 0000000..56210e0 --- /dev/null +++ b/wizard/welcome.cpp @@ -0,0 +1,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; +} + |