2015-01-03 02:42:57 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QScrollArea>
|
|
|
|
|
|
|
|
class QResizeEvent;
|
|
|
|
|
|
|
|
class VScrollArea : public QScrollArea {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-06-22 22:13:45 -07:00
|
|
|
inline VScrollArea(QWidget *parent = nullptr) : QScrollArea(parent)
|
2015-01-03 02:42:57 -08:00
|
|
|
{
|
2015-01-03 07:32:04 -08:00
|
|
|
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
2015-01-03 02:42:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void resizeEvent(QResizeEvent *event) override;
|
|
|
|
};
|