statuswidget.h 795 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef STATUSWIDGET_H
  2. #define STATUSWIDGET_H
  3. #include <QWidget>
  4. namespace Ui {
  5. class StatusWidget;
  6. }
  7. class LegacyApp;
  8. class StatusWidget : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit StatusWidget(LegacyApp *_app, QWidget *parent = 0);
  13. ~StatusWidget();
  14. private:
  15. Ui::StatusWidget *ui;
  16. LegacyApp *app;
  17. const QColor inWorkColor = QColor(85, 170, 255);
  18. const QColor readyColor = QColor(0, 170, 0);
  19. const QColor errorColor = QColor(255, 85, 0);
  20. const QString inWorkIconStyle = "image: url(:/assets/info.png);";
  21. const QString readyIconStyle = "image: url(:/assets/ok.png);";
  22. const QString criticalIconStyle = "image: url(:/assets/critical.png);";
  23. const QString warningIconStyle = "image: url(:/assets/warning.png);";
  24. };
  25. #endif // STATUSWIDGET_H