mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
Блокировка кнопок EditTrainees EditInstructors при деавторизации
This commit is contained in:
@@ -34,11 +34,7 @@ public:
|
|||||||
void setAdminMode(bool adminMode)
|
void setAdminMode(bool adminMode)
|
||||||
{
|
{
|
||||||
this->adminMode = adminMode;
|
this->adminMode = adminMode;
|
||||||
}
|
}
|
||||||
void setAuthComplited(bool authComplited)
|
|
||||||
{
|
|
||||||
this->authComplited = authComplited;
|
|
||||||
}
|
|
||||||
void clearTree()
|
void clearTree()
|
||||||
{
|
{
|
||||||
treeWidget->clear();
|
treeWidget->clear();
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ ViewerInstructors::~ViewerInstructors()
|
|||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ViewerInstructors::setAuthComplited(bool authComplited)
|
||||||
|
{
|
||||||
|
this->authComplited = authComplited;
|
||||||
|
updateButtons();
|
||||||
|
}
|
||||||
|
|
||||||
void ViewerInstructors::changeEvent(QEvent *event)
|
void ViewerInstructors::changeEvent(QEvent *event)
|
||||||
{
|
{
|
||||||
// В случае получения события изменения языка приложения
|
// В случае получения события изменения языка приложения
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ public:
|
|||||||
explicit ViewerInstructors(ConnectorToServer* connectorToServer, QWidget *parent = nullptr);
|
explicit ViewerInstructors(ConnectorToServer* connectorToServer, QWidget *parent = nullptr);
|
||||||
~ViewerInstructors();
|
~ViewerInstructors();
|
||||||
|
|
||||||
|
public:
|
||||||
|
void setAuthComplited(bool authComplited);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void changeEvent(QEvent * event) override;
|
void changeEvent(QEvent * event) override;
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,12 @@ ViewerTrainees::~ViewerTrainees()
|
|||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ViewerTrainees::setAuthComplited(bool authComplited)
|
||||||
|
{
|
||||||
|
this->authComplited = authComplited;
|
||||||
|
updateButtons();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
void ViewerTrainees::on_treeWidget_itemClicked(QTreeWidgetItem *item, int column)
|
void ViewerTrainees::on_treeWidget_itemClicked(QTreeWidgetItem *item, int column)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ public:
|
|||||||
explicit ViewerTrainees(ConnectorToServer* connectorToServer, QWidget *parent = nullptr);
|
explicit ViewerTrainees(ConnectorToServer* connectorToServer, QWidget *parent = nullptr);
|
||||||
~ViewerTrainees();
|
~ViewerTrainees();
|
||||||
|
|
||||||
|
public:
|
||||||
|
void setAuthComplited(bool authComplited);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void changeEvent(QEvent * event) override;
|
void changeEvent(QEvent * event) override;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user