mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
refact 2
This commit is contained in:
@@ -18,6 +18,7 @@ DialogRedactorInstructors::DialogRedactorInstructors(ConnectorToServer* connecto
|
|||||||
layout->addWidget(editorInstructors);
|
layout->addWidget(editorInstructors);
|
||||||
this->setWindowTitle(tr("Editor of instructors"));
|
this->setWindowTitle(tr("Editor of instructors"));
|
||||||
this->setMinimumSize(1400, 700);
|
this->setMinimumSize(1400, 700);
|
||||||
|
this->setWindowFlags(windowFlags() & ~Qt::WindowMinimizeButtonHint);
|
||||||
//this->setWindowState(Qt::WindowMaximized);
|
//this->setWindowState(Qt::WindowMaximized);
|
||||||
this->setModal(true);
|
this->setModal(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ DialogRedactorTrainees::DialogRedactorTrainees(ConnectorToServer* connectorToSer
|
|||||||
layout->addWidget(editorTraineesGroups);
|
layout->addWidget(editorTraineesGroups);
|
||||||
this->setWindowTitle(tr("Editor of trainees"));
|
this->setWindowTitle(tr("Editor of trainees"));
|
||||||
this->setMinimumSize(1400, 700);
|
this->setMinimumSize(1400, 700);
|
||||||
|
this->setWindowFlags(windowFlags() & ~Qt::WindowMinimizeButtonHint);
|
||||||
//this->setWindowState(Qt::WindowMaximized);
|
//this->setWindowState(Qt::WindowMaximized);
|
||||||
this->setModal(true);
|
this->setModal(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ DialogSettingsTray::DialogSettingsTray(ProviderDBLMS* providerDBLMS, QWidget *pa
|
|||||||
|
|
||||||
#ifndef PROJECT_TYPE_DEBUG
|
#ifndef PROJECT_TYPE_DEBUG
|
||||||
ui->checkLocalhost->setEnabled(false);
|
ui->checkLocalhost->setEnabled(false);
|
||||||
|
ui->btnUpdateDocs->setVisible(false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Создаем строку для регулярного выражения */
|
/* Создаем строку для регулярного выражения */
|
||||||
@@ -333,6 +334,7 @@ void DialogSettingsTray::on_btnCheckDB_clicked()
|
|||||||
case QDialog::Accepted:
|
case QDialog::Accepted:
|
||||||
ui->btnSave->setEnabled(true);
|
ui->btnSave->setEnabled(true);
|
||||||
flSettingsServerChanged = true;
|
flSettingsServerChanged = true;
|
||||||
|
on_btnSave_clicked();
|
||||||
break;
|
break;
|
||||||
case QDialog::Rejected:
|
case QDialog::Rejected:
|
||||||
break;
|
break;
|
||||||
@@ -345,17 +347,17 @@ void DialogSettingsTray::on_btnCheckDB_clicked()
|
|||||||
if(settings->HostName == "localhost")
|
if(settings->HostName == "localhost")
|
||||||
SpecMsgBox::CriticalClose(this, tr("Error connecting to PostgreSQL!") + "\n\n" +
|
SpecMsgBox::CriticalClose(this, tr("Error connecting to PostgreSQL!") + "\n\n" +
|
||||||
tr("Possible reasons:") + "\n" +
|
tr("Possible reasons:") + "\n" +
|
||||||
tr("superuser PostgreSQL login or password is incorrect;") + "\n" +
|
"- " + tr("superuser PostgreSQL login or password is incorrect;") + "\n" +
|
||||||
tr("port is incorrect;") + "\n" +
|
"- " + tr("port is incorrect;") + "\n" +
|
||||||
tr("PostgreSQL is not installed.")
|
"- " + tr("PostgreSQL is not installed.")
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
SpecMsgBox::CriticalClose(this, tr("Error connecting to PostgreSQL!") + "\n\n" +
|
SpecMsgBox::CriticalClose(this, tr("Error connecting to PostgreSQL!") + "\n\n" +
|
||||||
tr("Possible reasons:") + "\n" +
|
tr("Possible reasons:") + "\n" +
|
||||||
tr("superuser PostgreSQL login or password is incorrect;") + "\n" +
|
"- " + tr("superuser PostgreSQL login or password is incorrect;") + "\n" +
|
||||||
tr("port is incorrect;") + "\n" +
|
"- " + tr("port is incorrect;") + "\n" +
|
||||||
tr("file 'pg_hba.conf' does not contain an entry for the IP address:") + settings->HostName + ";" + "\n" +
|
"- " + tr("file 'pg_hba.conf' does not contain an entry for the IP address:") + settings->HostName + ";" + "\n" +
|
||||||
tr("PostgreSQL is not installed.")
|
"- " + tr("PostgreSQL is not installed.")
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user