From f95d5bde3ba66dd182802addd15dabbfa85611e1 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Mon, 15 Feb 2010 17:52:27 +0100 Subject: Support Qt::AutoTest in QStaticText::setTextFormat() The bit field has to be unsigned to support values of 2 (and higher.) --- src/gui/text/qstatictext_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/text/qstatictext_p.h b/src/gui/text/qstatictext_p.h index 95bd286..d2afad6 100644 --- a/src/gui/text/qstatictext_p.h +++ b/src/gui/text/qstatictext_p.h @@ -131,9 +131,9 @@ public: glyph_t *glyphPool; // 4 bytes per text QFixedPoint *positionPool; // 4 bytes per text - char needsClipRect : 1; // 1 byte per text - char useBackendOptimizations : 1; - char textFormat : 2; + unsigned char needsClipRect : 1; // 1 byte per text + unsigned char useBackendOptimizations : 1; + unsigned char textFormat : 2; // ================ // 171 bytes per text -- cgit v0.12