Fix QSettings code snippet.
This commit is contained in:
parent
7b2c4242ad
commit
14c00d3325
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue