Browse Source

update

master
zhaohe 1 year ago
parent
commit
80a7bd08ee
  1. 26
      mainwindow.cpp
  2. 4
      mainwindow.h
  3. 14
      mainwindow.ui

26
mainwindow.cpp

@ -776,3 +776,29 @@ void MainWindow::on_setEcgInNormalMode_clicked() {
processException(exception);
}
}
void MainWindow::on_setEcgReportDataInRawMode__1_clicked()
{
instructionPreviewClear();
try {
ElectrocardiographTester::ins()->set_ecg_report_data_in_raw_mode(1);
ishow("set_ecg_report_data_in_raw_mode(1) success");
} catch (zexception &exception) {
processException(exception);
}
}
void MainWindow::on_setEcgReportDataInRawMode__0_clicked()
{
instructionPreviewClear();
try {
ElectrocardiographTester::ins()->set_ecg_report_data_in_raw_mode(0);
ishow("set_ecg_report_data_in_raw_mode(0) success");
} catch (zexception &exception) {
processException(exception);
}
}

4
mainwindow.h

@ -132,6 +132,10 @@ class MainWindow : public QMainWindow {
void on_setEcgInNormalMode_clicked();
void on_setEcgReportDataInRawMode__1_clicked();
void on_setEcgReportDataInRawMode__0_clicked();
signals:
void doinui_signal(QFunction);

14
mainwindow.ui

@ -903,7 +903,7 @@ p, li { white-space: pre-wrap; }
</size>
</property>
<property name="currentIndex">
<number>2</number>
<number>0</number>
</property>
<widget class="QWidget" name="buttonTabWidgetPage1">
<attribute name="title">
@ -1006,7 +1006,7 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="7" column="0">
<widget class="QPushButton" name="setEcgInTestMode_2">
<widget class="QPushButton" name="setEcgReportDataInRawMode__1">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>1</horstretch>
@ -1020,7 +1020,7 @@ p, li { white-space: pre-wrap; }
</size>
</property>
<property name="text">
<string>失能ECG上报数据算法</string>
<string>使能ECG原始数据上报</string>
</property>
</widget>
</item>
@ -1063,7 +1063,7 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="7" column="1">
<widget class="QPushButton" name="setEcgInTestMode_3">
<widget class="QPushButton" name="setEcgReportDataInRawMode__0">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>1</horstretch>
@ -1077,7 +1077,7 @@ p, li { white-space: pre-wrap; }
</size>
</property>
<property name="text">
<string>使能ECG上报数据算法</string>
<string>失能ECG原始数据上报</string>
</property>
</widget>
</item>
@ -1096,7 +1096,7 @@ p, li { white-space: pre-wrap; }
</size>
</property>
<property name="text">
<string>测试-设置ECG为测试模式</string>
<string>设置ECG为测试模式</string>
</property>
</widget>
</item>
@ -1115,7 +1115,7 @@ p, li { white-space: pre-wrap; }
</size>
</property>
<property name="text">
<string>测试-设置ECG为正常模式</string>
<string>设置ECG为正常模式</string>
</property>
</widget>
</item>

Loading…
Cancel
Save