![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qquickabstractbutton_p_p.h>
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. | |
| Static Public Attributes inherited from QQuickItemPrivate | |
| static bool | customOverlayRequested = false |
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 , Scale = 0x1000 , Matrix = 0x2000 , 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> |
| Public Types inherited from QSafeQuickItemChangeListener< QQuickControlPrivate > | |
| using | InDestructorTest |
| using | WasDeletedTest |
| Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate > | |
| void | setCurrentColorGroup () |
Definition at line 34 of file qquickabstractbutton_p_p.h.
|
virtual |
Reimplemented in QQuickFileDialogDelegatePrivate, and QQuickMenuItemPrivate.
Definition at line 261 of file qquickabstractbutton.cpp.
|
virtual |
Reimplemented in QQuickMenuBarItemPrivate.
Definition at line 481 of file qquickabstractbutton.cpp.
|
virtual |
Definition at line 487 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::actionTextChange | ( | ) |
Definition at line 356 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::cancelIndicator | ( | ) |
Definition at line 521 of file qquickabstractbutton.cpp.
| QPointF QQuickAbstractButtonPrivate::centerPressPoint | ( | ) | const |
Definition at line 126 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::click | ( | ) |
Definition at line 471 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::executeIndicator | ( | bool | complete = false | ) |
Definition at line 527 of file qquickabstractbutton.cpp.
| QQuickAbstractButton * QQuickAbstractButtonPrivate::findCheckedButton | ( | ) | const |
Definition at line 566 of file qquickabstractbutton.cpp.
| QList< QQuickAbstractButton * > QQuickAbstractButtonPrivate::findExclusiveButtons | ( | ) | const |
Definition at line 589 of file qquickabstractbutton.cpp.
|
inlinestatic |
Definition at line 39 of file qquickabstractbutton_p_p.h.
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Reimplemented in QQuickSwitchDelegatePrivate, QQuickSwitchDelegatePrivate, QQuickSwitchPrivate, and QQuickSwitchPrivate.
Definition at line 174 of file qquickabstractbutton.cpp.
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Reimplemented in QQuickMenuBarItemPrivate.
Definition at line 149 of file qquickabstractbutton.cpp.
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Reimplemented in QQuickMenuBarItemPrivate, QQuickSwitchDelegatePrivate, QQuickSwitchDelegatePrivate, QQuickSwitchPrivate, and QQuickSwitchPrivate.
Definition at line 188 of file qquickabstractbutton.cpp.
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 245 of file qquickabstractbutton.cpp.
| QT_BEGIN_NAMESPACE void QQuickAbstractButtonPrivate::init | ( | ) |
Abstract base type providing functionality common to buttons.
\qmltype AbstractButton \inherits Control
! \nativetype QQuickAbstractButton \inqmlmodule QtQuick.Controls
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.
\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.
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 105 of file qquickabstractbutton.cpp.
| bool QQuickAbstractButtonPrivate::isDoubleClickConnected | ( | ) |
Definition at line 277 of file qquickabstractbutton.cpp.
| bool QQuickAbstractButtonPrivate::isPressAndHoldConnected | ( | ) |
Definition at line 267 of file qquickabstractbutton.cpp.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 555 of file qquickabstractbutton.cpp.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 547 of file qquickabstractbutton.cpp.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 539 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::setMnemonicEnabled | ( | bool | enabled | ) |
Whether the \l text supports \l {QShortcut#mnemonic}{mnemonics} keys. An example of a mnemonic is "E&xit": a button with this text can be clicked by the keyboard shortcut Alt+X, and the x will be underlined.
If true, the mnemonic indicator (&) is always removed from the displayed text. Depending on the current platform's conventions, this may also enable the corresponding keyboard shortcut and underline the mnemonic.
If false, the mnemonic indicator (&) will not be removed from the text and the shortcut will be disabled. This allows & to be used literally, as in {"Cats & Dogs"}.
This isn't exposed to QML: whether mnemonics are supported is determined by the platform (QPlatformTheme::MnemonicsEnabled) by default, and forced to false by certain derived types (such as \l ItemDelegate and \l DelayButton) for which mnemonics don't make sense. It isn't something app code should be able to toggle per-instance.
When Qt is \l {Qt Configure Options}{configured} with -no-feature-shortcut, shortcuts are disabled, and this has no effect.
Definition at line 401 of file qquickabstractbutton.cpp.
Definition at line 137 of file qquickabstractbutton.cpp.
Definition at line 131 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::setText | ( | const QString & | text, |
| QQml::PropertyUtils::State | propertyState ) |
Definition at line 365 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::startPressAndHold | ( | ) |
Definition at line 287 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::startPressRepeat | ( | ) |
Definition at line 312 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::startRepeatDelay | ( | ) |
Definition at line 305 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::stopPressAndHold | ( | ) |
Definition at line 296 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::stopPressRepeat | ( | ) |
Definition at line 319 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::toggle | ( | bool | value | ) |
Definition at line 512 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::trigger | ( | bool | doubleClick = false | ) |
Definition at line 492 of file qquickabstractbutton.cpp.
| void QQuickAbstractButtonPrivate::updateEffectiveIcon | ( | ) |
Definition at line 416 of file qquickabstractbutton.cpp.
| QPointer<QQuickAction> QQuickAbstractButtonPrivate::action |
Definition at line 134 of file qquickabstractbutton_p_p.h.
| int QQuickAbstractButtonPrivate::animateTimer = 0 |
Definition at line 118 of file qquickabstractbutton_p_p.h.
|
static |
Definition at line 98 of file qquickabstractbutton_p_p.h.
|
static |
Definition at line 99 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::autoExclusive = false |
Definition at line 108 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::autoRepeat = false |
Definition at line 109 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::checkable = false |
Definition at line 107 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::checked = false |
Definition at line 106 of file qquickabstractbutton_p_p.h.
| int QQuickAbstractButtonPrivate::delayTimer = 0 |
Definition at line 114 of file qquickabstractbutton_p_p.h.
| QQuickAbstractButton::Display QQuickAbstractButtonPrivate::display = QQuickAbstractButton::TextBesideIcon |
Definition at line 130 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::down = false |
Definition at line 102 of file qquickabstractbutton_p_p.h.
| QQuickIcon QQuickAbstractButtonPrivate::effectiveIcon |
Definition at line 126 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::explicitDown = false |
Definition at line 103 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::explicitText = false |
Definition at line 101 of file qquickabstractbutton_p_p.h.
| QQuickButtonGroup* QQuickAbstractButtonPrivate::group = nullptr |
Definition at line 133 of file qquickabstractbutton_p_p.h.
| int QQuickAbstractButtonPrivate::holdTimer = 0 |
Definition at line 113 of file qquickabstractbutton_p_p.h.
| QQuickIcon QQuickAbstractButtonPrivate::icon |
Definition at line 125 of file qquickabstractbutton_p_p.h.
| QQuickDeferredPointer<QQuickItem> QQuickAbstractButtonPrivate::indicator |
Definition at line 131 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::keepPressed = false |
Definition at line 105 of file qquickabstractbutton_p_p.h.
| qreal QQuickAbstractButtonPrivate::lastTouchReleaseTimestamp = 0 |
Definition at line 123 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::mnemonicEnabled = true |
Definition at line 132 of file qquickabstractbutton_p_p.h.
| QPointF QQuickAbstractButtonPrivate::movePoint |
Definition at line 128 of file qquickabstractbutton_p_p.h.
| Qt::MouseButtons QQuickAbstractButtonPrivate::pressButtons = Qt::NoButton |
Definition at line 129 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::pressed = false |
Definition at line 104 of file qquickabstractbutton_p_p.h.
| QPointF QQuickAbstractButtonPrivate::pressPoint |
Definition at line 127 of file qquickabstractbutton_p_p.h.
| int QQuickAbstractButtonPrivate::repeatDelay = AUTO_REPEAT_DELAY |
Definition at line 116 of file qquickabstractbutton_p_p.h.
| int QQuickAbstractButtonPrivate::repeatInterval = AUTO_REPEAT_INTERVAL |
Definition at line 117 of file qquickabstractbutton_p_p.h.
| int QQuickAbstractButtonPrivate::repeatTimer = 0 |
Definition at line 115 of file qquickabstractbutton_p_p.h.
| QString QQuickAbstractButtonPrivate::text |
Definition at line 124 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::wasDoubleClick = false |
Definition at line 111 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::wasEnabledBeforeTrigger = false |
Definition at line 112 of file qquickabstractbutton_p_p.h.
| bool QQuickAbstractButtonPrivate::wasHeld = false |
Definition at line 110 of file qquickabstractbutton_p_p.h.