| 85 | QLabel::mouseReleaseEvent(event); |
| 86 | } |
| 87 | |
| 88 | void ElaKeyBinder::paintEvent(QPaintEvent* event) |
| 89 | { |
| 90 | Q_D(ElaKeyBinder); |
| 91 | if (palette().color(QPalette::WindowText) != ElaThemeColor(d->_themeMode, BasicText)) |
| 92 | { |
| 93 | d->onThemeChanged(d->_themeMode); |
| 94 | } |
| 95 | QPainter painter(this); |
| 96 | painter.save(); |
| 97 | painter.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing); |
| 98 | painter.setPen(ElaThemeColor(d->_themeMode, BasicBorder)); |
| 99 | painter.setBrush(ElaColorAnimation::getColor(this, underMouse() ? ElaThemeColor(d->_themeMode, BasicHover) : ElaThemeColor(d->_themeMode, BasicBase), "Background")); |
| 100 | QRect borderRect = rect(); |
nothing calls this directly
no test coverage detected