Mercurial > hg > easyhg
comparison uncommitteditem.cpp @ 250:be483734bde5
* Make it possible for changeset items to take two or three lines of description, depending on how much there is
* Some other small improvements to how changeset items are drawn (e.g. give them opaque white backgrounds)
author | Chris Cannam |
---|---|
date | Tue, 11 Jan 2011 17:58:14 +0000 |
parents | 8fd71f570884 |
children | 4811eb34e819 |
comparison
equal
deleted
inserted
replaced
249:123e06d5d9af | 250:be483734bde5 |
---|---|
125 if (m_wide) width = 180; | 125 if (m_wide) width = 180; |
126 int x0 = -((width - 50) / 2 - 1); | 126 int x0 = -((width - 50) / 2 - 1); |
127 | 127 |
128 int height = 49; | 128 int height = 49; |
129 QRectF r(x0, 0, width - 3, height); | 129 QRectF r(x0, 0, width - 3, height); |
130 paint->setBrush(Qt::white); | |
130 paint->drawRect(r); | 131 paint->drawRect(r); |
131 | 132 |
132 if (m_wide) { | 133 if (m_wide) { |
133 QString label = tr("Uncommitted changes"); | 134 QString label = tr("Uncommitted changes"); |
134 paint->drawText(-(fm.width(label) - 50)/2, | 135 paint->drawText(-(fm.width(label) - 50)/2, |