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

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

19 lines
322 B
C++
Raw 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;
};