Mercurial > hg > easyhg
comparison src/changesetitem.cpp @ 430:e43fc86506d1
Fix changeset detail item alignment
author | Chris Cannam |
---|---|
date | Fri, 24 Jun 2011 14:34:57 +0100 |
parents | 75003687f364 |
children | 8bdc8f27d19c |
comparison
equal
deleted
inserted
replaced
429:6a9756700fd1 | 430:e43fc86506d1 |
---|---|
75 if (isMerge()) w = 60; | 75 if (isMerge()) w = 60; |
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) / 3 + 0.5); |
81 emit detailShown(); | 81 emit detailShown(); |
82 } | 82 } |
83 | 83 |
84 void | 84 void |
85 ChangesetItem::hideDetail() | 85 ChangesetItem::hideDetail() |