summaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-10-03 01:25:43 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-10-03 01:25:43 +0200
commit4a6deb34121aee9122745189a2d8dee976e76946 (patch)
tree11b8104e4a58cfd45d0983207db55c492de0ede8 /wizard
parent2f15cfa42e133c9d96061e439d671ebd54791d08 (diff)
downloadacritoxinstaller-4a6deb34121aee9122745189a2d8dee976e76946.zip
acritoxinstaller-4a6deb34121aee9122745189a2d8dee976e76946.tar.gz
added HTML welcome page
Diffstat (limited to 'wizard')
-rw-r--r--wizard/welcome.cpp2
-rw-r--r--wizard/welcome.ui15
2 files changed, 14 insertions, 3 deletions
diff --git a/wizard/welcome.cpp b/wizard/welcome.cpp
index 56210e0..7cbb0d0 100644
--- a/wizard/welcome.cpp
+++ b/wizard/welcome.cpp
@@ -1,5 +1,6 @@
#include <QtGui>
#include "welcome.h"
+#include "config.h"
#include "../listdelegate.h"
#include "../listitem.h"
@@ -9,6 +10,7 @@ wpWelcome::wpWelcome(QWidget *parent) : QWizardPage(parent)
backend = Backend::instance();
connect(backend, SIGNAL(finishedCommand(QString)), this, SLOT(backendFinishedCommand(QString)));
setComplete(false);
+ textBrowser->setSource(QString("%1/html/%2.html").arg(BACKEND_DIR).arg(tr("welcome")));
backend->exec("init_installer");
}
diff --git a/wizard/welcome.ui b/wizard/welcome.ui
index 6fbc95f..a8f6363 100644
--- a/wizard/welcome.ui
+++ b/wizard/welcome.ui
@@ -13,9 +13,18 @@
<property name="windowTitle">
<string>WizardPage</string>
</property>
- <property name="title">
- <string>Installer</string>
- </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <widget class="QTextBrowser" name="textBrowser">
+ <property name="frameShape">
+ <enum>QFrame::NoFrame</enum>
+ </property>
+ <property name="openExternalLinks">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</widget>
<resources/>
<connections/>