Блокировка кнопок EditTrainees EditInstructors при деавторизации

This commit is contained in:
krivoshein
2025-01-27 09:41:34 +03:00
parent b5ea06ce9a
commit d9f660555e
5 changed files with 19 additions and 5 deletions

View File

@@ -34,11 +34,7 @@ public:
void setAdminMode(bool adminMode)
{
this->adminMode = adminMode;
}
void setAuthComplited(bool authComplited)
{
this->authComplited = authComplited;
}
}
void clearTree()
{
treeWidget->clear();

View File

@@ -22,6 +22,12 @@ ViewerInstructors::~ViewerInstructors()
delete ui;
}
void ViewerInstructors::setAuthComplited(bool authComplited)
{
this->authComplited = authComplited;
updateButtons();
}
void ViewerInstructors::changeEvent(QEvent *event)
{
// В случае получения события изменения языка приложения

View File

@@ -17,6 +17,9 @@ public:
explicit ViewerInstructors(ConnectorToServer* connectorToServer, QWidget *parent = nullptr);
~ViewerInstructors();
public:
void setAuthComplited(bool authComplited);
protected:
void changeEvent(QEvent * event) override;

View File

@@ -21,6 +21,12 @@ ViewerTrainees::~ViewerTrainees()
delete ui;
}
void ViewerTrainees::setAuthComplited(bool authComplited)
{
this->authComplited = authComplited;
updateButtons();
}
/*
void ViewerTrainees::on_treeWidget_itemClicked(QTreeWidgetItem *item, int column)
{

View File

@@ -17,6 +17,9 @@ public:
explicit ViewerTrainees(ConnectorToServer* connectorToServer, QWidget *parent = nullptr);
~ViewerTrainees();
public:
void setAuthComplited(bool authComplited);
protected:
void changeEvent(QEvent * event) override;