-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Plasma 5 port #21
base: master
Are you sure you want to change the base?
Conversation
To test: |
|
@PVince81 thank you very much for this contribution. It looks great and it is already almost ready for merging. I will take a closer look when I get home. Just a suggestion about the storage system. Take a look at the sticky notes widget and see how they store the notes. They use a NotesManager for it, it is included in the package org.kde.plasma.private.notes It could be simpler than using sqlite |
repeated error in console:
|
@arthurtaborda before merging you need to decide whether you want to replace the old KDE 4 plasmoid code with this new one. If yes then merging would be ok as soon as it works decently. (it doesn't, see previous comment) If not, then a new repo might be an idea. I'll have a look later at NotesManager to learn about alternative ways. So far the sqlite way seems to work fine. :-) |
@arthurtaborda did you have time to have a look ? After some days have passed I think this is not ready for merging yet as many things are still broken like the end of the timer and also the config dialog. I'll see if I can bring this into a better shape. |
Some infos I found about porting the config: https://community.kde.org/Plasma/PortingQMLPlasmoids#Porting_QML_Plasmoids_to_Plasma_2 Now struggling hard to find how to do a "showPopup()" to popup a Plasma 5 notification... |
Ok, so now I understand: showPopup is likely to just show a real popup dialog. We'll need to replace this with a MessageDialog or Qt's alert. I commented it out now. I found myself grepping around the source code of other plasmoids to find how to do the desktop notification thing until I found out that Tomatoid already had a "notify" method. Turns out one needs to use the data engine. At least now the pomodoro can finish! Now the config is read from |
@PVince81 I am sorry for not being so helpful in the porting to plasma 5. I have a very limited amount of free time right now. I am looking to it right now and fixing the action bugs (remove, set done...) This is still not ready to be merged but looks pretty close. |
@arthurtaborda no worries and no pressure. I was mostly hoping to revive the flame of motivation by helping you with the port. 😄 |
how many Pomorodos left to finish this ? :-D OT: got back into Pomodoros and was thinking it would be nice to also be able to execute scripts before and after a Pomodoro. For example if one has two Plasma activities, one for planning, chat, email, etc and one for focussing on work. The script could be used to automatically stop the other activities, or simply start/stop potentially distracting apps |
file:///home/vincent/workspace/Tomatoid/contents/ui/TopBar.qml:60:2: QML Row: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row. Row will not function.