mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
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>
This commit is contained in:
parent
6cd66f2b1b
commit
46dc6aa2bb
3 changed files with 8 additions and 0 deletions
|
@ -105,6 +105,12 @@ inline bool isBracket ( const QChar& c ) { return isStartBracket( c ) || isE
|
|||
//
|
||||
// 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)
|
||||
|
|
|
@ -103,6 +103,7 @@ class KATEPARTINTERFACES_EXPORT KateDocument : public KTextEditor::Document,
|
|||
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 ();
|
||||
|
|
|
@ -40,6 +40,7 @@ class KateFactory : public KTextEditor::Factory
|
|||
: KTextEditor::Factory (parent)
|
||||
{
|
||||
KateGlobal::incRef ();
|
||||
registerPlugin<KateDocument>();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue