forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.3'
Conflicts: qtcreator.pri qtcreator.qbs src/plugins/projectexplorer/projectexplorer.cpp src/shared/qbs Change-Id: I6d91042bb48314d00be721099aed19feca74e0ce
This commit is contained in:
@@ -135,8 +135,8 @@ inline void TimelineRenderer::getItemXExtent(int i, int ¤tX, int &itemWidt
|
||||
if (rawWidth < MinimumItemWidth) {
|
||||
currentX -= static_cast<int>((MinimumItemWidth - rawWidth) / 2);
|
||||
itemWidth = MinimumItemWidth;
|
||||
} else if (rawWidth > m_spacedDuration) {
|
||||
itemWidth = static_cast<int>(m_spacedDuration);
|
||||
} else if (rawWidth > m_spacedDuration - static_cast<qreal>(currentX - OutOfScreenMargin)) {
|
||||
itemWidth = static_cast<int>(m_spacedDuration) - currentX + OutOfScreenMargin;
|
||||
} else {
|
||||
itemWidth = static_cast<int>(rawWidth);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user