mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Стабильная
This commit is contained in:
@@ -24,12 +24,6 @@ DataBaseLMS::~DataBaseLMS()
|
||||
deleteConnection();
|
||||
}
|
||||
|
||||
void DataBaseLMS::slot_LanguageChanged(QString language)
|
||||
{
|
||||
qtLanguageTranslator.load(QString(QStringLiteral("translations/DataBaseLMS_")) + language, QStringLiteral("."));
|
||||
QCoreApplication::installTranslator(&qtLanguageTranslator);
|
||||
}
|
||||
|
||||
bool DataBaseLMS::createConnection()
|
||||
{
|
||||
dbSettings = getDataBaseSettings();
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <QSqlDatabase>
|
||||
#include <QMutex>
|
||||
#include <QWidget>
|
||||
#include <QTranslator>
|
||||
|
||||
#include "instructor.h"
|
||||
#include "trainee.h"
|
||||
@@ -13,7 +12,7 @@
|
||||
#include "timingoftrainee.h"
|
||||
|
||||
static const QString backupEmptyName = ".\\restoreDB\\DBLMS_EMPTY.backup";
|
||||
static const QString restoreDBscriptName = "restoreDBscript.bat";
|
||||
static const QString restoreDBscriptName = ".\\restoreDB\\restoreDBscript.bat";
|
||||
|
||||
class DATABASELMS_EXPORT DataBaseSettings
|
||||
{
|
||||
@@ -35,9 +34,6 @@ public:
|
||||
DataBaseLMS(QWidget *ownerWidget, QObject *parent = nullptr);
|
||||
~DataBaseLMS();
|
||||
|
||||
public Q_SLOTS:
|
||||
void slot_LanguageChanged(QString language);
|
||||
|
||||
signals:
|
||||
void signal_ErrorPostgreSQL(QString text);
|
||||
|
||||
@@ -137,8 +133,6 @@ protected:
|
||||
QString UserNamePostgres;
|
||||
QString PasswordPostgres;
|
||||
|
||||
QTranslator qtLanguageTranslator;
|
||||
|
||||
private:
|
||||
QWidget* ownerWidget;
|
||||
};
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="ru_RU">
|
||||
</TS>
|
||||
Reference in New Issue
Block a user