2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Display dates with the system date format

This commit is contained in:
CoderTimZ
2021-10-06 22:37:42 -07:00
committed by John Preston
parent 041c922451
commit c9e24c2283
14 changed files with 33 additions and 15 deletions

View File

@@ -82,6 +82,7 @@ DeclareSetting(bool, Quit);
DeclareSetting(QByteArray, LocalSalt);
DeclareSetting(int, ScreenScale);
DeclareSetting(int, ConfigScale);
DeclareSetting(QString, DateFormat);
DeclareSetting(QString, TimeFormat);
class DocumentData;
@@ -110,6 +111,10 @@ DeclareSetting(QString, StartUrl);
DeclareSetting(int, OtherOnline);
inline void cChangeDateFormat(const QString &newFormat) {
if (!newFormat.isEmpty()) cSetDateFormat(newFormat);
}
inline void cChangeTimeFormat(const QString &newFormat) {
if (!newFormat.isEmpty()) cSetTimeFormat(newFormat);
}