2021-11-17 13:23:38 +08:00
|
|
|
#ifndef GLOBALSIGNALS_H
|
|
|
|
#define GLOBALSIGNALS_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class GlobalSignals : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
GlobalSignals() = default;
|
|
|
|
~GlobalSignals() = default;
|
|
|
|
|
|
|
|
signals:
|
2022-02-21 11:04:44 +08:00
|
|
|
// 系统忙碌信号
|
2021-11-17 13:23:38 +08:00
|
|
|
void busy(bool isBusy);
|
2022-02-21 11:04:44 +08:00
|
|
|
|
2022-03-02 11:24:54 +08:00
|
|
|
// 主题图标变更
|
|
|
|
void themeIconChanged();
|
|
|
|
|
2022-03-08 09:56:06 +08:00
|
|
|
// 主题背景变化信号
|
|
|
|
void styleNameChanged(bool isDark);
|
|
|
|
|
2022-02-21 11:04:44 +08:00
|
|
|
// 窗口或控件的背景色发生了变化。主要用于通知主题监控模块,用于修正控件颜色,以简化用户自定义背景色跟随主题变化的代码
|
|
|
|
void backgroundColorChanged();
|
2022-03-08 09:56:06 +08:00
|
|
|
|
|
|
|
// 字体(家族或大小)变化
|
2022-03-18 14:45:23 +08:00
|
|
|
void fontChanged(int fontSize);
|
2022-06-27 11:19:34 +08:00
|
|
|
|
|
|
|
// 强调色变化
|
|
|
|
void themeColorChanged();
|
2022-10-08 13:58:39 +08:00
|
|
|
|
|
|
|
// 控件宽度发生变化
|
|
|
|
void widthChanged();
|
2021-11-17 13:23:38 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GLOBALSIGNALS_H
|