public override QRectF BoundingRect() { // FIXME: We need to animate the change in height when we // collapse/expand... or at the very least not change height // until all item animations are complete. // Right now, we don't see any items fade out on collapse // because the group size changes right away. m_Rect.SetLeft(m_Grid.IconPadding); m_Rect.SetWidth(m_Grid.Viewport().Width() - (m_Grid.IconPadding * 2)); if (IsExpanded) { m_Rect.SetHeight(m_Grid.HeaderHeight + (m_RowCount * (m_Grid.IconSize + m_Grid.IconPadding))); } else { m_Rect.SetHeight(m_Grid.HeaderHeight); } return(m_Rect); }