上传项目代码

This commit is contained in:
lixiaoyuan
2025-05-19 09:54:33 +08:00
commit 4a198a7271
589 changed files with 993786 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#include "WidgetPage.h"
#include "pages/WidgetPageHome.h"
#include "pages/WidgetPageOverview.h"
#include "pages/WidgetPageRunning.h"
#include "pages/WidgetPageWeb.h"
std::shared_ptr<WidgetPage> WidgetPage::create(QWidget* parent, std::string name)
{
std::shared_ptr<WidgetPage> w = nullptr;
if (name == "系统总览")
{
w = std::make_shared<WidgetPageOverview>(parent);
}
else if (name == "运行监控")
{
w = std::make_shared<WidgetPageRunning>(parent);
}
else
{
w = std::make_shared<WidgetPageWeb>(parent, name);
}
return w;
}