Add fully-functional administration panel for administrators and dispatchers
This commit is contained in:
parent
bf599549ea
commit
ff6901e3a9
22 changed files with 1257 additions and 42 deletions
|
|
@ -42,8 +42,17 @@ void LoginWindow::doLogin() {
|
|||
return;
|
||||
}
|
||||
|
||||
QMessageBox::information(this, "Info", "Success");
|
||||
// TODO: Open valid window
|
||||
QWidget *w;
|
||||
if (user->getUserType() == UserType::WORKER) {
|
||||
QMessageBox::information(this, "Ok", "Ok");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
w = new AdministrationPanel();
|
||||
((AdministrationPanel*)w)->setUser(user);
|
||||
}
|
||||
w->show();
|
||||
close();
|
||||
}
|
||||
|
||||
void LoginWindow::validateForm() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue