diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2012-06-29 09:07:34 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-03 14:39:02 +0200 |
commit | ee4f50b2e78e1d8b4200866fa88dbf7dc5cffe26 (patch) | |
tree | 6ae195bd1911a0e363317c7980f257268c3a5c5b /src/gui | |
parent | f4c9797d5ba7dd64e98d3c6fa90c791e422932dd (diff) |
Add QChar::SoftHyphen enum value
Just like for the QChar::ByteOrderMark, `ch == QChar::SoftHyphen`
is much more readable than `ch == 0x00ad // (soft-hyphen)`, etc.
Change-Id: I9c85f14cfd979037d35103c3259a435fd729b869
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/text/qtextengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index 41d12a65d6..3e5e89c57b 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -3220,7 +3220,7 @@ QScriptItem &QTextLineItemIterator::next() } // show soft-hyphen at line-break if (si->position + itemLength >= lineEnd - && eng->layoutData->string.at(lineEnd - 1) == 0x00ad) + && eng->layoutData->string.at(lineEnd - 1).unicode() == QChar::SoftHyphen) glyphs.attributes[glyphsEnd - 1].dontPrint = false; itemWidth = 0; |