MCPcopy Create free account
hub / github.com/SeaEpoch/MouseClick / reloadIcon

Method reloadIcon

src/qwk_window_bar/windowbutton.cpp:22–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void WindowButtonPrivate::reloadIcon()
23 {
24 Q_Q(WindowButton);
25
26 if (!q->isEnabled() && !iconDisabled.isNull()) {
27 q->setIcon(iconDisabled);
28 return;
29 }
30
31 if (q->isChecked() && !iconChecked.isNull()) {
32 q->setIcon(iconChecked);
33 return;
34 }
35
36 if (!iconNormal.isNull()) {
37 q->setIcon(iconNormal);
38 }
39 }
40
41 WindowButton::WindowButton(QWidget* parent) : WindowButton(*new WindowButtonPrivate(), parent)
42 {

Callers 4

setIconNormalMethod · 0.80
setIconCheckedMethod · 0.80
setIconDisabledMethod · 0.80
checkStateSetMethod · 0.80

Calls 1

setIconMethod · 0.80

Tested by

no test coverage detected