obs-studio/obs/vertical-scroll-area.cpp

11 lines
220 B
C++
Raw Normal View History

#include <QResizeEvent>
#include "vertical-scroll-area.hpp"
void VScrollArea::resizeEvent(QResizeEvent *event)
{
if (!!widget())
widget()->setMaximumWidth(event->size().width());
QScrollArea::resizeEvent(event);
}