MultiMC5/launcher/ui/widgets/LineSeparator.h

19 lines
465 B
C
Raw Normal View History

2014-05-17 14:23:48 +00:00
#pragma once
#include <QWidget>
class QStyleOption;
class LineSeparator : public QWidget
{
2018-07-15 12:51:05 +00:00
Q_OBJECT
2014-05-17 14:23:48 +00:00
public:
2018-07-15 12:51:05 +00:00
/// 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;
2014-05-17 14:23:48 +00:00
private:
2018-07-15 12:51:05 +00:00
Qt::Orientation m_orientation = Qt::Horizontal;
2014-05-17 14:23:48 +00:00
};