diff options
author | Slobodan Vrkacevic <slobodan@froglogic.com> | 2016-01-21 15:26:26 +0100 |
---|---|---|
committer | Katja Marttila <katja.marttila@theqtcompany.com> | 2016-02-29 12:22:54 +0000 |
commit | b09fa7168314fd5ed0389eeb264c8dfdd2f97a61 (patch) | |
tree | f234b4388746015c43a124fbd2948d00b51ff4f2 /doc | |
parent | adfdbb45b128fb7fc3d35da61bb6706551b25f01 (diff) |
Allow specifying the installer size in 'em' or 'ex' units
The WizardDefaultWidth and WizardDefaultHeight configuration settings
always expected pixel values. This made the installer look somewhat
awkward on high DPI displays, in which case the ratio between the font
size and the installer window size was such that the fonts looked very
big.
Let's fix this by allowing to specify the width/height of the installer
using units which are defined in terms of the font size, namely 'em'
("The width of the letter M") and 'ex' ("The width of the letter x").
'px' is supported as well and means the same thing as not specifying any
unit at all: the given size is defined in pixels.
We choose to *not* use the font width for 'em' and 'ex' to be consistent
with what the Qt CSS parser does (see src/gui/text/qcssparser.cpp),
which adheres to what the W3C document at
https://www.w3.org/WAI/GL/css2em.htm describes.
Change-Id: Iaeb5a29c79d437ef4b956cb318158181f6289ec9
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/installerfw.qdoc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/installerfw.qdoc b/doc/installerfw.qdoc index 19531b76e..196fbab10 100644 --- a/doc/installerfw.qdoc +++ b/doc/installerfw.qdoc @@ -222,11 +222,13 @@ \row \li WizardDefaultWidth \li Sets the default width of the wizard in pixels. Setting a banner image will - override this. + override this. You can add the \c em or \c ex suffix to the specified value to + use the \e em or \e ex unit, as in a CSS file. \row \li WizardDefaultHeight \li Sets the default height of the wizard in pixels. Setting a watermark image will - override this. + override this. You can add the \c em or \c ex suffix to the specified value to + use the \e em or \e ex unit, as in a CSS file. \row \li TitleColor \li Set the color of the titles and subtitles (takes an HTML color code, |