Explorar o código

修改部分提示信息

guoqiang %!s(int64=2) %!d(string=hai) anos
pai
achega
bb2896237a
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 3 3
      TestService.cpp
  2. 1 1
      ValveTest.pro.user

+ 3 - 3
TestService.cpp

@@ -1277,7 +1277,7 @@ int TestService::make_messagebox(Test_Direction direction, Test_Step step, Ret_V
                 notice_str = "继电器通信失败, 和序终止";
                 ret_btn = m_msgbox.information(NULL, "提示:", notice_str, QMessageBox::Ok,  QMessageBox::Ok);
             }else if(Ret_Excepion == ret_v){
-                notice_str = "持续性压力不上升,请检测是否有漏气或阀门未关";
+                notice_str = "持续性压力不上升,请检测是否有漏气或阀门未关或气源没打开";
                 ret_btn = m_msgbox.information(NULL, "提示:", notice_str, QMessageBox::Ok,  QMessageBox::Ok);
             }
 
@@ -1335,7 +1335,7 @@ void TestService::run()
                         m_tank.get_compartment(m_compartmentid).clear_result();
 
                         if(false == self_checking()){
-                          ret_btn = m_msgbox.information(NULL, "提示:", "通信故障,请终止程序", QMessageBox::Abort, QMessageBox::Abort);
+                          ret_btn = m_msgbox.information(NULL, "提示:", "通信故障,请终止检测", QMessageBox::Abort, QMessageBox::Abort);
                         }else{
                            test_init();
                           ret_btn = m_msgbox.information(NULL, "提示:", "请确认已经打开旋拧阀", QMessageBox::Ok, QMessageBox::Ok);
@@ -1466,7 +1466,7 @@ void TestService::run()
                                     if(calculate_averagepressure() < m_standard.positive_target){
                                         m_step = Test_Step_AddPressure;
                                     }else{
-                                        m_msgbox.information(NULL, "提示:", "即将泄压, 请确认已经关闭油气回收阀", QMessageBox::Ok, QMessageBox::Ok);
+                                        m_msgbox.information(NULL, "提示:", "即将泄压, 请确认已经关闭油气回收阀", QMessageBox::Ok, QMessageBox::Ok);
                                         m_step = Test_Step_reliefPressure; //如果压力还在4.5以上, 可以不调压
                                     }
 

+ 1 - 1
ValveTest.pro.user

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE QtCreatorProject>
-<!-- Written by QtCreator 8.0.0, 2023-05-18T09:19:40. -->
+<!-- Written by QtCreator 8.0.0, 2023-05-19T11:13:32. -->
 <qtcreator>
  <data>
   <variable>EnvironmentId</variable>