diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-05-25 14:25:41 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-05-26 03:53:50 (GMT) |
commit | e4a15ee4c41bef91d91ec4841e4b775f02bae17d (patch) | |
tree | 016d31538e508dd25430a1a6462589969dfb36fa | |
parent | 07934abf1778a8490612ef9fb2ba814626dd5260 (diff) | |
download | Qt-e4a15ee4c41bef91d91ec4841e4b775f02bae17d.zip Qt-e4a15ee4c41bef91d91ec4841e4b775f02bae17d.tar.gz Qt-e4a15ee4c41bef91d91ec4841e4b775f02bae17d.tar.bz2 |
Adding details to QSettings functions
Adding details to the documentation of custom storage format and related functions.
Task-number: 207865
Rev-by: David Boddie
Rev-by: Marius Storm-Olsen
(cherry picked from commit 46bb023374dfd8684cefbe1d1c4ffc37f64f1239)
-rw-r--r-- | src/corelib/io/qsettings.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/corelib/io/qsettings.cpp b/src/corelib/io/qsettings.cpp index 461459c..844b9f3 100644 --- a/src/corelib/io/qsettings.cpp +++ b/src/corelib/io/qsettings.cpp @@ -3468,7 +3468,7 @@ void QSettings::setPath(Format format, Scope scope, const QString &path) \typedef QSettings::SettingsMap Typedef for QMap<QString, QVariant>. - + \sa registerFormat() */ @@ -3479,6 +3479,11 @@ void QSettings::setPath(Format format, Scope scope, const QString &path) \snippet doc/src/snippets/code/src_corelib_io_qsettings.cpp 27 + \c ReadFunc is used in \c registerFormat() as a pointer to a function + that reads a set of key/value pairs. \c ReadFunc should read all the + options in one pass, and return all the settings in the \c SettingsMap + container, which is initially empty. + \sa WriteFunc, registerFormat() */ @@ -3489,6 +3494,10 @@ void QSettings::setPath(Format format, Scope scope, const QString &path) \snippet doc/src/snippets/code/src_corelib_io_qsettings.cpp 28 + \c WriteFunc is used in \c registerFormat() as a pointer to a function + that writes a set of key/value pairs. \c WriteFunc is only called once, + so you need to output the settings in one go. + \sa ReadFunc, registerFormat() */ @@ -3504,7 +3513,7 @@ void QSettings::setPath(Format format, Scope scope, const QString &path) extension associated to the format (without the '.'). The \a readFunc and \a writeFunc parameters are pointers to - functions that read and write a set of (key, value) pairs. The + functions that read and write a set of key/value pairs. The QIODevice parameter to the read and write functions is always opened in binary mode (i.e., without the QIODevice::Text flag). |