mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-15 13:22:04 +08:00
没有区分 Deepin 和 UOS,在 Deepin 上对开发者模式状态文件进行判断,可能造成错误 Log: 添加判断区分 Deepin 和 UOS,仅在 UOS 判断开发者模式状态文件;优化 main 函数长度,将环境变量设置和 config.ini 读写放入 Utils 独立静态函数中调用;修复从托盘打开主界面时透明度动画不流畅的问题;优化关闭窗口动画代码,与打开窗口动画代码合并;修复主窗口关闭时,从托盘打开关于对话框后,调起主窗口会遮挡关于对话框的问题
17 lines
376 B
C++
17 lines
376 B
C++
#ifndef WIDGETANIMATION_H
|
|
#define WIDGETANIMATION_H
|
|
|
|
#include <QWidget>
|
|
#include <QPropertyAnimation>
|
|
|
|
class WidgetAnimation
|
|
{
|
|
public:
|
|
static void widgetShake(QWidget *pWidget, int nRange);
|
|
|
|
static QPropertyAnimation* createWidgetOpacity(QWidget *pWidget, bool isAppear);
|
|
static void widgetOpacity(QWidget *pWidget, bool isAppear);
|
|
};
|
|
|
|
#endif // WIDGETANIMATION_H
|