aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktext_p_p.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-02-29 11:37:42 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-01 07:55:06 +0100
commitae4c3c14e2535fbbf439c2baeb4333bbc21c2a96 (patch)
tree6a7cbe93ff7e88e3797e80145790d888cbd4b288 /src/quick/items/qquicktext_p_p.h
parent6b3b47539967722ee18d072c004e96ba1acb3234 (diff)
Allow styled text to be elided.
Task-number: QTBUG-24521 Change-Id: Idd451d0a8a238a60691386726e34054c0368b658 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'src/quick/items/qquicktext_p_p.h')
-rw-r--r--src/quick/items/qquicktext_p_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquicktext_p_p.h b/src/quick/items/qquicktext_p_p.h
index e61eea90ae..3be62541ea 100644
--- a/src/quick/items/qquicktext_p_p.h
+++ b/src/quick/items/qquicktext_p_p.h
@@ -82,7 +82,9 @@ public:
void mirrorChange();
bool isLineLaidOutConnected();
void setLineGeometry(QTextLine &line, qreal lineWidth, qreal &height);
+
QString elidedText(qreal lineWidth, const QTextLine &line, QTextLine *nextLine = 0) const;
+ void elideFormats(int start, int length, int offset, QList<QTextLayout::FormatRange> *elidedFormats);
QRectF layedOutTextRect;