diff options
author | Thorbjørn Lund Martsum <tmartsum@gmail.com> | 2019-08-16 08:24:22 +0200 |
---|---|---|
committer | Thorbjørn Lund Martsum <tmartsum@gmail.com> | 2019-09-13 15:30:49 +0200 |
commit | b68ade8282274c2d4ee1e4f861d34ea0655c1eab (patch) | |
tree | 4595378de584805197bb76eb5691e9e647d5b021 /examples/widgets/tools/customcompleter/mainwindow.h | |
parent | d9919f1852441d591b12bf50da6a3b6b5fa53087 (diff) |
QStyleSheet: Resolve the rule font before it is used
The styleSheet font cannot know about e.g dpi or other settings
(e.g from the current screen) so we should resolve font settings
from the original font. This patch ensures that the stylesheet
font is resolved with a relevant font before it is used.
This likely fixes many dual/triple screen issues.
[ChangeLog][QtWidgets][QStyle] Style sheets now only
use the part of the stylesheet font that it knows
about. The remaining will be resolved/inherited from
the context.
Fixes: QTBUG-77502
Change-Id: I3b1f821e1be9707506a6c1d1e93f76eeac4007e0
Reviewed-by: Morten Kristensen <me@mortens.dev>
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'examples/widgets/tools/customcompleter/mainwindow.h')
0 files changed, 0 insertions, 0 deletions