mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #466 Resolved TODO item in GUI.
This commit is contained in:
@@ -186,10 +186,9 @@ namespace BlackGui
|
||||
QTime t = dateTime.value<QTime>();
|
||||
return t.toString(m_formatString);
|
||||
}
|
||||
else if (static_cast<QMetaType::Type>(dateTime.type()) == QMetaType::Int)
|
||||
else if (dateTime.isIntegral())
|
||||
{
|
||||
//! \todo potential risk if int is not qint64
|
||||
QDateTime t = QDateTime::fromMSecsSinceEpoch(dateTime.toInt());
|
||||
QDateTime t = QDateTime::fromMSecsSinceEpoch(dateTime.value<qint64>());
|
||||
return t.toString(m_formatString);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user