cTimeFormat/cDateFormat -> QLocale::ShortFormat
This allows to use platform-specific formatting functions
This commit is contained in:
@@ -82,8 +82,6 @@ DeclareSetting(bool, Quit);
|
||||
DeclareSetting(QByteArray, LocalSalt);
|
||||
DeclareSetting(int, ScreenScale);
|
||||
DeclareSetting(int, ConfigScale);
|
||||
DeclareSetting(QString, DateFormat);
|
||||
DeclareSetting(QString, TimeFormat);
|
||||
|
||||
class DocumentData;
|
||||
|
||||
@@ -111,14 +109,6 @@ 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);
|
||||
}
|
||||
|
||||
inline bool passcodeCanTry() {
|
||||
if (cPasscodeBadTries() < 3) return true;
|
||||
auto dt = crl::now() - cPasscodeLastTry();
|
||||
|
||||
Reference in New Issue
Block a user