Added some eye-candy to the wizard: a watermark and a placeholder icon

loadfix
pvdk 11 years ago
parent 254fe0a424
commit ae5f783a16

@ -5,9 +5,9 @@
Wizard::IntroPage::IntroPage(MainWizard *wizard) : Wizard::IntroPage::IntroPage(MainWizard *wizard) :
QWizardPage(wizard), QWizardPage(wizard),
mWizard(wizard) mWizard(wizard)
{ {
setupUi(this); setupUi(this);
setPixmap(QWizard::WatermarkPixmap, QPixmap(QLatin1String(":/images/intropage-background.png")));
} }
int Wizard::IntroPage::nextId() const int Wizard::IntroPage::nextId() const

@ -25,7 +25,6 @@ Wizard::MainWizard::MainWizard(QWidget *parent) :
mGameSettings(mCfgMgr), mGameSettings(mCfgMgr),
QWizard(parent) QWizard(parent)
{ {
#ifndef Q_OS_MAC #ifndef Q_OS_MAC
setWizardStyle(QWizard::ModernStyle); setWizardStyle(QWizard::ModernStyle);
#else #else
@ -33,6 +32,8 @@ Wizard::MainWizard::MainWizard(QWidget *parent) :
#endif #endif
setWindowTitle(tr("OpenMW Wizard")); setWindowTitle(tr("OpenMW Wizard"));
setWindowIcon(QIcon(QLatin1String(":/images/openmw-wizard.png")));
setMinimumWidth(550);
// Set the property for comboboxes to the text instead of index // Set the property for comboboxes to the text instead of index
setDefaultProperty("QComboBox", "currentText", "currentIndexChanged"); setDefaultProperty("QComboBox", "currentText", "currentIndexChanged");

@ -20,7 +20,7 @@
<item> <item>
<widget class="QLabel" name="textLabel"> <widget class="QLabel" name="textLabel">
<property name="text"> <property name="text">
<string>This Wizard will help you install Morrowind and its add-ons for OpenMW to use.</string> <string>This Wizard will help you install Morrowindand its add-ons for OpenMW to use.</string>
</property> </property>
<property name="wordWrap"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
@ -29,6 +29,8 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<resources/> <resources>
<include location="../../wizard/wizard.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

@ -5,4 +5,8 @@
<file alias="48x48/folder.png">icons/tango/48x48/folder.png</file> <file alias="48x48/folder.png">icons/tango/48x48/folder.png</file>
<file alias="48x48/system-installer.png">icons/tango/48x48/system-installer.png</file> <file alias="48x48/system-installer.png">icons/tango/48x48/system-installer.png</file>
</qresource> </qresource>
<qresource prefix="images">
<file alias="intropage-background.png">images/intropage-background.png</file>
<file alias="openmw-wizard.png">images/openmw-wizard.png</file>
</qresource>
</RCC> </RCC>

Loading…
Cancel
Save