Path to database is now saved via QSettings object.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <QString>
|
||||
#include <QSqlDatabase>
|
||||
#include <QStringList>
|
||||
#include <QSettings>
|
||||
|
||||
#include "define.h"
|
||||
#include "core_global.h"
|
||||
@@ -24,11 +25,16 @@ public:
|
||||
void loadPlugins();
|
||||
void openDb(const QString &path);
|
||||
odb::database *db() { return m_db; }
|
||||
QSettings *settings() { return m_settings; }
|
||||
bool dbOpened() { return m_dbOpened; }
|
||||
void destroy();
|
||||
|
||||
private:
|
||||
Context();
|
||||
QList<IPlugin*> m_plugins;
|
||||
odb::database *m_db;
|
||||
QSettings *m_settings;
|
||||
bool m_dbOpened;
|
||||
|
||||
QStringList m_solved;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user