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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user