| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
There is now a plugin in the Qt Lottie repository which VectorImage
will use if the assumeTrustedSource property is set to true.
This needs to also be documented in VectorImage.
Pick-to: 6.10
Change-Id: Id5f07842631a0794fef47bb29487cb08f398faa1
Reviewed-by: Eirik Aavitsland <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will allow us to load Lottie files by creating a plugin in
the Lottie module. The plugins are currently only queried if
the opt-in "trusted content" flag is set.
Pick-to: 6.10
Fixes: QTBUG-135266
Change-Id: I4901636e41f3bb73a78cbceb312f6cad9e96c5d2
Reviewed-by: Eirik Aavitsland <[email protected]>
Reviewed-by: Hatem ElKharashy <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The qml generator would create a child component to group the
animation properties. This now causes qml engine failures if there are
multiple VectorImage items.
Work around by dropping the grouping component and just place the
animation properties in the top level item directly if the QML
generator is going to be used from VectorImage.
Change-Id: I77ac9029093f3259aef9357c056da42f09974763
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
Reviewed-by: Eirik Aavitsland <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Certain checks and restrictions are in effect by default on
the SVG parser. This introduces a way for disabling these
in the VectorImage, when it is used with trusted content.
Change-Id: I7a11c7276a01ae9eb128ed0afb2a04c38fe90c7a
Reviewed-by: Eirik Aavitsland <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A lot of animations will just be a single time line that you
is intended to be controlled from the outside (and formats like Lottie
does not support anything beyond this), so we need some API to
match the general Animation API so that you can restart, pause/resume
and change the number of times an animation loops.
We do this by adding a group of properties called "animations" that
can be used to control all the animations in the document at once.
We generate this both in the QML file from *toqml and also in
VectorImage itself.
[ChangeLog][QtQuickVectorImage] Added some API to the VectorImage
for looping, stopping, pausing and resuming animations.
Fixes: QTBUG-135265
Change-Id: Id372c00110d165d02db357ce77eb1dec504cffb8
Reviewed-by: Eirik Aavitsland <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We were spending time doing the same implementation twice,
since the item generator and QML generator were two separate
code paths. We also risked having bugs which only occurred in
one of the code paths.
This may at some point be a valid optimization, but during
development it is premature. The parsing of the QML is a
one-time cost when loading the SVG and this is an acceptable
cost for now. Optimizations can come later when we have
a more stable state.
Fixes: QTBUG-135269
Change-Id: I649a89d7a2e18ef1c0213658dc106f2cc1194841
Reviewed-by: Eirik Aavitsland <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
...in preparation of trimming down includes in QQuickItem.
As a drive-by, remove the superfluous qqml.h include from
quick/items/qquicktextutil_p.h.
Change-Id: I7ee0f459bcbfdfe07314d1f63433aaa8639870ac
Reviewed-by: Richard Moe Gustavsen <[email protected]>
Reviewed-by: Ulf Hermann <[email protected]>
|
|
|
|
|
|
|
| |
Pick-to: 6.8
Change-Id: I1d920751dbb48944678898245a059360efcaca55
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
Reviewed-by: Topi Reiniö <[email protected]>
|
|
|
|
|
|
|
|
| |
VectorImage QML doc was not showing that it inherits from Item
Pick-to: 6.8
Change-Id: Ifa4b57fa567683342fc8e7e1221b55cec4b84cf7
Reviewed-by: Eirik Aavitsland <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Either make them static or declare them in a header. We want them to be
static wherever possible, in order to reduce the number of visible
symbols. If they can't be static, however, they should at least be
declared in only one place.
Task-number: QTBUG-67692
Change-Id: Id75663fcf73244a93ab50c3279e253eede1f475a
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
Reviewed-by: Volker Hilsheimer <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
The VectorImage was missing a way to set the renderer type of
Qt Quick Shapes it uses. Came up during API review/usability
testing.
Pick-to: 6.8
Change-Id: Id0f090c9555838f53c8f0fa4b644d80a9ae924d6
Reviewed-by: Eirik Aavitsland <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the user sets a size on the VectorImage, then we should adapt
the contents to this, like we do with Image and Shape. This
also introduces a fillMode property that matches the ones in
Image and Shape and allows you to specify how to handle it
when the requested size differs from the implicit size.
Fixes: QTBUG-122696
Change-Id: Ic68e1acd0537d97216d5a4b5df6adeaa15e8e258
Reviewed-by: Hatem ElKharashy <[email protected]>
Reviewed-by: Eirik Aavitsland <[email protected]>
|
|
|
|
|
|
|
|
|
| |
This adds proper documentation for svgtoqml and essentially takes
it out of tech preview.
Fixes: QTBUG-122695
Change-Id: I2b72e9189a9aabb65d9dc7162ac5a643695ad7a8
Reviewed-by: Eirik Aavitsland <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a small additional item in the Qt Quick tool box and the fact
that it is a separate import is mainly for API reasons. It should match
the license of the rest of Qt Quick to avoid confusion.
Fixes: QTBUG-124194
Change-Id: I7e4fcf638b9c84ffb2fe21d3a9fad0243123a939
Reviewed-by: Maurice Kalinowski <[email protected]>
Reviewed-by: Eirik Aavitsland <[email protected]>
Reviewed-by: Kai Köhne <[email protected]>
|
|
The VectorImage item will take a vector graphics file like an SVG, and
generates a QtQuick representation out of it at runtime. Initially,
it will act as the counterpart of svgtoqml tool, and later on it might
include other formats than SVG.
Task-number: QTBUG-120987
Change-Id: Ie85c5a6309004202b449f7adc6a71d2a772df228
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
|