KDDockWidgets API Documentation  1.5
QmlTypes.cpp
Go to the documentation of this file.
1 /*
2  This file is part of KDDockWidgets.
3 
4  SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5  Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6 
7  SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8 
9  Contact KDAB at <info@kdab.com> for commercial licensing options.
10 */
11 
12 #include "QmlTypes.h"
13 #include "DockWidgetBase.h"
14 #include "../DropAreaWithCentralFrame_p.h"
15 #include "../DropIndicatorOverlayInterface_p.h"
16 #include "../Frame_p.h"
17 #include "../TitleBar_p.h"
18 #include "../indicators/ClassicIndicators_p.h"
19 #include "DockWidgetInstantiator_p.h"
20 #include "MainWindowInstantiator_p.h"
21 #include "LayoutSaverInstantiator_p.h"
22 
23 #include <QQmlEngine>
24 #include <QDebug>
25 
27 {
28  qmlRegisterType<DropAreaWithCentralFrame>("com.kdab.dockwidgets", 1, 0, "DropAreaWithCentralFrame");
29  qmlRegisterType<MainWindowInstantiator>("com.kdab.dockwidgets", 1, 0, "MainWindowLayout");
30  qmlRegisterType<DockWidgetInstantiator>("com.kdab.dockwidgets", 1, 0, "DockWidget");
31  qmlRegisterType<LayoutSaverInstantiator>("com.kdab.dockwidgets", 1, 0, "LayoutSaver");
32 
33  qmlRegisterUncreatableType<TitleBar>("com.kdab.dockwidgets", 1, 0, "TitleBar", QStringLiteral("Enum access only"));
34  qmlRegisterUncreatableType<DropIndicatorOverlayInterface>("com.kdab.dockwidgets", 1, 0, "DropIndicatorOverlayInterface", QStringLiteral("Enum access only"));
35  qmlRegisterUncreatableMetaObject(KDDockWidgets::staticMetaObject, "com.kdab.dockwidgets", 1, 0, "KDDockWidgets", QStringLiteral("Enum access only"));
36 
37  qRegisterMetaType<Frame *>();
38  qRegisterMetaType<DropArea *>();
39  qRegisterMetaType<DockWidgetBase *>();
40  qRegisterMetaType<ClassicIndicators *>();
41 }
KDDockWidgets::registerQmlTypes
void registerQmlTypes()
Definition: QmlTypes.cpp:26
DockWidgetBase.h
The DockWidget base-class that's shared between QtWidgets and QtQuick stack.
QmlTypes.h
Namespace-level methods related to registering QML types.

© 2019-2022 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated on Mon Mar 7 2022 02:01:20 for KDDockWidgets API Documentation by doxygen 1.8.20