Fix deprecated declarations warning in QTextItemInt
This commit is contained in:
parent
6fa01d0a1e
commit
0dbb210385
1 changed files with 2 additions and 6 deletions
|
|
@ -14,13 +14,9 @@ QTextItemInt::QTextItemInt(
|
|||
int numChars,
|
||||
QFontEngine *fe,
|
||||
const QTextCharFormat &format)
|
||||
: flags(0)
|
||||
, justified(false)
|
||||
, underlineStyle(QTextCharFormat::NoUnderline)
|
||||
, charFormat(format)
|
||||
: charFormat(format)
|
||||
, num_chars(numChars)
|
||||
, chars(chars_)
|
||||
, logClusters(0)
|
||||
, f(font)
|
||||
, glyphs(g)
|
||||
, fontEngine(fe) {
|
||||
|
|
@ -29,7 +25,7 @@ QTextItemInt::QTextItemInt(
|
|||
void QTextItemInt::initWithScriptItem(const QScriptItem &si) {
|
||||
// explicitly initialize flags so that initFontAttributes can be called
|
||||
// multiple times on the same TextItem
|
||||
flags = 0;
|
||||
flags = { };
|
||||
if (si.analysis.bidiLevel %2)
|
||||
flags |= QTextItem::RightToLeft;
|
||||
ascent = si.ascent;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue