diff --git a/src/plugin.cpp b/src/plugin.cpp index 15a0d62..8488880 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -1,78 +1,78 @@ /*************************************************************************** * Copyright (C) 2017 by Emmanuel Lepage Vallee * * Author : Emmanuel Lepage Vallee * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program. If not, see . * **************************************************************************/ #include "plugin.h" #include #include "adapters/decorationadapter.h" #include "adapters/scrollbaradapter.h" #include "adapters/geometryadapter.h" #include "views/hierarchyview.h" #include "views/listview.h" #include "views/treeview.h" #include "qmodelindexwatcher.h" #include "qmodelindexbinder.h" #include "views/comboboxview.h" #include "views/indexview.h" #include "flickablescrollbar.h" #include "delegatechoice.h" #include "delegatechooser.h" #include "proxies/sizehintproxymodel.h" // Strategies #include "strategies/justintime.h" #include "strategies/role.h" #include "strategies/proxy.h" void KQuickView::registerTypes(const char *uri) { Q_ASSERT(uri == QLatin1String("org.kde.playground.kquickview")); qmlRegisterType(uri, 1, 0, "HierarchyView"); qmlRegisterType(uri, 1, 0, "TreeView"); qmlRegisterType(uri, 1, 0, "ListView"); qmlRegisterType(uri, 1, 0, "IndexView"); qmlRegisterType(uri, 1, 0, "ScrollBarAdapter"); qmlRegisterType(uri, 1, 0, "GeometryAdapter"); qmlRegisterType(uri, 1,0, "DecorationAdapter"); qmlRegisterType(uri, 1, 0, "ComboBoxView"); qmlRegisterType(uri, 1, 0, "FlickableScrollBar"); qmlRegisterType(uri, 1, 0, "QModelIndexWatcher"); qmlRegisterType(uri, 1, 0, "QModelIndexBinder"); qmlRegisterType(uri, 1, 0, "SizeHintProxyModel"); - qmlRegisterType(uri, 1, 0, "DelegateChoice"); - qmlRegisterType(uri, 1, 0, "DelegateChooser"); + qmlRegisterType(uri, 1, 0, "DelegateChoice"); + qmlRegisterType(uri, 1, 0, "DelegateChooser"); qmlRegisterUncreatableType(uri, 1, 0, "ListViewSections", ""); auto suri = QString(QString(uri) + QString(".Strategies")).toLatin1(); qmlRegisterType(suri, 1, 0, "JustInTime"); qmlRegisterType(suri, 1, 0, "Role"); // Alias qmlRegisterUncreatableType( "org.kde.playground.kquickview", 1, 0, "RoleBinder", "Cannot create objects of type RoleBinder, use it as an attached poperty" ); } void KQuickView::initializeEngine(QQmlEngine *engine, const char *uri) { Q_UNUSED(engine) Q_UNUSED(uri) }