Mercurial > hg > easyhg
diff changesetitem.cpp @ 124:1f27f71a7034
* Fixes to changeset details display; show on right instead of below to avoid disrupting flow
author | Chris Cannam |
---|---|
date | Mon, 29 Nov 2010 11:38:25 +0000 |
parents | 005a54380502 |
children | 63c2f3f61c79 |
line wrap: on
line diff
--- a/changesetitem.cpp Mon Nov 29 11:18:27 2010 +0000 +++ b/changesetitem.cpp Mon Nov 29 11:38:25 2010 +0000 @@ -52,14 +52,19 @@ scene()->addItem(m_detail); int w = 100; if (m_wide) w = 180; - m_detail->moveBy(x() - (m_detail->boundingRect().width() - 50) / 2, - y() + 60); + int h = 80; +// m_detail->moveBy(x() - (m_detail->boundingRect().width() - 50) / 2, +// y() + 60); + m_detail->moveBy(x() + (w + 50) / 2 + 10 + 0.5, + y() - (m_detail->boundingRect().height() - h) / 2 + 0.5); emit detailShown(); } void ChangesetItem::hideDetail() { + if (!m_detail) return; + scene()->removeItem(m_detail); delete m_detail; m_detail = 0; emit detailHidden();