Fix QSettings code snippet.

This commit is contained in:
Hugo Parente Lima 2011-08-19 16:19:43 -03:00
commit 14c00d3325

View file

@ -68,11 +68,11 @@ void snippet_ctor2()
//! [5] //! [5]
settings.setValue("editor/wrapMargin", 68) settings.setValue("editor/wrapMargin", 68)
//! [5] //! [6] //! [5] //! [6]
margin = settings.value("editor/wrapMargin").toInt() margin = int(settings.value("editor/wrapMargin"))
//! [6] //! [6]
{ {
//! [7] //! [7]
margin = settings.value("editor/wrapMargin", 80).toInt() margin = int(settings.value("editor/wrapMargin", 80))
//! [7] //! [7]
} }