obs-studio/UI/horizontal-scroll-area.cpp

11 lines
224 B
C++

#include <QResizeEvent>
#include "horizontal-scroll-area.hpp"
void HScrollArea::resizeEvent(QResizeEvent *event)
{
if (!!widget())
widget()->setMaximumHeight(event->size().height());
QScrollArea::resizeEvent(event);
}