MauiKit Terminal

terminal_plugin.h
1#pragma once
2#include <QQmlExtensionPlugin>
3
4class TerminalPlugin : public QQmlExtensionPlugin
5{
7 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
8
9public:
10 void registerTypes(const char *uri);
11
12private:
13 void initializeEngine(QQmlEngine *engine, const char *uri) override;
14 QUrl componentUrl(const QString &fileName) const;
15
16 QString resolveFileUrl(const QString &filePath) const
17 {
18 return baseUrl().toString() + QLatin1Char('/') + filePath;
19 }
20};
21
22
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.