diff options
author | Thomas Zander <t.zander@nokia.com> | 2010-04-07 12:36:46 (GMT) |
---|---|---|
committer | Thomas Zander <t.zander@nokia.com> | 2010-04-16 12:04:36 (GMT) |
commit | 9827cd78256c24e8311400198864aaadfff4e7ab (patch) | |
tree | a0f047a7db5636eeed915a74c3be81fe8a8a5cfd /doc | |
parent | 1e0cb74f433083d2cafa21da3e34e87a35838b90 (diff) | |
download | Qt-9827cd78256c24e8311400198864aaadfff4e7ab.zip Qt-9827cd78256c24e8311400198864aaadfff4e7ab.tar.gz Qt-9827cd78256c24e8311400198864aaadfff4e7ab.tar.bz2 |
Simplify docs a bit
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/snippets/code/src_gui_text_qtextlayout.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/doc/src/snippets/code/src_gui_text_qtextlayout.cpp b/doc/src/snippets/code/src_gui_text_qtextlayout.cpp index ad5725e..13040ea 100644 --- a/doc/src/snippets/code/src_gui_text_qtextlayout.cpp +++ b/doc/src/snippets/code/src_gui_text_qtextlayout.cpp @@ -42,7 +42,6 @@ //! [0] int leading = fontMetrics.leading(); qreal height = 0; -qreal widthUsed = 0; textLayout.beginLayout(); while (1) { QTextLine line = textLayout.createLine(); @@ -53,7 +52,6 @@ while (1) { height += leading; line.setPosition(QPointF(0, height)); height += line.height(); - widthUsed = qMax(widthUsed, line.naturalTextWidth()); } textLayout.endLayout(); //! [0] |