Delivery point editor done
This commit is contained in:
parent
a6c080d36b
commit
3e196f3574
22 changed files with 379 additions and 74 deletions
|
|
@ -11,25 +11,26 @@ namespace Ui {
|
|||
class UserEditDialog;
|
||||
}
|
||||
|
||||
struct user_data_struct {
|
||||
QString login;
|
||||
QString password;
|
||||
UserRole role;
|
||||
bool edit;
|
||||
};
|
||||
|
||||
class UserEditDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
Ui::UserEditDialog *ui;
|
||||
|
||||
struct user_data {
|
||||
QString login;
|
||||
QString password;
|
||||
UserRole role;
|
||||
bool edit;
|
||||
} *_user;
|
||||
user_data_struct *_user_data;
|
||||
|
||||
public:
|
||||
explicit UserEditDialog(QWidget *parent = nullptr);
|
||||
~UserEditDialog();
|
||||
|
||||
UserEditDialog::user_data* user() const;
|
||||
user_data_struct* user_data() const;
|
||||
void set_user(user_entity* user, bool edit);
|
||||
|
||||
|
||||
public slots:
|
||||
void accept() Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue