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