Корректное переподключение к серверу

This commit is contained in:
2025-07-03 09:48:22 +03:00
parent 67cc236b70
commit c46ae86791
9 changed files with 146 additions and 103 deletions

View File

@@ -21,6 +21,10 @@ public:
ServerSettings getSettings();
bool settingsServerIsChanged(){ return flSettingsServerChanged;}
static bool loadSettings(ServerSettings *settings);
protected:
void changeEvent(QEvent * event) override;
@@ -40,8 +44,15 @@ private slots:
void on_btnSetVersion_clicked();
private:
bool loadSettings();
void on_cmbLanguage_currentIndexChanged(int index);
void on_editAddress_textChanged(const QString &arg1);
void on_editPort_textChanged(const QString &arg1);
void on_DialogSettings_accepted();
private:
bool saveSettings();
private:
@@ -50,6 +61,8 @@ private:
ServerSettings *settings;
ConnectorToServer* connectorToServer;
bool flSettingsServerChanged;
};
#endif // DIALOGSETTINGS_H