MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / resizeEvent

Method resizeEvent

3rdparty/qcustomplot/qcustomplot.cpp:15507–15513  ·  view source on GitHub ↗

! \internal Event handler for a resize of the QCustomPlot widget. The viewport (which becomes the outer rect of mPlotLayout) is resized appropriately. Finally a \ref replot is performed. */

Source from the content-addressed store, hash-verified

15505 of mPlotLayout) is resized appropriately. Finally a \ref replot is performed.
15506*/
15507void QCustomPlot::resizeEvent(QResizeEvent *event)
15508{
15509 Q_UNUSED(event)
15510 // resize and repaint the buffer:
15511 setViewport(rect());
15512 replot(rpQueuedRefresh); // queued refresh is important here, to prevent painting issues in some contexts (e.g. MDI subwindow)
15513}
15514
15515/*! \internal
15516

Callers

nothing calls this directly

Calls 1

rectFunction · 0.85

Tested by

no test coverage detected