mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-11 13:52:21 +08:00
31 lines
538 B
C++
31 lines
538 B
C++
|
|
#pragma once
|
|
|
|
#include <QLabel>
|
|
#include <QWidget>
|
|
#include <QHBoxLayout>
|
|
#include <QPropertyAnimation>
|
|
#include <QSequentialAnimationGroup>
|
|
|
|
class SpkMainWindow;
|
|
|
|
namespace SpkUi
|
|
{
|
|
class SpkPopup : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SpkPopup(QWidget *parent, int aMillis = 3000);
|
|
|
|
public slots:
|
|
void Show(QString aText);
|
|
|
|
private:
|
|
QPoint MoveOffset;
|
|
QLabel *mText;
|
|
QHBoxLayout *mBox;
|
|
QPropertyAnimation *mAnimFadeIn, *mAnimFadeOut;
|
|
QSequentialAnimationGroup *mAnim;
|
|
};
|
|
}
|