summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qstatictext_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-15 16:52:27 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-15 16:52:27 (GMT)
commitf95d5bde3ba66dd182802addd15dabbfa85611e1 (patch)
tree4fde196a422d4ce8ea4ce7334dbf312e35c2a866 /src/gui/text/qstatictext_p.h
parent88fa17f5664e3839ffc04db1315e8d9d07f8b956 (diff)
downloadQt-f95d5bde3ba66dd182802addd15dabbfa85611e1.zip
Qt-f95d5bde3ba66dd182802addd15dabbfa85611e1.tar.gz
Qt-f95d5bde3ba66dd182802addd15dabbfa85611e1.tar.bz2
Support Qt::AutoTest in QStaticText::setTextFormat()
The bit field has to be unsigned to support values of 2 (and higher.)
Diffstat (limited to 'src/gui/text/qstatictext_p.h')
-rw-r--r--src/gui/text/qstatictext_p.h6
1 files 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