OSDN Git Service

kate: register as plugin
authorIvailo Monev <xakepa10@gmail.com>
Thu, 1 Dec 2022 00:25:09 +0000 (02:25 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Thu, 1 Dec 2022 00:25:20 +0000 (02:25 +0200)
commit46dc6aa2bb6ed4e36fe6ad1422f9adf166039a8e
tree349204f6f8ea05187a948b9bfb4486aaeac8674d
parent6cd66f2b1b07d19fbed3f543643cd640ee1b0669
kate: register as plugin

KTextEditor::Factory does its own thing in terms of plugin lookup, view
creation and such. the plan is to remove the KTextEditor interface glue
code (because there is only one part providing the functionality for that
interface - katepart) and register KateDocument as part plugin via
K_PLUGIN_FACTORY() macro but until then that will work

fixes loading of the part in some cases (e.g. when Ark attempts to load it
from its previewer)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kate/part/document/katedocument.cpp
kate/part/document/katedocument.h
kate/part/utils/katefactory.cpp