Add debug output.

This commit is contained in:
Teo Mrnjavac 2015-12-10 19:20:27 +01:00
parent c2cb367753
commit 7c80f846f1

View File

@ -238,11 +238,24 @@ PartitionBarsView::indexAt( const QPoint &point,
rect.height() - 2 * EXTENDED_PARTITION_MARGIN
);
if ( subRect.contains( point ) )
{
cDebug() << "point:" << point
<< "\t\trect:" << subRect
<< "\t\tindex:" << item.index.data();
return indexAt( point, subRect, item.index );
}
cDebug() << "point:" << point
<< "\t\trect:" << thisItemRect
<< "\t\tindex:" << item.index.data();
return item.index;
}
else // contains but no children, we win
{
cDebug() << "point:" << point
<< "\t\trect:" << thisItemRect
<< "\t\tindex:" << item.index.data();
return item.index;
}
}
x += width;
}