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

Method ElaInteractiveCard

ElaWidgetTools/ElaInteractiveCard.cpp:18–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16ELA_PROPERTY_Q_CPP(ElaInteractiveCard, QPixmap, CardPixmap);
17ELA_PROPERTY_Q_CPP(ElaInteractiveCard, QSize, CardPixmapSize);
18ELA_PROPERTY_Q_CPP(ElaInteractiveCard, int, CardPixmapBorderRadius)
19ELA_PROPERTY_Q_CPP(ElaInteractiveCard, ElaCardPixType::PixMode, CardPixMode);
20ElaInteractiveCard::ElaInteractiveCard(QWidget* parent)
21 : QPushButton(parent), d_ptr(new ElaInteractiveCardPrivate())
22{
23 Q_D(ElaInteractiveCard);
24 d->q_ptr = this;
25 d->_pBorderRadius = 6;
26 d->_pTitlePixelSize = 15;
27 d->_pSubTitlePixelSize = 12;
28 setMinimumSize(270, 80);
29 d->_pCardPixmapSize = QSize(64, 64);
30 d->_pTitleSpacing = 2;
31 d->_pCardPixmapBorderRadius = 6;
32 d->_pCardPixMode = ElaCardPixType::PixMode::Ellipse;
33 d->_themeMode = eTheme->getThemeMode();
34 setMouseTracking(true);
35 connect(eTheme, &ElaTheme::themeModeChanged, this, [=](ElaThemeType::ThemeMode themeMode) { d->_themeMode = themeMode; });
36}
37

Callers

nothing calls this directly

Calls 1

getThemeModeMethod · 0.80

Tested by

no test coverage detected