This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Porting KDE4 plasmoids to Plasma5

Tags: None
(comma "," separated)
arcanis
Registered Member
Posts
2
Karma
0

Porting KDE4 plasmoids to Plasma5

Sat Oct 25, 2014 4:28 pm
Hi everyone,

Recently I've started a porting of my plasmoids and dataengines to the newest Plasma and found some problems with it. I've ported a DataEngine w\o any problem, but I have issues about a Plasmoid. I've read API reference and look at examples from plasma-next and didn't find solutions.

First of all I want say that I don't plan to use QML/JS now and plan to develop of my plasmoids in pure C++. Also I try to avoid using deprecated functions.

  • Is there any alternative to
    Code: Select all
    Plasma::PopupApplet
    ? If there is not, is there a plan to implement this?
  • Is there a possibility to paint complex UI w\o using QML? For example, I didn't find old
    Code: Select all
    Applet::setLayout()
    and
    Code: Select all
    PopupApplet::setWdiget()
    methods, which can be used for adding pure Qt elements to UI.
  • How can I connect DataEngine to my Plasmoid? The old method which I used is
    Code: Select all
    dataEnigne()
    , some new applets use this method too, but it doesn't exist in the newest Plasma headers. Some new widgets such as nm-applet use
    Code: Select all
    Plasma::DataEngineManager::self()->engine()
    construction, but
    Code: Select all
    Plasma::DataEngineManager
    class doesn't exist in the Plasma too.

If you need a reference to my plasmoid, example on which I'm working now may be found here (it is more simple than the second one).

Thank you in advance!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would suggest asking about this on the plasma-devel@kde.org mailing list. I'm not entirely sure, but I think QML is now the preferred language for implementing Plasma applets.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
arcanis
Registered Member
Posts
2
Karma
0
I have tried to write to the mailing list, but since I don't subscribe to it, it is still waiting moderator approval :)

I know that qml is preferred, but plasmoid core still is usually written on c++. Also the main part of the project on c++, so I don't want to use additional language if it is not strongly required.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That makes sense. Please note that people may have replied to your mail only on list, so you might want to check the list archives to see if there has been a reply.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]