MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / resizeEvent

Method resizeEvent

qcustomplot/qcustomplot.cpp:14765–14771  ·  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

14763 of mPlotLayout) is resized appropriately. Finally a \ref replot is performed.
14764*/
14765void QCustomPlot::resizeEvent(QResizeEvent *event)
14766{
14767 Q_UNUSED(event)
14768 // resize and repaint the buffer:
14769 setViewport(rect());
14770 replot(rpQueuedRefresh); // queued refresh is important here, to prevent painting issues in some contexts (e.g. MDI subwindow)
14771}
14772
14773/*! \internal
14774

Callers

nothing calls this directly

Calls 1

rectFunction · 0.85

Tested by

no test coverage detected