feat:初始化wuhan_QT界面代码
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#ifndef ALARMBANNER_H
|
||||
#define ALARMBANNER_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QLabel;
|
||||
|
||||
// ===================== 告警横幅 =====================
|
||||
// 整行红色文字,500ms 闪烁;showAlarm 显示,clear 隐藏
|
||||
class AlarmBanner : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AlarmBanner(QWidget* parent = nullptr);
|
||||
|
||||
void showAlarm(const QString& text);
|
||||
void clear();
|
||||
|
||||
private:
|
||||
QLabel* m_label = nullptr;
|
||||
};
|
||||
|
||||
#endif // ALARMBANNER_H
|
||||
Reference in New Issue
Block a user