Fix an another layout problem in instance list

This commit is contained in:
Petr Mrázek 2013-03-25 19:28:08 +01:00
parent 65dc5d44f1
commit 37852d47a7

View File

@ -479,7 +479,8 @@ void KCategorizedView::Private::leftToRightVisualRect ( const QModelIndex &index
Q_FOREVER Q_FOREVER
{ {
prevIndex = proxyModel->index ( prevIndex.row() - 1, q->modelColumn(), q->rootIndex() ); prevIndex = proxyModel->index ( prevIndex.row() - 1, q->modelColumn(), q->rootIndex() );
const QRect tempRect = q->visualRect ( prevIndex ); QRect tempRect = q->visualRect ( prevIndex );
tempRect = mapFromViewport ( tempRect );
if ( tempRect.topLeft().y() < prevRect.topLeft().y() ) if ( tempRect.topLeft().y() < prevRect.topLeft().y() )
{ {
break; break;