forked from ExplosionEngine/Explosion
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProjectHub.cpp
More file actions
32 lines (26 loc) · 705 Bytes
/
ProjectHub.cpp
File metadata and controls
32 lines (26 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// Created by johnk on 2025/8/3.
//
#include <QWebChannel>
#include <Editor/Widget/ProjectHub.h>
#include <Editor/Widget/moc_ProjectHub.cpp>
#include <Core/Log.h>
namespace Editor {
ProjectHubBridge::ProjectHubBridge(ProjectHub* parent)
: QObject(parent)
{
}
void ProjectHubBridge::CreateProject() const
{
// TODO
LogInfo(ProjectHub, "ProjectHubBridge::CreateProject");
}
ProjectHub::ProjectHub(QWidget* inParent)
: WebWidget(inParent)
{
setFixedSize(800, 600);
Load("/project-hub");
bridge = new ProjectHubBridge(this);
GetWebChannel()->registerObject("bridge", bridge);
}
} // namespace Editor