Adjust test to new api

This commit is contained in:
Sebastian Kügler 2013-06-28 05:08:45 +02:00
parent 6c0a13f3b1
commit 9035691567

View File

@ -97,9 +97,9 @@ void PluginTest::loadKQPlugin()
qDebug() << "metadata: " << loader.metaData();
//QObject *o = factory->createPlugin("time");
//qDebug() << " objec name:" << o->objectName();
Plasma::DataEngine *time_engine = qobject_cast<Plasma::DataEngine*>(factory->create(this, QVariantList()));
//Plasma::DataEngine *time_engine = factory->create<Plasma::DataEngine>(this);
//OtherInterface *p2 = factory->create<OtherInterface>(parent);
//Plasma::DataEngine *time_engine = qobject_cast<Plasma::DataEngine*>(factory->create(this, QVariantList()));
//Plasma::DataEngine *time_engine = factory->create(this, QVariantList());
Plasma::DataEngine *time_engine = factory->createInstance<Plasma::DataEngine>(this);
if (time_engine) {
qDebug() << "Successfully loaded timeengine";