summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextengine_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-08-05 13:33:08 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-01-14 12:49:09 (GMT)
commit135dcf11efe11dacb15f4c384b302d99a0470320 (patch)
tree71f3f18bd34013313bef94856b314d3fb2e69ffe /src/gui/text/qtextengine_p.h
parent4cfca7cf456722ee8659b595f231f3cc2033b80d (diff)
downloadQt-135dcf11efe11dacb15f4c384b302d99a0470320.zip
Qt-135dcf11efe11dacb15f4c384b302d99a0470320.tar.gz
Qt-135dcf11efe11dacb15f4c384b302d99a0470320.tar.bz2
Support maximumSize for the layout of the text in a QStaticText
Put back maximumSize property in QStaticText to allow matching calls to drawText with a target rectangle. Implementation is done by having a dummy paint engine which records the calls to drawTextItem() and storing these, then replaying them later.
Diffstat (limited to 'src/gui/text/qtextengine_p.h')
-rw-r--r--src/gui/text/qtextengine_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/text/qtextengine_p.h b/src/gui/text/qtextengine_p.h
index 0491d87..3ce744e 100644
--- a/src/gui/text/qtextengine_p.h
+++ b/src/gui/text/qtextengine_p.h
@@ -313,13 +313,18 @@ public:
logClusters(0), f(0), fontEngine(0)
{}
+ QTextItemInt(const QTextItemInt &other);
QTextItemInt(const QScriptItem &si, QFont *font, const QTextCharFormat &format = QTextCharFormat());
void init(const QScriptItem &si, QFont *font, const QTextCharFormat &format = QTextCharFormat());
+ QTextItemInt clone(char *glyphLayoutMemory, unsigned short *logClusterMemory) const;
+
/// copy the structure items, adjusting the glyphs arrays to the right subarrays.
/// the width of the returned QTextItemInt is not adjusted, for speed reasons
QTextItemInt midItem(QFontEngine *fontEngine, int firstGlyphIndex, int numGlyphs) const;
+ QTextItemInt &operator=(const QTextItemInt &other);
+
QFixed descent;
QFixed ascent;
QFixed width;