Add debug output.
This commit is contained in:
parent
c2cb367753
commit
7c80f846f1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user