2435 int segStartPosition;
2437 int deltaFlowPosition;
2438 int deltaSegPosition;
2446 flowPosition = topLeft.
x();
2447 segPosition = topLeft.
y();
2454 flowPosition = topLeft.
y();
2455 segPosition = topLeft.
x();
2461 for (
int row = info.
first; row <= info.
last; ++row) {
2477 if (info.
wrap && (flowPosition + deltaFlowPosition >= segEndPosition)) {
2479 flowPosition = info.
spacing + segStartPosition;
2480 segPosition += deltaSegPosition;
2485 deltaSegPosition = 0;
2491 deltaSegPosition =
qMax(deltaSegHint, deltaSegPosition);
2492 flowPosition += info.
spacing + deltaFlowPosition;
2505 rect.
setBottom(segPosition + deltaSegPosition);
2507 rect.
setRight(segPosition + deltaSegPosition);
void setBottom(int pos)
Sets the bottom edge of the rectangle to the given y coordinate.
QVector< int > segmentStartRows
QVector< int > segmentPositions
int count(const T &t) const
Returns the number of occurrences of value in the vector.
QVector< int > flowPositions
The QStyleOptionViewItemV4 class is used to describe the parameters necessary for drawing a frame in ...
int left() const
Returns the x-coordinate of the rectangle's left edge.
int width() const
Returns the width of the rectangle.
int height() const
Returns the height of the rectangle.
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
int width() const
Returns the width.
bool isHidden(int row) const
QPoint bottomRight() const
Returns the position of the rectangle's bottom-right corner.
QSize itemSize(const QStyleOptionViewItemV2 &opt, const QModelIndex &idx) const
QVector< int > scrollValueMap
void adjust(int x1, int y1, int x2, int y2)
Adds dx1, dy1, dx2 and dy2 respectively to the existing coordinates of the rectangle.
void setRight(int pos)
Sets the right edge of the rectangle to the given x coordinate.
void append(const T &t)
Inserts value at the end of the vector.
QVector< int > segmentExtents
QPoint initStaticLayout(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.
QModelIndex modelIndex(int row) const
The QPoint class defines a point in the plane using integer precision.
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 y() const
Returns the y coordinate of this point.
static QFixed flowPosition(const QTextFrame::iterator it)
The QSize class defines the size of a two-dimensional object using integer point precision.
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.
QRect rect
the area that should be used for various calculations and painting
QWidget * viewport() const
QStyleOptionViewItemV4 viewOptions() const