b2b76559f3
If QScrollArea::resizeEvent is not called, then the internal widget does not get automatically resized when it's set to automatically be resized.
11 lines
220 B
C++
11 lines
220 B
C++
#include <QResizeEvent>
|
|
#include "vertical-scroll-area.hpp"
|
|
|
|
void VScrollArea::resizeEvent(QResizeEvent *event)
|
|
{
|
|
if (!!widget())
|
|
widget()->setMaximumWidth(event->size().width());
|
|
|
|
QScrollArea::resizeEvent(event);
|
|
}
|