diff options
author | Niels Weber <niels.weber@digia.com> | 2014-12-02 12:34:23 +0100 |
---|---|---|
committer | Niels Weber <niels.weber@theqtcompany.com> | 2014-12-09 14:37:17 +0100 |
commit | 1ee79d87c49fa9e8398b397ed08c0fd92d52bb11 (patch) | |
tree | a9434ad72de9d50d5c0198a70abbef0576d76ac1 /tests/auto | |
parent | 262797714693d7332174255c67e59da391e64a0e (diff) |
Introduce a setting for Wizard default height / width
Setting WizardDefaultWidth / WizardDefaultHeight in config.xml
allows to set a default width / height for the wizard window.
Minimal size will still be set by the size of the contents.
Depending on style, watermark and banner image may override
this setting.
Default behaviour is unchanged.
Task-number: QTIFW-47
Change-Id: I5695d501b2b31ea87ea63e95de454657cfebede6
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/installer/settings/data/full_config.xml | 2 | ||||
-rw-r--r-- | tests/auto/installer/settings/tst_settings.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/installer/settings/data/full_config.xml b/tests/auto/installer/settings/data/full_config.xml index 51b63315a..52e18c904 100644 --- a/tests/auto/installer/settings/data/full_config.xml +++ b/tests/auto/installer/settings/data/full_config.xml @@ -21,6 +21,8 @@ File should contain all elements we allow in a config.xml <Banner>banner</Banner> <Background>background</Background> <WizardStyle>Modern</WizardStyle> + <WizardDefaultWidth>800</WizardDefaultWidth> + <WizardDefaultHeight>600</WizardDefaultHeight> <StartMenuDir>Super App</StartMenuDir> diff --git a/tests/auto/installer/settings/tst_settings.cpp b/tests/auto/installer/settings/tst_settings.cpp index 5f806763a..24095c966 100644 --- a/tests/auto/installer/settings/tst_settings.cpp +++ b/tests/auto/installer/settings/tst_settings.cpp @@ -57,6 +57,8 @@ void tst_Settings::loadTutorialConfig() QCOMPARE(settings.systemIconSuffix(), QLatin1String(".png")); #endif QCOMPARE(settings.wizardStyle(), QString()); + QCOMPARE(settings.wizardDefaultWidth(), 0); + QCOMPARE(settings.wizardDefaultHeight(), 0); QCOMPARE(settings.titleColor(), QString()); QCOMPARE(settings.runProgram(), QString()); QCOMPARE(settings.runProgramArguments(), QStringList()); |