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

Method ElaRadioButton

ElaWidgetTools/ElaRadioButton.cpp:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "ElaRadioButtonStyle.h"
5#include "ElaTheme.h"
6#include "ElaWidgetToolsDef.h"
7#include "private/ElaRadioButtonPrivate.h"
8
9ElaRadioButton::ElaRadioButton(QWidget* parent)
10 : QRadioButton(parent), d_ptr(new ElaRadioButtonPrivate())
11{
12 Q_D(ElaRadioButton);
13 d->q_ptr = this;
14 setAttribute(Qt::WA_Hover);
15 setMouseTracking(true);
16 setFixedHeight(ElaWidgetToolsSize::DefaultControlHeight);
17 QFont font = this->font();
18 font.setPixelSize(eApp->getFontPixelSize());
19 setFont(font);
20 auto* radioButtonStyle = new ElaRadioButtonStyle(style());
21 radioButtonStyle->setParent(this);

Callers

nothing calls this directly

Calls 2

getThemeModeMethod · 0.80
onThemeChangedMethod · 0.45

Tested by

no test coverage detected