hlp:新建文件,内容从左下角开始,使用状态机,报警内容在自检和关机时不爆红提示
This commit is contained in:
+5
-2
@@ -36,6 +36,7 @@ class MainWidget : public QWidget
|
||||
public:
|
||||
MainWidget(QWidget* parent = nullptr);
|
||||
~MainWidget();
|
||||
bool m_warn = false;
|
||||
|
||||
void bindSysPara(SysPara *SysPara);
|
||||
|
||||
@@ -85,7 +86,7 @@ public:
|
||||
|
||||
void generateCharRamDataV2();
|
||||
|
||||
void setRunStatus(QString str, bool enbRoll = true);
|
||||
void setRunStatus(QString str, bool enbRoll = true, bool warn = false);
|
||||
void enablePrintButton(bool);
|
||||
int getCurrPrintStatus();
|
||||
|
||||
@@ -175,9 +176,11 @@ private:
|
||||
qint64 m_lastClickTime = 0;
|
||||
const int m_doubleClickDistance = 25; // 自定义距离阈值(像素)
|
||||
const int m_doubleClickInterval = 500; // 自定义时间阈值(毫秒)
|
||||
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void handleDoubleClick(QMouseEvent *event);
|
||||
bool isInExpandedRect(QWidget* widget, const QPoint& globalPos, int expandSize);
|
||||
bool checkTriggerMode();
|
||||
//--------------------
|
||||
public slots:
|
||||
void powerOffConfirmed();
|
||||
@@ -245,4 +248,4 @@ signals:
|
||||
void newFileAcquired();
|
||||
};
|
||||
|
||||
#endif // MainWidget_H
|
||||
#endif // MainWidget_H
|
||||
|
||||
Reference in New Issue
Block a user