/* * Copyright (C) 2024 Artinchip Technology Co. Ltd * * SPDX-License-Identifier: Apache-2.0 * * Author: artinchip */ #ifndef AICANIMAIMAGEVIEW_H #define AICANIMAIMAGEVIEW_H #include #include #include #include #include #include #include #include class AiCAnimaImageView : public QWidget { public: AiCAnimaImageView(QSize size, QWidget *parent = NULL); ~AiCAnimaImageView(); protected: virtual void mousePressEvent(QMouseEvent *event); virtual void mouseReleaseEvent(QMouseEvent *event); private: void initView(int width, int height); void startAnimation(); int randomValue(int max); private: int ANIMATION_ITEMS; int ANIMATION_DURATIONS; private: QList mLabelList; QList mAnimList; QList mPointList; }; #endif // AICANIMAIMAGEVIEW_H