34 lines
610 B
C++
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 ¤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
|