forked from quickshell/quickshell
window: generate qmltypes
This commit is contained in:
parent
4e48c6eefb
commit
9980f8587e
9 changed files with 51 additions and 8 deletions
22
src/window/init.cpp
Normal file
22
src/window/init.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include "../core/plugin.hpp"
|
||||
|
||||
namespace {
|
||||
|
||||
class WindowPlugin: public QuickshellPlugin {
|
||||
// _Window has to be registered before wayland or x11 modules, otherwise module overlays
|
||||
// will apply in the wrong order.
|
||||
QString name() override { return "window"; }
|
||||
|
||||
void registerTypes() override {
|
||||
qmlRegisterModuleImport(
|
||||
"Quickshell",
|
||||
QQmlModuleImportModuleAny,
|
||||
"Quickshell._Window",
|
||||
QQmlModuleImportLatest
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
QS_REGISTER_PLUGIN(WindowPlugin);
|
||||
|
||||
} // namespace
|
Loading…
Add table
Add a link
Reference in a new issue