summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/settings.cpp
diff options
context:
space:
mode:
authorNiels Weber <niels.weber@digia.com>2014-12-02 12:34:23 +0100
committerNiels Weber <niels.weber@theqtcompany.com>2014-12-09 14:37:17 +0100
commit1ee79d87c49fa9e8398b397ed08c0fd92d52bb11 (patch)
treea9434ad72de9d50d5c0198a70abbef0576d76ac1 /src/libs/installer/settings.cpp
parent262797714693d7332174255c67e59da391e64a0e (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 'src/libs/installer/settings.cpp')
-rw-r--r--src/libs/installer/settings.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/installer/settings.cpp b/src/libs/installer/settings.cpp
index 4ff66a7da..c00cfd794 100644
--- a/src/libs/installer/settings.cpp
+++ b/src/libs/installer/settings.cpp
@@ -251,6 +251,7 @@ Settings Settings::fromFileAndPrefix(const QString &path, const QString &prefix,
<< scRunProgram << scRunProgramArguments << scRunProgramDescription
<< scDependsOnLocalInstallerBinary
<< scAllowSpaceInPath << scAllowNonAsciiCharacters << scWizardStyle << scTitleColor
+ << scWizardDefaultWidth << scWizardDefaultHeight
<< scRepositorySettingsPageVisible << scTargetConfigurationFile
<< scRemoteRepositories << scTranslations;
@@ -370,6 +371,16 @@ QString Settings::titleColor() const
return d->m_data.value(scTitleColor).toString();
}
+int Settings::wizardDefaultWidth() const
+{
+ return d->m_data.value(scWizardDefaultWidth).toInt();
+}
+
+int Settings::wizardDefaultHeight() const
+{
+ return d->m_data.value(scWizardDefaultHeight).toInt();
+}
+
QString Settings::installerApplicationIcon() const
{
return d->absolutePathFromKey(scInstallerApplicationIcon, systemIconSuffix());