1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00

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

This commit is contained in:
pvdk 2014-03-17 17:50:51 +01:00
parent 254fe0a424
commit ae5f783a16
6 changed files with 11 additions and 4 deletions

View File

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

View File

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

View File

@ -20,7 +20,7 @@
<item>
<widget class="QLabel" name="textLabel">
<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 name="wordWrap">
<bool>true</bool>
@ -29,6 +29,8 @@
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="../../wizard/wizard.qrc"/>
</resources>
<connections/>
</ui>

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -5,4 +5,8 @@
<file alias="48x48/folder.png">icons/tango/48x48/folder.png</file>
<file alias="48x48/system-installer.png">icons/tango/48x48/system-installer.png</file>
</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>