MultiMC5/application/widgets/LineSeparator.h

19 lines
444 B
C
Raw Normal View History

2014-05-17 14:23:48 +00:00
#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);
2014-05-17 14:23:48 +00:00
QSize sizeHint() const;
void paintEvent(QPaintEvent *);
void initStyleOption(QStyleOption *option) const;
private:
Qt::Orientation m_orientation = Qt::Horizontal;
2014-05-17 14:23:48 +00:00
};