2014-05-17 15:23:48 +01:00
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QStyleOption;
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
class LineSeparator : public QWidget {
|
2018-07-15 13:51:05 +01:00
|
|
|
Q_OBJECT
|
2014-05-17 15:23:48 +01:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
public:
|
2018-07-15 13:51:05 +01:00
|
|
|
/// Create a line separator. orientation is the orientation of the line.
|
2023-08-02 17:35:35 +01:00
|
|
|
explicit LineSeparator(QWidget* parent, Qt::Orientation orientation = Qt::Horizontal);
|
2018-07-15 13:51:05 +01:00
|
|
|
QSize sizeHint() const;
|
2023-08-02 17:35:35 +01:00
|
|
|
void paintEvent(QPaintEvent*);
|
|
|
|
void initStyleOption(QStyleOption* option) const;
|
|
|
|
|
|
|
|
private:
|
2018-07-15 13:51:05 +01:00
|
|
|
Qt::Orientation m_orientation = Qt::Horizontal;
|
2014-05-17 15:23:48 +01:00
|
|
|
};
|