MCPcopy Create free account
hub / github.com/LUX-Core/lux / paintEvent

Method paintEvent

src/qt/qcustomplot.cpp:14718–14731  ·  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

14716 draws the internal buffer on the widget surface.
14717*/
14718void QCustomPlot::paintEvent(QPaintEvent *event)
14719{
14720 Q_UNUSED(event);
14721 QCPPainter painter(this);
14722 if (painter.isActive())
14723 {
14724 painter.setRenderHint(QPainter::HighQualityAntialiasing); // to make Antialiasing look good if using the OpenGL graphicssystem
14725 if (mBackgroundBrush.style() != Qt::NoBrush)
14726 painter.fillRect(mViewport, mBackgroundBrush);
14727 drawBackground(&painter);
14728 for (int bufferIndex = 0; bufferIndex < mPaintBuffers.size(); ++bufferIndex)
14729 mPaintBuffers.at(bufferIndex)->draw(&painter);
14730 }
14731}
14732
14733/*! \internal
14734

Callers

nothing calls this directly

Calls 4

isActiveMethod · 0.80
drawMethod · 0.80
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected