comparison src/changesetitem.cpp @ 401:c3276f8998ee

Ensure scene rect resizes to accommodate detail items
author Chris Cannam
date Wed, 25 May 2011 15:38:48 +0100
parents 1e73b5911631
children 75003687f364
comparison
equal deleted inserted replaced
400:07eaf4e6003a 401:c3276f8998ee
76 int h = 80; 76 int h = 80;
77 // m_detail->moveBy(x() - (m_detail->boundingRect().width() - 50) / 2, 77 // m_detail->moveBy(x() - (m_detail->boundingRect().width() - 50) / 2,
78 // y() + 60); 78 // y() + 60);
79 m_detail->moveBy(x() + (w + 50) / 2 + 10 + 0.5, 79 m_detail->moveBy(x() + (w + 50) / 2 + 10 + 0.5,
80 y() - (m_detail->boundingRect().height() - h) / 2 + 0.5); 80 y() - (m_detail->boundingRect().height() - h) / 2 + 0.5);
81 m_detail->ensureVisible();
81 emit detailShown(); 82 emit detailShown();
82 } 83 }
83 84
84 void 85 void
85 ChangesetItem::hideDetail() 86 ChangesetItem::hideDetail()