mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-19 22:42:23 -05:00
Use temporary settings file for gui test.
This commit is contained in:
parent
056447fad9
commit
a720903083
4 changed files with 41 additions and 5 deletions
|
|
@ -23,17 +23,23 @@
|
|||
|
||||
class QSettings;
|
||||
|
||||
class Config
|
||||
class Config : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
~Config();
|
||||
QVariant get(const QString& key);
|
||||
QVariant get(const QString& key, const QVariant& defaultValue);
|
||||
void set(const QString& key, const QVariant& value);
|
||||
|
||||
static Config* instance();
|
||||
static void createTempFileInstance();
|
||||
|
||||
private:
|
||||
Config();
|
||||
Config(const QString& fileName, QObject* parent);
|
||||
Config(QObject* parent);
|
||||
void init(const QString& fileName);
|
||||
|
||||
static Config* m_instance;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue