#ifndef USERCONFIGDLG_H #define USERCONFIGDLG_H #include 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 m_engineerInfos; bool rollback = false; void init(); void refreshUserList(); void refreshConfigTable(int userId); }; #endif // USERCONFIGDLG_H