基本完成网络设置模块,还有一些细节需要完善。

This commit is contained in:
xueyan hu
2021-12-17 18:02:39 +08:00
parent faa69197f3
commit b6475e7ed4
21 changed files with 1979 additions and 421 deletions

View File

@@ -0,0 +1,34 @@
#ifndef NETWORKCFGDIALOG_H
#define NETWORKCFGDIALOG_H
#include <QDialog>
namespace Ui {
class networkCfgDialog;
}
class NetCfgTableModel;
class networkCfgDialog : public QDialog
{
Q_OBJECT
public:
static void setShadow(QDialog* dialog);
explicit networkCfgDialog(QWidget* parent = nullptr);
~networkCfgDialog();
void loadData();
void applyData();
private:
const char* boolToStr(bool b)
{
return b ? "sucess" : "failed";
}
NetCfgTableModel* model_addr = nullptr;
NetCfgTableModel* model_route = nullptr;
Ui::networkCfgDialog* ui;
};
#endif // NetworkCfgDialog_H