| 16 | ELA_PROPERTY_Q_CPP(ElaInteractiveCard, QPixmap, CardPixmap); |
| 17 | ELA_PROPERTY_Q_CPP(ElaInteractiveCard, QSize, CardPixmapSize); |
| 18 | ELA_PROPERTY_Q_CPP(ElaInteractiveCard, int, CardPixmapBorderRadius) |
| 19 | ELA_PROPERTY_Q_CPP(ElaInteractiveCard, ElaCardPixType::PixMode, CardPixMode); |
| 20 | ElaInteractiveCard::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 |
nothing calls this directly
no test coverage detected