初始化
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user