MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / paintEvent

Method paintEvent

examples/DCPS/ishapes/ShapesWidget.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void
62ShapesWidget::paintEvent(QPaintEvent*) {
63 QPainter painter(this);
64 painter.setRenderHint(QPainter::Antialiasing, true);
65 painter.drawPixmap(0, height() - logo_.height(), logo_);
66 if (showCurrentFilter_) {
67 QBrush brush(QColor(0x99,0x99,0x99,0x99), Qt::SolidPattern);
68 painter.setBrush(brush);
69 painter.drawRect(currentFilter_);
70 }
71 ShapeList::iterator index = shapeList_.begin();
72 while (index != shapeList_.end()) {
73 (*index)->paint(painter);
74 ++index;
75 }
76}
77
78void
79ShapesWidget::addFilter(const QRect& filter) {

Callers

nothing calls this directly

Calls 4

setBrushMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
paintMethod · 0.45

Tested by

no test coverage detected