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
QQuickAbstractButtonPrivate Class Reference

#include <qquickabstractbutton_p_p.h>

+ Inheritance diagram for QQuickAbstractButtonPrivate:
+ Collaboration diagram for QQuickAbstractButtonPrivate:

Public Member Functions

QPointF centerPressPoint () const
 
void setPressPoint (const QPointF &point)
 
void setMovePoint (const QPointF &point)
 
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
 
virtual bool acceptKeyClick (Qt::Key key) const
 
bool isPressAndHoldConnected ()
 
bool isDoubleClickConnected ()
 
void startPressAndHold ()
 
void stopPressAndHold ()
 
void startRepeatDelay ()
 
void startPressRepeat ()
 
void stopPressRepeat ()
 
QQuickAbstractButtonfindCheckedButton () const
 
QList< QQuickAbstractButton * > findExclusiveButtons () const
 
void actionTextChange ()
 
void setText (const QString &text, bool isExplicit)
 
void init ()
 Abstract base type providing functionality common to buttons.
 
void updateEffectiveIcon ()
 
void click ()
 
void trigger (bool doubleClick=false)
 
void toggle (bool value)
 
void cancelIndicator ()
 
void executeIndicator (bool complete=false)
 
void itemImplicitWidthChanged (QQuickItem *item) override
 
void itemImplicitHeightChanged (QQuickItem *item) override
 
void itemDestroyed (QQuickItem *item) 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 getContentWidth () const
 
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 QQuickAbstractButtonPrivateget (QQuickAbstractButton *button)
 
- 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 explicitText = false
 
bool down = false
 
bool explicitDown = false
 
bool pressed = false
 
bool keepPressed = false
 
bool checked = false
 
bool checkable = false
 
bool autoExclusive = false
 
bool autoRepeat = false
 
bool wasHeld = false
 
bool wasDoubleClick = false
 
int holdTimer = 0
 
int delayTimer = 0
 
int repeatTimer = 0
 
int repeatDelay = AUTO_REPEAT_DELAY
 
int repeatInterval = AUTO_REPEAT_INTERVAL
 
qreal lastTouchReleaseTimestamp = 0
 
QString text
 
QQuickIcon icon
 
QQuickIcon effectiveIcon
 
QPointF pressPoint
 
QPointF movePoint
 
Qt::MouseButtons pressButtons = Qt::NoButton
 
QQuickAbstractButton::Display display = QQuickAbstractButton::TextBesideIcon
 
QQuickDeferredPointer< QQuickItemindicator
 
QQuickButtonGroupgroup = nullptr
 
QPointer< QQuickActionaction
 
- 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
 

Static Public Attributes

static const int AUTO_REPEAT_DELAY = 300
 
static const int AUTO_REPEAT_INTERVAL = 100
 
- 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.
 

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>
 
- Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
void setCurrentColorGroup ()
 

Detailed Description

Definition at line 31 of file qquickabstractbutton_p_p.h.

Member Function Documentation

◆ acceptKeyClick()

bool QQuickAbstractButtonPrivate::acceptKeyClick ( Qt::Key key) const
virtual

Reimplemented in QQuickFileDialogDelegatePrivate, and QQuickMenuItemPrivate.

Definition at line 231 of file qquickabstractbutton.cpp.

References QPlatformTheme::ButtonPressKeys, and QGuiApplicationPrivate::platformTheme().

Referenced by QQuickMenuItemPrivate::acceptKeyClick().

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

◆ actionTextChange()

void QQuickAbstractButtonPrivate::actionTextChange ( )

Definition at line 326 of file qquickabstractbutton.cpp.

References QQuickAbstractButton::ButtonTextChange, and explicitText.

Referenced by QQuickAbstractButton::setAction().

+ Here is the caller graph for this function:

◆ cancelIndicator()

void QQuickAbstractButtonPrivate::cancelIndicator ( )

Definition at line 392 of file qquickabstractbutton.cpp.

References indicatorName(), and quickCancelDeferred().

+ Here is the call graph for this function:

◆ centerPressPoint()

QPointF QQuickAbstractButtonPrivate::centerPressPoint ( ) const

Definition at line 109 of file qquickabstractbutton.cpp.

References qRound().

+ Here is the call graph for this function:

◆ click()

void QQuickAbstractButtonPrivate::click ( )

Definition at line 362 of file qquickabstractbutton.cpp.

References QQuickItemPrivate::effectiveEnable, and emit.

Referenced by QQuickAbstractButton::setAction().

+ Here is the caller graph for this function:

◆ executeIndicator()

void QQuickAbstractButtonPrivate::executeIndicator ( bool complete = false)

Definition at line 398 of file qquickabstractbutton.cpp.

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

+ Here is the call graph for this function:

◆ findCheckedButton()

QQuickAbstractButton * QQuickAbstractButtonPrivate::findCheckedButton ( ) const

Definition at line 437 of file qquickabstractbutton.cpp.

References autoExclusive, button, checked, findExclusiveButtons(), and QAbstractButton::isChecked().

+ Here is the call graph for this function:

◆ findExclusiveButtons()

QList< QQuickAbstractButton * > QQuickAbstractButtonPrivate::findExclusiveButtons ( ) const

Definition at line 460 of file qquickabstractbutton.cpp.

References QAbstractButton::autoExclusive, button, child, QQuickItem::childItems(), QQuickItemPrivate::childItems, QList< T >::count(), get(), i, and QQuickItemPrivate::parentItem.

Referenced by findCheckedButton().

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

◆ get()

static QQuickAbstractButtonPrivate * QQuickAbstractButtonPrivate::get ( QQuickAbstractButton * button)
inlinestatic

Definition at line 36 of file qquickabstractbutton_p_p.h.

References button.

Referenced by QQuickButtonGroup::addButton(), QQuickMaterialRipple::anchorPoint(), QQuickButtonGroupPrivate::clear(), findExclusiveButtons(), QQuickComboBoxPrivate::itemHovered(), QQuickMenuPrivate::onItemHovered(), and QQuickButtonGroup::removeButton().

+ Here is the caller graph for this function:

◆ handleMove()

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

Reimplemented from QQuickControlPrivate.

Reimplemented in QQuickSwitchPrivate, and QQuickSwitchDelegatePrivate.

Definition at line 150 of file qquickabstractbutton.cpp.

References autoRepeat, QQuickControlPrivate::handleMove(), holdTimer, keepPressed, pressed, pressPoint, setMovePoint(), stopPressAndHold(), stopPressRepeat(), and QGuiApplication::styleHints().

Referenced by QQuickSwitchPrivate::handleMove(), and QQuickSwitchDelegatePrivate::handleMove().

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

◆ handlePress()

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

Reimplemented from QQuickControlPrivate.

Reimplemented in QQuickMenuBarItemPrivate.

Definition at line 132 of file qquickabstractbutton.cpp.

References autoRepeat, emit, QQuickControlPrivate::handlePress(), Qt::LeftButton, pressButtons, setPressPoint(), startPressAndHold(), startRepeatDelay(), stopPressAndHold(), and QQuickControlPrivate::touchId.

Referenced by QQuickMenuBarItemPrivate::handlePress().

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

◆ handleRelease()

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

Reimplemented from QQuickControlPrivate.

Reimplemented in QQuickMenuBarItemPrivate, QQuickSwitchPrivate, and QQuickSwitchDelegatePrivate.

Definition at line 164 of file qquickabstractbutton.cpp.

References autoRepeat, emit, QQuickControlPrivate::handleRelease(), isDoubleClickConnected(), keepPressed, lastTouchReleaseTimestamp, Qt::NoButton, pressButtons, pressed, qApp, setPressPoint(), stopPressAndHold(), stopPressRepeat(), QQuickControlPrivate::touchId, trigger(), wasDoubleClick, and wasHeld.

Referenced by QQuickMenuBarItemPrivate::handleRelease(), QQuickSwitchPrivate::handleRelease(), and QQuickSwitchDelegatePrivate::handleRelease().

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

◆ handleUngrab()

void QQuickAbstractButtonPrivate::handleUngrab ( )
overridevirtual

Reimplemented from QQuickControlPrivate.

Definition at line 215 of file qquickabstractbutton.cpp.

References emit, QQuickControlPrivate::handleUngrab(), lastTouchReleaseTimestamp, Qt::NoButton, pressButtons, pressed, stopPressAndHold(), stopPressRepeat(), and wasDoubleClick.

+ Here is the call graph for this function:

◆ init()

QT_BEGIN_NAMESPACE void QQuickAbstractButtonPrivate::init ( )

Abstract base type providing functionality common to buttons.

\qmltype AbstractButton
\inherits Control

! \instantiates QQuickAbstractButton \inqmlmodule QtQuick.Controls

Since
5.7

AbstractButton provides the interface for controls with button-like behavior; for example, push buttons and checkable controls like radio buttons and check boxes. As an abstract control, it has no delegate implementations, leaving them to the types that derive from it.

See also
ButtonGroup, {Button Controls}

\qmlsignal QtQuick.Controls::AbstractButton::pressed()

This signal is emitted when the button is interactively pressed by the user via touch, mouse, or keyboard.

\qmlsignal QtQuick.Controls::AbstractButton::released()

This signal is emitted when the button is interactively released by the user via touch, mouse, or keyboard.

\qmlsignal QtQuick.Controls::AbstractButton::canceled()

This signal is emitted when the button loses mouse grab while being pressed, or when it would emit the \l released signal but the mouse cursor is not inside the button.

\qmlsignal QtQuick.Controls::AbstractButton::clicked()

This signal is emitted when the button is interactively clicked by the user via touch, mouse, or keyboard.

See also
{Call a C++ function from QML when a Button is clicked}
Since
QtQuick.Controls 2.2 (Qt 5.9) \qmlsignal QtQuick.Controls::AbstractButton::toggled()

This signal is emitted when a checkable button is interactively toggled by the user via touch, mouse, or keyboard.

\qmlsignal QtQuick.Controls::AbstractButton::pressAndHold()

This signal is emitted when the button is interactively pressed and held down by the user via touch or mouse. It is not emitted when \l autoRepeat is enabled.

\qmlsignal QtQuick.Controls::AbstractButton::doubleClicked()

This signal is emitted when the button is interactively double clicked by the user via touch or mouse.

Definition at line 90 of file qquickabstractbutton.cpp.

References Qt::ArrowCursor, QLayoutPolicy::Fixed, Qt::LeftButton, QLayoutPolicy::Preferred, QQuickItemPrivate::setSizePolicy(), Qt::StrongFocus, and Qt::TabFocus.

+ Here is the call graph for this function:

◆ isDoubleClickConnected()

bool QQuickAbstractButtonPrivate::isDoubleClickConnected ( )

Definition at line 247 of file qquickabstractbutton.cpp.

References QQuickAbstractButton::doubleClicked(), QMetaMethod::fromSignal(), method, and signal.

Referenced by handleRelease().

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

◆ isPressAndHoldConnected()

bool QQuickAbstractButtonPrivate::isPressAndHoldConnected ( )

Definition at line 237 of file qquickabstractbutton.cpp.

References QMetaMethod::fromSignal(), method, QQuickAbstractButton::pressAndHold(), and signal.

Referenced by startPressAndHold().

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

◆ itemDestroyed()

void QQuickAbstractButtonPrivate::itemDestroyed ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 426 of file qquickabstractbutton.cpp.

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

+ Here is the call graph for this function:

◆ itemImplicitHeightChanged()

void QQuickAbstractButtonPrivate::itemImplicitHeightChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 418 of file qquickabstractbutton.cpp.

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

+ Here is the call graph for this function:

◆ itemImplicitWidthChanged()

void QQuickAbstractButtonPrivate::itemImplicitWidthChanged ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 410 of file qquickabstractbutton.cpp.

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

+ Here is the call graph for this function:

◆ setMovePoint()

void QQuickAbstractButtonPrivate::setMovePoint ( const QPointF & point)

Definition at line 120 of file qquickabstractbutton.cpp.

References emit, movePoint, qFuzzyCompare(), QPointF::x(), and QPointF::y().

Referenced by handleMove(), and setPressPoint().

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

◆ setPressPoint()

void QQuickAbstractButtonPrivate::setPressPoint ( const QPointF & point)

Definition at line 114 of file qquickabstractbutton.cpp.

References pressPoint, and setMovePoint().

Referenced by QQuickSwipeDelegatePrivate::handleMousePressEvent(), handlePress(), and handleRelease().

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

◆ setText()

void QQuickAbstractButtonPrivate::setText ( const QString & text,
bool isExplicit )

◆ startPressAndHold()

void QQuickAbstractButtonPrivate::startPressAndHold ( )

Definition at line 257 of file qquickabstractbutton.cpp.

References holdTimer, isPressAndHoldConnected(), stopPressAndHold(), QGuiApplication::styleHints(), and wasHeld.

Referenced by handlePress().

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

◆ startPressRepeat()

void QQuickAbstractButtonPrivate::startPressRepeat ( )

Definition at line 282 of file qquickabstractbutton.cpp.

References repeatInterval, repeatTimer, and stopPressRepeat().

+ Here is the call graph for this function:

◆ startRepeatDelay()

void QQuickAbstractButtonPrivate::startRepeatDelay ( )

Definition at line 275 of file qquickabstractbutton.cpp.

References delayTimer, repeatDelay, and stopPressRepeat().

Referenced by handlePress().

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

◆ stopPressAndHold()

void QQuickAbstractButtonPrivate::stopPressAndHold ( )

Definition at line 266 of file qquickabstractbutton.cpp.

References holdTimer.

Referenced by QQuickSwipeDelegatePrivate::handleMouseMoveEvent(), QQuickSwipeDelegatePrivate::handleMouseReleaseEvent(), handleMove(), handlePress(), handleRelease(), handleUngrab(), and startPressAndHold().

+ Here is the caller graph for this function:

◆ stopPressRepeat()

void QQuickAbstractButtonPrivate::stopPressRepeat ( )

Definition at line 289 of file qquickabstractbutton.cpp.

References delayTimer, and repeatTimer.

Referenced by QQuickSwipeDelegatePrivate::handleMouseReleaseEvent(), handleMove(), handleRelease(), handleUngrab(), startPressRepeat(), and startRepeatDelay().

+ Here is the caller graph for this function:

◆ toggle()

void QQuickAbstractButtonPrivate::toggle ( bool value)

Definition at line 383 of file qquickabstractbutton.cpp.

References checked, and emit.

◆ trigger()

void QQuickAbstractButtonPrivate::trigger ( bool doubleClick = false)

Definition at line 369 of file qquickabstractbutton.cpp.

References action, QQuickItemPrivate::effectiveEnable, emit, QQuickActionPrivate::get(), and QQuickAction::isEnabled().

Referenced by handleRelease().

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

◆ updateEffectiveIcon()

void QQuickAbstractButtonPrivate::updateEffectiveIcon ( )

Definition at line 347 of file qquickabstractbutton.cpp.

References action, effectiveIcon, emit, icon, QQuickAction::icon, and QQuickIcon::resolve().

Referenced by QQuickAbstractButton::setAction().

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

Member Data Documentation

◆ action

QPointer<QQuickAction> QQuickAbstractButtonPrivate::action

Definition at line 120 of file qquickabstractbutton_p_p.h.

Referenced by trigger(), and updateEffectiveIcon().

◆ AUTO_REPEAT_DELAY

const int QQuickAbstractButtonPrivate::AUTO_REPEAT_DELAY = 300
static

Definition at line 87 of file qquickabstractbutton_p_p.h.

◆ AUTO_REPEAT_INTERVAL

const int QQuickAbstractButtonPrivate::AUTO_REPEAT_INTERVAL = 100
static

Definition at line 88 of file qquickabstractbutton_p_p.h.

◆ autoExclusive

bool QQuickAbstractButtonPrivate::autoExclusive = false

Definition at line 97 of file qquickabstractbutton_p_p.h.

Referenced by findCheckedButton().

◆ autoRepeat

bool QQuickAbstractButtonPrivate::autoRepeat = false

Definition at line 98 of file qquickabstractbutton_p_p.h.

Referenced by handleMove(), handlePress(), and handleRelease().

◆ checkable

bool QQuickAbstractButtonPrivate::checkable = false

Definition at line 96 of file qquickabstractbutton_p_p.h.

◆ checked

bool QQuickAbstractButtonPrivate::checked = false

Definition at line 95 of file qquickabstractbutton_p_p.h.

Referenced by findCheckedButton(), and toggle().

◆ delayTimer

int QQuickAbstractButtonPrivate::delayTimer = 0

Definition at line 102 of file qquickabstractbutton_p_p.h.

Referenced by startRepeatDelay(), and stopPressRepeat().

◆ display

Definition at line 117 of file qquickabstractbutton_p_p.h.

◆ down

bool QQuickAbstractButtonPrivate::down = false

Definition at line 91 of file qquickabstractbutton_p_p.h.

◆ effectiveIcon

QQuickIcon QQuickAbstractButtonPrivate::effectiveIcon

Definition at line 113 of file qquickabstractbutton_p_p.h.

Referenced by updateEffectiveIcon().

◆ explicitDown

bool QQuickAbstractButtonPrivate::explicitDown = false

Definition at line 92 of file qquickabstractbutton_p_p.h.

◆ explicitText

bool QQuickAbstractButtonPrivate::explicitText = false

Definition at line 90 of file qquickabstractbutton_p_p.h.

Referenced by actionTextChange(), and setText().

◆ group

QQuickButtonGroup* QQuickAbstractButtonPrivate::group = nullptr

Definition at line 119 of file qquickabstractbutton_p_p.h.

◆ holdTimer

int QQuickAbstractButtonPrivate::holdTimer = 0

◆ icon

QQuickIcon QQuickAbstractButtonPrivate::icon

Definition at line 112 of file qquickabstractbutton_p_p.h.

Referenced by updateEffectiveIcon().

◆ indicator

◆ keepPressed

bool QQuickAbstractButtonPrivate::keepPressed = false

Definition at line 94 of file qquickabstractbutton_p_p.h.

Referenced by handleMove(), and handleRelease().

◆ lastTouchReleaseTimestamp

qreal QQuickAbstractButtonPrivate::lastTouchReleaseTimestamp = 0

Definition at line 110 of file qquickabstractbutton_p_p.h.

Referenced by handleRelease(), and handleUngrab().

◆ movePoint

QPointF QQuickAbstractButtonPrivate::movePoint

◆ pressButtons

Qt::MouseButtons QQuickAbstractButtonPrivate::pressButtons = Qt::NoButton

Definition at line 116 of file qquickabstractbutton_p_p.h.

Referenced by handlePress(), handleRelease(), and handleUngrab().

◆ pressed

◆ pressPoint

◆ repeatDelay

int QQuickAbstractButtonPrivate::repeatDelay = AUTO_REPEAT_DELAY

Definition at line 104 of file qquickabstractbutton_p_p.h.

Referenced by startRepeatDelay().

◆ repeatInterval

int QQuickAbstractButtonPrivate::repeatInterval = AUTO_REPEAT_INTERVAL

Definition at line 105 of file qquickabstractbutton_p_p.h.

Referenced by startPressRepeat().

◆ repeatTimer

int QQuickAbstractButtonPrivate::repeatTimer = 0

Definition at line 103 of file qquickabstractbutton_p_p.h.

Referenced by startPressRepeat(), and stopPressRepeat().

◆ text

QString QQuickAbstractButtonPrivate::text

Definition at line 111 of file qquickabstractbutton_p_p.h.

Referenced by setText().

◆ wasDoubleClick

bool QQuickAbstractButtonPrivate::wasDoubleClick = false

◆ wasHeld

bool QQuickAbstractButtonPrivate::wasHeld = false

Definition at line 99 of file qquickabstractbutton_p_p.h.

Referenced by handleRelease(), and startPressAndHold().


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