about.h 889 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef ABOUT_H
  2. #define ABOUT_H
  3. #include <QWidget>
  4. #include <QJsonObject>
  5. #include <QFile>
  6. #include <QJsonDocument>
  7. #include <QDir>
  8. #include <QVBoxLayout>
  9. #include <QHBoxLayout>
  10. #include <QLabel>
  11. #include <QPushButton>
  12. #include <QTextEdit>
  13. #include <QApplication>
  14. #include <QScreen>
  15. #include <QGraphicsBlurEffect>
  16. #include <QGraphicsScene>
  17. #include <QGraphicsPixmapItem>
  18. #include <QPainter>
  19. #include <QPalette>
  20. class About : public QWidget {
  21. Q_OBJECT
  22. public:
  23. About(QWidget *parent = nullptr);
  24. void readConfig();
  25. void setAppearance();
  26. void setUI();
  27. void setReleaseData();
  28. void setComponent();
  29. void setWindowGeometry();
  30. void setTransparency();
  31. ~About();
  32. private:
  33. QStringList mArguments;
  34. QJsonObject mConfig;
  35. QString mReleaseData;
  36. QLabel* mComponentLabel;
  37. QLabel* mVersionLabel;
  38. QString mFontFamily;
  39. };
  40. #endif // ABOUT_H