Status pills. This doesn't build yet.

This commit is contained in:
Petr Mrázek
2014-05-15 22:32:54 +02:00
parent a6a5241e12
commit 927217c7f0
22 changed files with 518 additions and 901 deletions

View File

@ -0,0 +1,32 @@
#pragma once
#include <QWidget>
#include <memory>
class QToolButton;
class QHBoxLayout;
class ServerStatus: public QWidget
{
Q_OBJECT
public:
explicit ServerStatus(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
virtual ~ServerStatus() {};
public slots:
void updateStatusUI();
void updateStatusFailedUI();
void reloadStatus();
void StatusChanged();
private: /* methods */
clear();
addLine();
addStatus(QString name, bool online);
private: /* data */
QHBoxLayout * layout = nullptr;
QToolButton *m_statusRefresh = nullptr;
QPixmap goodIcon;
QPixmap badIcon;
QTimer statusTimer;
};