![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Go to the source code of this file.
Functions | |
opt | initFrom (q) |
[0] | |
if (down) opt.state| = QStyle::State_Sunken | |
if (tristate &&noChange) opt.state| = QStyle::State_NoChange | |
if (q->testAttribute(Qt::WA_Hover) &&q->underMouse()) | |
if (widget->isEnabled()) state| = QStyle::State_HasFocus | |
if (widget->window() ->testAttribute(Qt::WA_KeyboardFocusChange)) state| = QStyle::State_KeyboardFocusChange | |
if (widget->window() ->isActiveWindow()) state| = QStyle::State_Active | |
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| = Qt::TextHideMnemonic | |
if (!btn->icon.isNull()) | |
if (!btn->text.isEmpty()) | |
Variables | |
else opt | state |
[0] | |
opt | text = text |
opt | icon = icon |
opt | iconSize = q->iconSize() |
direction = widget->layoutDirection() | |
rect = widget->rect() | |
[4] | |
palette = widget->palette() | |
fontMetrics = widget->fontMetrics() | |
QStylePainter | p (this) |
[1] | |
QStyleOptionButton | opt = d->getStyleOption() |
QStyleOptionButton | subopt = *btn |
[2] | |
const QStyleOptionButton * | btn = qstyleoption_cast<const QStyleOptionButton *>(opt) |
[3] | |
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() | ) |
Definition at line 80 of file doc_src_styles.cpp.
if | ( | !btn->text. | isEmpty() | ) |
Definition at line 90 of file doc_src_styles.cpp.
if | ( | ! | styleHintSH_UnderlineShortcut, btn, widget | ) | = Qt::TextHideMnemonic |
Definition at line 63 of file doc_src_styles.cpp.
if | ( | down | ) | = QStyle::State_Sunken |
if | ( | q-> | testAttributeQt::WA_Hover) &&q->underMouse( | ) |
Definition at line 13 of file doc_src_styles.cpp.
if | ( | tristate && | noChange | ) | = QStyle::State_NoChange |
if | ( | widget-> | isEnabled() | ) | = QStyle::State_HasFocus |
if | ( | widget-> | window) ->isActiveWindow( | ) | = QStyle::State_Active |
if | ( | widget-> | window) ->testAttribute(Qt::WA_KeyboardFocusChange | ) | = QStyle::State_KeyboardFocusChange |
uint alignment = visualAlignment(btn->direction, Qt::AlignLeft | Qt::AlignVCenter) |
Definition at line 74 of file doc_src_styles.cpp.
const QStyleOptionButton * btn = qstyleoption_cast<const QStyleOptionButton *>(opt) |
direction = widget->layoutDirection() |
Definition at line 42 of file doc_src_styles.cpp.
fontMetrics = widget->fontMetrics() |
Definition at line 45 of file doc_src_styles.cpp.
opt icon = icon |
Definition at line 20 of file doc_src_styles.cpp.
Definition at line 21 of file doc_src_styles.cpp.
QStyleOptionButton opt = d->getStyleOption() |
Definition at line 51 of file doc_src_styles.cpp.
QStylePainter p(this) | ( | this | ) |
[1]
[2]
palette = widget->palette() |
Definition at line 44 of file doc_src_styles.cpp.
QPixmap pix |
Definition at line 78 of file doc_src_styles.cpp.
rect rect QGraphicsRectItem rect = widget->rect() |
[0]
[1]
Definition at line 11 of file doc_src_styles.cpp.
QStyleOptionButton subopt = *btn |
opt text = text |
Definition at line 19 of file doc_src_styles.cpp.
Definition at line 79 of file doc_src_styles.cpp.