Qt 4.8
|
#include <qtableview_p.h>
Classes | |
struct | Span |
Public Types | |
typedef QLinkedList< Span * > | SpanList |
Public Functions | |
void | addSpan (Span *span) |
void | clear () |
Span * | spanAt (int x, int y) const |
QList< Span * > | spansInRect (int x, int y, int w, int h) const |
void | updateInsertedColumns (int start, int end) |
void | updateInsertedRows (int start, int end) |
void | updateRemovedColumns (int start, int end) |
void | updateRemovedRows (int start, int end) |
void | updateSpan (Span *span, int old_height) |
~QSpanCollection () | |
Public Variables | |
SpanList | spans |
Private Types | |
typedef QMap< int, SubIndex > | Index |
typedef QMap< int, Span * > | SubIndex |
Private Functions | |
bool | cleanSpanSubIndex (SubIndex &subindex, int end, bool update=false) |
Properties | |
Index | index |
This is a list of span with a binary index to look up quickly a span at a certain index.
The index is a map of map. spans are mentaly divided into sub spans so that the start of any subspans doesn't overlap with any other subspans. There is no real representation of the subspans. The key of the first map is the row where the subspan starts, the value of the first map is a list (map) of all subspans that starts at the same row. It is indexed with its row
Definition at line 77 of file qtableview_p.h.
|
private |
Definition at line 124 of file qtableview_p.h.
typedef QLinkedList<Span *> QSpanCollection::SpanList |
Definition at line 119 of file qtableview_p.h.
|
private |
Definition at line 123 of file qtableview_p.h.
|
inline |
Definition at line 99 of file qtableview_p.h.
void QSpanCollection::addSpan | ( | QSpanCollection::Span * | span | ) |
Definition at line 65 of file qtableview.cpp.
|
private |
Definition at line 312 of file qtableview.cpp.
Referenced by updateRemovedColumns(), and updateRemovedRows().
void QSpanCollection::clear | ( | ) |
Definition at line 160 of file qtableview.cpp.
QSpanCollection::Span * QSpanCollection::spanAt | ( | int | x, |
int | y | ||
) | const |
Definition at line 142 of file qtableview.cpp.
QList< QSpanCollection::Span * > QSpanCollection::spansInRect | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) | const |
Definition at line 170 of file qtableview.cpp.
void QSpanCollection::updateInsertedColumns | ( | int | start, |
int | end | ||
) |
Definition at line 258 of file qtableview.cpp.
void QSpanCollection::updateInsertedRows | ( | int | start, |
int | end | ||
) |
Definition at line 208 of file qtableview.cpp.
void QSpanCollection::updateRemovedColumns | ( | int | start, |
int | end | ||
) |
Definition at line 470 of file qtableview.cpp.
void QSpanCollection::updateRemovedRows | ( | int | start, |
int | end | ||
) |
Definition at line 341 of file qtableview.cpp.
void QSpanCollection::updateSpan | ( | QSpanCollection::Span * | span, |
int | old_height | ||
) |
old_height is the height before the change
if the size of the span is now 0x0 the span will be deleted.
Definition at line 103 of file qtableview.cpp.
|
private |
Definition at line 125 of file qtableview_p.h.
Referenced by addSpan(), clear(), QTableViewPrivate::drawAndClipSpans(), spanAt(), spansInRect(), updateInsertedColumns(), updateInsertedRows(), updateRemovedColumns(), updateRemovedRows(), and updateSpan().
SpanList QSpanCollection::spans |
Definition at line 120 of file qtableview_p.h.
Referenced by QTableViewPrivate::_q_updateSpanInsertedColumns(), QTableViewPrivate::_q_updateSpanInsertedRows(), QTableViewPrivate::_q_updateSpanRemovedColumns(), QTableViewPrivate::_q_updateSpanRemovedRows(), addSpan(), clear(), QTableViewPrivate::drawAndClipSpans(), QTableViewPrivate::hasSpans(), QTableViewPrivate::setSpan(), QTableViewPrivate::span(), updateInsertedColumns(), updateInsertedRows(), updateRemovedColumns(), updateRemovedRows(), and updateSpan().