mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-19 22:42:23 -05:00
Store defaults in Config.
This commit is contained in:
parent
4a2ca8c7c8
commit
7194a3d7a8
2 changed files with 11 additions and 1 deletions
|
|
@ -26,13 +26,15 @@ class QSettings;
|
|||
class Config
|
||||
{
|
||||
public:
|
||||
QVariant get(const QString& key, const QVariant& defaultValue = QVariant());
|
||||
QVariant get(const QString& key);
|
||||
QVariant get(const QString& key, const QVariant& defaultValue);
|
||||
void set(const QString& key, const QVariant& value);
|
||||
|
||||
private:
|
||||
Config();
|
||||
|
||||
QScopedPointer<QSettings> m_settings;
|
||||
QHash<QString, QVariant> m_defaults;
|
||||
|
||||
Q_DISABLE_COPY(Config)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue