Use kservice test as well
This commit is contained in:
parent
fd65125a24
commit
b9dec2cd99
@ -70,6 +70,7 @@ Applet::Applet(const KPluginInfo &info, QObject *parent, uint appletId)
|
||||
: QObject(parent),
|
||||
d(new AppletPrivate(KService::Ptr(), &info, appletId, this))
|
||||
{
|
||||
qDebug() << " From KPluginInfo, valid? " << info.isValid();
|
||||
// WARNING: do not access config() OR globalConfig() in this method!
|
||||
// that requires a scene, which is not available at this point
|
||||
d->init();
|
||||
|
@ -76,13 +76,13 @@ void PluginTest::runMain()
|
||||
{
|
||||
qDebug() << "plugin test runs: ";
|
||||
//loadDataEngine();
|
||||
qDebug() << " - - - -- - - - - ------------------------------------\n";
|
||||
qDebug() << " libs are in: " << QCoreApplication::libraryPaths();
|
||||
//loadKQPlugin();
|
||||
// qDebug() << " - - - -- - - - - ------------------------------------\n";
|
||||
// qDebug() << " libs are in: " << QCoreApplication::libraryPaths();
|
||||
// //loadKQPlugin();
|
||||
qDebug() << "::: loadKPlugin() == " << loadKPlugin();
|
||||
qDebug() << " - - - -- - - - - ------------------------------------\n";
|
||||
qDebug() << "::: loadKService() == " << loadKService();
|
||||
|
||||
// qDebug() << " - - - -- - - - - ------------------------------------\n";
|
||||
// qDebug() << "::: loadKService() == " << loadKService();
|
||||
//
|
||||
qDebug() << " - - - -- - - - - ------------------------------------\n";
|
||||
qDebug() << "::: loadKFromPlasma() == " << loadFromPlasma();
|
||||
exit(0);
|
||||
@ -286,7 +286,7 @@ bool PluginTest::loadKService(const QString &name)
|
||||
|
||||
void PluginTest::dataUpdated(QString s, Plasma::DataEngine::Data d)
|
||||
{
|
||||
qDebug() << "new data for source: " << s << d;
|
||||
// qDebug() << "new data for source: " << s << d;
|
||||
}
|
||||
|
||||
} // namespace Plasma
|
||||
|
Loading…
x
Reference in New Issue
Block a user