refs #466 Resolved TODO item in GUI.

This commit is contained in:
Mathew Sutcliffe
2015-09-14 22:58:04 +01:00
parent b1a3793c2f
commit f03b24022e
3 changed files with 25 additions and 3 deletions

View File

@@ -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