Add debug output.
This commit is contained in:
parent
c2cb367753
commit
7c80f846f1
@ -238,12 +238,25 @@ PartitionBarsView::indexAt( const QPoint &point,
|
|||||||
rect.height() - 2 * EXTENDED_PARTITION_MARGIN
|
rect.height() - 2 * EXTENDED_PARTITION_MARGIN
|
||||||
);
|
);
|
||||||
if ( subRect.contains( point ) )
|
if ( subRect.contains( point ) )
|
||||||
|
{
|
||||||
|
cDebug() << "point:" << point
|
||||||
|
<< "\t\trect:" << subRect
|
||||||
|
<< "\t\tindex:" << item.index.data();
|
||||||
return indexAt( point, subRect, item.index );
|
return indexAt( point, subRect, item.index );
|
||||||
|
}
|
||||||
|
cDebug() << "point:" << point
|
||||||
|
<< "\t\trect:" << thisItemRect
|
||||||
|
<< "\t\tindex:" << item.index.data();
|
||||||
return item.index;
|
return item.index;
|
||||||
}
|
}
|
||||||
else // contains but no children, we win
|
else // contains but no children, we win
|
||||||
|
{
|
||||||
|
cDebug() << "point:" << point
|
||||||
|
<< "\t\trect:" << thisItemRect
|
||||||
|
<< "\t\tindex:" << item.index.data();
|
||||||
return item.index;
|
return item.index;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
x += width;
|
x += width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user