소스 검색

修改了二氧化碳的单位

chenyuanjie 1 년 전
부모
커밋
fa77e0579a
2개의 변경된 파일과 8개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 1
      Qt/Qt_Test/widget.cpp
  2. 7 7
      Qt/Qt_Test/widget.ui

+ 1 - 1
Qt/Qt_Test/widget.cpp

@@ -148,7 +148,7 @@ void Widget::SetSUM(QString strShow){SetData(ui->label_14,strShow);SetData(ui->l
 
 void Widget::SetT(QString strShow){SetData(ui->label_Temp,strShow);}
 void Widget::SetH(QString strShow){SetData(ui->label_Humidity,strShow+"%");}
-void Widget::SetCO2(QString strShow){SetData(ui->label_CO2,strShow+"%");}
+void Widget::SetCO2(QString strShow){SetData(ui->label_CO2,strShow+"PPM");}
 void Widget::SetStatus(QString strShow){SetData(ui->label_V,strShow);}
 
 void Widget::SetIP(QString strIP)

+ 7 - 7
Qt/Qt_Test/widget.ui

@@ -567,7 +567,7 @@ QLabel
                <widget class="QLabel" name="label_43">
                 <property name="font">
                  <font>
-                  <pointsize>10</pointsize>
+                  <pointsize>9</pointsize>
                  </font>
                 </property>
                 <property name="text">
@@ -579,7 +579,7 @@ QLabel
                <widget class="QLabel" name="label_Temp">
                 <property name="font">
                  <font>
-                  <pointsize>10</pointsize>
+                  <pointsize>9</pointsize>
                  </font>
                 </property>
                 <property name="styleSheet">
@@ -597,7 +597,7 @@ QLabel
                <widget class="QLabel" name="label_44">
                 <property name="font">
                  <font>
-                  <pointsize>10</pointsize>
+                  <pointsize>9</pointsize>
                  </font>
                 </property>
                 <property name="text">
@@ -609,7 +609,7 @@ QLabel
                <widget class="QLabel" name="label_Humidity">
                 <property name="font">
                  <font>
-                  <pointsize>10</pointsize>
+                  <pointsize>9</pointsize>
                  </font>
                 </property>
                 <property name="text">
@@ -637,7 +637,7 @@ QLabel
                <widget class="QLabel" name="label_17">
                 <property name="font">
                  <font>
-                  <pointsize>10</pointsize>
+                  <pointsize>9</pointsize>
                  </font>
                 </property>
                 <property name="text">
@@ -649,11 +649,11 @@ QLabel
                <widget class="QLabel" name="label_CO2">
                 <property name="font">
                  <font>
-                  <pointsize>10</pointsize>
+                  <pointsize>9</pointsize>
                  </font>
                 </property>
                 <property name="text">
-                 <string>0%</string>
+                 <string>0 PPM</string>
                 </property>
                </widget>
               </item>