修复开机没有墨水也进自检的问题;为状态label添加长文本滚动逻辑
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
#include "DateVarSet.h"
|
||||
#include "CounterVarSet.h"
|
||||
|
||||
#include <QElapsedTimer>
|
||||
|
||||
#include "QBarCode.h"
|
||||
#include "dlgQrCode.h"
|
||||
|
||||
@@ -220,11 +222,14 @@ private slots:
|
||||
|
||||
// 保养警告
|
||||
void slt_warningMaintenance();
|
||||
|
||||
void checkStatusAndStartGearPump();
|
||||
signals:
|
||||
void maintenanceShow();
|
||||
|
||||
void printStatusChanged(bool isPrinting);
|
||||
|
||||
void pipingStatusChanged();
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent* e) override;
|
||||
@@ -255,4 +260,10 @@ private:
|
||||
int m_bufIdx = 0; // pressureAdj 滑动平均写入索引
|
||||
bool m_lastByHand = false; // 上一帧手动控制标志(边沿检测用)
|
||||
bool m_lastReclaimMode = false; // 上一帧回收泵模式(边沿检测用)
|
||||
|
||||
// 去抖(管路/墨水警告清除)——使用 QElapsedTimer 实现连续 2s 无警告判断
|
||||
QElapsedTimer m_pipingClearSince;
|
||||
|
||||
bool gearPumpRunFlag = false;
|
||||
bool gearPumpStartFlag = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user