File indexing completed on 2024-05-05 04:02:27
0001 /****************************************************************************** 0002 * KBlocks, a falling blocks game by KDE * 0003 * SPDX-FileCopyrightText: 2010-2021 Julian Helfferich <julian.helfferich@mailbox.org> * 0004 * * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 ******************************************************************************/ 0007 #ifndef MOCKSVGITEM_H 0008 #define MOCKSVGITEM_H 0009 0010 #include "SvgItemInterface.h" 0011 0012 class MockSvgItem : public SvgItemInterface 0013 { 0014 public: 0015 MockSvgItem() = default; 0016 0017 ~MockSvgItem() override = default; 0018 0019 public: 0020 bool updateSelf() override { updateSelfCalled = true; return true; } 0021 void clearCache() override { clearCacheCalled = true; } 0022 void startOpAnim() override {} 0023 void stopOpAnim() override {} 0024 void startPosAnim(QPointF) override {} 0025 void execPosAnim(qreal) override {} 0026 void stopPosAnim() override {} 0027 0028 bool updateSelfCalled = false; 0029 bool clearCacheCalled = false; 0030 }; 0031 0032 #endif //MOCKSVGITEM_H