43 lines
1.9 KiB
C++
43 lines
1.9 KiB
C++
/*
|
|
This file is part of KDDockWidgets.
|
|
|
|
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
|
Author: Sérgio Martins <sergio.martins@kdab.com>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
|
|
|
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
|
*/
|
|
|
|
#include "QmlTypes.h"
|
|
#include "kddockwidgets/controllers/DropArea.h"
|
|
#include "kddockwidgets/controllers/DropIndicatorOverlay.h"
|
|
#include "kddockwidgets/controllers/indicators/ClassicIndicators.h"
|
|
#include "DockWidgetInstantiator.h"
|
|
#include "MainWindowInstantiator.h"
|
|
#include "LayoutSaverInstantiator.h"
|
|
|
|
#include "private/multisplitter/Item_p.h"
|
|
|
|
#include <QQmlEngine>
|
|
#include <QDebug>
|
|
|
|
void KDDockWidgets::registerQmlTypes()
|
|
{
|
|
// qmlRegisterType<DropArea>("com.kdab.dockwidgets", 1, 0, "DropArea");
|
|
qmlRegisterType<MainWindowInstantiator>("com.kdab.dockwidgets", 1, 0, "MainWindowLayout");
|
|
qmlRegisterType<DockWidgetInstantiator>("com.kdab.dockwidgets", 1, 0, "DockWidget");
|
|
qmlRegisterType<LayoutSaverInstantiator>("com.kdab.dockwidgets", 1, 0, "LayoutSaver");
|
|
|
|
// qmlRegisterUncreatableType<TitleBar>("com.kdab.dockwidgets", 1, 0, "TitleBar", QStringLiteral("Enum access only"));
|
|
qmlRegisterUncreatableType<Layouting::Item>("com.kdab.kddockwidgets.multisplitter", 1, 0,
|
|
"KDMultiSplitter", QStringLiteral("enum access"));
|
|
// qmlRegisterUncreatableType<DropIndicatorOverlay>("com.kdab.dockwidgets", 1, 0, "DropIndicatorOverlay", QStringLiteral("Enum access only"));
|
|
qmlRegisterUncreatableMetaObject(KDDockWidgets::staticMetaObject, "com.kdab.dockwidgets", 1, 0, "KDDockWidgets", QStringLiteral("Enum access only"));
|
|
|
|
// qRegisterMetaType<Frame *>();
|
|
// qRegisterMetaType<DropArea *>();
|
|
// qRegisterMetaType<Controllers::DockWidget *>();
|
|
// qRegisterMetaType<ClassicIndicators *>();
|
|
}
|