diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-10-16 12:04:15 +0200 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@qt.io> | 2020-11-11 16:51:44 +0100 |
commit | 97cb0ef9c45ceaf89189540dd740382ce32e2618 (patch) | |
tree | c497fe5a4ea90cce4cd1cf779fd17c588679669d /tests | |
parent | e2b87dda1fe4e8e22ea4231971085f4cd4852843 (diff) |
Register native styles under 2.0 in addition to 6.0
Since we changed the logic that decides the default style, users with
QML that imports 2.x versions of QtQuick.Controls will get errors if
the default style that is chosen is a native style:
qrc:/main.qml:53:1: module "QtQuick.Controls.macOS" version 2.15 is not installed
qrc:/main.qml: Failed to load dependencies for module "QtQuick.Controls" version 2.15
We use PAST_MAJOR_VERSIONS to register the module for 2.x, and not
just 6.0, and register the types of those styles under version 2.0
in addition to 6.0. This should not cause any problems for existing
QML code.
Fixes: QTBUG-87658
Change-Id: I976078c0aea3fbebe4e04f5ba4d8056c0ca7a0e6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions