diff --git a/src/kirigamiplugin.cpp b/src/kirigamiplugin.cpp index fc530b3..3c71d29 100644 --- a/src/kirigamiplugin.cpp +++ b/src/kirigamiplugin.cpp @@ -67,28 +70,30 @@ void KirigamiPlugin::registerTypes(const char *uri) qmlRegisterUncreatableType(uri, 1, 0, "ApplicationHeaderStyle", "Cannot create objects of type ApplicationHeaderStyle"); - qmlRegisterSingletonType(componentPath(QStringLiteral("Theme.qml")), uri, 1, 0, "Theme"); - qmlRegisterSingletonType(componentPath(QStringLiteral("Units.qml")), uri, 1, 0, "Units"); - - qmlRegisterType(componentPath(QStringLiteral("Action.qml")), uri, 1, 0, "Action"); - qmlRegisterType(componentPath(QStringLiteral("AbstractApplicationHeader.qml")), uri, 1, 0, "AbstractApplicationHeader"); - qmlRegisterType(componentPath(QStringLiteral("AbstractApplicationWindow.qml")), uri, 1, 0, "AbstractApplicationWindow"); - qmlRegisterType(componentPath(QStringLiteral("AbstractListItem.qml")), uri, 1, 0, "AbstractListItem"); - qmlRegisterType(componentPath(QStringLiteral("ApplicationHeader.qml")), uri, 1, 0, "ApplicationHeader"); - qmlRegisterType(componentPath(QStringLiteral("ToolBarApplicationHeader.qml")), uri, 1, 0, "ToolBarApplicationHeader"); - qmlRegisterType(componentPath(QStringLiteral("ApplicationWindow.qml")), uri, 1, 0, "ApplicationWindow"); - qmlRegisterType(componentPath(QStringLiteral("BasicListItem.qml")), uri, 1, 0, "BasicListItem"); - qmlRegisterType(componentPath(QStringLiteral("OverlayDrawer.qml")), uri, 1, 0, "OverlayDrawer"); - qmlRegisterType(componentPath(QStringLiteral("ContextDrawer.qml")), uri, 1, 0, "ContextDrawer"); - qmlRegisterType(componentPath(QStringLiteral("GlobalDrawer.qml")), uri, 1, 0, "GlobalDrawer"); - qmlRegisterType(componentPath(QStringLiteral("Heading.qml")), uri, 1, 0, "Heading"); - qmlRegisterType(componentPath(QStringLiteral("Icon.qml")), uri, 1, 0, "Icon"); - qmlRegisterType(componentPath(QStringLiteral("Label.qml")), uri, 1, 0, "Label"); - qmlRegisterType(componentPath(QStringLiteral("OverlaySheet.qml")), uri, 1, 0, "OverlaySheet"); - qmlRegisterType(componentPath(QStringLiteral("Page.qml")), uri, 1, 0, "Page"); - qmlRegisterType(componentPath(QStringLiteral("ScrollablePage.qml")), uri, 1, 0, "ScrollablePage"); - qmlRegisterType(componentPath(QStringLiteral("SplitDrawer.qml")), uri, 1, 0, "SplitDrawer"); - qmlRegisterType(componentPath(QStringLiteral("SwipeListItem.qml")), uri, 1, 0, "SwipeListItem"); + qmlRegisterSingletonType(QStringLiteral("qrc:///styles/Plasma/Theme.qml"), uri, 1, 0, "Theme"); + qmlRegisterSingletonType(QStringLiteral("qrc:///styles/Plasma/Units.qml"), uri, 1, 0, "Units"); + //qmlRegisterSingletonType(componentPath(QStringLiteral("Theme.qml")), uri, 1, 0, "Theme"); + //qmlRegisterSingletonType(componentPath(QStringLiteral("Units.qml")), uri, 1, 0, "Units"); + + qmlRegisterType(QStringLiteral("qrc:///Action.qml"), uri, 1, 0, "Action"); + qmlRegisterType(QStringLiteral("qrc:///AbstractApplicationHeader.qml"), uri, 1, 0, "AbstractApplicationHeader"); + qmlRegisterType(QStringLiteral("qrc:///AbstractApplicationWindow.qml"), uri, 1, 0, "AbstractApplicationWindow"); + qmlRegisterType(QStringLiteral("qrc:///AbstractListItem.qml"), uri, 1, 0, "AbstractListItem"); + qmlRegisterType(QStringLiteral("qrc:///ApplicationHeader.qml"), uri, 1, 0, "ApplicationHeader"); + qmlRegisterType(QStringLiteral("qrc:///ToolBarApplicationHeader.qml"), uri, 1, 0, "ToolBarApplicationHeader"); + qmlRegisterType(QStringLiteral("qrc:///ApplicationWindow.qml"), uri, 1, 0, "ApplicationWindow"); + qmlRegisterType(QStringLiteral("qrc:///BasicListItem.qml"), uri, 1, 0, "BasicListItem"); + qmlRegisterType(QStringLiteral("qrc:///OverlayDrawer.qml"), uri, 1, 0, "OverlayDrawer"); + qmlRegisterType(QStringLiteral("qrc:///ContextDrawer.qml"), uri, 1, 0, "ContextDrawer"); + qmlRegisterType(QStringLiteral("qrc:///GlobalDrawer.qml"), uri, 1, 0, "GlobalDrawer"); + qmlRegisterType(QStringLiteral("qrc:///Heading.qml"), uri, 1, 0, "Heading"); + qmlRegisterType(QStringLiteral("qrc:///Icon.qml"), uri, 1, 0, "Icon"); + qmlRegisterType(QStringLiteral("qrc:///Label.qml"), uri, 1, 0, "Label"); + qmlRegisterType(QStringLiteral("qrc:///OverlaySheet.qml"), uri, 1, 0, "OverlaySheet"); + qmlRegisterType(QStringLiteral("qrc:///Page.qml"), uri, 1, 0, "Page"); + qmlRegisterType(QStringLiteral("qrc:///ScrollablePage.qml"), uri, 1, 0, "ScrollablePage"); + qmlRegisterType(QStringLiteral("qrc:///SplitDrawer.qml"), uri, 1, 0, "SplitDrawer"); + qmlRegisterType(QStringLiteral("qrc:///SwipeListItem.qml"), uri, 1, 0, "SwipeListItem"); } #include "moc_kirigamiplugin.cpp"