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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
224 B
C++
Raw Normal View History

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