forked from qt-creator/qt-creator
Introduced settings database based on sqlite
Potential replacement for QSettings. This database will allow us to save settings incrementially, removing most of the performance issues we're having when our few megabytes of settings are being saved. Not done in the form of a QSettings backend because it doesn't seem the backends can do an incremental update of the settings. Currently used by the QuickOpenPlugin for testing.
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
#include "ioutputpane.h"
|
||||
|
||||
#include <coreplugin/findplaceholder.h>
|
||||
#include <coreplugin/settingsdatabase.h>
|
||||
#include <utils/pathchooser.h>
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
|
||||
@@ -111,7 +112,11 @@ MainWindow::MainWindow() :
|
||||
m_uniqueIDManager(new UniqueIDManager()),
|
||||
m_globalContext(QList<int>() << Constants::C_GLOBAL_ID),
|
||||
m_additionalContexts(m_globalContext),
|
||||
m_settings(new QSettings(QSettings::IniFormat, QSettings::UserScope, QLatin1String("Nokia"), QLatin1String("QtCreator"), this)),
|
||||
m_settings(new QSettings(QSettings::IniFormat, QSettings::UserScope,
|
||||
QLatin1String("Nokia"), QLatin1String("QtCreator"), this)),
|
||||
m_settingsDatabase(new SettingsDatabase(QFileInfo(m_settings->fileName()).path(),
|
||||
QLatin1String("QtCreator"),
|
||||
this)),
|
||||
m_printer(0),
|
||||
m_actionManager(new ActionManagerPrivate(this)),
|
||||
m_editorManager(0),
|
||||
|
||||
Reference in New Issue
Block a user