diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/pluginloader.h | 4 | ||||
-rw-r--r-- | src/plugins/rview.hpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/pluginloader.h b/src/plugins/pluginloader.h index f764da9f..319e985a 100644 --- a/src/plugins/pluginloader.h +++ b/src/plugins/pluginloader.h @@ -16,7 +16,9 @@ class PluginLoader : public QPluginLoader { public: explicit PluginLoader(const QString &path, QObject *parent = nullptr); - [[nodiscard]] bool hasScheme(const QString &scheme) { return m_schemes.contains(scheme); } + + [[nodiscard]] auto schemes() const { return m_schemes; } + [[nodiscard]] bool hasScheme(const QString &scheme) const { return m_schemes.contains(scheme); } [[nodiscard]] RekonqPluginInterface *interface() { return qobject_cast<RekonqPluginInterface *>(instance()); } diff --git a/src/plugins/rview.hpp b/src/plugins/rview.hpp index 71bf5ddf..6f0652d5 100644 --- a/src/plugins/rview.hpp +++ b/src/plugins/rview.hpp @@ -18,6 +18,8 @@ class rView : public QWidget { public: explicit rView(const QUrl &url = QUrl(), QWidget *parent = nullptr) : QWidget(parent) {} + [[nodiscard]] virtual QString title() const = 0; + signals: void iconChanged(const QIcon &); void urlChanged(const QUrl &); |