Mercurial > hg > easyhg
diff uncommitteditem.cpp @ 131:2550aaa09240
* Add connecting line to uncommitted item; turn Revert icon blue; cut down menus to things that actually work (well, mostly)
author | Chris Cannam |
---|---|
date | Tue, 30 Nov 2010 11:17:30 +0000 |
parents | 4986642800f0 |
children | e6c6b88d19b9 |
line wrap: on
line diff
--- a/uncommitteditem.cpp Mon Nov 29 20:58:50 2010 +0000 +++ b/uncommitteditem.cpp Tue Nov 30 11:17:30 2010 +0000 @@ -34,10 +34,10 @@ QRectF UncommittedItem::boundingRect() const { - //!!! this stuff is gross, refactor with changesetitem + //!!! this stuff is gross, refactor with changesetitem and connectionitem int w = 100; if (m_wide) w = 180; - return QRectF(-((w-50)/2 - 1), -30, w - 3, 79); + return QRectF(-((w-50)/2 - 1), -30, w - 3, 79 + 40); } void @@ -77,6 +77,8 @@ QRectF r(x0, 0, width - 3, height); paint->drawRect(r); + paint->drawLine(x0 + width/2, height, x0 + width/2, height + 40); + QString label = tr("Uncommitted changes"); paint->drawText(-(fm.width(label) - 50)/2, 25 - fm.height()/2 + fm.ascent(), label);