AccountMaintenanceWnd.h 944 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef ACCOUNTMAINTENANCEWND_H
  2. #define ACCOUNTMAINTENANCEWND_H
  3. #include <QMainWindow>
  4. #include <QStandardItemModel>
  5. #include "Src/common/JUserAccountsData.h"
  6. #include "Src/common/UserManagementShared.h"
  7. namespace Ui
  8. {
  9. class AccountMaintenanceWnd;
  10. }
  11. class AccountMaintenanceWnd : public QMainWindow
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit AccountMaintenanceWnd(QWidget* parent = nullptr);
  16. ~AccountMaintenanceWnd();
  17. private slots:
  18. void on_addBut_clicked();
  19. void on_modifyBut_clicked();
  20. void on_delBut_clicked();
  21. private:
  22. void InitUi();
  23. /**更新用户数据
  24. */
  25. void UpdateUserData(UserAccounts _use, bool bRevision);
  26. void SetTableHeaderStyle();
  27. /**控件添加到树里面
  28. */
  29. void AdditemsToTree(QList<UserAccounts> listStrName, bool bCreate = false);
  30. private:
  31. Ui::AccountMaintenanceWnd* ui;
  32. private:
  33. QStandardItemModel* m_pModel = nullptr;
  34. };
  35. #endif // ACCOUNTMAINTENANCEWND_H