mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
19 lines
465 B
C++
19 lines
465 B
C++
#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;
|
|
};
|