[Kst] branches/work/kst/portto4/kst/src
Mike Fenton
mike at staikos.net
Tue Jul 14 16:50:14 CEST 2009
SVN commit 996598 by fenton:
Move settings to native / default locations in the UserScope.
M +1 -1 libkst/datasource.cpp
M +1 -1 libkstapp/applicationsettings.cpp
M +1 -1 libkstmath/dataobject.cpp
M +1 -1 widgets/dialogdefaults.cpp
--- branches/work/kst/portto4/kst/src/libkst/datasource.cpp #996597:996598
@@ -54,7 +54,7 @@
static QMap<QString,QString> urlMap;
void DataSource::init() {
if (!settingsObject) {
- QSettings *settingsObj = new QSettings("kstdatarc", QSettings::IniFormat);
+ QSettings *settingsObj = new QSettings("kst", "data");
settingsObject = settingsObj;
}
initPlugins();
--- branches/work/kst/portto4/kst/src/libkstapp/applicationsettings.cpp #996597:996598
@@ -43,7 +43,7 @@
ApplicationSettings::ApplicationSettings() {
- _settings = new QSettings("kstapplicationrc", QSettings::NativeFormat);
+ _settings = new QSettings("kst", "application");
//FIXME Not sure if this is the best test for hardware acceleration
// but right now opening with QGV with QGLWidget as viewport takes
--- branches/work/kst/portto4/kst/src/libkstmath/dataobject.cpp #996597:996598
@@ -45,7 +45,7 @@
static QMap<QString,QString> urlMap;
void DataObject::init() {
if (!settingsObject) {
- QSettings *settingsObj = new QSettings("kstdatarc", QSettings::IniFormat);
+ QSettings *settingsObj = new QSettings("kst", "data");
settingsObject = settingsObj;
}
--- branches/work/kst/portto4/kst/src/widgets/dialogdefaults.cpp #996597:996598
@@ -11,7 +11,7 @@
#include "dialogdefaults.h"
namespace Kst {
- QSettings *_dialogDefaults = new QSettings("kstdialogrc", QSettings::NativeFormat);
+ QSettings *_dialogDefaults = new QSettings("kst", "dialog");
void setDataVectorDefaults(DataVectorPtr V) {
//FIXME Do we need a V->readLock() here?
More information about the Kst
mailing list