diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-04-07 16:44:06 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-04-12 18:37:32 +0000 |
commit | 7b204be06203df2df3c98b7aff9b831aa9f8c59a (patch) | |
tree | 05a2b5a1acccb63f619183a59fbbe19706a4167e /tests | |
parent | 7fccf4f96efab3daaeef7fceceaeea776b50ff0a (diff) |
Use using namespace declaration to animation clip unit test
Reduces the noise.
Change-Id: Icb7eea31b140c4f5380b99ba67f0b9f5519faab6
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/animation/animationclip/tst_animationclip.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/auto/animation/animationclip/tst_animationclip.cpp b/tests/auto/animation/animationclip/tst_animationclip.cpp index 96a004804..61c55d36e 100644 --- a/tests/auto/animation/animationclip/tst_animationclip.cpp +++ b/tests/auto/animation/animationclip/tst_animationclip.cpp @@ -37,6 +37,8 @@ #include <qbackendnodetester.h> #include <testpostmanarbiter.h> +using namespace Qt3DAnimation::Animation; + class tst_AnimationClip : public Qt3DCore::QBackendNodeTester { Q_OBJECT @@ -45,8 +47,8 @@ private Q_SLOTS: void checkPeerPropertyMirroring() { // GIVEN - Qt3DAnimation::Animation::AnimationClip backendClip; - Qt3DAnimation::Animation::Handler handler; + AnimationClip backendClip; + Handler handler; backendClip.setHandler(&handler); Qt3DAnimation::QAnimationClipLoader clip; @@ -64,8 +66,8 @@ private Q_SLOTS: void checkInitialAndCleanedUpState() { // GIVEN - Qt3DAnimation::Animation::AnimationClip backendClip; - Qt3DAnimation::Animation::Handler handler; + AnimationClip backendClip; + Handler handler; backendClip.setHandler(&handler); // THEN @@ -94,8 +96,8 @@ private Q_SLOTS: void checkPropertyChanges() { // GIVEN - Qt3DAnimation::Animation::AnimationClip backendClip; - Qt3DAnimation::Animation::Handler handler; + AnimationClip backendClip; + Handler handler; backendClip.setHandler(&handler); backendClip.setDataType(Qt3DAnimation::Animation::AnimationClip::File); Qt3DCore::QPropertyUpdatedChangePtr updateChange; @@ -124,7 +126,7 @@ private Q_SLOTS: { // GIVEN TestArbiter arbiter; - Qt3DAnimation::Animation::AnimationClip backendClip; + AnimationClip backendClip; backendClip.setEnabled(true); Qt3DCore::QBackendNodePrivate::get(&backendClip)->setArbiter(&arbiter); @@ -156,7 +158,7 @@ private Q_SLOTS: { // GIVEN TestArbiter arbiter; - Qt3DAnimation::Animation::AnimationClip backendClip; + AnimationClip backendClip; backendClip.setEnabled(true); Qt3DCore::QBackendNodePrivate::get(&backendClip)->setArbiter(&arbiter); |