123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef USERCONFIGDLG_H
- #define USERCONFIGDLG_H
- #include <QDialog>
- class QListWidgetItem;
- class EngineerInfo;
- namespace Ui {
- class UserConfigDlg;
- }
- class UserConfigDlg : public QDialog
- {
- Q_OBJECT
- public:
- explicit UserConfigDlg(QWidget *parent = nullptr);
- ~UserConfigDlg();
- private slots:
- void userItemClicked(QListWidgetItem *item);
- void addNewUserItem();
- void deleteUserItem();
- void engineerCombChanged(int index);
- void saveCurrentRow();
- void userListMenuRequested(const QPoint &pos);
- void deleteUserAction();
- private:
- Ui::UserConfigDlg *ui;
- QList<EngineerInfo *> m_engineerInfos;
- bool rollback = false;
- void init();
- void refreshUserList();
- void refreshConfigTable(int userId);
- };
- #endif // USERCONFIGDLG_H
|