- Timestamp:
- Mar 1, 2022 1:03:46 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
-
manager/UIVirtualMachineItemLocal.cpp (modified) (1 diff)
-
snapshots/UISnapshotPane.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.cpp
r93115 r94006 75 75 CSnapshot comSnapshot = m_comMachine.GetCurrentSnapshot(); 76 76 m_strSnapshotName = comSnapshot.isNull() ? QString() : comSnapshot.GetName(); 77 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0) 78 m_lastStateChange.setSecsSinceEpoch(m_comMachine.GetLastStateChange() / 1000); 79 #else 77 80 m_lastStateChange.setTime_t(m_comMachine.GetLastStateChange() / 1000); 81 #endif 78 82 m_cSnaphot = m_comMachine.GetSnapshotCount(); 79 83 -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.cpp
r93996 r94006 308 308 setIcon(Column_Name, *m_pSnapshotWidget->snapshotItemIcon(m_fOnline)); 309 309 m_strDescription = m_comSnapshot.GetDescription(); 310 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0) 311 m_timestamp.setSecsSinceEpoch(m_comSnapshot.GetTimeStamp() / 1000); 312 #else 310 313 m_timestamp.setTime_t(m_comSnapshot.GetTimeStamp() / 1000); 314 #endif 311 315 m_fCurrentStateModified = false; 312 316 } … … 337 341 setIcon(Column_Name, gpConverter->toIcon(m_enmMachineState)); 338 342 /* Update timestamp: */ 343 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0) 344 m_timestamp.setSecsSinceEpoch(m_comMachine.GetLastStateChange() / 1000); 345 #else 339 346 m_timestamp.setTime_t(m_comMachine.GetLastStateChange() / 1000); 347 #endif 340 348 } 341 349
Note:
See TracChangeset
for help on using the changeset viewer.

