Qt 4.8
|
#include <qheaderview_p.h>
Classes | |
struct | SectionSpan |
Public Types | |
enum | State { NoState, ResizeSection, MoveSection, SelectSections, NoClear } |
enum | StateVersion { VersionMarker = 0xff } |
Public Types inherited from QWidgetPrivate | |
enum | CloseMode { CloseNoEvent, CloseWithEvent, CloseWithSpontaneousEvent } |
enum | Direction { DirectionNorth = 0x01, DirectionEast = 0x10, DirectionSouth = 0x02, DirectionWest = 0x20 } |
enum | DrawWidgetFlags { DrawAsRoot = 0x01, DrawPaintOnScreen = 0x02, DrawRecursive = 0x04, DrawInvisible = 0x08, DontSubtractOpaqueChildren = 0x10, DontSetCompositionMode = 0x20, DontDrawOpaqueChildren = 0x40, DontDrawNativeChildren = 0x80 } |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Public Functions | |
void | _q_layoutAboutToBeChanged () |
void | _q_layoutChanged () |
This slot is called when the layout is changed. More... | |
void | _q_sectionsRemoved (const QModelIndex &, int, int) |
int | adjustedVisualIndex (int visualIndex) const |
void | cascadingResize (int visual, int newSize) |
void | clear () |
void | clearCascadingSections () |
bool | columnIntersectsSelection (int column) const |
void | createSectionSpan (int start, int end, int size, QHeaderView::ResizeMode mode) |
void | doDelayedResizeSections () |
void | executePostedResize () const |
void | flipSortIndicator (int section) |
QStyleOptionHeader | getStyleOption () const |
bool | hasAutoResizeSections () const |
int | headerLength () const |
int | headerSectionCount () const |
int | headerSectionPosition (int visual) const |
QHeaderView::ResizeMode | headerSectionResizeMode (int visual) const |
int | headerSectionSize (int visual) const |
int | headerVisualIndexAt (int position) const |
void | initializeIndexMapping () const |
void | invalidateCachedSizeHint () const |
bool | isColumnSelected (int column) const |
bool | isRowSelected (int row) const |
bool | isSectionSelected (int section) const |
bool | isVisualIndexHidden (int visual) const |
int | lastVisibleVisualIndex () const |
Returns the last visible (ie. More... | |
int | logicalIndex (int visualIndex) const |
bool | modelIsEmpty () const |
int | modelSectionCount () const |
void | prepareSectionSelected () |
QHeaderViewPrivate () | |
bool | read (QDataStream &in) |
void | removeSectionsFromSpans (int start, int end) |
void | removeSpans (const QList< int > &spans) |
void | resizeSections (QHeaderView::ResizeMode globalMode, bool useGlobalMode=false) |
Go through and resize all of the sections applying stretchLastSection, manualy stretches, sizes, and useGlobalMode. More... | |
void | resizeSectionSpan (int visualIndex, int oldSize, int newSize) |
bool | reverse () const |
bool | rowIntersectsSelection (int row) const |
void | saveCascadingSectionSize (int visual, int size) |
int | sectionHandleAt (int position) |
bool | sectionIntersectsSelection (int logical) const |
bool | sectionIsCascadable (int visual) const |
int | sectionSpanIndex (int visual) const |
void | setDefaultSectionSize (int size) |
void | setDefaultValues (Qt::Orientation o) |
void | setGlobalHeaderResizeMode (QHeaderView::ResizeMode mode) |
void | setHeaderSectionResizeMode (int visual, QHeaderView::ResizeMode mode) |
void | setupSectionIndicator (int section, int position) |
void | setVisualIndexHidden (int visual, bool hidden) |
void | updateHiddenSections (int logicalFirst, int logicalLast) |
void | updateSectionIndicator (int section, int position) |
int | viewSectionSizeHint (int logical) const |
int | visualIndex (int logicalIndex) const |
void | write (QDataStream &out) const |
Public Functions inherited from QAbstractItemViewPrivate | |
virtual void | _q_columnsAboutToBeRemoved (const QModelIndex &parent, int start, int end) |
This slot is called when columns are about to be removed. More... | |
virtual void | _q_columnsInserted (const QModelIndex &parent, int start, int end) |
This slot is called when columns have been inserted. More... | |
virtual void | _q_columnsRemoved (const QModelIndex &parent, int start, int end) |
This slot is called when columns have been removed. More... | |
void | _q_headerDataChanged () |
virtual void | _q_modelDestroyed () |
virtual void | _q_rowsInserted (const QModelIndex &parent, int start, int end) |
This slot is called when rows have been inserted. More... | |
virtual void | _q_rowsRemoved (const QModelIndex &parent, int start, int end) |
This slot is called when rows have been removed. More... | |
void | addEditor (const QModelIndex &index, QWidget *editor, bool isStatic) |
virtual void | adjustViewOptionsForIndex (QStyleOptionViewItemV4 *, const QModelIndex &) const |
bool | canDecode (QDropEvent *e) const |
void | checkMouseMove (const QPersistentModelIndex &index) |
void | checkMouseMove (const QPoint &pos) |
void | checkPersistentEditorFocus () |
When persistent aeditor gets/loses focus, we need to check and setcorrectly the current index. More... | |
void | clearOrRemove () |
In DND if something has been moved then this is called. More... | |
virtual QPoint | contentsOffset () const |
QItemSelectionModel::SelectionFlags | contiguousSelectionCommand (const QModelIndex &index, const QEvent *event) const |
QAbstractItemDelegate * | delegateForIndex (const QModelIndex &index) const |
int | delegateRefCount (const QAbstractItemDelegate *delegate) const |
void | doDelayedItemsLayout (int delay=0) |
void | doDelayedReset () |
virtual QItemViewPaintPairs | draggablePaintPairs (const QModelIndexList &indexes, QRect *r) const |
virtual bool | dropOn (QDropEvent *event, int *row, int *col, QModelIndex *index) |
If the event hasn't already been accepted, determines the index to drop on. More... | |
bool | droppingOnItself (QDropEvent *event, const QModelIndex &index) |
Return true if this is a move from ourself and index is a child of the selection that is being moved. More... | |
QWidget * | editor (const QModelIndex &index, const QStyleOptionViewItem &options) |
const QEditorInfo & | editorForIndex (const QModelIndex &index) const |
void | executePostedLayout () const |
QItemSelectionModel::SelectionFlags | extendedSelectionCommand (const QModelIndex &index, const QEvent *event) const |
void | fetchMore () |
bool | hasEditor (const QModelIndex &index) const |
QModelIndex | indexForEditor (QWidget *editor) const |
void | init () |
void | interruptDelayedItemsLayout () const |
bool | isAnimating () const |
bool | isIndexDragEnabled (const QModelIndex &index) const |
bool | isIndexDropEnabled (const QModelIndex &index) const |
bool | isIndexEnabled (const QModelIndex &index) const |
bool | isIndexSelectable (const QModelIndex &index) const |
bool | isIndexValid (const QModelIndex &index) const |
bool | isPersistent (const QModelIndex &index) const |
QItemSelectionModel::SelectionFlags | multiSelectionCommand (const QModelIndex &index, const QEvent *event) const |
QPoint | offset () const |
bool | openEditor (const QModelIndex &index, QEvent *event) |
void | paintDropIndicator (QPainter *painter) |
virtual QAbstractItemView::DropIndicatorPosition | position (const QPoint &pos, const QRect &rect, const QModelIndex &idx) const |
QAbstractItemViewPrivate () | |
void | releaseEditor (QWidget *editor) const |
void | removeEditor (QWidget *editor) |
QPixmap | renderToPixmap (const QModelIndexList &indexes, QRect *r) const |
void | scrollContentsBy (int dx, int dy) |
void | scrollDirtyRegion (int dx, int dy) |
virtual void | selectAll (QItemSelectionModel::SelectionFlags command) |
QModelIndexList | selectedDraggableIndexes () const |
virtual bool | selectionAllowed (const QModelIndex &index) const |
QItemSelectionModel::SelectionFlags | selectionBehaviorFlags () const |
bool | sendDelegateEvent (const QModelIndex &index, QEvent *event) const |
void | setDirtyRegion (const QRegion &visualRegion) |
void | setHoverIndex (const QPersistentModelIndex &index) |
bool | shouldAutoScroll (const QPoint &pos) const |
bool | shouldEdit (QAbstractItemView::EditTrigger trigger, const QModelIndex &index) const |
bool | shouldForwardEvent (QAbstractItemView::EditTrigger trigger, const QEvent *event) const |
void | startAutoScroll () |
void | stopAutoScroll () |
void | updateDirtyRegion () |
void | updateEditorData (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
QStyleOptionViewItemV4 | viewOptionsV4 () const |
virtual | ~QAbstractItemViewPrivate () |
Public Functions inherited from QAbstractScrollAreaPrivate | |
void | _q_hslide (int) |
void | _q_showOrHideScrollBars () |
void | _q_vslide (int) |
void | init () |
void | layoutChildren () |
QAbstractScrollAreaPrivate () | |
void | replaceScrollBar (QScrollBar *scrollBar, Qt::Orientation orientation) |
virtual void | scrollBarPolicyChanged (Qt::Orientation, Qt::ScrollBarPolicy) |
void | setSingleFingerPanEnabled (bool on=true) |
bool | viewportEvent (QEvent *event) |
Public Functions inherited from QFramePrivate | |
void | init () |
QFramePrivate () | |
void | updateFrameWidth () |
Updated the frameWidth parameter. More... | |
void | updateStyledFrameWidths () |
Updates the frame widths from the style. More... | |
Public Functions inherited from QWidgetPrivate | |
void | _q_showIfNotHidden () |
virtual void | aboutToDestroy () |
void | activateChildLayoutsRecursively () |
QSize | adjustedSize () const |
void | adjustQuitOnCloseAttribute () |
QInputContext * | assignedInputContext () const |
QPainter * | beginSharedPainter () |
QWidget * | childAt_helper (const QPoint &, bool) const |
QWidget * | childAtRecursiveHelper (const QPoint &p, bool, bool includeFrame=false) const |
QRect | clipRect () const |
QRegion | clipRegion () const |
void | clipToEffectiveMask (QRegion ®ion) const |
bool | close_helper (CloseMode mode) |
void | create_sys (WId window, bool initializeWindow, bool destroyOldWindow) |
QWindowSurface * | createDefaultWindowSurface () |
QWindowSurface * | createDefaultWindowSurface_sys () |
void | createExtra () |
Creates the widget extra data. More... | |
void | createRecursively () |
void | createSysExtra () |
void | createTLExtra () |
void | createTLSysExtra () |
void | createWinId (WId id=0) |
void | deactivateWidgetCleanup () |
void | deleteExtra () |
Deletes the widget extra data. More... | |
void | deleteSysExtra () |
void | deleteTLSysExtra () |
void | drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter=0, QWidgetBackingStore *backingStore=0) |
QWidget * | effectiveFocusWidget () |
QRect | effectiveRectFor (const QRect &rect) const |
bool | endSharedPainter () |
void | enforceNativeChildren () |
QWExtra * | extraData () const |
QRect | frameStrut () const |
void | getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const |
const QRegion & | getOpaqueChildren () const |
void | handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus) |
virtual bool | hasHeightForWidth () const |
void | hide_helper () |
void | hide_sys () |
Platform-specific part of QWidget::hide(). More... | |
void | hideChildren (bool spontaneous) |
void | inheritStyle () |
void | init (QWidget *desktopWidget, Qt::WindowFlags f) |
QInputContext * | inputContext () const |
void | invalidateBuffer (const QRegion &) |
Invalidates the rgn (in widget's coordinates) of the backing store, i.e. More... | |
void | invalidateBuffer (const QRect &) |
This function is equivalent to calling invalidateBuffer(QRegion(rect), ...), but is more efficient as it eliminates QRegion operations/allocations and can use the rect more precisely for additional cut-offs. More... | |
void | invalidateBuffer_resizeHelper (const QPoint &oldPos, const QSize &oldSize) |
Invalidates the buffer when the widget is resized. More... | |
void | invalidateGraphicsEffectsRecursively () |
bool | isAboutToShow () const |
bool | isBackgroundInherited () const |
bool | isOverlapped (const QRect &) const |
void | lower_sys () |
QPoint | mapFromGlobal (const QPoint &pos) const |
QPoint | mapToGlobal (const QPoint &pos) const |
QWidgetBackingStore * | maybeBackingStore () const |
QTLWExtra * | maybeTopData () const |
void | moveRect (const QRect &, int dx, int dy) |
bool | nativeChildrenForced () const |
QFont | naturalWidgetFont (uint inheritedMask) const |
QPalette | naturalWidgetPalette (uint inheritedMask) const |
Returns the palette that the widget w inherits from its ancestors and QApplication::palette. More... | |
void | paintBackground (QPainter *, const QRegion &, int flags=DrawAsRoot) const |
bool | paintOnScreen () const |
void | paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter, QWidgetBackingStore *backingStore) |
bool | pointInsideRectAndMask (const QPoint &) const |
QRegion | prepareToRender (const QRegion ®ion, QWidget::RenderFlags renderFlags) |
void | propagatePaletteChange () |
Propagate this widget's palette to all children, except style sheet widgets, and windows that don't enable window propagation (palettes don't normally propagate to windows). More... | |
QWidgetPrivate (int version=QObjectPrivateVersion) | |
void | raise_sys () |
QPaintDevice * | redirected (QPoint *offset) const |
void | registerDropSite (bool) |
void | render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags, bool readyToRender) |
void | render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags) |
void | repaint_sys (const QRegion &rgn) |
void | reparentFocusWidgets (QWidget *oldtlw) |
void | resolveFont () |
Determine which font is implicitly imposed on this widget by its ancestors and QApplication::font, resolve this against its own font (attributes from the implicit font are copied over). More... | |
void | resolveLayoutDirection () |
void | resolveLocale () |
void | resolvePalette () |
Determine which palette is inherited from this widget's ancestors and QApplication::palette, resolve this against this widget's palette (attributes from the inherited palette are copied over this widget's palette). More... | |
void | restoreRedirected () |
void | scroll_sys (int dx, int dy) |
void | scroll_sys (int dx, int dy, const QRect &r) |
void | scrollChildren (int dx, int dy) |
void | scrollRect (const QRect &, int dx, int dy) |
void | sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false) |
void | sendStartupMessage (const char *message) const |
Platform-specific part of QWidget::show(). More... | |
void | setConstraints_sys () |
void | setCursor_sys (const QCursor &cursor) |
void | setDirtyOpaqueRegion () |
void | setEnabled_helper (bool) |
void | setFocus_sys () |
void | setFont_helper (const QFont &font) |
void | setGeometry_sys (int, int, int, int, bool) |
void | setLayoutDirection_helper (Qt::LayoutDirection) |
void | setLayoutItemMargins (int left, int top, int right, int bottom) |
void | setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=0) |
void | setLocale_helper (const QLocale &l, bool forceUpdate=false) |
void | setMask_sys (const QRegion &) |
bool | setMaximumSize_helper (int &maxw, int &maxh) |
bool | setMinimumSize_helper (int &minw, int &minh) |
void | setModal_sys () |
void | setNetWmWindowTypes () |
void | setOpaque (bool opaque) |
void | setPalette_helper (const QPalette &) |
void | setParent_sys (QWidget *parent, Qt::WindowFlags) |
void | setRedirected (QPaintDevice *replacement, const QPoint &offset) |
void | setSharedPainter (QPainter *painter) |
void | setStyle_helper (QStyle *newStyle, bool propagate, bool metalHack=false) |
void | setUpdatesEnabled_helper (bool) |
void | setWindowFilePath_helper (const QString &filePath) |
void | setWindowIcon_helper () |
void | setWindowIcon_sys (bool forceReset=false) |
void | setWindowIconText_helper (const QString &cap) |
void | setWindowIconText_sys (const QString &cap) |
void | setWindowOpacity_sys (qreal opacity) |
void | setWindowRole () |
void | setWindowTitle_helper (const QString &cap) |
void | setWindowTitle_sys (const QString &cap) |
void | setWinId (WId) |
QPainter * | sharedPainter () const |
void | show_helper () |
void | show_recursive () |
Makes the widget visible in the isVisible() meaning of the word. More... | |
void | show_sys () |
Platform-specific part of QWidget::show(). More... | |
void | showChildren (bool spontaneous) |
void | stackUnder_sys (QWidget *) |
void | subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const |
void | subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=0, bool alsoNonOpaque=false) const |
void | syncBackingStore () |
void | syncBackingStore (const QRegion ®ion) |
QTLWExtra * | topData () const |
void | unsetCursor_sys () |
void | updateFont (const QFont &) |
Assign font to this widget, and propagate it to all children, except style sheet widgets (handled differently) and windows that don't enable window propagation. More... | |
void | updateFrameStrut () |
Computes the frame rectangle when needed. More... | |
void | updateGeometry_helper (bool forceUpdate) |
void | updateIsOpaque () |
void | updateIsTranslucent () |
void | updateSystemBackground () |
void | updateX11AcceptFocus () |
void | x11UpdateIsOpaque () |
~QWidgetPrivate () | |
Public Functions inherited from QObjectPrivate | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Additional Inherited Members | |
Static Public Functions inherited from QWidgetPrivate | |
static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=0) |
static QGraphicsProxyWidget * | nearestGraphicsProxyWidget (const QWidget *origin) |
Finds the nearest widget embedded in a graphics proxy widget along the chain formed by this widget and its ancestors. More... | |
static int | pointToRect (const QPoint &p, const QRect &r) |
static QRect | screenGeometry (const QWidget *widget) |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Static Public Variables inherited from QWidgetPrivate | |
static QWidgetSet * | allWidgets = 0 |
static int | instanceCounter = 0 |
static QWidget * | keyboardGrabber = 0 |
static QWidgetMapper * | mapper = 0 |
static int | maxInstances = 0 |
static QWidget * | mouseGrabber = 0 |
Definition at line 66 of file qheaderview_p.h.
Enumerator | |
---|---|
NoState | |
ResizeSection | |
MoveSection | |
SelectSections | |
NoClear |
Definition at line 238 of file qheaderview_p.h.
|
inline |
Definition at line 73 of file qheaderview_p.h.
void QHeaderViewPrivate::_q_layoutAboutToBeChanged | ( | ) |
Definition at line 1944 of file qheaderview.cpp.
Referenced by QHeaderViewPrivate().
|
virtual |
This slot is called when the layout is changed.
Reimplemented from QAbstractItemViewPrivate.
Definition at line 1961 of file qheaderview.cpp.
Referenced by QHeaderViewPrivate().
void QHeaderViewPrivate::_q_sectionsRemoved | ( | const QModelIndex & | parent, |
int | logicalFirst, | ||
int | logicalLast | ||
) |
Definition at line 1889 of file qheaderview.cpp.
Referenced by QHeaderViewPrivate().
int QHeaderViewPrivate::adjustedVisualIndex | ( | int | visualIndex | ) | const |
Definition at line 3667 of file qheaderview.cpp.
Referenced by sectionSpanIndex().
void QHeaderViewPrivate::cascadingResize | ( | int | visual, |
int | newSize | ||
) |
Definition at line 3443 of file qheaderview.cpp.
Referenced by executePostedResize().
void QHeaderViewPrivate::clear | ( | ) |
Definition at line 3412 of file qheaderview.cpp.
Referenced by executePostedResize().
|
inline |
Definition at line 195 of file qheaderview_p.h.
|
inline |
Definition at line 120 of file qheaderview_p.h.
Referenced by sectionIntersectsSelection().
void QHeaderViewPrivate::createSectionSpan | ( | int | start, |
int | end, | ||
int | size, | ||
QHeaderView::ResizeMode | mode | ||
) |
Definition at line 3237 of file qheaderview.cpp.
|
inline |
Definition at line 223 of file qheaderview_p.h.
|
inline |
Definition at line 228 of file qheaderview_p.h.
void QHeaderViewPrivate::flipSortIndicator | ( | int | section | ) |
Definition at line 3427 of file qheaderview.cpp.
Referenced by executePostedResize().
QStyleOptionHeader QHeaderViewPrivate::getStyleOption | ( | ) | const |
Referenced by hasAutoResizeSections().
|
inline |
Definition at line 173 of file qheaderview_p.h.
|
inline |
Definition at line 317 of file qheaderview_p.h.
|
inline |
Definition at line 310 of file qheaderview_p.h.
int QHeaderViewPrivate::headerSectionPosition | ( | int | visual | ) | const |
QHeaderView::ResizeMode QHeaderViewPrivate::headerSectionResizeMode | ( | int | visual | ) | const |
Definition at line 3642 of file qheaderview.cpp.
Referenced by sectionIsCascadable(), and sectionSpanIndex().
int QHeaderViewPrivate::headerSectionSize | ( | int | visual | ) | const |
int QHeaderViewPrivate::headerVisualIndexAt | ( | int | position | ) | const |
Definition at line 3614 of file qheaderview.cpp.
Referenced by sectionSpanIndex().
|
inline |
Definition at line 183 of file qheaderview_p.h.
|
inline |
Definition at line 179 of file qheaderview_p.h.
|
inline |
Definition at line 132 of file qheaderview_p.h.
|
inline |
Definition at line 128 of file qheaderview_p.h.
bool QHeaderViewPrivate::isSectionSelected | ( | int | section | ) | const |
Definition at line 3059 of file qheaderview.cpp.
Referenced by QHeaderViewPrivate().
|
inline |
Definition at line 165 of file qheaderview_p.h.
int QHeaderViewPrivate::lastVisibleVisualIndex | ( | ) | const |
Returns the last visible (ie.
Definition at line 3083 of file qheaderview.cpp.
Referenced by QHeaderViewPrivate().
|
inline |
Definition at line 148 of file qheaderview_p.h.
Referenced by visualIndex().
|
inline |
Definition at line 219 of file qheaderview_p.h.
|
inline |
Definition at line 213 of file qheaderview_p.h.
|
inline |
Definition at line 136 of file qheaderview_p.h.
bool QHeaderViewPrivate::read | ( | QDataStream & | in | ) |
Definition at line 3717 of file qheaderview.cpp.
void QHeaderViewPrivate::removeSectionsFromSpans | ( | int | start, |
int | end | ||
) |
Definition at line 3364 of file qheaderview.cpp.
|
inline |
Definition at line 324 of file qheaderview_p.h.
void QHeaderViewPrivate::resizeSections | ( | QHeaderView::ResizeMode | globalMode, |
bool | useGlobalMode = false |
||
) |
Go through and resize all of the sections applying stretchLastSection, manualy stretches, sizes, and useGlobalMode.
The different resize modes are: Interactive - the user decides the size Stretch - take up whatever space is left Fixed - the size is set programmatically outside the header ResizeToContentes - the size is set based on the contents of the row or column in the parent view
The resize mode will not affect the last section if stretchLastSection is true.
Definition at line 3111 of file qheaderview.cpp.
Referenced by executePostedResize(), and QHeaderViewPrivate().
void QHeaderViewPrivate::resizeSectionSpan | ( | int | visualIndex, |
int | oldSize, | ||
int | newSize | ||
) |
Definition at line 3574 of file qheaderview.cpp.
|
inline |
Definition at line 144 of file qheaderview_p.h.
|
inline |
Definition at line 116 of file qheaderview_p.h.
Referenced by sectionIntersectsSelection().
|
inline |
Definition at line 201 of file qheaderview_p.h.
int QHeaderViewPrivate::sectionHandleAt | ( | int | position | ) |
Definition at line 2961 of file qheaderview.cpp.
Referenced by QHeaderViewPrivate().
|
inline |
Definition at line 124 of file qheaderview_p.h.
|
inline |
Definition at line 209 of file qheaderview_p.h.
|
inline |
Definition at line 331 of file qheaderview_p.h.
void QHeaderViewPrivate::setDefaultSectionSize | ( | int | size | ) |
Definition at line 3551 of file qheaderview.cpp.
|
inline |
Definition at line 156 of file qheaderview_p.h.
void QHeaderViewPrivate::setGlobalHeaderResizeMode | ( | QHeaderView::ResizeMode | mode | ) |
Definition at line 3650 of file qheaderview.cpp.
Referenced by sectionSpanIndex().
void QHeaderViewPrivate::setHeaderSectionResizeMode | ( | int | visual, |
QHeaderView::ResizeMode | mode | ||
) |
Definition at line 3636 of file qheaderview.cpp.
Referenced by sectionSpanIndex().
void QHeaderViewPrivate::setupSectionIndicator | ( | int | section, |
int | position | ||
) |
Definition at line 2990 of file qheaderview.cpp.
Referenced by QHeaderViewPrivate().
|
inline |
Definition at line 169 of file qheaderview_p.h.
void QHeaderViewPrivate::updateHiddenSections | ( | int | logicalFirst, |
int | logicalLast | ||
) |
Definition at line 1860 of file qheaderview.cpp.
Referenced by QHeaderViewPrivate().
void QHeaderViewPrivate::updateSectionIndicator | ( | int | section, |
int | position | ||
) |
Definition at line 3021 of file qheaderview.cpp.
Referenced by QHeaderViewPrivate().
int QHeaderViewPrivate::viewSectionSizeHint | ( | int | logical | ) | const |
Definition at line 3657 of file qheaderview.cpp.
Referenced by sectionSpanIndex().
|
inline |
Definition at line 152 of file qheaderview_p.h.
Referenced by logicalIndex(), and sectionSpanIndex().
void QHeaderViewPrivate::write | ( | QDataStream & | out | ) | const |
Definition at line 3686 of file qheaderview.cpp.
|
mutable |
Definition at line 252 of file qheaderview_p.h.
Referenced by invalidateCachedSizeHint().
bool QHeaderViewPrivate::cascadingResizing |
Definition at line 272 of file qheaderview_p.h.
|
mutable |
Definition at line 251 of file qheaderview_p.h.
Referenced by clearCascadingSections(), and saveCascadingSectionSize().
bool QHeaderViewPrivate::clickableSections |
Definition at line 269 of file qheaderview_p.h.
int QHeaderViewPrivate::contentsSections |
Definition at line 275 of file qheaderview_p.h.
Referenced by hasAutoResizeSections().
Qt::Alignment QHeaderViewPrivate::defaultAlignment |
Definition at line 280 of file qheaderview_p.h.
Referenced by setDefaultValues().
int QHeaderViewPrivate::defaultSectionSize |
Definition at line 276 of file qheaderview_p.h.
Referenced by setDefaultValues().
|
mutable |
Definition at line 253 of file qheaderview_p.h.
Referenced by doDelayedResizeSections(), and executePostedResize().
int QHeaderViewPrivate::firstCascadingSection |
Definition at line 255 of file qheaderview_p.h.
Referenced by clearCascadingSections(), and saveCascadingSectionSize().
int QHeaderViewPrivate::firstPos |
Definition at line 259 of file qheaderview_p.h.
QHeaderView::ResizeMode QHeaderViewPrivate::globalResizeMode |
Definition at line 282 of file qheaderview_p.h.
|
mutable |
Definition at line 250 of file qheaderview_p.h.
bool QHeaderViewPrivate::highlightSelected |
Definition at line 270 of file qheaderview_p.h.
int QHeaderViewPrivate::hover |
Definition at line 264 of file qheaderview_p.h.
int QHeaderViewPrivate::lastCascadingSection |
Definition at line 256 of file qheaderview_p.h.
Referenced by clearCascadingSections(), and saveCascadingSectionSize().
int QHeaderViewPrivate::lastPos |
Definition at line 258 of file qheaderview_p.h.
int QHeaderViewPrivate::lastSectionSize |
Definition at line 278 of file qheaderview_p.h.
int QHeaderViewPrivate::length |
Definition at line 266 of file qheaderview_p.h.
|
mutable |
Definition at line 247 of file qheaderview_p.h.
Referenced by initializeIndexMapping(), and logicalIndex().
int QHeaderViewPrivate::minimumSectionSize |
Definition at line 277 of file qheaderview_p.h.
Referenced by setDefaultValues().
bool QHeaderViewPrivate::movableSections |
Definition at line 268 of file qheaderview_p.h.
int QHeaderViewPrivate::offset |
Definition at line 240 of file qheaderview_p.h.
Qt::Orientation QHeaderViewPrivate::orientation |
Definition at line 241 of file qheaderview_p.h.
Referenced by modelSectionCount(), reverse(), sectionIntersectsSelection(), and setDefaultValues().
int QHeaderViewPrivate::originalSize |
Definition at line 260 of file qheaderview_p.h.
QList<QPersistentModelIndex> QHeaderViewPrivate::persistentHiddenSections |
Definition at line 283 of file qheaderview_p.h.
int QHeaderViewPrivate::pressed |
Definition at line 263 of file qheaderview_p.h.
bool QHeaderViewPrivate::resizeRecursionBlock |
Definition at line 273 of file qheaderview_p.h.
int QHeaderViewPrivate::section |
Definition at line 261 of file qheaderview_p.h.
Referenced by QHeaderViewPrivate().
int QHeaderViewPrivate::sectionCount |
Definition at line 267 of file qheaderview_p.h.
Referenced by clearCascadingSections(), initializeIndexMapping(), and prepareSectionSelected().
|
mutable |
Definition at line 249 of file qheaderview_p.h.
Referenced by isVisualIndexHidden(), and setVisualIndexHidden().
QLabel* QHeaderViewPrivate::sectionIndicator |
Definition at line 281 of file qheaderview_p.h.
int QHeaderViewPrivate::sectionIndicatorOffset |
Definition at line 279 of file qheaderview_p.h.
|
mutable |
Definition at line 248 of file qheaderview_p.h.
Referenced by prepareSectionSelected().
QVector<SectionSpan> QHeaderViewPrivate::sectionSpans |
Definition at line 303 of file qheaderview_p.h.
Qt::SortOrder QHeaderViewPrivate::sortIndicatorOrder |
Definition at line 242 of file qheaderview_p.h.
int QHeaderViewPrivate::sortIndicatorSection |
Definition at line 243 of file qheaderview_p.h.
bool QHeaderViewPrivate::sortIndicatorShown |
Definition at line 244 of file qheaderview_p.h.
enum QHeaderViewPrivate::State QHeaderViewPrivate::state |
Referenced by executePostedResize().
bool QHeaderViewPrivate::stretchLastSection |
Definition at line 271 of file qheaderview_p.h.
Referenced by hasAutoResizeSections().
int QHeaderViewPrivate::stretchSections |
Definition at line 274 of file qheaderview_p.h.
Referenced by hasAutoResizeSections().
int QHeaderViewPrivate::target |
Definition at line 262 of file qheaderview_p.h.
|
mutable |
Definition at line 246 of file qheaderview_p.h.
Referenced by initializeIndexMapping(), and visualIndex().