diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-08-20 14:38:47 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-08-25 11:03:56 +0000 |
commit | 54480f3fb6312205170cff3a16d84d53a2da143f (patch) | |
tree | dff0329fa408e33303a97c2eda85f1928dacf29a /examples | |
parent | de488d3ccdb98c2820176192a78c00f08ccfd83c (diff) |
Init QQuickStyle's base URL to avoid creating temp QQmlEngine
Initialize the base URL from QtQuickControls2Plugin::registerTypes()
to avoid creating an unnecessary temporary instance of QQmlEngine. It
was used to list all known import paths, which were scanned for the
requested style folder. Now that we pass the base URL, the built-in
styles (a name without path to the style) can be looked up straight
from the base path.
Change-Id: I0d68d4c5bb90a4ab89660b5ce97f6433aeefc1ff
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions