|
|
|
|
@ -464,6 +464,22 @@ QLinkedList< const ObjectRect * > Page::objectRects( ObjectRect::ObjectType type |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QLinkedList< const ObjectRect * > Page::objectRects( ObjectRect::ObjectType type) const |
|
|
|
|
{ |
|
|
|
|
QLinkedList< const ObjectRect * > result; |
|
|
|
|
|
|
|
|
|
QLinkedListIterator< ObjectRect * > it( m_rects ); |
|
|
|
|
it.toBack(); |
|
|
|
|
while ( it.hasPrevious() ) |
|
|
|
|
{ |
|
|
|
|
const ObjectRect *objrect = it.previous(); |
|
|
|
|
if ( ( objrect->objectType() == type ) ) |
|
|
|
|
result.append( objrect ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ObjectRect* Page::nearestObjectRect( ObjectRect::ObjectType type, double x, double y, double xScale, double yScale, double * distance ) const |
|
|
|
|
{ |
|
|
|
|
|