diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-08-16 16:19:04 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-08-16 16:19:04 +0300 |
commit | 616e680aa8af8f5056b5133dd44258c252ca656f (patch) | |
tree | 4c89c4fe2b9b2cc77c550c8d52d6d1058ee10846 /src/plugins/pluginloader.cpp | |
parent | Add rView and WebView (diff) | |
download | rekonq-616e680aa8af8f5056b5133dd44258c252ca656f.tar.xz |
Turn WebEngine into a plugin
Diffstat (limited to 'src/plugins/pluginloader.cpp')
-rw-r--r-- | src/plugins/pluginloader.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/pluginloader.cpp b/src/plugins/pluginloader.cpp new file mode 100644 index 00000000..ad5dbc14 --- /dev/null +++ b/src/plugins/pluginloader.cpp @@ -0,0 +1,17 @@ +/* ============================================================ + * The rekonq project + * ============================================================ + * SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net> + * ============================================================ + * Description: rekonq plugin loader + * ============================================================ */ + +#include "pluginloader.h" +#include <QJsonArray> + +PluginLoader::PluginLoader(const QString &fileName, QObject *parent) : QPluginLoader(fileName, parent) +{ + const auto metadata = metaData()["MetaData"].toObject(); + for (const auto &value : metadata["schemes"].toArray()) { m_schemes.append(value.toString()); } +} |