Commit 46b55d80 authored by David Saxton's avatar David Saxton
Browse files

Port to the new KPluginFactory API.

svn path=/trunk/KDE/kdeedu/kmplot/; revision=712076
parent 4d430434
......@@ -61,13 +61,12 @@ KmPlot::KmPlot( KCmdLineArgs* args)
// this routine will find and load our Part. it finds the Part by
// name which is a bad idea usually.. but it's alright in this
// case since our Part is made for this Shell
KLibFactory *factory = KLibLoader::self()->factory("libkmplotpart");
KPluginFactory *factory = KPluginLoader("libkmplotpart").factory();
if (factory)
// now that the Part is loaded, we cast it to a Part to get
// our hands on it
m_part = static_cast<KParts::ReadWritePart *>(factory->create(this,
m_part = factory->create<KParts::ReadWritePart>(this);
if (m_part)
// tell the KParts::MainWindow that this is indeed the main widget
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