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