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

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

2018-12-16 16:14:58 +00:00
#pragma once
#include <QScrollArea>
class QResizeEvent;
class HScrollArea : public QScrollArea {
Q_OBJECT
public:
2019-09-22 21:19:10 +00:00
inline HScrollArea(QWidget *parent = nullptr) : QScrollArea(parent)
2018-12-16 16:14:58 +00:00
{
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
}
protected:
virtual void resizeEvent(QResizeEvent *event) override;
};