summaryrefslogtreecommitdiffstats
path: root/application/widgets/LineSeparator.h
blob: 9546e747304fb81d7f881d3f08b10614b8bf58a9 (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;
};