summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-08-26 12:39:29 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-08-26 12:39:29 (GMT)
commitf607562328a7c7f9ee0c7048aba365dcea042b4f (patch)
treeb47299c61a93c39fd9b571b782a578db09e0b3d9 /src
parent38d04ac09a3916ad33489e0d60e87c32f86fd117 (diff)
downloadQt-f607562328a7c7f9ee0c7048aba365dcea042b4f.zip
Qt-f607562328a7c7f9ee0c7048aba365dcea042b4f.tar.gz
Qt-f607562328a7c7f9ee0c7048aba365dcea042b4f.tar.bz2
Doc: Noted a limitation in using slashes in settings section names.
Task-number: 254511 Reviewed-by: Trust Me
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qsettings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qsettings.cpp b/src/corelib/io/qsettings.cpp
index 8612e03..db0c696 100644
--- a/src/corelib/io/qsettings.cpp
+++ b/src/corelib/io/qsettings.cpp
@@ -2118,12 +2118,12 @@ void QConfFileSettingsPrivate::ensureSectionParsed(QConfFile *confFile,
Custom types registered using qRegisterMetaType() and
qRegisterMetaTypeStreamOperators() can be stored using QSettings.
- \section1 Key Syntax
+ \section1 Section and Key Syntax
Setting keys can contain any Unicode characters. The Windows
registry and INI files use case-insensitive keys, whereas the
Carbon Preferences API on Mac OS X uses case-sensitive keys. To
- avoid portability problems, follow these two simple rules:
+ avoid portability problems, follow these simple rules:
\list 1
\o Always refer to the same key using the same case. For example,
@@ -2134,7 +2134,7 @@ void QConfFileSettingsPrivate::ensureSectionParsed(QConfFile *confFile,
example, if you have a key called "MainWindow", don't try to
save another key as "mainwindow".
- \o Do not use slashes ('/' and '\\') in key names; the
+ \o Do not use slashes ('/' and '\\') in section or key names; the
backslash character is used to separate sub keys (see below). On
windows '\\' are converted by QSettings to '/', which makes
them identical.