незначительные корректировки

This commit is contained in:
krivoshein
2025-01-16 16:46:48 +03:00
parent c65e39ea1d
commit 24fb521e03
3 changed files with 9 additions and 62 deletions

View File

@@ -211,8 +211,6 @@ void InstructorsAndTraineesWidget::slot_ConnectedToServer(bool state)
{
if(state)
{//Сервер подключен
//ui->btnConnectionToDB->setText(tr("Disconnection DB"));
ui->btnConnectionToServer->setEnabled(false);
ui->btnAuthorizationInstructor->setEnabled(true);
@@ -220,8 +218,6 @@ void InstructorsAndTraineesWidget::slot_ConnectedToServer(bool state)
}
else
{//Сервер отключен
//ui->btnConnectionToDB->setText(tr("Connection DB"));
ui->btnConnectionToServer->setEnabled(true);
ui->btnAuthorizationInstructor->setEnabled(false);
@@ -275,51 +271,6 @@ bool InstructorsAndTraineesWidget::authorizationIsCompleted()
void InstructorsAndTraineesWidget::on_btnConnectionToServer_clicked()
{
connectorToServer->SetConnectToServer();
if(true)
{//Подключение к БД
/*
connectorToServer->SetConnectToServer();
if(! dbLMS->DBisConnected())
{
if(dbLMS->ConnectionToDB())
{
ui->btnConnectionToDB->setText(tr("Disconnection DB"));
ui->btnAuthorizationInstructor->setEnabled(true);
ui->lblDBisConnected->setPixmap(QPixmap(QStringLiteral(":/icons/circleGreen.png")));
Q_EMIT signal_NeedUpdateUI(true, true);
Q_EMIT signal_BlockAutorization(false);
Q_EMIT signal_InitMessanger(dbLMS->getListTrainees());
}
}*/
}
else
{//Отключение от БД
/*
bool stateIsCheckedAuthorization = ui->btnAuthorizationInstructor->isChecked();
if(stateIsCheckedAuthorization)
ui->btnAuthorizationInstructor->click();
if(dbLMS->DBisConnected())
{
Q_EMIT signal_BlockAutorization(true);
dbLMS->DisConnectionFromDB();
ui->btnConnectionToDB->setText(tr("Connection DB"));
ui->btnAuthorizationInstructor->setEnabled(false);
ui->lblDBisConnected->setPixmap(QPixmap(QStringLiteral(":/icons/circleGray.png")));
Q_EMIT signal_NeedUpdateUI(true, true);
}*/
}
}
void InstructorsAndTraineesWidget::on_btnAuthorizationInstructor_clicked()
@@ -367,11 +318,5 @@ void InstructorsAndTraineesWidget::updateLabelLoggedInInstructor(QString login,
void InstructorsAndTraineesWidget::on_btnUpdateStyleSheet_clicked()
{
/*
viewerTrainees->updateMyStyleSheet();
viewerInstructors->updateMyStyleSheet();
messangerWidget->updateMyStyleSheet();
*/
updateMyStyleSheet();
}