2026年6月25日 暂存
This commit is contained in:
+14
-1
@@ -113,7 +113,8 @@ public:
|
||||
|
||||
AlarmStatus alarmStatus;
|
||||
|
||||
bool eventFilter(QObject *watched, QEvent *event) override;
|
||||
// void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||
|
||||
private:
|
||||
// UI对象
|
||||
Ui::MainWidget ui;
|
||||
@@ -148,6 +149,16 @@ private:
|
||||
int dlgMyWarringShowDlyCnt;
|
||||
|
||||
SetNumDlg* m_setNumDlg = nullptr;
|
||||
|
||||
//------自定义双击------
|
||||
QPoint m_lastClickPos;
|
||||
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);
|
||||
//--------------------
|
||||
public slots:
|
||||
void powerOffConfirmed();
|
||||
void on_m_StartBtn_clicked();
|
||||
@@ -191,6 +202,8 @@ signals:
|
||||
|
||||
void repeatInitedPid();
|
||||
void clearPressureFault();
|
||||
|
||||
void newFileAcquired();
|
||||
};
|
||||
|
||||
#endif // MainWidget_H
|
||||
|
||||
Reference in New Issue
Block a user