Прокинул сигнал ошибки 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();
/* Также подключаем сигнал нажатия на иконку к обработчику
* данного нажатия
* */