改进计数器编辑、预览状态和行为;修复移除source属性的影响、修改自检期间粘度计每次工作时间、更新翻译
This commit is contained in:
+9
-8
@@ -33,6 +33,7 @@
|
||||
#include "scene/piccodeitem.h"
|
||||
#include "scene/PicCounterItem.h"
|
||||
#include <QElapsedTimer>
|
||||
#include <QStringList>
|
||||
#include <QScroller>
|
||||
#include <QFontMetrics>
|
||||
#include <QPainter>
|
||||
@@ -946,12 +947,12 @@ void MainWidget::updateTotalCnt(int en)
|
||||
void MainWidget::on_m_StartBtn_clicked()
|
||||
{
|
||||
if(sysPara){
|
||||
test_flag = 0;
|
||||
test_flag = 0;
|
||||
|
||||
if (!checkTriggerMode()) return;
|
||||
|
||||
// 打印状态交给状态机修改
|
||||
sysPara->status.isPrinting=false;
|
||||
// 打印状态交给状态机修改
|
||||
sysPara->status.isPrinting=false;
|
||||
// auto mgr = PrinterStateManager::instance();
|
||||
#if !defined(FPGA_TEST) && !defined(QT_DEBUG)
|
||||
// if (mgr && mgr->canStopPrint()) {
|
||||
@@ -991,7 +992,7 @@ void MainWidget::on_m_StartBtn_clicked()
|
||||
|
||||
// 高亮切换
|
||||
changeHighLight(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MainWidget::on_m_StopBtn_clicked()
|
||||
@@ -2358,7 +2359,7 @@ bool MainWidget::updatePhaseIndicatorLight(){
|
||||
sysPara->status.phaseErrorCnt = 0;
|
||||
}
|
||||
else {
|
||||
if(sysPara->status.phaseErrorCnt < 10)
|
||||
if(sysPara->status.phaseErrorCnt < 200)
|
||||
sysPara->status.phaseErrorCnt ++ ;
|
||||
else {
|
||||
if(!sysPara->status.lastPhaseFault){
|
||||
@@ -2524,15 +2525,15 @@ bool MainWidget::checkTriggerMode()
|
||||
#ifndef QT_DEBUG
|
||||
if(!SIMULATE_PRINTING_MODE){
|
||||
if (!sysPara->status.reclainTankReachEnd) {
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
if((sysPara->status.statWarn & WARN_STATUS_HDINT)){
|
||||
QMessageBox::information(this,tr("错误"),tr("喷头盖未关,请先关喷头盖!"));
|
||||
return ;
|
||||
return false;
|
||||
}
|
||||
if((sysPara->status.statWarn & WARN_STATUS_INK_SWINT)){
|
||||
QMessageBox::information(this,tr("错误"),tr("墨线未开,请先开墨线开关!"));
|
||||
return ;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user