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

Method mousePressEvent

ElaWidgetTools/ElaToggleButton.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 QWidget::mouseReleaseEvent(event);
76}
77
78void ElaToggleButton::paintEvent(QPaintEvent* event)
79{
80 Q_D(ElaToggleButton);
81 QPainter painter(this);
82 painter.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing);
83
84 painter.save();
85 QRect foregroundRect(1, 1, width() - 2, height() - 2);
86 QStyleOption option;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected