Explorar o código

Update MainWindow.cpp

huihui %!s(int64=5) %!d(string=hai) anos
pai
achega
df9a9d0265
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/MainWindow.cpp

+ 2 - 2
src/MainWindow.cpp

@@ -167,7 +167,7 @@ void MainWindow::slotTimerTimeOut()
 			curTime = QString("%1:%2:%3").arg(hStr).arg(mStr.right(2)).arg(sStr.right(2));
 		}
 
-		ui.label_currenttime->setText(curTime);
+        ui->label_currenttime->setText(curTime);
     }
     else if (QObject::sender() == mTimer_CheckControlWidget)
     {
@@ -276,7 +276,7 @@ void MainWindow::onTotalTimeChanged(const int64_t &uSec)
 			totalTime = QString("%1:%2:%3").arg(hStr).arg(mStr.right(2)).arg(sStr.right(2));
 		}
 
-		ui.label_totaltime->setText(totalTime);
+        ui->label_totaltime->setText(totalTime);
     });
 }