diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-03-31 14:40:20 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-04-02 16:23:26 +0000 |
commit | 6ee2028354f06afca42f2cb33fe53ce323de1b95 (patch) | |
tree | 2710379dccb7cb63540bf075993ff7e2ac516650 /src/quick/util/qquickanimatorjob.cpp | |
parent | e7dae6e672b675a9cdab58bcef4ac22bc494c256 (diff) |
Improve debug formatting of QAbstractAnimationJob and related classes.
- Output the state.
- Add output to QQuickAnimatorJob.
- Add a private export to the debug operator for use by
QQuickAnimatorProxyJob to format its contained job.
Task-number: QTBUG-45220
Change-Id: Ic64bb5d949864de1c4fb322d53acc3e253977e5d
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
Diffstat (limited to 'src/quick/util/qquickanimatorjob.cpp')
-rw-r--r-- | src/quick/util/qquickanimatorjob.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/quick/util/qquickanimatorjob.cpp b/src/quick/util/qquickanimatorjob.cpp index dbd1a662df..8b617e5e3f 100644 --- a/src/quick/util/qquickanimatorjob.cpp +++ b/src/quick/util/qquickanimatorjob.cpp @@ -42,6 +42,7 @@ #include <private/qanimationgroupjob_p.h> #include <qcoreapplication.h> +#include <qdebug.h> QT_BEGIN_NAMESPACE @@ -133,6 +134,13 @@ void QQuickAnimatorProxyJob::updateState(QAbstractAnimationJob::State newState, } } +void QQuickAnimatorProxyJob::debugAnimation(QDebug d) const +{ + d << "QuickAnimatorProxyJob("<< hex << (void *) this << dec + << "state:" << state() << "duration:" << duration() + << "proxying: (" << job() << ')'; +} + void QQuickAnimatorProxyJob::windowChanged(QQuickWindow *window) { setWindow(window); @@ -215,6 +223,13 @@ QQuickAnimatorJob::QQuickAnimatorJob() m_isRenderThreadJob = true; } +void QQuickAnimatorJob::debugAnimation(QDebug d) const +{ + d << "QuickAnimatorJob(" << hex << (void *) this << dec + << ") state:" << state() << "duration:" << duration() + << "target:" << m_target << "value:" << m_value; +} + qreal QQuickAnimatorJob::value() const { qreal v; |