qtquick: Remove type registring from MultiSplitterConfig.cpp
It's specific to QtQuick
This commit is contained in:
@@ -13,17 +13,14 @@
|
||||
#include "View.h"
|
||||
#include "Item_p.h"
|
||||
|
||||
#ifdef KDMULTISPLITTER_QTQUICK
|
||||
#include <QQmlEngine>
|
||||
#endif
|
||||
|
||||
using namespace KDDockWidgets;
|
||||
|
||||
// TODOv2: Remove this file
|
||||
|
||||
namespace Layouting {
|
||||
|
||||
Config::Config()
|
||||
{
|
||||
registerQmlTypes();
|
||||
}
|
||||
|
||||
View *Config::createSeparator(Controllers::Separator *controller, View *parent) const
|
||||
@@ -34,14 +31,6 @@ View *Config::createSeparator(Controllers::Separator *controller, View *parent)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void Config::registerQmlTypes()
|
||||
{
|
||||
#ifdef KDMULTISPLITTER_QTQUICK
|
||||
qmlRegisterUncreatableType<Item>("com.kdab.kddockwidgets.multisplitter", 1, 0,
|
||||
"KDMultiSplitter", QStringLiteral("enum access"));
|
||||
#endif
|
||||
}
|
||||
|
||||
Config &Config::self()
|
||||
{
|
||||
static Config config;
|
||||
|
||||
@@ -74,8 +74,6 @@ private:
|
||||
friend class Item;
|
||||
friend class ItemBoxContainer;
|
||||
|
||||
void registerQmlTypes();
|
||||
|
||||
SeparatorFactoryFunc m_separatorFactoryFunc = nullptr;
|
||||
Flags m_flags = Flag::None;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "DockWidgetInstantiator_p.h"
|
||||
#include "MainWindowInstantiator_p.h"
|
||||
#include "LayoutSaverInstantiator_p.h"
|
||||
|
||||
#include "private/multisplitter/Item_p.h"
|
||||
#include <QQmlEngine>
|
||||
#include <QDebug>
|
||||
|
||||
@@ -30,6 +30,8 @@ void KDDockWidgets::registerQmlTypes()
|
||||
qmlRegisterType<LayoutSaverInstantiator>("com.kdab.dockwidgets", 1, 0, "LayoutSaver");
|
||||
|
||||
qmlRegisterUncreatableType<TitleBar>("com.kdab.dockwidgets", 1, 0, "TitleBar", QStringLiteral("Enum access only"));
|
||||
qmlRegisterUncreatableType<Item>("com.kdab.kddockwidgets.multisplitter", 1, 0,
|
||||
"KDMultiSplitter", QStringLiteral("enum access"));
|
||||
qmlRegisterUncreatableType<DropIndicatorOverlayInterface>("com.kdab.dockwidgets", 1, 0, "DropIndicatorOverlayInterface", QStringLiteral("Enum access only"));
|
||||
qmlRegisterUncreatableMetaObject(KDDockWidgets::staticMetaObject, "com.kdab.dockwidgets", 1, 0, "KDDockWidgets", QStringLiteral("Enum access only"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user