mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:06:08 +00:00
UI: DateUtil: Minor refactor
This commit is contained in:
parent
df412a3643
commit
07de23fc6a
@ -121,7 +121,7 @@ quint8 DateUtil::parseTimeMinute(const QString &period)
|
||||
return quint8(toStringView(period).right(2).toUInt());
|
||||
}
|
||||
|
||||
QString DateUtil::localeDateTime(const QDateTime &dateTime, const QLocale::FormatType &format)
|
||||
QString DateUtil::localeDateTime(const QDateTime &dateTime, QLocale::FormatType format)
|
||||
{
|
||||
return QLocale().toString(dateTime, format);
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
Q_INVOKABLE static quint8 parseTimeHour(const QString &period);
|
||||
Q_INVOKABLE static quint8 parseTimeMinute(const QString &period);
|
||||
|
||||
static QString localeDateTime(const QDateTime &dateTime, const QLocale::FormatType &format);
|
||||
static QString localeDateTime(const QDateTime &dateTime, QLocale::FormatType format);
|
||||
};
|
||||
|
||||
#endif // DATEUTIL_H
|
||||
|
Loading…
Reference in New Issue
Block a user