aboutsummaryrefslogtreecommitdiff
path: root/launcher/widgets/ServerStatus.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@users.noreply.github.com>2021-10-08 23:18:15 +0200
committerGitHub <noreply@github.com>2021-10-08 23:18:15 +0200
commit0c798b8fc7efbb1c37874040359ab39f7237cfd3 (patch)
tree4d6e42f1e8fb5b6079cd33a6e04b9e9145e888f9 /launcher/widgets/ServerStatus.h
parent8c4fb86ba09647b55d34099c38b1e90415261d01 (diff)
parentfa7a7d52d0d4084e2ee2c46a0cac07f4962ab71c (diff)
downloadPrismLauncher-0c798b8fc7efbb1c37874040359ab39f7237cfd3.tar.gz
PrismLauncher-0c798b8fc7efbb1c37874040359ab39f7237cfd3.tar.bz2
PrismLauncher-0c798b8fc7efbb1c37874040359ab39f7237cfd3.zip
Merge pull request #3185 from kb-1000/remove-status
GH-4157 Remove broken Mojang services status
Diffstat (limited to 'launcher/widgets/ServerStatus.h')
-rw-r--r--launcher/widgets/ServerStatus.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/launcher/widgets/ServerStatus.h b/launcher/widgets/ServerStatus.h
deleted file mode 100644
index e1e70dfb..00000000
--- a/launcher/widgets/ServerStatus.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#pragma once
-#include <QString>
-#include <QWidget>
-#include <QMap>
-#include <QIcon>
-#include <memory>
-
-class IconLabel;
-class QToolButton;
-class QHBoxLayout;
-class StatusChecker;
-
-class ServerStatus: public QWidget
-{
- Q_OBJECT
-public:
- explicit ServerStatus(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
- virtual ~ServerStatus();
-
-public slots:
- void reloadStatus();
- void StatusChanged(const QMap<QString, QString> statuses);
- void StatusReloading(bool is_reloading);
-
-private slots:
- void clicked();
-
-private: /* methods */
- void addLine();
- void addStatus(QString key, QString name);
- void setStatus(QString key, int value);
-private: /* data */
- QHBoxLayout * layout = nullptr;
- QToolButton *m_statusRefresh = nullptr;
- QMap<QString, IconLabel *> serverLabels;
- QIcon goodIcon;
- QIcon yellowIcon;
- QIcon badIcon;
- std::shared_ptr<StatusChecker> m_statusChecker;
-};