Re: Plasmoid plugin signal handling

2017-06-14 Thread Sebastian Kügler
On Wed, 14 Jun 2017 10:39:04 +0200 Rastislav Marko wrote: > Thank you for the hints, I made the semantics more meaningful (in > fact I have another class named ActiivtyJumper). > > On utorok, 13. júna 2017 16:49:26 CEST Sebastian Kügler wrote: > > > > The signal isn't defined in "Item", you nee

Re: Plasmoid plugin signal handling

2017-06-14 Thread Rastislav Marko
Thank you for the hints, I made the semantics more meaningful (in fact I have another class named ActiivtyJumper). On utorok, 13. júna 2017 16:49:26 CEST Sebastian Kügler wrote: > > The signal isn't defined in "Item", you need to create a DBusObject object > in your QML code, then you can add a

Re: Plasmoid plugin signal handling

2017-06-13 Thread Sebastian Kügler
On dinsdag 13 juni 2017 16:27:47 CEST cdfgh...@gmail.com wrote: [...] > qmlRegisterType(uri, 1, 0, "ActivityJumper"); Why not call this class ActivityJumper in the first place, it's generally less confusing to align class names with their QML names. > -- ActivityJumper.qml > > Item

Plasmoid plugin signal handling

2017-06-13 Thread cdfghglz
Hi there, im pretty new here and I am in need of help: I try to emit a signal from c++ plugin of a plasmoid. I have problem handling this event in the qml. I tried to follow http://doc.qt.io/qt-5/qtqml-cppintegration-definetypes.html Here is some of my code: -- plasmoidplugin.h class