Show time without seconds in timeline

(cherry picked from commit 2df2e39d43)
This commit is contained in:
Tobias Fella
2024-07-21 17:32:12 +02:00
parent 0017be1c0f
commit d390433b2b
4 changed files with 9 additions and 1 deletions

View File

@@ -143,6 +143,11 @@ QString EventHandler::getTimeString(bool relative, QLocale::FormatType format, b
return {};
}
QString EventHandler::getTimeString(const QString &format, bool isPending, const QDateTime &lastUpdated)
{
return getTime(isPending, lastUpdated).toLocalTime().toString(format);
}
bool EventHandler::isHighlighted()
{
if (m_room == nullptr) {