Draw the handle when it matters.

This commit is contained in:
Teo Mrnjavac 2016-01-13 16:17:38 +01:00
parent 3238498e48
commit 9682520c61

View File

@ -482,14 +482,13 @@ PartitionSplitterWidget::drawPartitions( QPainter* painter,
m_itemToResizeNext &&
row > 0 &&
items[ row - 1 ].itemPath == m_itemToResize->itemPath )
{
m_resizeHandleX = x;
drawResizeHandle( painter, rect, m_resizeHandleX );
}
x += width;
}
if ( m_itemToResize && m_itemToResizeNext )
{
drawResizeHandle( painter, rect, m_resizeHandleX );
}
}