[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Some help for recreating the Plasma Tool Box in QML
From: "Aaron J. Seigo" <aseigo () kde ! org>
Date: 2011-10-27 10:12:50
Message-ID: 1741051.oUSKU7eJjC () freedom
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Wednesday, October 26, 2011 21:26:12 Mark wrote:
> Oh and what do i do with my qml files?
> I guess i make them in plasma/desktop/shell/qml <-- new folder
> But where do i need to "install" them in cmake?
the best thing to do is it to put them into a Plasma Package and install them
in the usual location; then you can use Plasma::Package from the C++ code to
fetch the qml for you.
a good example of this can be found in the kde:plasma-mobile repository.
in there is a subdirectory called qmlpackages with, well, packages of qml
stuff (along with the CMakeLists.txt that installs them).
then if you look in shell/mobcorona.cpp in the MobCorona::init() method, you
can see usage of Plasma::Package that loads such a package:
Plasma::PackageStructure::Ptr structure =
Plasma::PackageStructure::load("Plasma/Generic");
m_package = new Plasma::Package(QString(), homeScreenPath, structure);
hth..
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
["signature.asc" (application/pgp-signature)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic