Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QHeaderViewPrivate Class Reference

#include <qheaderview_p.h>

Inheritance diagram for QHeaderViewPrivate:
Collaboration diagram for QHeaderViewPrivate:

Classes

struct  LayoutChangeItem
struct  SectionItem

Public Types

enum  StateVersion { VersionMarker = 0xff }
enum  State {
  NoState , ResizeSection , MoveSection , SelectSections ,
  NoClear
}

Public Member Functions

 QHeaderViewPrivate ()
int lastVisibleVisualIndex () const
void restoreSizeOnPrevLastSection ()
void setNewLastSection (int visualIndexForLastSection)
void maybeRestorePrevLastSectionAndStretchLast ()
int sectionHandleAt (int position)
void setupSectionIndicator (int section, int position)
void updateSectionIndicator (int section, int position)
void updateHiddenSections (int logicalFirst, int logicalLast)
void resizeSections (QHeaderView::ResizeMode globalMode, bool useGlobalMode=false)
void sectionsRemoved (const QModelIndex &, int, int)
void sectionsAboutToBeMoved (const QModelIndex &sourceParent, int logicalStart, int logicalEnd, const QModelIndex &destinationParent, int logicalDestination)
void sectionsMoved (const QModelIndex &sourceParent, int logicalStart, int logicalEnd, const QModelIndex &destinationParent, int logicalDestination)
void sectionsAboutToBeChanged (const QList< QPersistentModelIndex > &parents=QList< QPersistentModelIndex >(), QAbstractItemModel::LayoutChangeHint hint=QAbstractItemModel::NoLayoutChangeHint)
void sectionsChanged (const QList< QPersistentModelIndex > &parents=QList< QPersistentModelIndex >(), QAbstractItemModel::LayoutChangeHint hint=QAbstractItemModel::NoLayoutChangeHint)
bool isSectionSelected (int section) const
bool isFirstVisibleSection (int section) const
bool isLastVisibleSection (int section) const
bool rowIntersectsSelection (int row) const
bool columnIntersectsSelection (int column) const
bool sectionIntersectsSelection (int logical) const
bool isRowSelected (int row) const
bool isColumnSelected (int column) const
void prepareSectionSelected ()
int sectionCount () const
bool reverse () const
int logicalIndex (int visualIndex) const
int visualIndex (int logicalIndex) const
void setDefaultValues (Qt::Orientation o)
bool isVisualIndexHidden (int visual) const
void setVisualIndexHidden (int visual, bool hidden)
bool hasAutoResizeSections () const
QStyleOptionHeader getStyleOption () const
void invalidateCachedSizeHint () const
void initializeIndexMapping () const
void clearCascadingSections ()
void saveCascadingSectionSize (int visual, int size)
bool sectionIsCascadable (int visual) const
int modelSectionCount () const
void doDelayedResizeSections ()
void executePostedResize () const
void disconnectModel ()
void clear ()
void flipSortIndicator (int section)
Qt::SortOrder defaultSortOrderForSection (int section) const
void cascadingResize (int visual, int newSize)
bool noSectionMemoryUsage () const
void switchToFlexibleModeWithSectionMemoryUsage ()
void updateCountInNoSectionItemsMode (int newCount)
void setHeaderMode (HeaderMode mode)
void createSectionItems (int start, int end, int sectionSize, QHeaderView::ResizeMode mode)
void removeSectionsFromSectionItems (int start, int end)
void resizeSectionItem (int visualIndex, int oldSize, int newSize)
void setDefaultSectionSize (int size)
void updateDefaultSectionSizeFromStyle ()
void recalcSectionStartPos () const
int headerLength () const
QBitArray sectionsHiddenToBitVector () const
void setHiddenSectionsFromBitVector (const QBitArray &sectionHidden)
int headerSectionSize (int visual) const
int headerSectionPosition (int visual) const
int headerVisualIndexAt (int position) const
void setHeaderSectionResizeMode (int visual, QHeaderView::ResizeMode mode)
QHeaderView::ResizeMode headerSectionResizeMode (int visual) const
void setGlobalHeaderResizeMode (QHeaderView::ResizeMode mode)
int viewSectionSizeHint (int logical) const
int adjustedVisualIndex (int visualIndex) const
void setScrollOffset (const QScrollBar *scrollBar, QAbstractItemView::ScrollMode scrollMode)
void updateSectionsBeforeAfter (int logical)
void write (QDataStream &out) const
bool read (QDataStream &in)
Public Member Functions inherited from QAbstractItemViewPrivate
 QAbstractItemViewPrivate ()
virtual ~QAbstractItemViewPrivate ()
void init ()
virtual void rowsRemoved (const QModelIndex &parent, int start, int end)
virtual void rowsInserted (const QModelIndex &parent, int start, int end)
virtual void columnsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
virtual void columnsRemoved (const QModelIndex &parent, int start, int end)
virtual void columnsInserted (const QModelIndex &parent, int start, int end)
virtual void modelDestroyed ()
virtual void layoutChanged ()
virtual void rowsMoved (const QModelIndex &source, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart)
virtual void columnsMoved (const QModelIndex &source, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart)
virtual QRect intersectedRect (const QRect rect, const QModelIndex &topLeft, const QModelIndex &bottomRight) const
void headerDataChanged ()
void scrollerStateChanged ()
void delegateSizeHintChanged (const QModelIndex &index)
void fetchMore ()
bool shouldEdit (QAbstractItemView::EditTrigger trigger, const QModelIndex &index) const
bool shouldForwardEvent (QAbstractItemView::EditTrigger trigger, const QEvent *event) const
bool shouldAutoScroll (const QPoint &pos) const
void doDelayedItemsLayout (int delay=0)
void interruptDelayedItemsLayout () const
void updateGeometry ()
void startAutoScroll ()
void stopAutoScroll ()
bool droppingOnItself (QDropEvent *event, const QModelIndex &index)
QWidgeteditor (const QModelIndex &index, const QStyleOptionViewItem &options)
bool sendDelegateEvent (const QModelIndex &index, QEvent *event) const
bool openEditor (const QModelIndex &index, QEvent *event)
void updateEditorData (const QModelIndex &topLeft, const QModelIndex &bottomRight)
void selectAllInEditor (QWidget *w)
QItemSelectionModel::SelectionFlags multiSelectionCommand (const QModelIndex &index, const QEvent *event) const
QItemSelectionModel::SelectionFlags extendedSelectionCommand (const QModelIndex &index, const QEvent *event) const
QItemSelectionModel::SelectionFlags contiguousSelectionCommand (const QModelIndex &index, const QEvent *event) const
virtual void selectAll (QItemSelectionModel::SelectionFlags command)
void setHoverIndex (const QPersistentModelIndex &index)
void checkMouseMove (const QPersistentModelIndex &index)
void checkMouseMove (const QPoint &pos)
QItemSelectionModel::SelectionFlags selectionBehaviorFlags () const
virtual QItemViewPaintPairs draggablePaintPairs (const QModelIndexList &indexes, QRect *r) const
virtual void adjustViewOptionsForIndex (QStyleOptionViewItem *, const QModelIndex &) const
void releaseEditor (QWidget *editor, const QModelIndex &index=QModelIndex()) const
void executePostedLayout () const
void setDirtyRegion (const QRegion &visualRegion)
void scrollDirtyRegion (int dx, int dy)
void scrollContentsBy (int dx, int dy)
void updateDirtyRegion ()
void clearOrRemove ()
void checkPersistentEditorFocus ()
QPixmap renderToPixmap (const QModelIndexList &indexes, QRect *r) const
QPoint offset () const
const QEditorInfoeditorForIndex (const QModelIndex &index) const
bool hasEditor (const QModelIndex &index) const
QModelIndex indexForEditor (QWidget *editor) const
void addEditor (const QModelIndex &index, QWidget *editor, bool isStatic)
void removeEditor (QWidget *editor)
bool isAnimating () const
bool isIndexValid (const QModelIndex &index) const
bool isIndexSelectable (const QModelIndex &index) const
bool isIndexEnabled (const QModelIndex &index) const
virtual bool selectionAllowed (const QModelIndex &index) const
QPoint contentsOffset () const override
int delegateRefCount (const QAbstractItemDelegate *delegate) const
bool isPersistent (const QModelIndex &index) const
void doDelayedReset ()
virtual QRect visualRect (const QModelIndex &index) const

Public Attributes

enum QHeaderViewPrivate::State state
int headerOffset
Qt::Orientation orientation
Qt::SortOrder sortIndicatorOrder
int sortIndicatorSection
bool sortIndicatorShown
bool sortIndicatorClearable
QList< int > visualIndices
QList< int > logicalIndices
QBitArray sectionSelected
QHash< int, int > hiddenSectionSize
QHash< int, int > cascadingSectionSize
QSize cachedSizeHint
QBasicTimer delayedResize
int firstCascadingSection
int lastCascadingSection
int lastPos
int firstPos
int originalSize
int section
int target
int firstPressed
int pressed
int hover
int length
bool preventCursorChangeInSetOffset
bool movableSections
bool clickableSections
bool highlightSelected
bool stretchLastSection
bool cascadingResizing
bool resizeRecursionBlock
bool allowUserMoveOfSection0
bool customDefaultSectionSize
int stretchSections
int contentsSections
int defaultSectionSize
int oldDefaultSectionSize = -1
int minimumSectionSize
int maximumSectionSize
int lastSectionSize
int lastSectionLogicalIdx
int sectionIndicatorOffset
Qt::Alignment defaultAlignment
QHeaderView::ResizeMode globalResizeMode
bool sectionStartposRecalc
int resizeContentsPrecision
QList< SectionItemsectionItems
HeaderMode headerMode = HeaderMode::InitialNoSectionMemoryUsage
qsizetype countInNoSectionItemsMode = 0
QList< LayoutChangeItemlayoutChangePersistentSections
std::array< QMetaObject::Connection, 8 > modelConnections
Public Attributes inherited from QAbstractItemViewPrivate
QAbstractItemModelmodel
QPointer< QAbstractItemDelegateitemDelegate
QMap< int, QPointer< QAbstractItemDelegate > > rowDelegates
QMap< int, QPointer< QAbstractItemDelegate > > columnDelegates
QPointer< QItemSelectionModelselectionModel
QItemSelectionModel::SelectionFlag ctrlDragSelectionFlag
bool noSelectionOnMousePress
QAbstractItemView::SelectionMode selectionMode
QAbstractItemView::SelectionBehavior selectionBehavior
QEditorIndexHash editorIndexHash
QIndexEditorHash indexEditorHash
QSet< QWidget * > persistent
QWidgetcurrentlyCommittingEditor
QBasicTimer pressClosedEditorWatcher
QPersistentModelIndex lastEditedIndex
bool pressClosedEditor
bool waitForIMCommit
QPersistentModelIndex enteredIndex
QPersistentModelIndex pressedIndex
QPersistentModelIndex currentSelectionStartIndex
Qt::KeyboardModifiers pressedModifiers
QPoint pressedPosition
QPoint draggedPosition
QPoint draggedPositionOffset
bool pressedAlreadySelected
bool releaseFromDoubleClick
bool viewportEnteredNeeded
QAbstractItemView::State state
QAbstractItemView::State stateBeforeAnimation
QAbstractItemView::EditTriggers editTriggers
QAbstractItemView::EditTrigger lastTrigger
QPersistentModelIndex root
QPersistentModelIndex hover
bool tabKeyNavigation
QString keyboardInput
QElapsedTimer keyboardInputTime
bool autoScroll
QBasicTimer autoScrollTimer
int autoScrollMargin
int autoScrollCount
bool shouldScrollToCurrentOnShow
bool shouldClearStatusTip
bool alternatingColors
QSize iconSize
Qt::TextElideMode textElideMode
QRegion updateRegion
QPoint scrollDelayOffset
QBasicTimer updateTimer
QBasicTimer delayedEditing
QBasicTimer delayedAutoScroll
QBasicTimer delayedReset
QAbstractItemView::ScrollMode verticalScrollMode
QAbstractItemView::ScrollMode horizontalScrollMode
QItemSelection oldSelection
QModelIndex oldCurrent
bool currentIndexSet
bool wrapItemText
bool delayedPendingLayout
bool moveCursorUpdatedView
bool verticalScrollModeSet
bool horizontalScrollModeSet
int updateThreshold
std::array< QMetaObject::Connection, 14 > modelConnections
std::array< QMetaObject::Connection, 4 > scrollbarConnections

Detailed Description

Definition at line 44 of file qheaderview_p.h.

Member Enumeration Documentation

◆ State

Enumerator
NoState 
ResizeSection 
MoveSection 
SelectSections 
NoClear 

Definition at line 245 of file qheaderview_p.h.

◆ StateVersion

Enumerator
VersionMarker 

Definition at line 49 of file qheaderview_p.h.

Constructor & Destructor Documentation

◆ QHeaderViewPrivate()

QHeaderViewPrivate::QHeaderViewPrivate ( )
inline

Definition at line 51 of file qheaderview_p.h.

References QHeaderViewPrivate(), allowUserMoveOfSection0, cascadingResizing, clickableSections, contentsSections, customDefaultSectionSize, firstPos, firstPressed, headerOffset, highlightSelected, hover, lastPos, lastSectionLogicalIdx, lastSectionSize, length, maximumSectionSize, minimumSectionSize, movableSections, NoState, originalSize, pressed, preventCursorChangeInSetOffset, resizeContentsPrecision, resizeRecursionBlock, section, sectionIndicatorOffset, sectionStartposRecalc, sortIndicatorClearable, sortIndicatorSection, sortIndicatorShown, stretchLastSection, stretchSections, and target.

Referenced by QHeaderViewPrivate().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ adjustedVisualIndex()

int QHeaderViewPrivate::adjustedVisualIndex ( int visualIndex) const

Definition at line 4145 of file qheaderview.cpp.

◆ cascadingResize()

void QHeaderViewPrivate::cascadingResize ( int visual,
int newSize )

Definition at line 3880 of file qheaderview.cpp.

◆ clear()

void QHeaderViewPrivate::clear ( )

Definition at line 3824 of file qheaderview.cpp.

◆ clearCascadingSections()

void QHeaderViewPrivate::clearCascadingSections ( )
inline

Definition at line 199 of file qheaderview_p.h.

References lastCascadingSection.

◆ columnIntersectsSelection()

bool QHeaderViewPrivate::columnIntersectsSelection ( int column) const
inline

Definition at line 121 of file qheaderview_p.h.

◆ createSectionItems()

void QHeaderViewPrivate::createSectionItems ( int start,
int end,
int sectionSize,
QHeaderView::ResizeMode mode )

Definition at line 3798 of file qheaderview.cpp.

◆ defaultSortOrderForSection()

Qt::SortOrder QHeaderViewPrivate::defaultSortOrderForSection ( int section) const

Definition at line 3872 of file qheaderview.cpp.

◆ disconnectModel()

void QHeaderViewPrivate::disconnectModel ( )
inline

Definition at line 234 of file qheaderview_p.h.

◆ doDelayedResizeSections()

void QHeaderViewPrivate::doDelayedResizeSections ( )
inline

Definition at line 223 of file qheaderview_p.h.

◆ executePostedResize()

void QHeaderViewPrivate::executePostedResize ( ) const
inline

Definition at line 228 of file qheaderview_p.h.

◆ flipSortIndicator()

void QHeaderViewPrivate::flipSortIndicator ( int section)

Definition at line 3850 of file qheaderview.cpp.

◆ getStyleOption()

QStyleOptionHeader QHeaderViewPrivate::getStyleOption ( ) const

◆ hasAutoResizeSections()

bool QHeaderViewPrivate::hasAutoResizeSections ( ) const
inline

Definition at line 177 of file qheaderview_p.h.

References contentsSections, stretchLastSection, and stretchSections.

◆ headerLength()

int QHeaderViewPrivate::headerLength ( ) const
inline

Definition at line 358 of file qheaderview_p.h.

◆ headerSectionPosition()

int QHeaderViewPrivate::headerSectionPosition ( int visual) const

Definition at line 4070 of file qheaderview.cpp.

◆ headerSectionResizeMode()

QHeaderView::ResizeMode QHeaderViewPrivate::headerSectionResizeMode ( int visual) const

Definition at line 4121 of file qheaderview.cpp.

◆ headerSectionSize()

int QHeaderViewPrivate::headerSectionSize ( int visual) const

Definition at line 4059 of file qheaderview.cpp.

◆ headerVisualIndexAt()

int QHeaderViewPrivate::headerVisualIndexAt ( int position) const

Definition at line 4083 of file qheaderview.cpp.

◆ initializeIndexMapping()

void QHeaderViewPrivate::initializeIndexMapping ( ) const
inline

Definition at line 187 of file qheaderview_p.h.

References sectionCount().

Here is the call graph for this function:

◆ invalidateCachedSizeHint()

void QHeaderViewPrivate::invalidateCachedSizeHint ( ) const
inline

Definition at line 183 of file qheaderview_p.h.

◆ isColumnSelected()

bool QHeaderViewPrivate::isColumnSelected ( int column) const
inline

Definition at line 133 of file qheaderview_p.h.

◆ isFirstVisibleSection()

bool QHeaderViewPrivate::isFirstVisibleSection ( int section) const

Definition at line 3579 of file qheaderview.cpp.

◆ isLastVisibleSection()

bool QHeaderViewPrivate::isLastVisibleSection ( int section) const

Definition at line 3590 of file qheaderview.cpp.

◆ isRowSelected()

bool QHeaderViewPrivate::isRowSelected ( int row) const
inline

Definition at line 129 of file qheaderview_p.h.

◆ isSectionSelected()

bool QHeaderViewPrivate::isSectionSelected ( int section) const

Definition at line 3562 of file qheaderview.cpp.

◆ isVisualIndexHidden()

bool QHeaderViewPrivate::isVisualIndexHidden ( int visual) const
inline

Definition at line 169 of file qheaderview_p.h.

◆ lastVisibleVisualIndex()

int QHeaderViewPrivate::lastVisibleVisualIndex ( ) const

Returns the last visible (ie. not hidden) visual index

Definition at line 3606 of file qheaderview.cpp.

◆ logicalIndex()

int QHeaderViewPrivate::logicalIndex ( int visualIndex) const
inline

Definition at line 153 of file qheaderview_p.h.

◆ maybeRestorePrevLastSectionAndStretchLast()

void QHeaderViewPrivate::maybeRestorePrevLastSectionAndStretchLast ( )

Definition at line 3637 of file qheaderview.cpp.

◆ modelSectionCount()

int QHeaderViewPrivate::modelSectionCount ( ) const
inline

Definition at line 217 of file qheaderview_p.h.

◆ noSectionMemoryUsage()

bool QHeaderViewPrivate::noSectionMemoryUsage ( ) const
inline

Definition at line 331 of file qheaderview_p.h.

References headerMode.

◆ prepareSectionSelected()

void QHeaderViewPrivate::prepareSectionSelected ( )
inline

Definition at line 137 of file qheaderview_p.h.

◆ read()

bool QHeaderViewPrivate::read ( QDataStream & in)

Definition at line 4241 of file qheaderview.cpp.

◆ recalcSectionStartPos()

void QHeaderViewPrivate::recalcSectionStartPos ( ) const

Definition at line 4041 of file qheaderview.cpp.

◆ removeSectionsFromSectionItems()

void QHeaderViewPrivate::removeSectionsFromSectionItems ( int start,
int end )

Definition at line 3813 of file qheaderview.cpp.

◆ resizeSectionItem()

void QHeaderViewPrivate::resizeSectionItem ( int visualIndex,
int oldSize,
int newSize )

Definition at line 4051 of file qheaderview.cpp.

◆ resizeSections()

void QHeaderViewPrivate::resizeSections ( QHeaderView::ResizeMode globalMode,
bool useGlobalMode = false )

Go through and resize all of the sections applying stretchLastSection, manual 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 3667 of file qheaderview.cpp.

◆ restoreSizeOnPrevLastSection()

void QHeaderViewPrivate::restoreSizeOnPrevLastSection ( )

Definition at line 3618 of file qheaderview.cpp.

◆ reverse()

bool QHeaderViewPrivate::reverse ( ) const
inline

Definition at line 149 of file qheaderview_p.h.

◆ rowIntersectsSelection()

bool QHeaderViewPrivate::rowIntersectsSelection ( int row) const
inline

Definition at line 117 of file qheaderview_p.h.

◆ saveCascadingSectionSize()

void QHeaderViewPrivate::saveCascadingSectionSize ( int visual,
int size )
inline

Definition at line 205 of file qheaderview_p.h.

References firstCascadingSection, and lastCascadingSection.

◆ sectionCount()

int QHeaderViewPrivate::sectionCount ( ) const
inline

Definition at line 145 of file qheaderview_p.h.

Referenced by initializeIndexMapping().

Here is the caller graph for this function:

◆ sectionHandleAt()

int QHeaderViewPrivate::sectionHandleAt ( int position)

Definition at line 3438 of file qheaderview.cpp.

◆ sectionIntersectsSelection()

bool QHeaderViewPrivate::sectionIntersectsSelection ( int logical) const
inline

Definition at line 125 of file qheaderview_p.h.

◆ sectionIsCascadable()

bool QHeaderViewPrivate::sectionIsCascadable ( int visual) const
inline

Definition at line 213 of file qheaderview_p.h.

◆ sectionsAboutToBeChanged()

void QHeaderViewPrivate::sectionsAboutToBeChanged ( const QList< QPersistentModelIndex > & parents = QList<QPersistentModelIndex>(),
QAbstractItemModel::LayoutChangeHint hint = QAbstractItemModel::NoLayoutChangeHint )

Definition at line 2195 of file qheaderview.cpp.

◆ sectionsAboutToBeMoved()

void QHeaderViewPrivate::sectionsAboutToBeMoved ( const QModelIndex & sourceParent,
int logicalStart,
int logicalEnd,
const QModelIndex & destinationParent,
int logicalDestination )

Definition at line 2171 of file qheaderview.cpp.

◆ sectionsChanged()

Definition at line 2247 of file qheaderview.cpp.

◆ sectionsHiddenToBitVector()

QBitArray QHeaderViewPrivate::sectionsHiddenToBitVector ( ) const
inline

Definition at line 365 of file qheaderview_p.h.

◆ sectionsMoved()

void QHeaderViewPrivate::sectionsMoved ( const QModelIndex & sourceParent,
int logicalStart,
int logicalEnd,
const QModelIndex & destinationParent,
int logicalDestination )

Definition at line 2183 of file qheaderview.cpp.

◆ sectionsRemoved()

void QHeaderViewPrivate::sectionsRemoved ( const QModelIndex & parent,
int logicalFirst,
int logicalLast )

Definition at line 2080 of file qheaderview.cpp.

◆ setDefaultSectionSize()

void QHeaderViewPrivate::setDefaultSectionSize ( int size)

Definition at line 3990 of file qheaderview.cpp.

◆ setDefaultValues()

void QHeaderViewPrivate::setDefaultValues ( Qt::Orientation o)
inline

Definition at line 161 of file qheaderview_p.h.

References updateDefaultSectionSizeFromStyle().

Here is the call graph for this function:

◆ setGlobalHeaderResizeMode()

void QHeaderViewPrivate::setGlobalHeaderResizeMode ( QHeaderView::ResizeMode mode)

Definition at line 4128 of file qheaderview.cpp.

◆ setHeaderMode()

void QHeaderViewPrivate::setHeaderMode ( HeaderMode mode)

Definition at line 1758 of file qheaderview.cpp.

Referenced by switchToFlexibleModeWithSectionMemoryUsage().

Here is the caller graph for this function:

◆ setHeaderSectionResizeMode()

void QHeaderViewPrivate::setHeaderSectionResizeMode ( int visual,
QHeaderView::ResizeMode mode )

Definition at line 4111 of file qheaderview.cpp.

◆ setHiddenSectionsFromBitVector()

void QHeaderViewPrivate::setHiddenSectionsFromBitVector ( const QBitArray & sectionHidden)
inline

Definition at line 376 of file qheaderview_p.h.

◆ setNewLastSection()

void QHeaderViewPrivate::setNewLastSection ( int visualIndexForLastSection)

Definition at line 3628 of file qheaderview.cpp.

◆ setScrollOffset()

void QHeaderViewPrivate::setScrollOffset ( const QScrollBar * scrollBar,
QAbstractItemView::ScrollMode scrollMode )

Definition at line 4163 of file qheaderview.cpp.

◆ setupSectionIndicator()

void QHeaderViewPrivate::setupSectionIndicator ( int section,
int position )

Definition at line 3467 of file qheaderview.cpp.

◆ setVisualIndexHidden()

void QHeaderViewPrivate::setVisualIndexHidden ( int visual,
bool hidden )
inline

Definition at line 173 of file qheaderview_p.h.

◆ switchToFlexibleModeWithSectionMemoryUsage()

void QHeaderViewPrivate::switchToFlexibleModeWithSectionMemoryUsage ( )
inline

Definition at line 336 of file qheaderview_p.h.

References setHeaderMode().

Here is the call graph for this function:

◆ updateCountInNoSectionItemsMode()

void QHeaderViewPrivate::updateCountInNoSectionItemsMode ( int newCount)

Definition at line 1786 of file qheaderview.cpp.

◆ updateDefaultSectionSizeFromStyle()

void QHeaderViewPrivate::updateDefaultSectionSizeFromStyle ( )

Definition at line 4030 of file qheaderview.cpp.

Referenced by setDefaultValues().

Here is the caller graph for this function:

◆ updateHiddenSections()

void QHeaderViewPrivate::updateHiddenSections ( int logicalFirst,
int logicalLast )

Definition at line 2064 of file qheaderview.cpp.

◆ updateSectionIndicator()

void QHeaderViewPrivate::updateSectionIndicator ( int section,
int position )

Definition at line 3515 of file qheaderview.cpp.

◆ updateSectionsBeforeAfter()

void QHeaderViewPrivate::updateSectionsBeforeAfter ( int logical)

Definition at line 4176 of file qheaderview.cpp.

◆ viewSectionSizeHint()

int QHeaderViewPrivate::viewSectionSizeHint ( int logical) const

Definition at line 4135 of file qheaderview.cpp.

◆ visualIndex()

int QHeaderViewPrivate::visualIndex ( int logicalIndex) const
inline

Definition at line 157 of file qheaderview_p.h.

◆ write()

void QHeaderViewPrivate::write ( QDataStream & out) const

Definition at line 4196 of file qheaderview.cpp.

Member Data Documentation

◆ allowUserMoveOfSection0

bool QHeaderViewPrivate::allowUserMoveOfSection0

Definition at line 282 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ cachedSizeHint

QSize QHeaderViewPrivate::cachedSizeHint
mutable

Definition at line 259 of file qheaderview_p.h.

◆ cascadingResizing

bool QHeaderViewPrivate::cascadingResizing

Definition at line 280 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ cascadingSectionSize

QHash<int, int> QHeaderViewPrivate::cascadingSectionSize
mutable

Definition at line 258 of file qheaderview_p.h.

◆ clickableSections

bool QHeaderViewPrivate::clickableSections

Definition at line 277 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ contentsSections

int QHeaderViewPrivate::contentsSections

Definition at line 285 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate(), and hasAutoResizeSections().

◆ countInNoSectionItemsMode

qsizetype QHeaderViewPrivate::countInNoSectionItemsMode = 0

Definition at line 330 of file qheaderview_p.h.

◆ customDefaultSectionSize

bool QHeaderViewPrivate::customDefaultSectionSize

Definition at line 283 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ defaultAlignment

Qt::Alignment QHeaderViewPrivate::defaultAlignment

Definition at line 293 of file qheaderview_p.h.

◆ defaultSectionSize

int QHeaderViewPrivate::defaultSectionSize

Definition at line 286 of file qheaderview_p.h.

◆ delayedResize

QBasicTimer QHeaderViewPrivate::delayedResize
mutable

Definition at line 260 of file qheaderview_p.h.

◆ firstCascadingSection

int QHeaderViewPrivate::firstCascadingSection

Definition at line 262 of file qheaderview_p.h.

Referenced by saveCascadingSectionSize().

◆ firstPos

int QHeaderViewPrivate::firstPos

Definition at line 266 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ firstPressed

int QHeaderViewPrivate::firstPressed

Definition at line 270 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ globalResizeMode

QHeaderView::ResizeMode QHeaderViewPrivate::globalResizeMode

Definition at line 297 of file qheaderview_p.h.

◆ headerMode

HeaderMode QHeaderViewPrivate::headerMode = HeaderMode::InitialNoSectionMemoryUsage

Definition at line 329 of file qheaderview_p.h.

Referenced by noSectionMemoryUsage().

◆ headerOffset

int QHeaderViewPrivate::headerOffset

Definition at line 247 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ hiddenSectionSize

QHash<int, int> QHeaderViewPrivate::hiddenSectionSize
mutable

Definition at line 257 of file qheaderview_p.h.

◆ highlightSelected

bool QHeaderViewPrivate::highlightSelected

Definition at line 278 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ hover

int QHeaderViewPrivate::hover

Definition at line 272 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ lastCascadingSection

int QHeaderViewPrivate::lastCascadingSection

Definition at line 263 of file qheaderview_p.h.

Referenced by clearCascadingSections(), and saveCascadingSectionSize().

◆ lastPos

int QHeaderViewPrivate::lastPos

Definition at line 265 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ lastSectionLogicalIdx

int QHeaderViewPrivate::lastSectionLogicalIdx

Definition at line 291 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ lastSectionSize

int QHeaderViewPrivate::lastSectionSize

Definition at line 290 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ layoutChangePersistentSections

QList<LayoutChangeItem> QHeaderViewPrivate::layoutChangePersistentSections

Definition at line 348 of file qheaderview_p.h.

◆ length

int QHeaderViewPrivate::length

◆ logicalIndices

QList<int> QHeaderViewPrivate::logicalIndices
mutable

Definition at line 255 of file qheaderview_p.h.

◆ maximumSectionSize

int QHeaderViewPrivate::maximumSectionSize

Definition at line 289 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ minimumSectionSize

int QHeaderViewPrivate::minimumSectionSize

Definition at line 288 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ modelConnections

std::array<QMetaObject::Connection, 8> QHeaderViewPrivate::modelConnections

Definition at line 349 of file qheaderview_p.h.

◆ movableSections

bool QHeaderViewPrivate::movableSections

Definition at line 276 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ oldDefaultSectionSize

int QHeaderViewPrivate::oldDefaultSectionSize = -1

Definition at line 287 of file qheaderview_p.h.

◆ orientation

Qt::Orientation QHeaderViewPrivate::orientation

Definition at line 248 of file qheaderview_p.h.

◆ originalSize

int QHeaderViewPrivate::originalSize

Definition at line 267 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ pressed

int QHeaderViewPrivate::pressed

Definition at line 271 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ preventCursorChangeInSetOffset

bool QHeaderViewPrivate::preventCursorChangeInSetOffset

Definition at line 275 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ resizeContentsPrecision

int QHeaderViewPrivate::resizeContentsPrecision

Definition at line 299 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ resizeRecursionBlock

bool QHeaderViewPrivate::resizeRecursionBlock

Definition at line 281 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ section

int QHeaderViewPrivate::section

Definition at line 268 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ sectionIndicatorOffset

int QHeaderViewPrivate::sectionIndicatorOffset

Definition at line 292 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ sectionItems

QList<SectionItem> QHeaderViewPrivate::sectionItems

Definition at line 327 of file qheaderview_p.h.

◆ sectionSelected

QBitArray QHeaderViewPrivate::sectionSelected
mutable

Definition at line 256 of file qheaderview_p.h.

◆ sectionStartposRecalc

bool QHeaderViewPrivate::sectionStartposRecalc
mutable

Definition at line 298 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ sortIndicatorClearable

bool QHeaderViewPrivate::sortIndicatorClearable

Definition at line 252 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ sortIndicatorOrder

Qt::SortOrder QHeaderViewPrivate::sortIndicatorOrder

Definition at line 249 of file qheaderview_p.h.

◆ sortIndicatorSection

int QHeaderViewPrivate::sortIndicatorSection

Definition at line 250 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ sortIndicatorShown

bool QHeaderViewPrivate::sortIndicatorShown

Definition at line 251 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ state

enum QHeaderViewPrivate::State QHeaderViewPrivate::state

◆ stretchLastSection

bool QHeaderViewPrivate::stretchLastSection

Definition at line 279 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate(), and hasAutoResizeSections().

◆ stretchSections

int QHeaderViewPrivate::stretchSections

Definition at line 284 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate(), and hasAutoResizeSections().

◆ target

int QHeaderViewPrivate::target

Definition at line 269 of file qheaderview_p.h.

Referenced by QHeaderViewPrivate().

◆ visualIndices

QList<int> QHeaderViewPrivate::visualIndices
mutable

Definition at line 254 of file qheaderview_p.h.


The documentation for this class was generated from the following files: