Changeset 104594 in vbox
- Timestamp:
- May 13, 2024 12:40:24 PM (7 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerHostTable.cpp
r104229 r104594 387 387 propertyStringList << UIFileManager::tr("<b>Type:</b> %1<br/>").arg(fileTypeString(fileType(fileInfo))); 388 388 /* Creation Date: */ 389 #if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)390 389 propertyStringList << UIFileManager::tr("<b>Created:</b> %1<br/>").arg(fileInfo.birthTime().toString()); 391 #else392 propertyStringList << UIFileManager::tr("<b>Created:</b> %1<br/>").arg(fileInfo.created().toString());393 #endif394 390 /* Last Modification Date: */ 395 391 propertyStringList << UIFileManager::tr("<b>Modified:</b> %1<br/>").arg(fileInfo.lastModified().toString()); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemLocal.cpp
r104251 r104594 86 86 CSnapshot comSnapshot = m_comMachine.GetCurrentSnapshot(); 87 87 m_strSnapshotName = comSnapshot.isNull() ? QString() : comSnapshot.GetName(); 88 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)89 88 m_lastStateChange.setSecsSinceEpoch(m_comMachine.GetLastStateChange() / 1000); 90 #else91 m_lastStateChange.setTime_t(m_comMachine.GetLastStateChange() / 1000);92 #endif93 89 m_cSnaphot = m_comMachine.GetSnapshotCount(); 94 90 … … 269 265 { 270 266 /* This is used in tool-tip generation: */ 271 #if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)272 267 const QString strDateTime = m_lastStateChange.date() == QDate::currentDate() 273 268 ? QLocale::system().toString(m_lastStateChange.time(), QLocale::ShortFormat) 274 269 : QLocale::system().toString(m_lastStateChange, QLocale::ShortFormat); 275 #else276 const QString strDateTime = (m_lastStateChange.date() == QDate::currentDate())277 ? m_lastStateChange.time().toString(Qt::LocalDate)278 : m_lastStateChange.toString(Qt::LocalDate);279 #endif280 270 281 271 /* If machine is accessible: */ -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.cpp
r104358 r104594 391 391 setIcon(Column_Name, *m_pSnapshotWidget->snapshotItemIcon(m_fOnline)); 392 392 m_strDescription = m_comSnapshot.GetDescription(); 393 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)394 393 m_timestamp.setSecsSinceEpoch(m_comSnapshot.GetTimeStamp() / 1000); 395 #else396 m_timestamp.setTime_t(m_comSnapshot.GetTimeStamp() / 1000);397 #endif398 394 m_fCurrentStateModified = false; 399 395 } … … 424 420 setIcon(Column_Name, gpConverter->toIcon(m_enmMachineState)); 425 421 /* Update timestamp: */ 426 #if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)427 422 m_timestamp.setSecsSinceEpoch(m_comMachine.GetLastStateChange() / 1000); 428 #else429 m_timestamp.setTime_t(m_comMachine.GetLastStateChange() / 1000);430 #endif431 423 } 432 424
Note:
See TracChangeset
for help on using the changeset viewer.