Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickComboBoxPrivate Class Reference
+ Inheritance diagram for QQuickComboBoxPrivate:
+ Collaboration diagram for QQuickComboBoxPrivate:

Classes

struct  ExtraData
 

Public Member Functions

bool isPopupVisible () const
 
void showPopup ()
 
void hidePopup (bool accept)
 
void togglePopup (bool accept)
 
void popupVisibleChanged ()
 
void popupDestroyed ()
 
void itemClicked ()
 
void itemHovered ()
 
void createdItem (int index, QObject *object)
 
void modelUpdated ()
 
void countChanged ()
 
QString effectiveTextRole () const
 
void updateEditText ()
 
void updateCurrentText ()
 
void updateCurrentValue ()
 
void updateCurrentTextAndValue ()
 
void updateAcceptableInput ()
 
bool isValidIndex (int index) const
 
void acceptInput ()
 
QString tryComplete (const QString &inputText)
 
void incrementCurrentIndex ()
 
void decrementCurrentIndex ()
 
void setCurrentIndex (int index, Activation activate)
 
void updateHighlightedIndex ()
 
void setHighlightedIndex (int index, Highlighting highlight)
 
void keySearch (const QString &text)
 
int match (int start, const QString &text, Qt::MatchFlags flags) const
 
void createDelegateModel ()
 
bool handlePress (const QPointF &point, ulong timestamp) override
 
bool handleMove (const QPointF &point, ulong timestamp) override
 
bool handleRelease (const QPointF &point, ulong timestamp) override
 
void handleUngrab () override
 
void cancelIndicator ()
 
void executeIndicator (bool complete=false)
 
void cancelPopup ()
 
void executePopup (bool complete=false)
 
void itemImplicitWidthChanged (QQuickItem *item) override
 
void itemImplicitHeightChanged (QQuickItem *item) override
 
void itemDestroyed (QQuickItem *item) override
 
void setInputMethodHints (Qt::InputMethodHints hints, bool force=false)
 
virtual qreal getContentWidth () const override
 
qreal calculateWidestTextWidth () const
 
void maybeUpdateImplicitContentWidth ()
 
QPalette defaultPalette () const override
 
- Public Member Functions inherited from QQuickControlPrivate
 QQuickControlPrivate ()
 
 ~QQuickControlPrivate ()
 
void init ()
 
void mirrorChange () override
 
QMarginsF getPadding () const
 
qreal getTopPadding () const
 
qreal getLeftPadding () const
 
qreal getRightPadding () const
 
qreal getBottomPadding () const
 
qreal getHorizontalPadding () const
 
qreal getVerticalPadding () const
 
void setTopPadding (qreal value, bool reset=false)
 
void setLeftPadding (qreal value, bool reset=false)
 
void setRightPadding (qreal value, bool reset=false)
 
void setBottomPadding (qreal value, bool reset=false)
 
void setHorizontalPadding (qreal value, bool reset=false)
 
void setVerticalPadding (qreal value, bool reset=false)
 
QMarginsF getInset () const
 
qreal getTopInset () const
 
qreal getLeftInset () const
 
qreal getRightInset () const
 
qreal getBottomInset () const
 
void setTopInset (qreal value, bool reset=false)
 
void setLeftInset (qreal value, bool reset=false)
 
void setRightInset (qreal value, bool reset=false)
 
void setBottomInset (qreal value, bool reset=false)
 
virtual void resizeBackground ()
 
virtual void resizeContent ()
 
virtual QQuickItemgetContentItem ()
 
void setContentItem_helper (QQuickItem *item, bool notify=true)
 
virtual void resolveFont ()
 
void inheritFont (const QFont &font)
 
void updateFont (const QFont &font)
 
void setFont_helper (const QFont &font)
 
void updateLocale (const QLocale &l, bool e)
 
virtual void cancelContentItem ()
 
virtual void executeContentItem (bool complete=false)
 
virtual void cancelBackground ()
 
virtual void executeBackground (bool complete=false)
 
void updateBaselineOffset ()
 
void addImplicitSizeListener (QQuickItem *item, ChangeTypes changes=ImplicitSizeChanges)
 
void removeImplicitSizeListener (QQuickItem *item, ChangeTypes changes=ImplicitSizeChanges)
 
void itemImplicitWidthChanged (QQuickItem *item) override
 
void itemImplicitHeightChanged (QQuickItem *item) override
 
void itemGeometryChanged (QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override
 
void itemDestroyed (QQuickItem *item) override
 
void itemFocusChanged (QQuickItem *item, Qt::FocusReason reason) override
 
virtual qreal getContentHeight () const
 
void updateImplicitContentWidth ()
 
void updateImplicitContentHeight ()
 
void updateImplicitContentSize ()
 
QPalette defaultPalette () const override
 
- Public Member Functions inherited from QQuickItemPrivate
 QQuickItemPrivate ()
 
 ~QQuickItemPrivate () override
 
void init (QQuickItem *parent)
 
QQmlListProperty< QObjectdata ()
 
QQmlListProperty< QObjectresources ()
 
QQmlListProperty< QQuickItemchildren ()
 
QQmlListProperty< QQuickItemvisibleChildren ()
 
QQmlListProperty< QQuickStatestates ()
 
QQmlListProperty< QQuickTransitiontransitions ()
 
QString state () const
 
void setState (const QString &)
 
QQuickAnchorLine left () const
 
QQuickAnchorLine right () const
 
QQuickAnchorLine horizontalCenter () const
 
QQuickAnchorLine top () const
 
QQuickAnchorLine bottom () const
 
QQuickAnchorLine verticalCenter () const
 
QQuickAnchorLine baseline () const
 
void localizedTouchEvent (const QTouchEvent *event, bool isFiltering, QMutableTouchEvent *localized)
 
bool hasPointerHandlers () const
 
bool hasEnabledHoverHandlers () const
 
virtual void addPointerHandler (QQuickPointerHandler *h)
 
virtual void removePointerHandler (QQuickPointerHandler *h)
 
void _q_resourceObjectDeleted (QObject *)
 
quint64 _q_createJSWrapper (QQmlV4ExecutionEnginePtr engine)
 
template<typename Fn , typename ... Args>
void notifyChangeListeners (QQuickItemPrivate::ChangeTypes changeTypes, Fn &&function, Args &&...args)
 
virtual void registerAsContainmentMask (QQuickItem *, bool)
 
QQuickAnchorsanchors () const
 \qmlpropertygroup QtQuick::Item::anchors \qmlproperty AnchorLine QtQuick::Item::anchors.top \qmlproperty AnchorLine QtQuick::Item::anchors.bottom \qmlproperty AnchorLine QtQuick::Item::anchors.left \qmlproperty AnchorLine QtQuick::Item::anchors.right \qmlproperty AnchorLine QtQuick::Item::anchors.horizontalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.verticalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.baseline
 
Qt::MouseButtons acceptedMouseButtons () const
 
void addItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types)
 
void updateOrAddItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types)
 
void removeItemChangeListener (QQuickItemChangeListener *, ChangeTypes types)
 
void updateOrAddGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types)
 
void updateOrRemoveGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types)
 
QQuickStateGroup_states ()
 
QQuickItem::TransformOrigin origin () const
 
QString dirtyToString () const
 
void dirty (DirtyType)
 
void addToDirtyList ()
 
void removeFromDirtyList ()
 
void setCulled (bool)
 
QSGContextsceneGraphContext () const
 
QSGRenderContextsceneGraphRenderContext () const
 
QList< QQuickItem * > paintOrderChildItems () const
 
void addChild (QQuickItem *)
 
void removeChild (QQuickItem *)
 
void siblingOrderChanged ()
 
void markSortedChildrenDirty (QQuickItem *child)
 
void refWindow (QQuickWindow *)
 
void derefWindow ()
 
void updateSubFocusItem (QQuickItem *scope, bool focus)
 Clears all sub focus items from scope.
 
bool setFocusIfNeeded (QEvent::Type)
 
Qt::FocusReason lastFocusChangeReason () const
 
void setLastFocusChangeReason (Qt::FocusReason reason)
 
QTransform windowToItemTransform () const
 Returns a transform that maps points from window space into item space.
 
QTransform itemToWindowTransform () const
 Returns a transform that maps points from item space into window space.
 
void itemToParentTransform (QTransform *) const
 Modifies t with this item's local transform relative to its parent.
 
QTransform globalToWindowTransform () const
 Returns a transform that maps points from global space into window space.
 
QTransform windowToGlobalTransform () const
 Returns a transform that maps points from window space into global space.
 
void setX (qreal x)
 
void xChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, x, &QQuickItemPrivate::setX, &QQuickItemPrivate::xChanged)
 
void setY (qreal y)
 
void yChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, y, &QQuickItemPrivate::setY, &QQuickItemPrivate::yChanged)
 
void setWidth (qreal width)
 
void widthChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, width, &QQuickItemPrivate::setWidth, &QQuickItemPrivate::widthChanged)
 
void setHeight (qreal height)
 
void heightChanged ()
 
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, height, &QQuickItemPrivate::setHeight, &QQuickItemPrivate::heightChanged)
 
bool widthValid () const
 
bool heightValid () const
 
qreal z () const
 
qreal scale () const
 
qreal rotation () const
 
qreal opacity () const
 
void setAccessible ()
 
virtual qreal getImplicitWidth () const
 
virtual qreal getImplicitHeight () const
 
virtual void implicitWidthChanged ()
 
virtual void implicitHeightChanged ()
 
void setImplicitAntialiasing (bool antialiasing)
 
void resolveLayoutMirror ()
 
void setImplicitLayoutMirror (bool mirror, bool inherit)
 
void setLayoutMirror (bool mirror)
 
bool isMirrored () const
 
void emitChildrenRectChanged (const QRectF &rect)
 
QPointF computeTransformOrigin () const
 
virtual bool transformChanged (QQuickItem *transformedItem)
 
QPointF adjustedPosForTransform (const QPointF &centroid, const QPointF &startPos, const QVector2D &activeTranslatation, qreal startScale, qreal activeScale, qreal startRotation, qreal activeRotation)
 
QQuickDeliveryAgentdeliveryAgent ()
 
QQuickDeliveryAgentPrivatedeliveryAgentPrivate ()
 
QQuickDeliveryAgentensureSubsceneDeliveryAgent ()
 
void deliverKeyEvent (QKeyEvent *)
 
bool filterKeyEvent (QKeyEvent *, bool post)
 
void deliverShortcutOverrideEvent (QKeyEvent *)
 
void deliverPointerEvent (QEvent *)
 
bool anyPointerHandlerWants (const QPointerEvent *event, const QEventPoint &point) const
 
virtual bool handlePointerEvent (QPointerEvent *, bool avoidGrabbers=false)
 
virtual void setVisible (bool visible)
 
bool isTransparentForPositioner () const
 
void setTransparentForPositioner (bool trans)
 
bool calcEffectiveVisible () const
 
bool setEffectiveVisibleRecur (bool)
 
bool calcEffectiveEnable () const
 
void setEffectiveEnableRecur (QQuickItem *scope, bool)
 
QSGTransformNodeitemNode ()
 
QSGNodechildContainerNode ()
 
QSGOpacityNodeopacityNode () const
 
QQuickDefaultClipNodeclipNode () const
 
QSGRootNoderootNode () const
 
virtual QSGTransformNodecreateTransformNode ()
 
void refFromEffectItem (bool hide)
 
void recursiveRefFromEffectItem (int refs)
 
void derefFromEffectItem (bool unhide)
 
void itemChange (QQuickItem::ItemChange, const QQuickItem::ItemChangeData &)
 
void enableSubtreeChangeNotificationsForParentHierachy ()
 
void setHasCursorInChild (bool hasCursor)
 
void setHasHoverInChild (bool hasHover)
 
virtual void updatePolish ()
 
virtual void dumpItemTree (int indent) const
 
QLayoutPolicy sizePolicy () const
 
void setSizePolicy (const QLayoutPolicy::Policy &horizontalPolicy, const QLayoutPolicy::Policy &verticalPolicy)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 
- Public Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
virtual ~QQuickPaletteProviderPrivateBase ()=default
 
virtual QQuickPalettepalette () const
 
virtual void setPalette (QQuickPalette *p)
 
virtual void resetPalette ()
 
virtual bool providesPalette () const
 
QPalette defaultPalette () const override
 
QPalette parentPalette (const QPalette &fallbackPalette) const override
 
void inheritPalette (const QPalette &parentPalette)
 
virtual void updateChildrenPalettes (const QPalette &parentPalette)
 
- Public Member Functions inherited from QQuickAbstractPaletteProvider
virtual ~QQuickAbstractPaletteProvider ()=default
 
- Public Member Functions inherited from QQuickItemChangeListener
virtual ~QQuickItemChangeListener ()
 
virtual void itemSiblingOrderChanged (QQuickItem *)
 
virtual void itemVisibilityChanged (QQuickItem *)
 
virtual void itemEnabledChanged (QQuickItem *)
 
virtual void itemOpacityChanged (QQuickItem *)
 
virtual void itemChildAdded (QQuickItem *, QQuickItem *)
 
virtual void itemChildRemoved (QQuickItem *, QQuickItem *)
 
virtual void itemParentChanged (QQuickItem *, QQuickItem *)
 
virtual void itemRotationChanged (QQuickItem *)
 
virtual QQuickAnchorsPrivateanchorPrivate ()
 

Static Public Member Functions

static void hideOldPopup (QQuickPopup *popup)
 
- Static Public Member Functions inherited from QQuickControlPrivate
static QQuickControlPrivateget (QQuickControl *control)
 
static void updateFontRecur (QQuickItem *item, const QFont &font)
 
static QFont parentFont (const QQuickItem *item)
 
static void updateLocaleRecur (QQuickItem *item, const QLocale &l)
 
static QLocale calcLocale (const QQuickItem *item)
 
static void warnIfCustomizationNotSupported (QObject *control, QQuickItem *item, const QString &propertyName)
 
static void hideOldItem (QQuickItem *item)
 
static void unhideOldItem (QQuickControl *control, QQuickItem *item, UnhideVisibility visibility=UnhideVisibility::Show)
 
static void addImplicitSizeListener (QQuickItem *item, QQuickItemChangeListener *listener, ChangeTypes changes=ImplicitSizeChanges)
 
static void removeImplicitSizeListener (QQuickItem *item, QQuickItemChangeListener *listener, ChangeTypes changes=ImplicitSizeChanges)
 
- Static Public Member Functions inherited from QQuickItemPrivate
static QQuickItemPrivateget (QQuickItem *item)
 
static const QQuickItemPrivateget (const QQuickItem *item)
 
static void data_append (QQmlListProperty< QObject > *, QObject *)
 
static qsizetype data_count (QQmlListProperty< QObject > *)
 \qmlproperty list<QtObject> QtQuick::Item::data \qmldefault
 
static QObjectdata_at (QQmlListProperty< QObject > *, qsizetype)
 
static void data_clear (QQmlListProperty< QObject > *)
 
static void data_removeLast (QQmlListProperty< QObject > *)
 
static QObjectresources_at (QQmlListProperty< QObject > *, qsizetype)
 
static void resources_append (QQmlListProperty< QObject > *, QObject *)
 
static qsizetype resources_count (QQmlListProperty< QObject > *)
 
static void resources_clear (QQmlListProperty< QObject > *)
 
static void resources_removeLast (QQmlListProperty< QObject > *)
 
static void children_append (QQmlListProperty< QQuickItem > *, QQuickItem *)
 
static qsizetype children_count (QQmlListProperty< QQuickItem > *)
 
static QQuickItemchildren_at (QQmlListProperty< QQuickItem > *, qsizetype)
 
static void children_clear (QQmlListProperty< QQuickItem > *)
 
static void children_removeLast (QQmlListProperty< QQuickItem > *)
 
static qsizetype visibleChildren_count (QQmlListProperty< QQuickItem > *prop)
 
static QQuickItemvisibleChildren_at (QQmlListProperty< QQuickItem > *prop, qsizetype index)
 
static qsizetype transform_count (QQmlListProperty< QQuickTransform > *list)
 
static void transform_append (QQmlListProperty< QQuickTransform > *list, QQuickTransform *)
 
static QQuickTransformtransform_at (QQmlListProperty< QQuickTransform > *list, qsizetype)
 
static void transform_clear (QQmlListProperty< QQuickTransform > *list)
 
static bool focusNextPrev (QQuickItem *item, bool forward)
 QQuickItemPrivate::focusNextPrev focuses the next/prev item in the tab-focus-chain.
 
static QQuickItemnextTabChildItem (const QQuickItem *item, int start)
 
static QQuickItemprevTabChildItem (const QQuickItem *item, int start)
 
static QQuickItemnextPrevItemInTabFocusChain (QQuickItem *item, bool forward, bool wrap=true)
 
static bool canAcceptTabFocus (QQuickItem *item)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Public Attributes

bool flat = false
 
bool down = false
 
bool hasDown = false
 
bool pressed = false
 
bool ownModel = false
 
bool keyNavigating = false
 
bool hasDisplayText = false
 
bool hasCurrentIndex = false
 
bool hasCalculatedWidestText = false
 
int highlightedIndex = -1
 
int currentIndex = -1
 
QQuickComboBox::ImplicitContentWidthPolicy implicitContentWidthPolicy = QQuickComboBox::ContentItemImplicitWidth
 
QVariant model
 
QString textRole
 
QString currentText
 
QString displayText
 
QString valueRole
 
QVariant currentValue
 
QQuickItempressedItem = nullptr
 
QQmlInstanceModeldelegateModel = nullptr
 
QQmlComponentdelegate = nullptr
 
QQuickDeferredPointer< QQuickItemindicator
 
QQuickDeferredPointer< QQuickPopuppopup
 
bool m_acceptableInput = true
 
QLazilyAllocated< ExtraDataextra
 
- Public Attributes inherited from QQuickControlPrivate
QLazilyAllocated< ExtraDataextra
 
bool hasHorizontalPadding = false
 
bool hasVerticalPadding = false
 
bool hasLocale = false
 
bool wheelEnabled = false
 
bool resizingBackground = false
 
int touchId = -1
 
qreal padding = 0
 
qreal horizontalPadding = 0
 
qreal verticalPadding = 0
 
qreal implicitContentWidth = 0
 
qreal implicitContentHeight = 0
 
qreal spacing = 0
 
QLocale locale
 
QFont resolvedFont
 
QQuickDeferredPointer< QQuickItembackground
 
QQuickDeferredPointer< QQuickItemcontentItem
 
- Public Attributes inherited from QQuickItemPrivate
QLazilyAllocated< ExtraData, ExtraDataTags > extra
 
QQuickAnchors_anchors
 
QVector< QQuickItemPrivate::ChangeListenerchangeListeners
 
QQuickStateGroup_stateGroup
 
quint32 flags:7
 
quint32 widthValidFlag:1
 
quint32 heightValidFlag:1
 
quint32 componentComplete:1
 
quint32 keepMouse:1
 
quint32 keepTouch:1
 
quint32 hoverEnabled:1
 
quint32 smooth:1
 
quint32 antialiasing:1
 
quint32 focus:1
 
quint32 activeFocus:1
 
quint32 notifiedFocus:1
 
quint32 notifiedActiveFocus:1
 
quint32 filtersChildMouseEvents:1
 
quint32 explicitVisible:1
 
quint32 effectiveVisible:1
 
quint32 explicitEnable:1
 
quint32 effectiveEnable:1
 
quint32 polishScheduled:1
 
quint32 inheritedLayoutMirror:1
 
quint32 effectiveLayoutMirror:1
 
quint32 isMirrorImplicit:1
 
quint32 inheritMirrorFromParent:1
 
quint32 inheritMirrorFromItem:1
 
quint32 isAccessible:1
 
quint32 culled:1
 
quint32 hasCursor:1
 
quint32 subtreeCursorEnabled:1
 
quint32 subtreeHoverEnabled:1
 
quint32 activeFocusOnTab:1
 
quint32 implicitAntialiasing:1
 
quint32 antialiasingValid:1
 
quint32 isTabFence:1
 
quint32 replayingPressEvent:1
 
quint32 touchEnabled:1
 
quint32 hasCursorHandler:1
 
quint32 maybeHasSubsceneDeliveryAgent:1
 
quint32 subtreeTransformChangedEnabled:1
 
quint32 inDestructor:1
 
quint32 focusReason:4
 
quint32 focusPolicy:4
 
quint32 dirtyAttributes
 
QQuickItemnextDirtyItem
 
QQuickItem ** prevDirtyItem
 
QQuickWindowwindow
 
int windowRefCount
 
QQuickItemparentItem
 
QList< QQuickItem * > childItems
 
QList< QQuickItem * > * sortedChildItems
 
QPointer< QQuickItemsubFocusItem
 
qreal implicitWidth
 
qreal implicitHeight
 
qreal baselineOffset
 
QList< QQuickTransform * > transforms
 
QSGTransformNodeitemNodeInstance
 
QSGNodepaintNode
 
QLayoutPolicy szPolicy
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QQuickControlPrivate
enum class  UnhideVisibility { Show , Hide }
 
- Public Types inherited from QQuickItemPrivate
enum  ChangeType {
  Geometry = 0x01 , SiblingOrder = 0x02 , Visibility = 0x04 , Opacity = 0x08 ,
  Destroyed = 0x10 , Parent = 0x20 , Children = 0x40 , Rotation = 0x80 ,
  ImplicitWidth = 0x100 , ImplicitHeight = 0x200 , Enabled = 0x400 , Focus = 0x800 ,
  AllChanges = 0xFFFFFFFF
}
 
enum  ExtraDataTag { NoTag = 0x1 , LeftMouseButtonAccepted = 0x2 }
 
enum  DirtyType {
  TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 ,
  Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 ,
  OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 ,
  Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 ,
  HideReference = 0x00020000 , Antialiasing = 0x00040000 , TransformUpdateMask , ComplexTransformUpdateMask = Transform | Window ,
  ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing , ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window
}
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Attributes inherited from QQuickControlPrivate
static const ChangeTypes ImplicitSizeChanges = QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight | QQuickItemPrivate::Destroyed
 Abstract base type providing functionality common to all controls.
 
- Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
void setCurrentColorGroup ()
 

Detailed Description

Definition at line 204 of file qquickcombobox.cpp.

Member Function Documentation

◆ acceptInput()

void QQuickComboBoxPrivate::acceptInput ( )

Definition at line 533 of file qquickcombobox.cpp.

References QQuickControlPrivate::contentItem, emit, extra, Qt::MatchFixedString, QString::size(), and text.

Referenced by QQuickComboBox::contentItemChange(), and QQuickComboBox::setEditable().

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

◆ calculateWidestTextWidth()

qreal QQuickComboBoxPrivate::calculateWidestTextWidth ( ) const

Definition at line 879 of file qquickcombobox.cpp.

References QQuickItemPrivate::componentComplete, QQuickControlPrivate::contentItem, delegateModel, effectiveTextRole(), QQuickTextInputPrivate::get(), i, qCDebug, qMax(), QQmlInstanceModel::stringValue(), text, and textRole.

Referenced by getContentWidth().

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

◆ cancelIndicator()

void QQuickComboBoxPrivate::cancelIndicator ( )

Definition at line 787 of file qquickcombobox.cpp.

References indicatorName(), and quickCancelDeferred().

+ Here is the call graph for this function:

◆ cancelPopup()

void QQuickComboBoxPrivate::cancelPopup ( )

Definition at line 807 of file qquickcombobox.cpp.

References popupName(), and quickCancelDeferred().

+ Here is the call graph for this function:

◆ countChanged()

void QQuickComboBoxPrivate::countChanged ( )

Definition at line 439 of file qquickcombobox.cpp.

References emit.

Referenced by createDelegateModel().

+ Here is the caller graph for this function:

◆ createDelegateModel()

void QQuickComboBoxPrivate::createDelegateModel ( )

Definition at line 716 of file qquickcombobox.cpp.

References QObjectPrivate::connect(), QQmlInstanceModel::countChanged(), countChanged(), QQmlInstanceModel::createdItem(), createdItem(), delegate, delegateModel, disconnect(), emit, QVariant::isValid(), model, modelUpdated(), QQmlInstanceModel::modelUpdated(), ownModel, and QVariant::value().

+ Here is the call graph for this function:

◆ createdItem()

void QQuickComboBoxPrivate::createdItem ( int index,
QObject * object )

Definition at line 406 of file qquickcombobox.cpp.

References button, QQuickAbstractButton::clicked(), QObjectPrivate::connect(), QQuickPopup::contentItem, currentIndex, QQuickItemPrivate::get(), QQuickControl::hoveredChanged(), item, itemClicked(), itemHovered(), Qt::NoFocus, QGraphicsItem::parentItem(), popup, qobject_cast< QQuickItem * >(), QWidget::setFocusPolicy(), QGraphicsItem::setParentItem(), and updateCurrentTextAndValue().

Referenced by createDelegateModel().

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

◆ decrementCurrentIndex()

void QQuickComboBoxPrivate::decrementCurrentIndex ( )

Definition at line 612 of file qquickcombobox.cpp.

References currentIndex, extra, highlightedIndex, isPopupVisible(), setCurrentIndex(), and setHighlightedIndex().

+ Here is the call graph for this function:

◆ defaultPalette()

QPalette QQuickComboBoxPrivate::defaultPalette ( ) const
inlineoverridevirtual

Implements QQuickAbstractPaletteProvider.

Definition at line 269 of file qquickcombobox.cpp.

References QQuickTheme::ComboBox, and QQuickTheme::palette().

+ Here is the call graph for this function:

◆ effectiveTextRole()

QString QQuickComboBoxPrivate::effectiveTextRole ( ) const

Definition at line 447 of file qquickcombobox.cpp.

References QString::isEmpty(), QStringLiteral, and textRole.

Referenced by calculateWidestTextWidth().

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

◆ executeIndicator()

void QQuickComboBoxPrivate::executeIndicator ( bool complete = false)

Definition at line 793 of file qquickcombobox.cpp.

References indicator, indicatorName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().

+ Here is the call graph for this function:

◆ executePopup()

void QQuickComboBoxPrivate::executePopup ( bool complete = false)

Definition at line 813 of file qquickcombobox.cpp.

References popup, popupName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().

Referenced by showPopup().

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

◆ getContentWidth()

qreal QQuickComboBoxPrivate::getContentWidth ( ) const
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 861 of file qquickcombobox.cpp.

References calculateWidestTextWidth(), QQuickItemPrivate::componentComplete, QQuickControlPrivate::getContentWidth(), hasCalculatedWidestText, implicitContentWidthPolicy, QQuickComboBox::WidestText, and QQuickComboBox::WidestTextWhenCompleted.

+ Here is the call graph for this function:

◆ handleMove()

bool QQuickComboBoxPrivate::handleMove ( const QPointF & point,
ulong timestamp )
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 761 of file qquickcombobox.cpp.

References QQuickControlPrivate::handleMove().

+ Here is the call graph for this function:

◆ handlePress()

bool QQuickComboBoxPrivate::handlePress ( const QPointF & point,
ulong timestamp )
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 753 of file qquickcombobox.cpp.

References QQuickControlPrivate::handlePress().

+ Here is the call graph for this function:

◆ handleRelease()

bool QQuickComboBoxPrivate::handleRelease ( const QPointF & point,
ulong timestamp )
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 769 of file qquickcombobox.cpp.

References QQuickControlPrivate::handleRelease(), pressed, and togglePopup().

+ Here is the call graph for this function:

◆ handleUngrab()

void QQuickComboBoxPrivate::handleUngrab ( )
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 780 of file qquickcombobox.cpp.

References QQuickControlPrivate::handleUngrab().

+ Here is the call graph for this function:

◆ hideOldPopup()

void QQuickComboBoxPrivate::hideOldPopup ( QQuickPopup * popup)
static

Definition at line 929 of file qquickcombobox.cpp.

References popup, qCDebug, and QQuickPopup::setVisible().

Referenced by QQuickComboBox::~QQuickComboBox(), and QQuickComboBox::setPopup().

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

◆ hidePopup()

void QQuickComboBoxPrivate::hidePopup ( bool accept)

Definition at line 324 of file qquickcombobox.cpp.

References QQuickPopup::close(), currentIndex, emit, highlightedIndex, and popup.

Referenced by itemClicked(), and togglePopup().

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

◆ incrementCurrentIndex()

void QQuickComboBoxPrivate::incrementCurrentIndex ( )

Definition at line 596 of file qquickcombobox.cpp.

References currentIndex, extra, highlightedIndex, isPopupVisible(), setCurrentIndex(), and setHighlightedIndex().

+ Here is the call graph for this function:

◆ isPopupVisible()

bool QQuickComboBoxPrivate::isPopupVisible ( ) const

Definition at line 310 of file qquickcombobox.cpp.

References popup.

Referenced by decrementCurrentIndex(), incrementCurrentIndex(), keySearch(), and popupVisibleChanged().

+ Here is the caller graph for this function:

◆ isValidIndex()

bool QQuickComboBoxPrivate::isValidIndex ( int index) const

Definition at line 528 of file qquickcombobox.cpp.

References QQmlInstanceModel::count, and delegateModel.

◆ itemClicked()

void QQuickComboBoxPrivate::itemClicked ( )

Definition at line 375 of file qquickcombobox.cpp.

References delegateModel, hidePopup(), QQmlInstanceModel::indexOf(), and setHighlightedIndex().

Referenced by createdItem().

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

◆ itemDestroyed()

void QQuickComboBoxPrivate::itemDestroyed ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 851 of file qquickcombobox.cpp.

References emit, indicator, item, and QQuickControlPrivate::itemDestroyed().

+ Here is the call graph for this function:

◆ itemHovered()

void QQuickComboBoxPrivate::itemHovered ( )

Definition at line 385 of file qquickcombobox.cpp.

References button, QQuickItemView::Contain, delegateModel, QObject::findChild(), QQuickAbstractButtonPrivate::get(), QQmlInstanceModel::indexOf(), QWidget::isEnabled(), keyNavigating, popup, and setHighlightedIndex().

Referenced by createdItem().

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

◆ itemImplicitHeightChanged()

void QQuickComboBoxPrivate::itemImplicitHeightChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 843 of file qquickcombobox.cpp.

References emit, indicator, item, and QQuickControlPrivate::itemImplicitHeightChanged().

+ Here is the call graph for this function:

◆ itemImplicitWidthChanged()

void QQuickComboBoxPrivate::itemImplicitWidthChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 825 of file qquickcombobox.cpp.

References emit, indicator, item, and QQuickControlPrivate::itemImplicitWidthChanged().

+ Here is the call graph for this function:

◆ keySearch()

void QQuickComboBoxPrivate::keySearch ( const QString & text)

Definition at line 645 of file qquickcombobox.cpp.

References currentIndex, highlightedIndex, isPopupVisible(), match(), Qt::MatchStartsWith, Qt::MatchWrap, setCurrentIndex(), setHighlightedIndex(), and text.

+ Here is the call graph for this function:

◆ match()

int QQuickComboBoxPrivate::match ( int start,
const QString & text,
Qt::MatchFlags flags ) const

Definition at line 657 of file qquickcombobox.cpp.

References QRegularExpression::anchoredPattern(), Qt::CaseInsensitive, QRegularExpression::CaseInsensitiveOption, Qt::CaseSensitive, i, Qt::MatchCaseSensitive, Qt::MatchContains, Qt::MatchEndsWith, Qt::MatchExactly, Qt::MatchFixedString, Qt::MatchRegularExpression, Qt::MatchStartsWith, Qt::MatchWildcard, Qt::MatchWrap, QRegularExpression::NoPatternOption, rx(), text, QRegularExpression::wildcardToRegularExpression(), and wrap().

Referenced by keySearch(), and tryComplete().

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

◆ maybeUpdateImplicitContentWidth()

void QQuickComboBoxPrivate::maybeUpdateImplicitContentWidth ( )

If the user requested it (and we haven't already done it, depending on the policy), update the implicit content width to the largest text in the model.

Definition at line 916 of file qquickcombobox.cpp.

References QQuickItemPrivate::componentComplete, QQuickComboBox::ContentItemImplicitWidth, hasCalculatedWidestText, implicitContentWidthPolicy, QQuickControlPrivate::updateImplicitContentWidth(), and QQuickComboBox::WidestTextWhenCompleted.

+ Here is the call graph for this function:

◆ modelUpdated()

void QQuickComboBoxPrivate::modelUpdated ( )

Definition at line 429 of file qquickcombobox.cpp.

References QQuickItemPrivate::componentComplete, extra, implicitContentWidthPolicy, updateCurrentTextAndValue(), QQuickControlPrivate::updateImplicitContentSize(), and QQuickComboBox::WidestText.

Referenced by createDelegateModel().

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

◆ popupDestroyed()

void QQuickComboBoxPrivate::popupDestroyed ( )

Definition at line 368 of file qquickcombobox.cpp.

References emit, and popup.

Referenced by QQuickComboBox::setPopup().

+ Here is the caller graph for this function:

◆ popupVisibleChanged()

void QQuickComboBoxPrivate::popupVisibleChanged ( )

Definition at line 343 of file qquickcombobox.cpp.

References QQuickItemView::Beginning, QObject::findChild(), hasDown, highlightedIndex, QGuiApplication::inputMethod(), isPopupVisible(), QQuickItemView::NoHighlightRange, popup, QQuickItemView::positionViewAtIndex(), pressed, QQuickItemView::setHighlightRangeMode(), and updateHighlightedIndex().

Referenced by QQuickComboBox::~QQuickComboBox(), and QQuickComboBox::setPopup().

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

◆ setCurrentIndex()

void QQuickComboBoxPrivate::setCurrentIndex ( int index,
Activation activate )

Definition at line 580 of file qquickcombobox.cpp.

References QQuickItemPrivate::componentComplete, currentIndex, emit, and updateCurrentTextAndValue().

Referenced by decrementCurrentIndex(), incrementCurrentIndex(), and keySearch().

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

◆ setHighlightedIndex()

void QQuickComboBoxPrivate::setHighlightedIndex ( int index,
Highlighting highlight )

Definition at line 632 of file qquickcombobox.cpp.

References emit, and highlightedIndex.

Referenced by decrementCurrentIndex(), incrementCurrentIndex(), itemClicked(), itemHovered(), keySearch(), and updateHighlightedIndex().

+ Here is the caller graph for this function:

◆ setInputMethodHints()

void QQuickComboBoxPrivate::setInputMethodHints ( Qt::InputMethodHints hints,
bool force = false )

Definition at line 833 of file qquickcombobox.cpp.

References emit, and extra.

◆ showPopup()

void QQuickComboBoxPrivate::showPopup ( )

Definition at line 315 of file qquickcombobox.cpp.

References executePopup(), QQuickPopup::open(), and popup.

Referenced by togglePopup().

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

◆ togglePopup()

void QQuickComboBoxPrivate::togglePopup ( bool accept)

Definition at line 335 of file qquickcombobox.cpp.

References hidePopup(), popup, and showPopup().

Referenced by handleRelease().

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

◆ tryComplete()

QString QQuickComboBoxPrivate::tryComplete ( const QString & inputText)

Definition at line 558 of file qquickcombobox.cpp.

References Qt::CaseInsensitive, QString::count(), match(), QString::mid(), QString::size(), QString::startsWith(), and text.

Referenced by updateEditText().

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

◆ updateAcceptableInput()

void QQuickComboBoxPrivate::updateAcceptableInput ( )

Definition at line 508 of file qquickcombobox.cpp.

References QQuickControlPrivate::contentItem, emit, and m_acceptableInput.

Referenced by QQuickComboBox::contentItemChange().

+ Here is the caller graph for this function:

◆ updateCurrentText()

void QQuickComboBoxPrivate::updateCurrentText ( )

Definition at line 473 of file qquickcombobox.cpp.

References currentIndex, currentText, displayText, emit, extra, hasDisplayText, and text.

Referenced by updateCurrentTextAndValue().

+ Here is the caller graph for this function:

◆ updateCurrentTextAndValue()

void QQuickComboBoxPrivate::updateCurrentTextAndValue ( )

Definition at line 502 of file qquickcombobox.cpp.

References updateCurrentText(), and updateCurrentValue().

Referenced by createdItem(), modelUpdated(), setCurrentIndex(), and QQuickComboBox::setModel().

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

◆ updateCurrentValue()

void QQuickComboBoxPrivate::updateCurrentValue ( )

Definition at line 491 of file qquickcombobox.cpp.

References currentIndex, currentValue, and emit.

Referenced by updateCurrentTextAndValue().

+ Here is the caller graph for this function:

◆ updateEditText()

void QQuickComboBoxPrivate::updateEditText ( )

Definition at line 452 of file qquickcombobox.cpp.

References QQuickControlPrivate::contentItem, extra, QString::isEmpty(), QString::size(), text, and tryComplete().

Referenced by QQuickComboBox::contentItemChange(), and QQuickComboBox::setEditable().

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

◆ updateHighlightedIndex()

void QQuickComboBoxPrivate::updateHighlightedIndex ( )

Definition at line 627 of file qquickcombobox.cpp.

References currentIndex, popup, and setHighlightedIndex().

Referenced by popupVisibleChanged().

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

Member Data Documentation

◆ currentIndex

◆ currentText

QString QQuickComboBoxPrivate::currentText

Definition at line 285 of file qquickcombobox.cpp.

Referenced by updateCurrentText().

◆ currentValue

QVariant QQuickComboBoxPrivate::currentValue

Definition at line 288 of file qquickcombobox.cpp.

Referenced by updateCurrentValue().

◆ delegate

QQmlComponent* QQuickComboBoxPrivate::delegate = nullptr

Definition at line 291 of file qquickcombobox.cpp.

Referenced by createDelegateModel().

◆ delegateModel

QQmlInstanceModel* QQuickComboBoxPrivate::delegateModel = nullptr

◆ displayText

QString QQuickComboBoxPrivate::displayText

Definition at line 286 of file qquickcombobox.cpp.

Referenced by updateCurrentText().

◆ down

bool QQuickComboBoxPrivate::down = false

Definition at line 272 of file qquickcombobox.cpp.

◆ extra

◆ flat

bool QQuickComboBoxPrivate::flat = false

Definition at line 271 of file qquickcombobox.cpp.

◆ hasCalculatedWidestText

bool QQuickComboBoxPrivate::hasCalculatedWidestText = false

Definition at line 279 of file qquickcombobox.cpp.

Referenced by getContentWidth(), and maybeUpdateImplicitContentWidth().

◆ hasCurrentIndex

bool QQuickComboBoxPrivate::hasCurrentIndex = false

Definition at line 278 of file qquickcombobox.cpp.

◆ hasDisplayText

bool QQuickComboBoxPrivate::hasDisplayText = false

Definition at line 277 of file qquickcombobox.cpp.

Referenced by updateCurrentText().

◆ hasDown

bool QQuickComboBoxPrivate::hasDown = false

Definition at line 273 of file qquickcombobox.cpp.

Referenced by popupVisibleChanged().

◆ highlightedIndex

int QQuickComboBoxPrivate::highlightedIndex = -1

◆ implicitContentWidthPolicy

◆ indicator

QQuickDeferredPointer<QQuickItem> QQuickComboBoxPrivate::indicator

◆ keyNavigating

bool QQuickComboBoxPrivate::keyNavigating = false

Definition at line 276 of file qquickcombobox.cpp.

Referenced by itemHovered().

◆ m_acceptableInput

bool QQuickComboBoxPrivate::m_acceptableInput = true

Definition at line 294 of file qquickcombobox.cpp.

Referenced by updateAcceptableInput().

◆ model

QVariant QQuickComboBoxPrivate::model

Definition at line 283 of file qquickcombobox.cpp.

Referenced by createDelegateModel().

◆ ownModel

bool QQuickComboBoxPrivate::ownModel = false

Definition at line 275 of file qquickcombobox.cpp.

Referenced by createDelegateModel().

◆ popup

◆ pressed

bool QQuickComboBoxPrivate::pressed = false

Definition at line 274 of file qquickcombobox.cpp.

Referenced by handleRelease(), and popupVisibleChanged().

◆ pressedItem

QQuickItem* QQuickComboBoxPrivate::pressedItem = nullptr

Definition at line 289 of file qquickcombobox.cpp.

◆ textRole

QString QQuickComboBoxPrivate::textRole

Definition at line 284 of file qquickcombobox.cpp.

Referenced by calculateWidestTextWidth(), and effectiveTextRole().

◆ valueRole

QString QQuickComboBoxPrivate::valueRole

Definition at line 287 of file qquickcombobox.cpp.


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