summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-08-19 16:19:43 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-08-19 16:20:46 -0300
commit4ab3bc368e61e07ca0372ea4f7d0a60a70b1182f (patch)
treed39b80dc15199d34b4b7e158e9685d2a05584767 /doc
parentad3a8ed9ce6bdba3c819df0a58b84deea2be6879 (diff)
downloadpyside-4ab3bc368e61e07ca0372ea4f7d0a60a70b1182f.tar.gz
pyside-4ab3bc368e61e07ca0372ea4f7d0a60a70b1182f.tar.xz
pyside-4ab3bc368e61e07ca0372ea4f7d0a60a70b1182f.zip
Fix QSettings code snippet.
Diffstat (limited to 'doc')
-rw-r--r--doc/codesnippets/doc/src/snippets/settings/settings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/codesnippets/doc/src/snippets/settings/settings.cpp b/doc/codesnippets/doc/src/snippets/settings/settings.cpp
index 549beb6..a908e05 100644
--- a/doc/codesnippets/doc/src/snippets/settings/settings.cpp
+++ b/doc/codesnippets/doc/src/snippets/settings/settings.cpp
@@ -68,11 +68,11 @@ void snippet_ctor2()
//! [5]
settings.setValue("editor/wrapMargin", 68)
//! [5] //! [6]
- margin = settings.value("editor/wrapMargin").toInt()
+ margin = int(settings.value("editor/wrapMargin"))
//! [6]
{
//! [7]
- margin = settings.value("editor/wrapMargin", 80).toInt()
+ margin = int(settings.value("editor/wrapMargin", 80))
//! [7]
}