mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #799, own component for view update times
* utility function in CTime * settings class for update times
This commit is contained in:
@@ -131,6 +131,12 @@ namespace BlackMisc
|
||||
return static_cast<int>(ms);
|
||||
}
|
||||
|
||||
int CTime::toSeconds() const
|
||||
{
|
||||
double ms = this->valueRounded(CTimeUnit::s(), 0);
|
||||
return static_cast<int>(ms);
|
||||
}
|
||||
|
||||
QString CTime::formattedHrsMin() const
|
||||
{
|
||||
QList<int> parts = getHrsMinSecParts();
|
||||
@@ -146,5 +152,5 @@ namespace BlackMisc
|
||||
return fs;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user