Files
2026-05-01 10:51:39 +08:00

34 lines
610 B
C++

#ifndef SERVERCONFIGDIALOG_H
#define SERVERCONFIGDIALOG_H
#include <QDialog>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
/**
* @brief 服务器配置对话框
*/
class ServerConfigDialog : public QDialog
{
Q_OBJECT
public:
explicit ServerConfigDialog(const QString &currentUrl, 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