AppInfoWidget.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef APPINFOWIDGET_H
  2. #define APPINFOWIDGET_H
  3. #include <QWidget>
  4. class QVBoxLayout;
  5. class QGridLayout;
  6. class QHBoxLayout;
  7. class QLabel;
  8. class PushButton;
  9. class AppInfoWidget : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit AppInfoWidget(QWidget *parent = nullptr);
  14. signals:
  15. private:
  16. void initilaize();
  17. void initLayout();
  18. void refresh();
  19. private:
  20. /// 图标,版本号,更新内容,构建时间,当前环境,版权声明
  21. QVBoxLayout *m_vBoxLayout = nullptr;
  22. QGridLayout *m_gridLayout = nullptr;
  23. QLabel *m_iconLabel = nullptr;
  24. QLabel *m_verNameLabel = nullptr;
  25. QLabel *m_verValueLabel = nullptr;
  26. QLabel *m_contentNameLabel = nullptr;
  27. QLabel *m_contentValueLabel = nullptr;
  28. QLabel *m_dateNameLabel = nullptr;
  29. QLabel *m_dateValueLabel = nullptr;
  30. QLabel *m_envNameLabel = nullptr;
  31. QLabel *m_envValueLabel = nullptr;
  32. QLabel *m_copyRightLabel = nullptr;
  33. QHBoxLayout *m_hBoxLayout = nullptr;
  34. PushButton *m_confirmButton = nullptr;
  35. };
  36. #endif // APPINFOWIDGET_H