Tweaks to page dialog and version page.

This commit is contained in:
Petr Mrázek
2014-06-03 01:34:44 +02:00
parent f485885757
commit 6b3d1101cb
8 changed files with 134 additions and 46 deletions

View File

@ -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;
};

View File

@ -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)