diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
commit | 00286a5db286e21a766b6af057052dc5d17561ad (patch) | |
tree | 7232dadf6dc3570705c3104fe0c000f480c7a0ee /wizard/welcome.cpp | |
download | acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.zip acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.tar.gz |
Initial commit
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; +} + |