diff --git a/src/declarative/kaccountsdeclarativeplugin.cpp b/src/declarative/kaccountsdeclarativeplugin.cpp index 3bef9e2..85ce91d 100644 --- a/src/declarative/kaccountsdeclarativeplugin.cpp +++ b/src/declarative/kaccountsdeclarativeplugin.cpp @@ -1,41 +1,42 @@ /************************************************************************************* * Copyright (C) 2015 by Aleix Pol * * Copyright (C) 2020 by Dan Leinir Turthra Jensen * * * * 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 2 * * 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, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * *************************************************************************************/ #include "kaccountsdeclarativeplugin.h" #include "createaccountjob.h" #include "accountservicetogglejob.h" #include "removeaccountjob.h" #include "accountsmodel.h" #include "providersmodel.h" #include "changeaccountdisplaynamejob.h" #include "servicesmodel.h" #include void KAccountsDeclarativePlugin::registerTypes(const char* uri) { qmlRegisterType(uri, 1, 0, "CreateAccount"); qmlRegisterType(uri, 1, 1, "AccountServiceToggle"); - qmlRegisterType(uri, 1, 2, "RemoveAccount"); + qmlRegisterType(uri, 1, 2, "RemoveAccountJob"); qmlRegisterType(uri, 1, 2, "ProvidersModel"); qmlRegisterType(uri, 1, 2, "AccountsModel"); qmlRegisterType(uri, 1, 2, "ServicesModel"); qmlRegisterType(uri, 1, 0, "CreateAccountJob"); qmlRegisterType(uri, 1, 1, "AccountServiceToggleJob"); qmlRegisterType(uri, 1, 2, "ChangeAccountDisplayNameJob"); + qmlRegisterType(uri, 1, 2, "AccountServiceToggleJob"); }