On Thu, Oct 27, 2011 at 12:12 PM, Aaron J. Seigo <ase...@kde.org> wrote:
> 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.. > > Wow! That is really some awesome help. Thanx a lot. I'm gonna do some more hacking tonight ;) I already have the loading of a QML file working (very easy and not through Plasma::Package yet) and it just loads a very basic QML file with a red background and no window borders so that is all just fine. One thing i do have what shouldn't be there is the taskbar entry. I do have the flag setWindowFlags(Qt::FramelessWindowHint) on the QDeclarativeView object which is removing the decorations, but i can't find the flag to get rid of the taskbar entry. I haven't searched for it thoroughly yet, but if someone knows that flag...? ;)
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel