aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/storagesettings.h
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2011-02-01 14:13:54 +0100
committerLeandro Melo <leandro.melo@nokia.com>2011-02-21 17:22:24 +0100
commitea313f3ec84692c6112ad2a0f7d47909dafbb69c (patch)
treee952cb85d0e9ca8d974d2c44f8dc4396a1cc0026 /src/plugins/texteditor/storagesettings.h
parentcbafc50acc48d75a1fc993e72bcb6587f8bb9a4e (diff)
Text editor: Introduce per project settings
With some refactorings to make the code look better. Reviewed-by: con
Diffstat (limited to 'src/plugins/texteditor/storagesettings.h')
-rw-r--r--src/plugins/texteditor/storagesettings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/texteditor/storagesettings.h b/src/plugins/texteditor/storagesettings.h
index def8df30b6..b5bf472ff9 100644
--- a/src/plugins/texteditor/storagesettings.h
+++ b/src/plugins/texteditor/storagesettings.h
@@ -36,6 +36,8 @@
#include "texteditor_global.h"
+#include <QtCore/QVariant>
+
QT_BEGIN_NAMESPACE
class QSettings;
QT_END_NAMESPACE
@@ -50,6 +52,9 @@ public:
void toSettings(const QString &category, QSettings *s) const;
void fromSettings(const QString &category, const QSettings *s);
+ void toMap(const QString &prefix, QVariantMap *map) const;
+ void fromMap(const QString &prefix, const QVariantMap &map);
+
bool equals(const StorageSettings &ts) const;
bool m_cleanWhitespace;