diff --git a/src/imports/CMakeLists.txt b/src/imports/CMakeLists.txt index 079f072..c95100b 100644 --- a/src/imports/CMakeLists.txt +++ b/src/imports/CMakeLists.txt @@ -1,26 +1,26 @@ project(atcore-imports) include_directories ( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ) set ( atcore_qml_bridge_LIB_SRCS atcoreextensionplugin.cpp ) find_package(Qt5 REQUIRED COMPONENTS Qml ) add_library(atcoreextensionplugin SHARED ${atcore_qml_bridge_LIB_SRCS}) target_link_libraries ( atcoreextensionplugin AtCore Qt5::Core Qt5::Qml ) install(TARGETS atcoreextensionplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/atcore) -install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/atcore) \ No newline at end of file +install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/atcore) diff --git a/src/imports/atcoreextensionplugin.cpp b/src/imports/atcoreextensionplugin.cpp index 36530d5..6eae8e9 100644 --- a/src/imports/atcoreextensionplugin.cpp +++ b/src/imports/atcoreextensionplugin.cpp @@ -1,37 +1,35 @@ /* AtCore Imports Copyright (C) <2019> Authors: Lays Rodrigues 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 "atcoreextensionplugin.h" #include #include #include #include void AtCoreExtensionPlugin::registerTypes(const char *uri) { Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.atcore")); qmlRegisterType("org.kde.atcore", 1, 0, "AtCore"); qmlRegisterType("org.kde.atcore", 1, 0, "Temperature"); qmlRegisterSingletonType("org.kde.atcore", 1, 0, "MachineInfo", [](QQmlEngine *engine, QJSEngine *jsEngine) -> QObject * { return MachineInfo::instance()->qmlSingletonRegister(engine, jsEngine); }); - - } \ No newline at end of file