comparison src/changesetscene.cpp @ 401:c3276f8998ee

Ensure scene rect resizes to accommodate detail items
author Chris Cannam
date Wed, 25 May 2011 15:38:48 +0100
parents 61bde1f0ff0a
children 75003687f364
comparison
equal deleted inserted replaced
400:07eaf4e6003a 401:c3276f8998ee
127 127
128 if (m_detailShown && m_detailShown != csi) { 128 if (m_detailShown && m_detailShown != csi) {
129 m_detailShown->hideDetail(); 129 m_detailShown->hideDetail();
130 } 130 }
131 m_detailShown = csi; 131 m_detailShown = csi;
132 itemAddCompleted();
133 csi->ensureVisible();
132 } 134 }
133 135
134 void 136 void
135 ChangesetScene::changesetDetailHidden() 137 ChangesetScene::changesetDetailHidden()
136 { 138 {
137 m_detailShown = 0; 139 m_detailShown = 0;
140 itemAddCompleted();
138 } 141 }
139 142
140 void 143 void
141 ChangesetScene::drawBackground(QPainter *paint, const QRectF &rect) 144 ChangesetScene::drawBackground(QPainter *paint, const QRectF &rect)
142 { 145 {