[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp
Zongyi Zhang
freebody.kst at gmail.com
Wed Apr 14 19:28:33 CEST 2010
SVN commit 1114829 by zhang:
replace kconfig with qsettings
M +5 -5 kst.h
M +1 -2 kstlegenddefaults.h
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kst.h #1114828:1114829
@@ -146,7 +146,7 @@
const QStringList recentFiles() const;
- KConfig *dataSourceConfig() const { return _dataSourceConfig; }
+ QSettings *dataSourceConfig() const { return _dataSourceConfig; }
KstGraphFileDialog *graphFileDlg() const { return _graphFileDialog; }
KstChooseColorDialog *chooseColorDlg() const { return _chooseColorDialog; }
@@ -196,13 +196,13 @@
* end to the session config file, including saving the currently
* opened file by a temporary filename provided by KApplication.
* @see KMainWindow#saveProperties */
- void saveProperties(KConfig *cfg);
+ void saveProperties(QSettings *cfg);
/** reads the session config file and restores the application's
* state including the last opened files and documents by reading
* the temporary files saved by saveProperties()
* @see KMainWindow#readProperties */
- void readProperties(KConfig *cfg);
+ void readProperties(QSettings *cfg);
private slots:
// Hack to update KStdActions
@@ -323,7 +323,7 @@
private:
static const QString& defaultTag;
- KConfig *_config;
+ QSettings *_config;
KstDoc *_doc;
KstViewScalarsDialog *_viewScalarsDialog;
@@ -426,7 +426,7 @@
Kst2DPlotMap *_plotHolderWhileOpeningDocument;
QTimer _memTimer;
QString _defaultFont;
- KConfig *_dataSourceConfig;
+ QSettings *_dataSourceConfig;
QList<KstOpen> _openQueue;
KstGraphicType _graphicType;
bool _updatesFromScriptEnabled;
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kstlegenddefaults.h #1114828:1114829
@@ -22,9 +22,8 @@
#include <QColor>
#include <QSettings>
#include "kst_export.h"
+;
-// xxx class KConfig;
-
class KST_EXPORT KstLegendDefaults {
public:
More information about the Kst
mailing list