MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / paintEvent

Method paintEvent

ElaWidgetTools/ElaRadioButton.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29{
30 setText(text);
31}
32
33ElaRadioButton::~ElaRadioButton() = default;
34
35void ElaRadioButton::paintEvent(QPaintEvent* event)
36{
37 Q_D(ElaRadioButton);
38 if (palette().color(QPalette::WindowText) != ElaThemeColor(d->_themeMode, BasicText))
39 {
40 d->onThemeChanged(d->_themeMode);
41 }
42 QRadioButton::paintEvent(event);

Callers

nothing calls this directly

Calls 1

onThemeChangedMethod · 0.45

Tested by

no test coverage detected