42 #include <QtCore/qstring.h>
43 #include <private/qgraphicsitem_p.h>
78 item->d_func()->itemDiscovered = 1;
122 climbTree(insertVisitor,
rect);
128 climbTree(removeVisitor,
rect);
133 for (
int i = 0;
i < leaves.
size(); ++
i) {
136 for (
int j = 0;
j < oldItemList.
size(); ++
j) {
141 leaves[
i] = newItemList;
150 climbTree(findVisitor,
rect);
152 for (
int i = 0;
i < tmp.
size(); ++
i)
199 qreal offset1, offset2;
206 offset2 =
rect2.center().x();
212 offset2 =
rect2.center().y();
218 child->offset = offset1;
221 child = &nodes[childIndex + 1];
222 child->offset = offset2;
229 node->leafIndex = leafCnt++;
248 climbTree(visitor, rect, childIndex);
250 climbTree(visitor, rect, childIndex + 1);
252 climbTree(visitor, rect, childIndex + 1);
257 climbTree(visitor, rect, childIndex);
259 climbTree(visitor, rect, childIndex + 1);
261 climbTree(visitor, rect, childIndex + 1);
266 QRectF QGraphicsSceneBspTree::rectForIndex(
int index)
const
small capitals from c petite p scientific i
[1]
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
QScopedPointer< QGraphicsItemPrivate > d_ptr
QGraphicsItem * topLevelItem() const
void removeItem(QGraphicsItem *item, const QRectF &rect)
void removeItems(const QSet< QGraphicsItem * > &items)
int firstChildIndex(int index) const
void initialize(const QRectF &rect, int depth)
int parentIndex(int index) const
QList< QGraphicsItem * > items(const QRectF &rect, bool onlyTopLevelItems=false) const
void insertItem(QGraphicsItem *item, const QRectF &rect)
QString debug(int index) const
virtual void visit(QList< QGraphicsItem * > *items)=0
void visit(QList< QGraphicsItem * > *items) override
QList< QGraphicsItem * > * foundItems
void visit(QList< QGraphicsItem * > *items) override
void visit(QList< QGraphicsItem * > *items) override
qsizetype size() const noexcept
QList< T > & fill(parameter_type t, qsizetype size=-1)
bool isEmpty() const noexcept
const_reference at(qsizetype i) const noexcept
qsizetype removeAll(const AT &t)
void prepend(rvalue_ref t)
void resize(qsizetype size)
constexpr qreal x() const noexcept
constexpr qreal y() const noexcept
The QRectF class defines a finite rectangle in the plane using floating point precision.
constexpr qreal bottom() const noexcept
constexpr qreal height() const noexcept
constexpr qreal width() const noexcept
constexpr qreal left() const noexcept
constexpr QPointF center() const noexcept
constexpr qreal top() const noexcept
constexpr qreal right() const noexcept
constexpr void setRect(qreal x, qreal y, qreal w, qreal h) noexcept
The QString class provides a Unicode character string.
static QString fromLatin1(QByteArrayView ba)
QString arg(qlonglong a, int fieldwidth=0, int base=10, QChar fillChar=QLatin1Char(' ')) const
QT_END_INCLUDE_NAMESPACE typedef double qreal
GLint GLenum GLsizei GLsizei GLsizei depth
bool contains(const AT &t) const noexcept
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent