47 #if QT_CONFIG(radiobutton)
53 #ifndef QT_NO_ACCESSIBILITY
56 #include <private/qwidget_p.h>
72 #ifndef QT_NO_SHORTCUT
105 option->activeSubControls |=
d->pressedControl;
125 if (!
d->title.isEmpty())
209 #ifndef QT_NO_SHORTCUT
229 #ifndef QT_NO_SHORTCUT
237 #ifndef QT_NO_ACCESSIBILITY
322 #ifndef QT_NO_SHORTCUT
325 if (se->shortcutId() ==
d->shortcutId) {
344 bool oldHover =
d->hover;
346 if (oldHover !=
d->hover) {
396 if (!(
c->added() ||
c->polished()) || !
c->child()->isWidgetType())
406 if (
w->isEnabled()) {
407 w->setEnabled(
false);
426 if (!fw || fw ==
q) {
430 while ((
w =
w->nextInFocusChain()) !=
q) {
432 #if QT_CONFIG(radiobutton)
433 if (!best && qobject_cast<QRadioButton*>(
w) && ((
QRadioButton*)
w)->isChecked())
460 q->initStyleOption(&
box);
462 q->setContentsMargins(contentsRect.
left() -
box.rect.left(), contentsRect.
top() -
box.rect.top(),
463 box.rect.right() - contentsRect.
right(),
box.rect.bottom() - contentsRect.
bottom());
492 int baseHeight =
metrics.height();
557 bool wasCheckable =
d->checkable;
564 d->_q_setChildrenEnabled(
true);
570 d->_q_setChildrenEnabled(
true);
573 d->_q_setChildrenEnabled(
true);
592 return d->checkable &&
d->checked;
636 if (
d->checkable &&
b !=
d->checked) {
639 d->_q_setChildrenEnabled(
b);
640 #ifndef QT_NO_ACCESSIBILITY
658 if (
o->isWidgetType()) {
664 if (
w->isEnabled()) {
665 w->setEnabled(
false);
681 d->_q_setChildrenEnabled(
false);
705 event->position().toPoint(),
this);
707 d->overCheckBox =
true;
721 event->position().toPoint(),
this);
722 bool oldOverCheckBox =
d->overCheckBox;
725 && (
d->overCheckBox != oldOverCheckBox))
740 if (!
d->overCheckBox) {
747 event->position().toPoint(),
this);
751 d->overCheckBox =
false;
754 else if (
d->checkable)
760 #include "moc_qgroupbox.cpp"
The QAccessibleEvent class is the base class for accessibility notifications.
static void updateAccessibility(QAccessibleEvent *event)
The QAccessibleStateChangeEvent notfies the accessibility framework that the state of an object has c...
The QChildEvent class contains event parameters for child object events.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QEvent class is the base class of all event classes. Event objects contain event parameters.
The QFlag class is a helper data type for QFlags.
The QFocusEvent class contains event parameters for widget focus events. \inmodule QtGui.
Qt::FocusReason reason() const
The QFontMetrics class provides font metrics information.
The QGroupBox widget provides a group box frame with a title.
void paintEvent(QPaintEvent *event) override
QString title
the group box title text
virtual void initStyleOption(QStyleOptionGroupBox *option) const
void mouseReleaseEvent(QMouseEvent *event) override
QGroupBox(QWidget *parent=nullptr)
void mousePressEvent(QMouseEvent *event) override
void resizeEvent(QResizeEvent *event) override
bool event(QEvent *event) override
void childEvent(QChildEvent *event) override
bool checkable
whether the group box has a checkbox in its title
void mouseMoveEvent(QMouseEvent *event) override
void setChecked(bool checked)
void setCheckable(bool checkable)
void changeEvent(QEvent *event) override
void setAlignment(int alignment)
Qt::Alignment alignment
the alignment of the group box title.
void focusInEvent(QFocusEvent *event) override
QSize minimumSizeHint() const override
void setTitle(const QString &title)
QStyle::SubControl pressedControl
void _q_setChildrenEnabled(bool b)
void _q_fixFocus(Qt::FocusReason reason)
The QHoverEvent class contains parameters that describe a mouse event.
The QKeyEvent class describes a key event.
bool isAutoRepeat() const
static QKeySequence mnemonic(const QString &text)
The QMouseEvent class contains parameters that describe a mouse event.
The QObject class is the base class of all Qt objects.
The QPaintEvent class contains event parameters for paint events. \inmodule QtGui.
The QPointer class is a template class that provides guarded pointers to QObject.
The QRect class defines a rectangle in the plane using integer precision.
constexpr int bottom() const noexcept
constexpr int top() const noexcept
constexpr int left() const noexcept
constexpr int right() const noexcept
The QResizeEvent class contains event parameters for resize events. \inmodule QtGui.
The QShortcutEvent class provides an event which is generated when the user presses a key combination...
The QSize class defines the size of a two-dimensional object using integer point precision.
constexpr QSize expandedTo(const QSize &) const noexcept
The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
The QString class provides a Unicode character string.
virtual QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget=nullptr) const =0
virtual QSize sizeFromContents(ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *w=nullptr) const =0
@ SH_GroupBox_TextLabelColor
virtual SubControl hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *widget=nullptr) const =0
@ PM_CheckBoxLabelSpacing
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const =0
a bitwise OR of the features that describe this frame.
The QStylePainter class is a convenience class for drawing QStyle elements inside a widget.
union Alignment_ Alignment
QHighDpiScaling::Point position(T, QHighDpiScaling::Point::Kind)
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro vuzp8 reg2 vuzp d d ®2 endm macro vzip8 reg2 vzip d d ®2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld endif[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1 beq endif SRC MASK if dst_r_bpp DST_R else add endif PF add sub src_basereg pixdeinterleave mask_basereg pixdeinterleave dst_r_basereg process_pixblock_head pixblock_size cache_preload_simple process_pixblock_tail pixinterleave dst_w_basereg irp beq endif process_pixblock_tail_head tst beq irp if pixblock_size chunk_size tst beq pixld SRC pixld MASK if DST_R else pixld DST_R endif if
GLboolean GLboolean GLboolean b
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLsizei GLenum const void GLuint GLsizei GLfloat * metrics
GLsizei const GLint * box
GLdouble GLdouble GLdouble GLdouble q
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent