diff options
author | David Boddie <dboddie@trolltech.com> | 2009-05-25 17:43:52 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-05-25 17:43:52 (GMT) |
commit | b070fda9d0a7a67baeb7795e8407764a8395e731 (patch) | |
tree | d137aff8ae16af4520ef0a4384511a3cb7488f84 /src/corelib | |
parent | b94416a8fe3fae0e9ab01dea9d5a78a21c4affc0 (diff) | |
parent | 3868c7dacde57c3e929ad72b9c9c42f8ddf4dc62 (diff) | |
download | Qt-b070fda9d0a7a67baeb7795e8407764a8395e731.zip Qt-b070fda9d0a7a67baeb7795e8407764a8395e731.tar.gz Qt-b070fda9d0a7a67baeb7795e8407764a8395e731.tar.bz2 |
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
Diffstat (limited to 'src/corelib')
-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 14fc2d4..6152518 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). |