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

Method paintEvent

ElaWidgetTools/ElaScrollPageArea.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25{
26}
27
28void ElaScrollPageArea::paintEvent(QPaintEvent* event)
29{
30 Q_D(ElaScrollPageArea);
31 QPainter painter(this);
32 painter.save();
33 painter.setRenderHint(QPainter::Antialiasing);
34 painter.setPen(ElaThemeColor(d->_themeMode, BasicBorder));
35 painter.setBrush(ElaColorAnimation::getColor(this, ElaThemeColor(d->_themeMode, BasicBaseAlpha), "Background"));
36 QRect foregroundRect(1, 1, width() - 2, height() - 2);
37 painter.drawRoundedRect(foregroundRect, d->_pBorderRadius, d->_pBorderRadius);
38 painter.restore();
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected