![]() |
Qt 6.x
The Qt SDK
|
#include <qabstractbutton_p.h>
Additional Inherited Members | |
![]() | |
enum | DrawWidgetFlag { DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 , DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 , UseEffectRegionBounds = 0x100 } |
enum | Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 } |
enum class | WindowHandleMode { Direct , Closest , TopLevel } |
enum | CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
![]() | |
static QWidgetPrivate * | get (QWidget *w) |
static const QWidgetPrivate * | get (const QWidget *w) |
static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
static QWidget * | parentGraphicsView (const QWidget *widget) |
static QRect | screenGeometry (const QWidget *widget) |
static QRect | availableScreenGeometry (const QWidget *widget) |
static QScreen * | screen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static void | sendComposeStatus (QWidget *w, bool end) |
static void | setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (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) |
![]() | |
static QWidgetMapper * | mapper = nullptr |
static QWidgetSet * | allWidgets = nullptr |
static int | instanceCounter = 0 |
static int | maxInstances = 0 |
Definition at line 26 of file qabstractbutton_p.h.
QAbstractButtonPrivate::QAbstractButtonPrivate | ( | QSizePolicy::ControlType | type = QSizePolicy::DefaultType | ) |
Definition at line 136 of file qabstractbutton.cpp.
void QAbstractButtonPrivate::click | ( | ) |
Definition at line 343 of file qabstractbutton.cpp.
References autoExclusive, blockRefresh, checked, down, emitClicked(), emitReleased(), queryCheckedButton(), and refresh().
void QAbstractButtonPrivate::emitClicked | ( | ) |
Definition at line 375 of file qabstractbutton.cpp.
Referenced by click().
void QAbstractButtonPrivate::emitPressed | ( | ) |
Definition at line 389 of file qabstractbutton.cpp.
References emit.
void QAbstractButtonPrivate::emitReleased | ( | ) |
Definition at line 403 of file qabstractbutton.cpp.
References emit.
Referenced by click().
void QAbstractButtonPrivate::emitToggled | ( | bool | checked | ) |
Definition at line 417 of file qabstractbutton.cpp.
void QAbstractButtonPrivate::fixFocusPolicy | ( | ) |
Definition at line 302 of file qabstractbutton.cpp.
References QList< T >::at(), autoExclusive, i, queryButtonList(), QList< T >::size(), and Qt::TabFocus.
void QAbstractButtonPrivate::init | ( | ) |
Definition at line 323 of file qabstractbutton.cpp.
References QPalette::Button, QPalette::ButtonText, controlType, QSizePolicy::Fixed, QSizePolicy::Minimum, QStyle::SH_Button_FocusPolicy, and Qt::WA_WState_OwnSizePolicy.
void QAbstractButtonPrivate::moveFocus | ( | int | key | ) |
Definition at line 211 of file qabstractbutton.cpp.
References QList< T >::at(), autoExclusive, Qt::BacktabFocusReason, QRect::bottom(), button, QRect::center(), QAbstractButton::checkable, QAbstractButton::checked, QAbstractButton::click(), QListSpecialMethodsBase< T >::contains(), QWidget::focusPolicy, QApplication::focusWidget(), i, QWidget::isEnabled(), QWidget::isHidden(), Qt::Key_Down, Qt::Key_Left, Qt::Key_Right, Qt::Key_Up, QWidget::mapToGlobal(), qAbs(), qt_tab_all_widgets(), queryButtonList(), QWidget::rect, QRect::right(), QWidget::setFocus(), QList< T >::size(), Qt::StrongFocus, Qt::TabFocus, Qt::TabFocusReason, QRect::translated(), QWidget::window(), QPoint::x(), QRect::x(), QPoint::y(), and QRect::y().
void QAbstractButtonPrivate::notifyChecked | ( | ) |
Definition at line 194 of file qabstractbutton.cpp.
References autoExclusive, QAbstractButton::nextCheckState(), and queryCheckedButton().
QList< QAbstractButton * > QAbstractButtonPrivate::queryButtonList | ( | ) | const |
Definition at line 151 of file qabstractbutton.cpp.
References QAbstractButton::autoExclusive, autoExclusive, QObject::findChildren(), QObjectData::parent, and QList< T >::removeIf().
Referenced by fixFocusPolicy(), moveFocus(), and queryCheckedButton().
QAbstractButton * QAbstractButtonPrivate::queryCheckedButton | ( | ) | const |
Definition at line 174 of file qabstractbutton.cpp.
References QList< T >::at(), autoExclusive, checked, i, queryButtonList(), and QList< T >::size().
Referenced by click(), and notifyChecked().
void QAbstractButtonPrivate::refresh | ( | ) |
Definition at line 334 of file qabstractbutton.cpp.
References blockRefresh.
Referenced by click().
QBasicTimer QAbstractButtonPrivate::animateTimer |
Definition at line 51 of file qabstractbutton_p.h.
uint QAbstractButtonPrivate::autoExclusive |
Definition at line 42 of file qabstractbutton_p.h.
Referenced by click(), fixFocusPolicy(), moveFocus(), notifyChecked(), queryButtonList(), and queryCheckedButton().
uint QAbstractButtonPrivate::autoRepeat |
Definition at line 41 of file qabstractbutton_p.h.
int QAbstractButtonPrivate::autoRepeatDelay |
Definition at line 53 of file qabstractbutton_p.h.
int QAbstractButtonPrivate::autoRepeatInterval |
Definition at line 53 of file qabstractbutton_p.h.
uint QAbstractButtonPrivate::blockRefresh |
Definition at line 44 of file qabstractbutton_p.h.
uint QAbstractButtonPrivate::checkable |
Definition at line 39 of file qabstractbutton_p.h.
uint QAbstractButtonPrivate::checked |
Definition at line 40 of file qabstractbutton_p.h.
Referenced by click(), emitClicked(), emitToggled(), and queryCheckedButton().
QSizePolicy::ControlType QAbstractButtonPrivate::controlType |
Definition at line 55 of file qabstractbutton_p.h.
Referenced by init().
uint QAbstractButtonPrivate::down |
Definition at line 43 of file qabstractbutton_p.h.
Referenced by click().
QIcon QAbstractButtonPrivate::icon |
Definition at line 33 of file qabstractbutton_p.h.
QSize QAbstractButtonPrivate::iconSize |
Definition at line 34 of file qabstractbutton_p.h.
uint QAbstractButtonPrivate::pressed |
Definition at line 45 of file qabstractbutton_p.h.
Referenced by QToolButtonPrivate::init().
QBasicTimer QAbstractButtonPrivate::repeatTimer |
Definition at line 50 of file qabstractbutton_p.h.
QKeySequence QAbstractButtonPrivate::shortcut |
Definition at line 36 of file qabstractbutton_p.h.
int QAbstractButtonPrivate::shortcutId |
Definition at line 37 of file qabstractbutton_p.h.
|
mutable |
Definition at line 56 of file qabstractbutton_p.h.
QString QAbstractButtonPrivate::text |
Definition at line 32 of file qabstractbutton_p.h.