plasma-overlay can't load qml files?

Shaun Reich sreich at kde.org
Wed Feb 29 21:14:06 UTC 2012


right, then why is it looking there?

the first couple i was doing for debugging, ultimately because
Plasma::Applet::load findsss no "offers" for it.

        Plasma::PackageStructure::Ptr structure =
Plasma::PackageStructure::load("Plasma/Generic");
        Plasma::Package *pkg = new Plasma::Package(QString(), "sal", structure);
        kDebug() << "FILEPATH: " << pkg->filePath("mainscript");
        Plasma::Applet *clock =  Plasma::Applet::load("sal"/*, c->id() + 1*/);
        Q_ASSERT(clock);
        c->addApplet(clock, QPointF(KDialog::spacingHint(),
KDialog::spacingHint()), true);
        clock->init();


-- 
Shaun Reich,
KDE Software Developer (kde.org)


More information about the Plasma-devel mailing list