#ifndef SERVERCONFIGDIALOG_H #define SERVERCONFIGDIALOG_H #include #include #include #include /** * @brief 服务器配置对话框 */ class ServerConfigDialog : public QDialog { Q_OBJECT public: explicit ServerConfigDialog(const QString ¤tUrl, QWidget *parent = nullptr); QString getServerUrl() const; private slots: void onTestConnection(); void onSave(); private: void setupUI(); QLineEdit *m_urlEdit; QPushButton *m_testButton; QLabel *m_statusLabel; QString m_serverUrl; }; #endif // SERVERCONFIGDIALOG_H