Mercurial > hg > easyhg
comparison textabbrev.h @ 53:3c46b2ac45d3
* Put proper labels &c in changeset items; colour branches and users; etc
author | Chris Cannam |
---|---|
date | Fri, 12 Nov 2010 16:48:18 +0000 |
parents | c76782c14371 |
children | f583e44d9d31 |
comparison
equal
deleted
inserted
replaced
52:384420567575 | 53:3c46b2ac45d3 |
---|---|
55 */ | 55 */ |
56 static QString abbreviate(QString text, | 56 static QString abbreviate(QString text, |
57 const QFontMetrics &metrics, | 57 const QFontMetrics &metrics, |
58 int &maxWidth, | 58 int &maxWidth, |
59 Policy policy = ElideEnd, | 59 Policy policy = ElideEnd, |
60 QString ellipsis = ""); | 60 QString ellipsis = "", |
61 int wrapLines = 1); | |
61 | 62 |
62 /** | 63 /** |
63 * Abbreviate all of the given texts to the given maximum length, | 64 * Abbreviate all of the given texts to the given maximum length, |
64 * using the given abbreviation policy. If fuzzy is true, texts | 65 * using the given abbreviation policy. If fuzzy is true, texts |
65 * that are "not much more than" the maximum length will be left | 66 * that are "not much more than" the maximum length will be left |