mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
preferences: use std::string in struct preferences
This is a messy commit, because the "qPref" system relies heavily on QString, which means lots of conversions between the two worlds. Ultimately, I plan to base the preferences system on std::string and only convert to QString when pushing through Qt's property system or when writing into Qt's settings. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
82fc9de40b
commit
ccdd92aeb7
78 changed files with 645 additions and 694 deletions
|
|
@ -25,12 +25,12 @@ public:
|
|||
static void sync() { loadSync(true); }
|
||||
|
||||
public:
|
||||
static const QString date_format() { return prefs.date_format; }
|
||||
static const QString date_format() { return QString::fromStdString(prefs.date_format); }
|
||||
static bool date_format_override() { return prefs.date_format_override; }
|
||||
static const QString date_format_short() { return prefs.date_format_short; }
|
||||
static const QString language() { return prefs.locale.language; }
|
||||
static const QString lang_locale() { return prefs.locale.lang_locale; }
|
||||
static const QString time_format() { return prefs.time_format; }
|
||||
static const QString date_format_short() { return QString::fromStdString(prefs.date_format_short); }
|
||||
static const QString language() { return QString::fromStdString(prefs.locale.language); }
|
||||
static const QString lang_locale() { return QString::fromStdString(prefs.locale.lang_locale); }
|
||||
static const QString time_format() { return QString::fromStdString(prefs.time_format); }
|
||||
static bool time_format_override() { return prefs.time_format_override; }
|
||||
static bool use_system_language() { return prefs.locale.use_system_language; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue