summaryrefslogtreecommitdiffstats
path: root/application/widgets/LineSeparator.h
blob: 22927b68db3f05817454a4e1127f257832f05aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <QWidget>

class QStyleOption;

class LineSeparator : public QWidget
{
    Q_OBJECT

public:
    /// Create a line separator. orientation is the orientation of the line.
    explicit LineSeparator(QWidget *parent, Qt::Orientation orientation = Qt::Horizontal);
    QSize sizeHint() const;
    void paintEvent(QPaintEvent *);
    void initStyleOption(QStyleOption *option) const;
private:
    Qt::Orientation m_orientation = Qt::Horizontal;
};