! \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. */
| 14763 | of mPlotLayout) is resized appropriately. Finally a \ref replot is performed. |
| 14764 | */ |
| 14765 | void 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 |