Workaround bug in QT_QUICK_CONTROLS_1_STYLE usage in Qt

Authored by fvogt on Aug 18 2017, 9:20 AM.

Description

Workaround bug in QT_QUICK_CONTROLS_1_STYLE usage in Qt

Summary:
Setting the style manually is necessary as there is only a variable that
applies to both quick controls versions, so it needs to be overwritten to not
cause a warning on every application start. The current way of setting it directly
got defeated by ugly bugs in QQuickControlSettings1, which need to be worked around.
See the added comments for an explanation.

Test Plan:
Set the variables manually, now works consistently everywhere without showing warnings.
For some reason I feel much dirtier now.

Reviewers: Plasma, mart

Reviewed By: Plasma, mart

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D7381

Details

Committed
fvogtAug 18 2017, 9:33 AM
Reviewer
Plasma
Differential Revision
D7381: Workaround bug in QT_QUICK_CONTROLS_1_STYLE usage in Qt
Parents
R120:30cd11c7e285: [Plasma Windowed] Use setSize instead of setWidth + setHeight
Branches
Unknown
Tags
Unknown