yolobs-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 Permalink Normal View History

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