Mercurial > hg > easyhg
changeset 401:c3276f8998ee
Ensure scene rect resizes to accommodate detail items
author | Chris Cannam |
---|---|
date | Wed, 25 May 2011 15:38:48 +0100 |
parents | 07eaf4e6003a |
children | 75003687f364 |
files | src/changesetitem.cpp src/changesetscene.cpp |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/changesetitem.cpp Wed May 25 14:59:09 2011 +0100 +++ b/src/changesetitem.cpp Wed May 25 15:38:48 2011 +0100 @@ -78,6 +78,7 @@ // y() + 60); m_detail->moveBy(x() + (w + 50) / 2 + 10 + 0.5, y() - (m_detail->boundingRect().height() - h) / 2 + 0.5); + m_detail->ensureVisible(); emit detailShown(); }
--- a/src/changesetscene.cpp Wed May 25 14:59:09 2011 +0100 +++ b/src/changesetscene.cpp Wed May 25 15:38:48 2011 +0100 @@ -129,12 +129,15 @@ m_detailShown->hideDetail(); } m_detailShown = csi; + itemAddCompleted(); + csi->ensureVisible(); } void ChangesetScene::changesetDetailHidden() { m_detailShown = 0; + itemAddCompleted(); } void