yolobs-studio/UI/horizontal-scroll-area.hpp
2018-12-16 17:14:58 +01:00

19 lines
322 B
C++

#pragma once
#include <QScrollArea>
class QResizeEvent;
class HScrollArea : public QScrollArea {
Q_OBJECT
public:
inline HScrollArea(QWidget *parent = nullptr)
: QScrollArea(parent)
{
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
}
protected:
virtual void resizeEvent(QResizeEvent *event) override;
};