8#include "texteditor_plugin.h"
9#include "documenthandler.h"
10#include "colorschemesmodel.h"
11#include "linenumbermodel.h"
13void TextEditorPlugin::registerTypes(
const char *uri)
15#if defined(Q_OS_ANDROID)
19 qmlRegisterType<DocumentHandler>(uri, 1, 0,
"DocumentHandler");
20 qmlRegisterType<ColorSchemesModel>(uri, 1, 0,
"ColorSchemesModel");
21 qmlRegisterType<LineNumberModel>(uri, 1, 0,
"LineNumberModel");
22 qmlRegisterType(componentUrl(QStringLiteral(
"TextEditor.qml")), uri, 1, 0,
"TextEditor");
23 qmlRegisterType(componentUrl(QStringLiteral(
"ColorSchemesPage.qml")), uri, 1, 0,
"ColorSchemesPage");
26QUrl TextEditorPlugin::componentUrl(
const QString &fileName)
const
28 return QUrl(resolveFileUrl(fileName));
bool registerResource(const QString &rccFileName, const QString &mapRoot)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:40 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.