FACT++  1.0
void MainWindow::slot_TimeUpdate ( )
privateslot

Definition at line 85 of file MainWindow.cc.

Referenced by MainWindow(), and on_fRateScanBoard2_valueChanged().

86 {
87  // Used toUTC to support also older Qt versions
88  // toTime_t() always returns the datetime converted to UTC
89  // dateTime() unfortunately returns our UTC always as LocalTime
90  QDateTime now = QDateTime::currentDateTime().toUTC();
91  now.setTimeSpec(Qt::LocalTime);
92 
93  if (now.toTime_t()==fUTC->dateTime().toTime_t())
94  return;
95 
96  fUTC->setDateTime(now);
97 }

+ Here is the caller graph for this function: