Commit fd12769a authored by Christoph Cullmann's avatar Christoph Cullmann

katepart loads and crashs :)

parent 51e8d9af
...@@ -244,7 +244,7 @@ set_target_properties( ...@@ -244,7 +244,7 @@ set_target_properties(
install (TARGETS katepartinterfaces EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) install (TARGETS katepartinterfaces EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
# kate part itself just is interfaces + the factory # kate part itself just is interfaces + the factory
kde4_add_plugin (katepart utils/katefactory.cpp) add_library (katepart MODULE utils/katefactory.cpp)
# link the part, use kate part interfaces + kde stuff # link the part, use kate part interfaces + kde stuff
target_link_libraries (katepart katepartinterfaces ktexteditor target_link_libraries (katepart katepartinterfaces ktexteditor
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
#include <ktexteditor/factory.h> #include <ktexteditor/factory.h>
#include <kpluginfactory.h>
/** /**
* wrapper factory to be sure nobody external deletes our kateglobal object * wrapper factory to be sure nobody external deletes our kateglobal object
* each instance will just increment the reference counter of our internal * each instance will just increment the reference counter of our internal
...@@ -30,6 +32,12 @@ ...@@ -30,6 +32,12 @@
*/ */
class KateFactory : public KTextEditor::Factory class KateFactory : public KTextEditor::Factory
{ {
Q_OBJECT
Q_PLUGIN_METADATA(IID KPluginFactory_iid FILE "")
Q_INTERFACES(KPluginFactory)
public: public:
/** /**
* constructor, ref the editor, too keep it alive * constructor, ref the editor, too keep it alive
...@@ -82,6 +90,6 @@ class KateFactory : public KTextEditor::Factory ...@@ -82,6 +90,6 @@ class KateFactory : public KTextEditor::Factory
} }
}; };
K_EXPORT_PLUGIN( KateFactory ) #include "katefactory.moc"
// kate: space-indent on; indent-width 2; replace-tabs on; // kate: space-indent on; indent-width 2; replace-tabs on;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment