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

Method paintEvent

qCC/extern/QCustomPlot/qcustomplot.cpp:15466–15481  ·  view source on GitHub ↗

! \internal Event handler for when the QCustomPlot widget needs repainting. This does not cause a \ref replot, but draws the internal buffer on the widget surface. */

Source from the content-addressed store, hash-verified

15464 draws the internal buffer on the widget surface.
15465*/
15466void QCustomPlot::paintEvent(QPaintEvent *event)
15467{
15468 Q_UNUSED(event)
15469 QCPPainter painter(this);
15470 if (painter.isActive())
15471 {
15472#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
15473 painter.setRenderHint(QPainter::HighQualityAntialiasing); // to make Antialiasing look good if using the OpenGL graphicssystem
15474#endif
15475 if (mBackgroundBrush.style() != Qt::NoBrush)
15476 painter.fillRect(mViewport, mBackgroundBrush);
15477 drawBackground(&painter);
15478 foreach (QSharedPointer<QCPAbstractPaintBuffer> buffer, mPaintBuffers)
15479 buffer->draw(&painter);
15480 }
15481}
15482
15483/*! \internal
15484

Callers

nothing calls this directly

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected