QtBase
v6.3.1
|
Go to the source code of this file.
Functions | |
opt | initFrom (q) |
[0] More... | |
if (down) opt.state| | |
if (tristate &&noChange) opt.state| | |
if (q->testAttribute(Qt::WA_Hover) &&q->underMouse()) | |
if (widget->isEnabled()) state| | |
if (widget->window() ->testAttribute(Qt::WA_KeyboardFocusChange)) state| | |
if (widget->window() ->isActiveWindow()) state| | |
p | drawControl (QStyle::CE_CheckBox, opt) |
drawPrimitive (PE_IndicatorCheckBox, &subopt, p, widget) | |
drawControl (CE_CheckBoxLabel, &subopt, p, widget) | |
if (btn->state &State_HasFocus) | |
if (!styleHint(SH_UnderlineShortcut, btn, widget)) alignment| | |
if (!btn->icon.isNull()) | |
if (!btn->text.isEmpty()) | |
Variables | |
else opt | state |
[0] More... | |
opt | text = text |
opt | icon = icon |
opt | iconSize = q->iconSize() |
direction = widget->layoutDirection() | |
rect = widget->rect() | |
[4] More... | |
palette = widget->palette() | |
fontMetrics = widget->fontMetrics() | |
QStylePainter | p (this) |
[1] More... | |
QStyleOptionButton | opt = d->getStyleOption() |
QStyleOptionButton | subopt = *btn |
[2] More... | |
const QStyleOptionButton * | btn = qstyleoption_cast<const QStyleOptionButton *>(opt) |
[3] More... | |
uint | alignment = visualAlignment(btn->direction, Qt::AlignLeft | Qt::AlignVCenter) |
QPixmap | pix |
QRect | textRect = btn->rect |
p drawControl | ( | QStyle::CE_CheckBox | , |
opt | |||
) |
if | ( | !btn->icon. | isNull() | ) |
if | ( | !btn->text. | isEmpty() | ) |
Definition at line 135 of file doc_src_styles.cpp.
if | ( | ! | styleHintSH_UnderlineShortcut, btn, widget | ) |
if | ( | down | ) |
if | ( | q-> | testAttributeQt::WA_Hover) &&q->underMouse( | ) |
Definition at line 60 of file doc_src_styles.cpp.
if | ( | tristate && | noChange | ) |
if | ( | widget-> | isEnabled() | ) |
if | ( | widget-> | window) ->isActiveWindow( | ) |
if | ( | widget-> | window) ->testAttribute(Qt::WA_KeyboardFocusChange | ) |
uint alignment = visualAlignment(btn->direction, Qt::AlignLeft | Qt::AlignVCenter) |
Definition at line 121 of file doc_src_styles.cpp.
direction = widget->layoutDirection() |
Definition at line 89 of file doc_src_styles.cpp.
fontMetrics = widget->fontMetrics() |
Definition at line 92 of file doc_src_styles.cpp.
opt icon = icon |
Definition at line 67 of file doc_src_styles.cpp.
Definition at line 68 of file doc_src_styles.cpp.
QStyleOptionButton opt = d->getStyleOption() |
Definition at line 98 of file doc_src_styles.cpp.
QStylePainter p(this) | ( | this | ) |
[1]
[2]
palette = widget->palette() |
Definition at line 91 of file doc_src_styles.cpp.
QPixmap pix |
Definition at line 125 of file doc_src_styles.cpp.
rect rect QGraphicsRectItem rect = widget->rect() |
state |
[0]
[1]
Definition at line 58 of file doc_src_styles.cpp.
QStyleOptionButton subopt = *btn |
opt text = text |
Definition at line 66 of file doc_src_styles.cpp.
Definition at line 126 of file doc_src_styles.cpp.