Прокинул сигнал ошибки SQL на виджет

This commit is contained in:
2025-11-06 20:55:16 +03:00
parent da7363dfb5
commit 2d3d4f82dd
12 changed files with 209 additions and 113 deletions

View File

@@ -64,11 +64,7 @@ MainWindow::MainWindow(QWidget *parent) :
trayIcon->setContextMenu(trayMenu);
trayIcon->show();
slot_Tray_ShowMessage(tr("Starting the server..."));
serverLMSWidget->start();
errorCheck();
slot_Tray_ShowMessage(tr("Starting the server..."));
QTimer::singleShot(1000,this,&MainWindow::slot_Connect);
}
@@ -181,6 +177,10 @@ void MainWindow::slot_Tray_ShowMessage(QString textMsg, QSystemTrayIcon::Message
void MainWindow::slot_Connect()
{
serverLMSWidget->start();
errorCheck();
/* Также подключаем сигнал нажатия на иконку к обработчику
* данного нажатия
* */

View File

@@ -9,58 +9,47 @@
<translation>Сервер Системы управления обучением (СУО)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="25"/>
<location filename="../mainwindow.cpp" line="146"/>
<location filename="../mainwindow.cpp" line="204"/>
<location filename="../mainwindow.cpp" line="177"/>
<location filename="../mainwindow.cpp" line="232"/>
<source>Server LMS</source>
<translation>Сервер СУО</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="29"/>
<location filename="../mainwindow.cpp" line="147"/>
<location filename="../mainwindow.cpp" line="233"/>
<source>Expand window</source>
<translation>Развернуть окно</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="30"/>
<location filename="../mainwindow.cpp" line="148"/>
<location filename="../mainwindow.cpp" line="234"/>
<source>Minimize window</source>
<translation>Свернуть окно</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="31"/>
<location filename="../mainwindow.cpp" line="149"/>
<location filename="../mainwindow.cpp" line="235"/>
<source>Exit</source>
<translation>Выход</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="55"/>
<location filename="../mainwindow.cpp" line="67"/>
<source>Starting the server...</source>
<translation>Запуск сервера...</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="161"/>
<location filename="../mainwindow.cpp" line="213"/>
<source>Error!</source>
<translation>Ошибка!</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="163"/>
<location filename="../mainwindow.cpp" line="215"/>
<source>No Client files found!</source>
<translation>Файлы Клиента не найдены!</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="164"/>
<location filename="../mainwindow.cpp" line="216"/>
<source>* check Application for the presence of a folder with a build
* check SharedData for a folder with the base version and the name base</source>
<translation>* проверьте Application на наличие папки со сборкой
* проверьте SharedData на наличие папки с базовой версией и именем base</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="191"/>
<source>The application is minimized to the tray.
To maximize the application window, click the application icon in the tray.</source>
<translation>Приложение свёрнуто в область уведомлений.
Чтобы развернуть окно приложения, нажмите на значок приложения в области уведомлений.</translation>
</message>
</context>
</TS>