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

11 lines
224 B
C++
Raw Normal View History

2018-04-27 19:49:48 -07:00
#include <QResizeEvent>
#include "horizontal-scroll-area.hpp"
void HScrollArea::resizeEvent(QResizeEvent *event)
{
if (!!widget())
widget()->setMaximumHeight(event->size().height());
QScrollArea::resizeEvent(event);
}