diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-10-01 12:33:10 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-10-01 12:33:10 +0200 |
commit | 665fd2e47bed500ee5395ea5b9a6c57b4940ceed (patch) | |
tree | 45b80cc0210540aa4e7c69a4da45911b317be231 /src | |
parent | 03b666a967fb7501248e9f40a5b187ec3a16c453 (diff) | |
parent | b6b7fa3596d1957237d327a37941c6eb3ff8d6b3 (diff) |
Merge remote-tracking branch 'origin/5.13' into 5.14v5.14.0-beta2v5.14.0-beta1
Conflicts:
.qmake.conf
Change-Id: Ide3a207fa33936e215819eb49601e764115a17c4
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/doc/qtlottieanimation.qdocconf | 3 | ||||
-rw-r--r-- | src/imports/doc/src/qtlottie.qdoc | 6 | ||||
-rw-r--r-- | src/imports/imports.pro | 2 | ||||
-rw-r--r-- | src/imports/lottieanimation.cpp | 2 | ||||
-rw-r--r-- | src/imports/plugins.qmltypes | 101 | ||||
-rw-r--r-- | src/src.pro | 4 |
6 files changed, 116 insertions, 2 deletions
diff --git a/src/imports/doc/qtlottieanimation.qdocconf b/src/imports/doc/qtlottieanimation.qdocconf index eb5ca6f..138363d 100644 --- a/src/imports/doc/qtlottieanimation.qdocconf +++ b/src/imports/doc/qtlottieanimation.qdocconf @@ -1,7 +1,10 @@ include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf) +include($QT_INSTALL_DOCS/config/exampleurl-qtlottie.qdocconf) + version = $QT_VERSION project = QtLottieAnimation description = Bodymovin Player for Qt +buildversion = Qt Lottie Animation | Commercial or GPLv3 headerdirs += ../.. diff --git a/src/imports/doc/src/qtlottie.qdoc b/src/imports/doc/src/qtlottie.qdoc index c5bda6c..08fb0d8 100644 --- a/src/imports/doc/src/qtlottie.qdoc +++ b/src/imports/doc/src/qtlottie.qdoc @@ -51,6 +51,12 @@ See the \l {Bodymovin Source}{GitHub page for Bodymovin} for instructions on how to download and install the plugin for Adobe After Effects. + \section1 Licenses + + Qt Lottie Animation is available under commercial licenses from \l{The Qt Company}. + In addition, it is available under the \l{GNU General Public License, version 3}. + See \l{Qt Licensing} for further details. + \section1 Reference \list \li \l {Qt Lottie Animation QML Types}{QML Types} diff --git a/src/imports/imports.pro b/src/imports/imports.pro index a2fb5ba..6297272 100644 --- a/src/imports/imports.pro +++ b/src/imports/imports.pro @@ -1,7 +1,7 @@ CXX_MODULE = qtlottie TARGET = lottieqtplugin TARGETPATH = Qt/labs/lottieqt -IMPORT_VERSION = 1.$$QT_MINOR_VERSION +IMPORT_VERSION = 1.0 QT += qml quick gui-private bodymovin-private diff --git a/src/imports/lottieanimation.cpp b/src/imports/lottieanimation.cpp index deeecc1..6d72151 100644 --- a/src/imports/lottieanimation.cpp +++ b/src/imports/lottieanimation.cpp @@ -644,7 +644,7 @@ void LottieAnimation::renderNextFrame() qCDebug(lcLottieQtBodymovinRender) << static_cast<void*>(this) << "Frame cache was empty for frame" << m_currentFrame; m_waitForFrameConn = connect(m_frameRenderThread, &BatchRenderer::frameReady, - this, [=](LottieAnimation *target, int frameNumber) { + this, [this](LottieAnimation *target, int frameNumber) { if (target != this) return; qCDebug(lcLottieQtBodymovinRender) << static_cast<void*>(this) diff --git a/src/imports/plugins.qmltypes b/src/imports/plugins.qmltypes new file mode 100644 index 0000000..d76b82d --- /dev/null +++ b/src/imports/plugins.qmltypes @@ -0,0 +1,101 @@ +import QtQuick.tooling 1.2 + +// This file describes the plugin-supplied types contained in the library. +// It is used for QML tooling purposes only. +// +// This file was auto-generated by: +// 'qmlplugindump -nonrelocatable Qt.labs.lottieqt 1.0' + +Module { + dependencies: ["QtQuick 2.0"] + Component { + name: "BMLiteral" + prototype: "QObject" + exports: ["Qt.labs.lottieqt/BMPropertyType 1.0"] + exportMetaObjectRevisions: [0] + Enum { + name: "PropertyType" + values: { + "RectPosition": 0, + "RectSize": 1, + "RectRoundness": 2 + } + } + } + Component { + name: "LottieAnimation" + defaultProperty: "data" + prototype: "QQuickPaintedItem" + exports: ["Qt.labs.lottieqt/LottieAnimation 1.0"] + exportMetaObjectRevisions: [0] + Enum { + name: "Status" + values: { + "Null": 0, + "Loading": 1, + "Ready": 2, + "Error": 3 + } + } + Enum { + name: "Quality" + values: { + "LowQuality": 0, + "MediumQuality": 1, + "HighQuality": 2 + } + } + Enum { + name: "Direction" + values: { + "Forward": 1, + "Reverse": 2 + } + } + Enum { + name: "LoopCount" + values: { + "Infinite": -1 + } + } + Property { name: "source"; type: "string" } + Property { name: "frameRate"; type: "int" } + Property { name: "startFrame"; type: "int"; isReadonly: true } + Property { name: "endFrame"; type: "int"; isReadonly: true } + Property { name: "status"; type: "Status" } + Property { name: "quality"; type: "Quality" } + Property { name: "autoPlay"; type: "bool" } + Property { name: "loops"; type: "int" } + Property { name: "direction"; type: "Direction" } + Signal { name: "finished" } + Method { name: "start" } + Method { name: "play" } + Method { name: "pause" } + Method { name: "togglePause" } + Method { name: "stop" } + Method { + name: "gotoAndPlay" + Parameter { name: "frame"; type: "int" } + } + Method { + name: "gotoAndPlay" + type: "bool" + Parameter { name: "frameMarker"; type: "string" } + } + Method { + name: "gotoAndStop" + Parameter { name: "frame"; type: "int" } + } + Method { + name: "gotoAndStop" + type: "bool" + Parameter { name: "frameMarker"; type: "string" } + } + Method { + name: "getDuration" + type: "double" + Parameter { name: "inFrames"; type: "bool" } + } + Method { name: "getDuration"; type: "double" } + } +} diff --git a/src/src.pro b/src/src.pro index 9a828d3..29e81ac 100644 --- a/src/src.pro +++ b/src/src.pro @@ -1,4 +1,8 @@ TEMPLATE = subdirs + +!qtHaveModule(gui): \ + return() + CONFIG += ordered SUBDIRS += \ bodymovin \ |