yolobs-studio/UI/vertical-scroll-area.hpp

19 lines
322 B
C++
Raw Permalink Normal View History

2016-02-23 23:16:51 +00:00
#pragma once
#include <QScrollArea>
class QResizeEvent;
class VScrollArea : public QScrollArea {
Q_OBJECT
public:
2019-09-22 21:19:10 +00:00
inline VScrollArea(QWidget *parent = nullptr) : QScrollArea(parent)
2016-02-23 23:16:51 +00:00
{
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
}
protected:
virtual void resizeEvent(QResizeEvent *event) override;
};