diff --git a/runtimes/android/androidpreferences.cpp b/runtimes/android/androidpreferences.cpp index b3418c92e7..2afd1f1304 100644 --- a/runtimes/android/androidpreferences.cpp +++ b/runtimes/android/androidpreferences.cpp @@ -1,34 +1,39 @@ /* Copyright 2017 Aleix Pol Gonzalez This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "androidpreferences.h" #include "ui_androidpreferences.h" AndroidPreferences::AndroidPreferences(KDevelop::IPlugin* plugin, KCoreConfigSkeleton* config, QWidget* parent) : KDevelop::ConfigPage(plugin, config, parent) { auto m_prefsUi = new Ui::AndroidPreferences; m_prefsUi->setupUi(this); } AndroidPreferences::~AndroidPreferences() = default; +KDevelop::ConfigPage::ConfigPageType AndroidPreferences::configPageType() const +{ + return KDevelop::ConfigPage::RuntimeConfigPage; +} + QString AndroidPreferences::name() const { return QStringLiteral("Android"); } diff --git a/runtimes/android/androidpreferences.h b/runtimes/android/androidpreferences.h index e40453c84a..b135bd8023 100644 --- a/runtimes/android/androidpreferences.h +++ b/runtimes/android/androidpreferences.h @@ -1,39 +1,40 @@ /* Copyright 2017 Aleix Pol Gonzalez This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef ANDROIDPREFERENCES_H #define ANDROIDPREFERENCES_H #include #include namespace Ui { class AndroidPreferences; } class AndroidPreferences : public KDevelop::ConfigPage { Q_OBJECT public: explicit AndroidPreferences(KDevelop::IPlugin* plugin, KCoreConfigSkeleton* config, QWidget* parent = nullptr); ~AndroidPreferences() override; + KDevelop::ConfigPage::ConfigPageType configPageType() const override; QString name() const override; private: QScopedPointer m_prefsUi; }; #endif diff --git a/runtimes/android/kdevandroid.json b/runtimes/android/kdevandroid.json index 85e5feb79a..0d661c20f0 100644 --- a/runtimes/android/kdevandroid.json +++ b/runtimes/android/kdevandroid.json @@ -1,39 +1,39 @@ { "KPlugin": { "Authors": [ { "Email": "aleixpol@kde.org", "Name": "Aleix Pol", "Name[ru]": "Aleix Pol Gonzalez", "Name[x-test]": "xxAleix Polxx" } ], - "Category": "Global", + "Category": "Runtimes", "Description": "Exposes Android runtimes", "Description[ca@valencia]": "Exposa el temps d'execució de l'Android", "Description[ca]": "Exposa el temps d'execució de l'Android", "Description[nl]": "Toont Android runtimes", "Description[pt]": "Expõe as bibliotecas do Android", "Description[sv]": "Exponerar Android-körtidsprogram", "Description[uk]": "Надає доступ до середовищ виконання Android", "Description[x-test]": "xxExposes Android runtimesxx", "Icon": "android", "Id": "kdevandroid", "License": "GPL", "Name": "Android Support", "Name[ca@valencia]": "Implementació de l'Android", "Name[ca]": "Implementació de l'Android", "Name[it]": "Supporto Android", "Name[nl]": "Ondersteuning voor Android", "Name[pt]": "Suporte para Android", "Name[sv]": "Android-stöd", "Name[uk]": "Підтримка Android", "Name[x-test]": "xxAndroid Supportxx", "ServiceTypes": [ "KDevelop/Plugin" ], "Version": "0.1" }, "X-KDevelop-Category": "Global", "X-KDevelop-Mode": "NoGUI" }