Adjust test to new api
This commit is contained in:
parent
6c0a13f3b1
commit
9035691567
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user