Skip to content

Commit 647967f

Browse files
committed
Add UiComponentsModule class
1 parent e7bd6c8 commit 647967f

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

src/uicomponents/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ set(MODULE_QML_FILES
1010
CustomMenuSeparator.qml
1111
)
1212
set(MODULE_SRC
13+
uicomponentsmodule.cpp
14+
uicomponentsmodule.h
1315
menubarmodel.cpp
1416
menubarmodel.h
1517
menumodel.cpp
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
3+
#include "uicomponentsmodule.h"
4+
5+
using namespace scratchcpp::uicomponents;
6+
7+
UiComponentsModule::UiComponentsModule()
8+
{
9+
}
10+
11+
std::string UiComponentsModule::moduleName() const
12+
{
13+
return "uicomponents";
14+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
3+
#pragma once
4+
5+
#include "modularity/imodulesetup.h"
6+
7+
namespace scratchcpp::uicomponents
8+
{
9+
10+
class UiComponentsModule : public modularity::IModuleSetup
11+
{
12+
public:
13+
UiComponentsModule();
14+
15+
std::string moduleName() const override;
16+
};
17+
18+
} // namespace scratchcpp::uicomponents

0 commit comments

Comments
 (0)