Tweaks to page dialog and version page.
This commit is contained in:
		| @@ -9,10 +9,10 @@ class LineSeparator : public QWidget | ||||
|  | ||||
| public: | ||||
| 	/// Create a line separator. orientation is the orientation of the line. | ||||
| 	explicit LineSeparator(QWidget *parent, Qt::Orientation orientation = Qt::Vertical); | ||||
| 	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::Vertical; | ||||
| 	Qt::Orientation m_orientation = Qt::Horizontal; | ||||
| }; | ||||
|   | ||||
| @@ -59,7 +59,7 @@ void ServerStatus::reloadStatus() | ||||
|  | ||||
| void ServerStatus::addLine() | ||||
| { | ||||
| 	layout->addWidget(new LineSeparator(this)); | ||||
| 	layout->addWidget(new LineSeparator(this, Qt::Vertical)); | ||||
| } | ||||
|  | ||||
| void ServerStatus::addStatus(QString key, QString name) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user