comparison src/changesetitem.cpp @ 402:75003687f364

Better version of ensuring the scene size is properly updated and the detail item made visible
author Chris Cannam
date Wed, 25 May 2011 16:05:40 +0100
parents c3276f8998ee
children e43fc86506d1
comparison
equal deleted inserted replaced
401:c3276f8998ee 402:75003687f364
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();
82 emit detailShown(); 81 emit detailShown();
83 } 82 }
84 83
85 void 84 void
86 ChangesetItem::hideDetail() 85 ChangesetItem::hideDetail()