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>
//
// KateDocument Constructor
//
+KateDocument::KateDocument ( QWidget *parentWidget, QObject *parent, const QVariantList &args)
+: KateDocument (true, false, true, parentWidget, parent)
+{
+ Q_UNUSED(args);
+}
+
KateDocument::KateDocument ( bool bSingleViewMode, bool bBrowserView,
bool bReadOnly, QWidget *parentWidget,
QObject *parent)
friend class KateBuffer;
public:
+ explicit KateDocument (QWidget *parentWidget, QObject *, const QVariantList &args);
explicit KateDocument (bool bSingleViewMode=false, bool bBrowserView=false, bool bReadOnly=false,
QWidget *parentWidget = 0, QObject * = 0);
~KateDocument ();
: KTextEditor::Factory (parent)
{
KateGlobal::incRef ();
+ registerPlugin<KateDocument>();
}
/**