From kde-panel-devel Wed Feb 29 21:14:06 2012 From: Shaun Reich Date: Wed, 29 Feb 2012 21:14:06 +0000 To: kde-panel-devel Subject: Re: plasma-overlay can't load qml files? Message-Id: X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=133055013206458 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) _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel