mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
refact ui
This commit is contained in:
@@ -300,6 +300,7 @@ void DialogSettingsTray::on_btnCheckDB_clicked()
|
||||
QString PasswordPostgres;
|
||||
|
||||
DialogAuthorization dlg(this);
|
||||
dlg.setWindowIcon(QIcon(QStringLiteral(":/resources/icons/PngServerRRJ.png")));
|
||||
dlg.setWindowTitle(tr("Superuser PostgreSQL authorization"));
|
||||
dlg.setWindowFlags(dlg.windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
dlg.setStyleSheet(this->styleSheet());
|
||||
@@ -343,14 +344,18 @@ void DialogSettingsTray::on_btnCheckDB_clicked()
|
||||
if(settings->HostName == "localhost")
|
||||
SpecMsgBox::CriticalClose(this, tr("Error connecting to PostgreSQL!") + "\n\n" +
|
||||
tr("Possible reasons:") + "\n" +
|
||||
tr("*superuser PostgreSQL login or password is incorrect;") + "\n" +
|
||||
tr("*Port is incorrect."));
|
||||
tr("superuser PostgreSQL login or password is incorrect;") + "\n" +
|
||||
tr("port is incorrect;") + "\n" +
|
||||
tr("PostgreSQL is not installed.")
|
||||
);
|
||||
else
|
||||
SpecMsgBox::CriticalClose(this, tr("Error connecting to PostgreSQL!") + "\n\n" +
|
||||
tr("Possible reasons:") + "\n" +
|
||||
tr("*superuser PostgreSQL login or password is incorrect;") + "\n" +
|
||||
tr("*Port is incorrect;") + "\n" +
|
||||
tr("*file 'pg_hba.conf' does not contain an entry for the IP address:") + settings->HostName + ".");
|
||||
tr("superuser PostgreSQL login or password 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("PostgreSQL is not installed.")
|
||||
);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -301,8 +301,8 @@
|
||||
<string>Check DB</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../Server.qrc">
|
||||
<normaloff>:/resources/icons/checkDB.png</normaloff>:/resources/icons/checkDB.png</iconset>
|
||||
<iconset resource="../../LibInstructorsAndTrainees/InstructorsAndTrainees.qrc">
|
||||
<normaloff>:/resources/icons/editorDB.png</normaloff>:/resources/icons/editorDB.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
@@ -365,7 +365,6 @@
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../../LibInstructorsAndTrainees/InstructorsAndTrainees.qrc"/>
|
||||
<include location="../Server.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user