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 14:13:44 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-15 14:13:44 (GMT)
commit3a205ce73d4f87ad499b09cc7a7eb43c61c26cf9 (patch)
treee067aaf496be3791ecb36407fb5db7a13d93fd73 /src/gui/text/qstatictext_p.h
parent9f387357a7e171636c97a7ef13afca60c01a9e3b (diff)
downloadQt-3a205ce73d4f87ad499b09cc7a7eb43c61c26cf9.zip
Qt-3a205ce73d4f87ad499b09cc7a7eb43c61c26cf9.tar.gz
Qt-3a205ce73d4f87ad499b09cc7a7eb43c61c26cf9.tar.bz2
Separate out textFormat property from setText() function and remove
isEmpty() function in QStaticText To make the return value of text() more intuitively clearer, and to make the API more readable, I've separated out the text format into a separate property. The isEmpty() function seemed out-of-place in the API, as suggested by reviews, so it has been removed.
Diffstat (limited to 'src/gui/text/qstatictext_p.h')
-rw-r--r--src/gui/text/qstatictext_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qstatictext_p.h b/src/gui/text/qstatictext_p.h
index 7aee5c4..95bd286 100644
--- a/src/gui/text/qstatictext_p.h
+++ b/src/gui/text/qstatictext_p.h
@@ -133,7 +133,7 @@ public:
char needsClipRect : 1; // 1 byte per text
char useBackendOptimizations : 1;
- char preferRichText : 1;
+ char textFormat : 2;
// ================
// 171 bytes per text