Qt 4.8
Public Functions | Public Variables | List of all members
QListWidgetPrivate Class Reference

#include <qlistwidget_p.h>

Inheritance diagram for QListWidgetPrivate:
QListViewPrivate QAbstractItemViewPrivate QAbstractScrollAreaPrivate QFramePrivate QWidgetPrivate QObjectPrivate QObjectData

Public Functions

void _q_dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void _q_emitCurrentItemChanged (const QModelIndex &current, const QModelIndex &previous)
 
void _q_emitItemActivated (const QModelIndex &index)
 
void _q_emitItemChanged (const QModelIndex &index)
 
void _q_emitItemClicked (const QModelIndex &index)
 
void _q_emitItemDoubleClicked (const QModelIndex &index)
 
void _q_emitItemEntered (const QModelIndex &index)
 
void _q_emitItemPressed (const QModelIndex &index)
 
void _q_sort ()
 
QListModellistModel () const
 
 QListWidgetPrivate ()
 
void setup ()
 
- Public Functions inherited from QListViewPrivate
int batchStartRow () const
 
void clear ()
 
QModelIndex closestIndex (const QRect &target, const QVector< QModelIndex > &candidates) const
 
QSize contentsSize () const
 
bool doItemsLayout (int num)
 
QItemViewPaintPairs draggablePaintPairs (const QModelIndexList &indexes, QRect *r) const
 Reimplemented Function More...
 
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...
 
void emitIndexesMoved (const QModelIndexList &indexes)
 
int flipX (int x) const
 
QPoint flipX (const QPoint &p) const
 
QRect flipX (const QRect &r) const
 
QSize gridSize () const
 
int horizontalScrollToValue (const QModelIndex &index, const QRect &rect, QListView::ScrollHint hint) const
 
QListViewItem indexToListViewItem (const QModelIndex &index) const
 
QVector< QModelIndexintersectingSet (const QRect &area, bool doLayout=true) const
 
bool isHidden (int row) const
 
bool isHiddenOrDisabled (int row) const
 
bool isSelectionRectVisible () const
 
bool isWrapping () const
 
QSize itemSize (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QModelIndex listViewItemToIndex (const QListViewItem &item) const
 
QRect mapToViewport (const QRect &rect, bool extend=true) const
 
QModelIndex modelIndex (int row) const
 
virtual QAbstractItemView::DropIndicatorPosition position (const QPoint &pos, const QRect &rect, const QModelIndex &idx) const
 
void prepareItemsLayout ()
 
 QListViewPrivate ()
 
QRect rectForIndex (const QModelIndex &index) const
 
void removeCurrentAndDisabled (QVector< QModelIndex > *indexes, const QModelIndex &current) const
 
void resetBatchStartRow ()
 
void scrollElasticBandBy (int dx, int dy)
 
void selectAll (QItemSelectionModel::SelectionFlags command)
 
QItemSelection selection (const QRect &rect) const
 
bool selectionAllowed (const QModelIndex &index) const
 
void setContentsSize (int w, int h)
 
void setGridSize (const QSize &size)
 
void setSelectionRectVisible (bool visible)
 
void setSpacing (int s)
 
void setWrapping (bool b)
 
int spacing () const
 
int verticalScrollToValue (const QModelIndex &index, const QRect &rect, QListView::ScrollHint hint) const
 
QRect viewItemRect (const QListViewItem &item) const
 
void viewUpdateGeometries ()
 
 ~QListViewPrivate ()
 
- 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_layoutChanged ()
 This slot is called when the layout is changed. More...
 
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
 
QAbstractItemDelegatedelegateForIndex (const QModelIndex &index) const
 
int delegateRefCount (const QAbstractItemDelegate *delegate) const
 
void doDelayedItemsLayout (int delay=0)
 
void doDelayedReset ()
 
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...
 
QWidgeteditor (const QModelIndex &index, const QStyleOptionViewItem &options)
 
const QEditorInfoeditorForIndex (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)
 
 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)
 
QModelIndexList selectedDraggableIndexes () 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 ()
 
QInputContextassignedInputContext () const
 
QPainterbeginSharedPainter ()
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool, bool includeFrame=false) const
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void clipToEffectiveMask (QRegion &region) const
 
bool close_helper (CloseMode mode)
 
void create_sys (WId window, bool initializeWindow, bool destroyOldWindow)
 
QWindowSurfacecreateDefaultWindowSurface ()
 
QWindowSurfacecreateDefaultWindowSurface_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)
 
QWidgeteffectiveFocusWidget ()
 
QRect effectiveRectFor (const QRect &rect) const
 
bool endSharedPainter ()
 
void enforceNativeChildren ()
 
QWExtraextraData () const
 
QRect frameStrut () const
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
const QRegiongetOpaqueChildren () 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)
 
QInputContextinputContext () 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
 
QWidgetBackingStoremaybeBackingStore () const
 
QTLWExtramaybeTopData () 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 &region, 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 ()
 
QPaintDeviceredirected (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)
 
QPaintersharedPainter () 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 &region)
 
QTLWExtratopData () 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
 

Public Variables

bool sortingEnabled
 
Qt::SortOrder sortOrder
 
- Public Variables inherited from QListViewPrivate
QBasicTimer batchLayoutTimer
 
int batchSize
 
QSize cachedItemSize
 
int column
 
QCommonListViewBasecommonListView
 
QRect elasticBand
 
QListView::Flow flow
 
QSize grid
 
QSet< QPersistentModelIndexhiddenRows
 
QRect layoutBounds
 
QListView::LayoutMode layoutMode
 
uint modeProperties: 8
 
QListView::Movement movement
 
QListView::ResizeMode resizeMode
 
bool showElasticBand
 
int space
 
bool uniformItemSizes
 
QListView::ViewMode viewMode
 
bool wrap
 
- Public Variables inherited from QAbstractItemViewPrivate
bool alternatingColors
 
bool autoScroll
 
int autoScrollCount
 
int autoScrollMargin
 
QBasicTimer autoScrollTimer
 
QMap< int, QPointer< QAbstractItemDelegate > > columnDelegates
 
QItemSelectionModel::SelectionFlag ctrlDragSelectionFlag
 
bool currentIndexSet
 
QWidgetcurrentlyCommittingEditor
 
Qt::DropAction defaultDropAction
 
QBasicTimer delayedAutoScroll
 
QBasicTimer delayedEditing
 
bool delayedPendingLayout
 
QBasicTimer delayedReset
 
QAbstractItemView::DragDropMode dragDropMode
 
bool dragEnabled
 
QAbstractItemView::DropIndicatorPosition dropIndicatorPosition
 
QRect dropIndicatorRect
 
QEditorIndexHash editorIndexHash
 
QAbstractItemView::EditTriggers editTriggers
 
QPersistentModelIndex enteredIndex
 
QAbstractItemView::ScrollMode horizontalScrollMode
 
QPersistentModelIndex hover
 
QSize iconSize
 
QIndexEditorHash indexEditorHash
 
QPointer< QAbstractItemDelegateitemDelegate
 
QString keyboardInput
 
QElapsedTimer keyboardInputTime
 
QAbstractItemView::EditTrigger lastTrigger
 
QAbstractItemModelmodel
 
bool moveCursorUpdatedView
 
bool noSelectionOnMousePress
 
bool overwrite
 
QSet< QWidget * > persistent
 
bool pressedAlreadySelected
 
QPersistentModelIndex pressedIndex
 
Qt::KeyboardModifiers pressedModifiers
 
QPoint pressedPosition
 
QPersistentModelIndex root
 
QMap< int, QPointer< QAbstractItemDelegate > > rowDelegates
 
QPoint scrollDelayOffset
 
QAbstractItemView::SelectionBehavior selectionBehavior
 
QAbstractItemView::SelectionMode selectionMode
 
QPointer< QItemSelectionModelselectionModel
 
bool shouldClearStatusTip
 
bool shouldScrollToCurrentOnShow
 
bool showDropIndicator
 
QAbstractItemView::State state
 
QAbstractItemView::State stateBeforeAnimation
 
bool tabKeyNavigation
 
Qt::TextElideMode textElideMode
 
QRegion updateRegion
 
QBasicTimer updateTimer
 
QAbstractItemView::ScrollMode verticalScrollMode
 
bool viewportEnteredNeeded
 
bool wrapItemText
 
- Public Variables inherited from QAbstractScrollAreaPrivate
int bottom
 
QRect cornerPaintingRect
 
QWidgetcornerWidget
 
QScrollBarhbar
 
Qt::ScrollBarPolicy hbarpolicy
 
int left
 
QRect reverseCornerPaintingRect
 
int right
 
QAbstractScrollAreaScrollBarContainerscrollBarContainers [Qt::Vertical+1]
 
bool singleFingerPanEnabled
 
int top
 
QScrollBarvbar
 
Qt::ScrollBarPolicy vbarpolicy
 
QWidgetviewport
 
QScopedPointer< QObjectviewportFilter
 
int xoffset
 
int yoffset
 
- Public Variables inherited from QFramePrivate
short bottomFrameWidth
 
int frameStyle
 
short frameWidth
 
QRect frect
 
short leftFrameWidth
 
short lineWidth
 
short midLineWidth
 
short rightFrameWidth
 
short topFrameWidth
 
- Public Variables inherited from QWidgetPrivate
QString accessibleDescription
 
QString accessibleName
 
QList< QAction * > actions
 
QPalette::ColorRole bg_role: 8
 
signed char bottomLayoutItemMargin
 
short bottommargin
 
QWidgetData data
 
QRegion dirty
 
uint dirtyOpaqueChildren: 1
 
QWExtraextra
 
QPaintEngineextraPaintEngine
 
QPalette::ColorRole fg_role: 8
 
QWidgetfocus_child
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
QGraphicsEffectgraphicsEffect
 
Qt::HANDLE hd
 
uint high_attributes [4]
 
QPointer< QInputContextic
 
Qt::InputMethodHints imHints
 
uint inDirtyList: 1
 
uint inheritedFontResolveMask
 
uint inheritedPaletteResolveMask
 
uint inheritsInputMethodHints: 1
 
uint inSetParent: 1
 
uint isGLWidget: 1
 
uint isMoved: 1
 
uint isOpaque: 1
 
uint isScrolled: 1
 
QLayoutlayout
 
signed char leftLayoutItemMargin
 
short leftmargin
 
QLocale locale
 
QRegionneedsFlush
 
QRegion opaqueChildren
 
Qt::HANDLE picture
 
const QMetaObjectpolished
 
QPaintDeviceredirectDev
 
QPoint redirectOffset
 
signed char rightLayoutItemMargin
 
short rightmargin
 
QSizePolicy size_policy
 
QString statusTip
 
QString toolTip
 
signed char topLayoutItemMargin
 
short topmargin
 
uint usesDoubleBufferedGLContext: 1
 
QString whatsThis
 
QWidgetItemV2widgetItem
 
QX11Info xinfo
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QListViewPrivate
enum  ModeProperties {
  Wrap = 1, Spacing = 2, GridSize = 4, Flow = 8,
  Movement = 16, ResizeMode = 32, SelectionRectVisible = 64
}
 
- 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 **)
 
- Static Public Functions inherited from QWidgetPrivate
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=0)
 
static QGraphicsProxyWidgetnearestGraphicsProxyWidget (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 QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 
- Static Public Variables inherited from QWidgetPrivate
static QWidgetSetallWidgets = 0
 
static int instanceCounter = 0
 
static QWidgetkeyboardGrabber = 0
 
static QWidgetMappermapper = 0
 
static int maxInstances = 0
 
static QWidgetmouseGrabber = 0
 

Detailed Description

Definition at line 142 of file qlistwidget_p.h.

Constructors and Destructors

◆ QListWidgetPrivate()

QListWidgetPrivate::QListWidgetPrivate ( )
inline

Functions

◆ _q_dataChanged()

void QListWidgetPrivate::_q_dataChanged ( const QModelIndex topLeft,
const QModelIndex bottomRight 
)

Definition at line 1244 of file qlistwidget.cpp.

1246 {
1247  if (sortingEnabled && topLeft.isValid() && bottomRight.isValid())
1248  listModel()->ensureSorted(topLeft.column(), sortOrder,
1249  topLeft.row(), bottomRight.row());
1250 }
Qt::SortOrder sortOrder
int row() const
Returns the row this model index refers to.
void ensureSorted(int column, Qt::SortOrder order, int start, int end)
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
QListModel * listModel() const
int column() const
Returns the column this model index refers to.

◆ _q_emitCurrentItemChanged()

void QListWidgetPrivate::_q_emitCurrentItemChanged ( const QModelIndex current,
const QModelIndex previous 
)

Definition at line 1220 of file qlistwidget.cpp.

1222 {
1223  Q_Q(QListWidget);
1224  QPersistentModelIndex persistentCurrent = current;
1225  QListWidgetItem *currentItem = listModel()->at(persistentCurrent.row());
1226  emit q->currentItemChanged(currentItem, listModel()->at(previous.row()));
1227 
1228  //persistentCurrent is invalid if something changed the model in response
1229  //to the currentItemChanged signal emission and the item was removed
1230  if (!persistentCurrent.isValid()) {
1231  currentItem = 0;
1232  }
1233 
1234  emit q->currentTextChanged(currentItem ? currentItem->text() : QString());
1235  emit q->currentRowChanged(persistentCurrent.row());
1236 }
QListWidgetItem * at(int row) const
Definition: qlistwidget.cpp:89
int row() const
Returns the row this persistent model index refers to.
#define at(className, varName)
The QListWidget class provides an item-based list widget.
Definition: qlistwidget.h:202
The QString class provides a Unicode character string.
Definition: qstring.h:83
#define Q_Q(Class)
Definition: qglobal.h:2483
int row() const
Returns the row this model index refers to.
#define emit
Definition: qobjectdefs.h:76
The QListWidgetItem class provides an item for use with the QListWidget item view class...
Definition: qlistwidget.h:63
QListModel * listModel() const
The QPersistentModelIndex class is used to locate data in a data model.
QString text() const
Returns the list item&#39;s text.
Definition: qlistwidget.h:89
bool isValid() const
Returns true if this persistent model index is valid; otherwise returns false.

◆ _q_emitItemActivated()

void QListWidgetPrivate::_q_emitItemActivated ( const QModelIndex index)

Definition at line 1202 of file qlistwidget.cpp.

1203 {
1204  Q_Q(QListWidget);
1205  emit q->itemActivated(listModel()->at(index.row()));
1206 }
#define at(className, varName)
The QListWidget class provides an item-based list widget.
Definition: qlistwidget.h:202
#define Q_Q(Class)
Definition: qglobal.h:2483
int row() const
Returns the row this model index refers to.
#define emit
Definition: qobjectdefs.h:76
QListModel * listModel() const

◆ _q_emitItemChanged()

void QListWidgetPrivate::_q_emitItemChanged ( const QModelIndex index)

Definition at line 1214 of file qlistwidget.cpp.

1215 {
1216  Q_Q(QListWidget);
1217  emit q->itemChanged(listModel()->at(index.row()));
1218 }
#define at(className, varName)
The QListWidget class provides an item-based list widget.
Definition: qlistwidget.h:202
#define Q_Q(Class)
Definition: qglobal.h:2483
int row() const
Returns the row this model index refers to.
#define emit
Definition: qobjectdefs.h:76
QListModel * listModel() const

◆ _q_emitItemClicked()

void QListWidgetPrivate::_q_emitItemClicked ( const QModelIndex index)

Definition at line 1190 of file qlistwidget.cpp.

1191 {
1192  Q_Q(QListWidget);
1193  emit q->itemClicked(listModel()->at(index.row()));
1194 }
#define at(className, varName)
The QListWidget class provides an item-based list widget.
Definition: qlistwidget.h:202
#define Q_Q(Class)
Definition: qglobal.h:2483
int row() const
Returns the row this model index refers to.
#define emit
Definition: qobjectdefs.h:76
QListModel * listModel() const

◆ _q_emitItemDoubleClicked()

void QListWidgetPrivate::_q_emitItemDoubleClicked ( const QModelIndex index)

Definition at line 1196 of file qlistwidget.cpp.

1197 {
1198  Q_Q(QListWidget);
1199  emit q->itemDoubleClicked(listModel()->at(index.row()));
1200 }
#define at(className, varName)
The QListWidget class provides an item-based list widget.
Definition: qlistwidget.h:202
#define Q_Q(Class)
Definition: qglobal.h:2483
int row() const
Returns the row this model index refers to.
#define emit
Definition: qobjectdefs.h:76
QListModel * listModel() const

◆ _q_emitItemEntered()

void QListWidgetPrivate::_q_emitItemEntered ( const QModelIndex index)

Definition at line 1208 of file qlistwidget.cpp.

1209 {
1210  Q_Q(QListWidget);
1211  emit q->itemEntered(listModel()->at(index.row()));
1212 }
#define at(className, varName)
The QListWidget class provides an item-based list widget.
Definition: qlistwidget.h:202
#define Q_Q(Class)
Definition: qglobal.h:2483
int row() const
Returns the row this model index refers to.
#define emit
Definition: qobjectdefs.h:76
QListModel * listModel() const

◆ _q_emitItemPressed()

void QListWidgetPrivate::_q_emitItemPressed ( const QModelIndex index)

Definition at line 1184 of file qlistwidget.cpp.

1185 {
1186  Q_Q(QListWidget);
1187  emit q->itemPressed(listModel()->at(index.row()));
1188 }
#define at(className, varName)
The QListWidget class provides an item-based list widget.
Definition: qlistwidget.h:202
#define Q_Q(Class)
Definition: qglobal.h:2483
int row() const
Returns the row this model index refers to.
#define emit
Definition: qobjectdefs.h:76
QListModel * listModel() const

◆ _q_sort()

void QListWidgetPrivate::_q_sort ( )

Definition at line 1238 of file qlistwidget.cpp.

1239 {
1240  if (sortingEnabled)
1241  model->sort(0, sortOrder);
1242 }
Qt::SortOrder sortOrder
virtual void sort(int column, Qt::SortOrder order=Qt::AscendingOrder)
Sorts the model by column in the given order.
QAbstractItemModel * model

◆ listModel()

QListModel* QListWidgetPrivate::listModel ( ) const
inline

Definition at line 147 of file qlistwidget_p.h.

147 { return qobject_cast<QListModel*>(model); }
T qobject_cast(QObject *object)
Definition: qobject.h:375
QAbstractItemModel * model

◆ setup()

void QListWidgetPrivate::setup ( )

Definition at line 1161 of file qlistwidget.cpp.

1162 {
1163  Q_Q(QListWidget);
1164  q->QListView::setModel(new QListModel(q));
1165  // view signals
1168  QObject::connect(q, SIGNAL(doubleClicked(QModelIndex)),
1170  QObject::connect(q, SIGNAL(activated(QModelIndex)),
1175  QObject::connect(q->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
1177  QObject::connect(q->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
1178  q, SIGNAL(itemSelectionChanged()));
1181  QObject::connect(model, SIGNAL(columnsRemoved(QModelIndex,int,int)), q, SLOT(_q_sort()));
1182 }
void _q_emitItemPressed(const QModelIndex &index)
void _q_emitItemClicked(const QModelIndex &index)
void _q_emitItemEntered(const QModelIndex &index)
#define SLOT(a)
Definition: qobjectdefs.h:226
The QListWidget class provides an item-based list widget.
Definition: qlistwidget.h:202
void _q_dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void _q_emitItemDoubleClicked(const QModelIndex &index)
void _q_emitItemChanged(const QModelIndex &index)
#define Q_Q(Class)
Definition: qglobal.h:2483
void _q_emitCurrentItemChanged(const QModelIndex &current, const QModelIndex &previous)
#define SIGNAL(a)
Definition: qobjectdefs.h:227
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
Definition: qobject.cpp:2580
void _q_emitItemActivated(const QModelIndex &index)
The QItemSelection class manages information about selected items in a model.
The QModelIndex class is used to locate data in a data model.
QAbstractItemModel * model

Properties

◆ sortingEnabled

bool QListWidgetPrivate::sortingEnabled

Definition at line 159 of file qlistwidget_p.h.

◆ sortOrder

Qt::SortOrder QListWidgetPrivate::sortOrder

Definition at line 158 of file qlistwidget_p.h.


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