2958 int segStartPosition;
2960 int deltaFlowPosition;
2961 int deltaSegPosition;
2972 flowPosition = topLeft.
x();
2973 segPosition = topLeft.
y();
2980 flowPosition = topLeft.
y();
2981 segPosition = topLeft.
x();
2989 for (
int row = info.
first; row <= info.
last; ++row) {
2997 deltaFlowPosition = item->
w + info.
spacing;
2999 deltaFlowPosition = item->
h + info.
spacing;
3007 && flowPosition + deltaFlowPosition > segEndPosition
3008 && flowPosition > segStartPosition) {
3009 flowPosition = segStartPosition;
3010 segPosition += deltaSegPosition;
3012 deltaSegPosition = 0;
3018 deltaSegHint = item->
h + info.
spacing;
3020 deltaSegHint = item->
w + info.
spacing;
3021 deltaSegPosition =
qMax(deltaSegPosition, deltaSegHint);
3031 item->
y = segPosition;
3033 item->
x = flowPosition + ((deltaFlowPosition - item->
w) / 2);
3034 item->
y = segPosition;
3039 item->
x = segPosition;
3041 item->
y = flowPosition + ((deltaFlowPosition - item->
h) / 2);
3042 item->
x = segPosition;
3049 rect |= item->
rect();
3051 rect |=
QRect(flowPosition, segPosition, deltaFlowPosition, deltaSegPosition);
3053 rect |=
QRect(segPosition, flowPosition, deltaSegPosition, deltaFlowPosition);
3056 flowPosition += deltaFlowPosition;
3070 if (rect.size().isEmpty())
3073 int insertFrom = info.
first;
3074 if (done || info.
first == 0) {
3079 for (
int row = insertFrom; row <= info.
last; ++row)
3082 QRect changedRect(topLeft, rect.bottomRight());
void insertLeaf(const QRect &r, int i)
int count(const T &t) const
Returns the number of occurrences of value in the vector.
QVector< QListViewItem > items
int left() const
Returns the x-coordinate of the rectangle's left edge.
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
void initBspTree(const QSize &contents)
bool testBit(int i) const
Returns true if the bit at index position i is 1; otherwise returns false.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
int width() const
Returns the width.
bool isHidden(int row) const
void resize(int size)
Resizes the bit array to size bits.
bool contains(const QPoint &p, bool proper=false) const
Returns true if the given point is inside or on the edge of the rectangle, otherwise returns false...
const T & at(int i) const
Returns the item at index position i in the vector.
QPoint initDynamicLayout(const QListViewLayoutInfo &info)
int top() const
Returns the y-coordinate of the rectangle's top edge.
int right() const
Returns the x-coordinate of the rectangle's right edge.
The QPoint class defines a point in the plane using integer precision.
int & rheight()
Returns a reference to the height.
int height() const
Returns the height.
The QRect class defines a rectangle in the plane using integer precision.
bool isValid() const
Returns true if both the width and height is equal to or greater than 0; otherwise returns false...
int count() const
Same as size().
int y() const
Returns the y coordinate of this point.
static QFixed flowPosition(const QTextFrame::iterator it)
bool intersects(const QRect &r) const
Returns true if this rectangle intersects with the given rectangle (i.
int x() const
Returns the x coordinate of this point.
QWidget * viewport() const
int & rwidth()
Returns a reference to the width.