[partly solved]ProgressBar in Notifications
asked 2018-07-27 13:18:17 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Since 2.2.0, according to the Release Notes, ProgressBars in notifications are supported.
Does that mean it should be possible with the pure qml Notification {}
from import Nemo.Notifications 1.0
?
I didn't find anything related in the docs.
After a short look, the only thing for this I found was in the home screen:
JollaNotificationListModel
entries apparently have the properties notification.hasProgress
(bool) and notification.progress
(real) – but I have no clue as to how to set those, from qml or otherwise, as the Notification QML-Type doesn't have them by default and does not care if I set them as properties. Not that I expected it to, but I tried it, anyways.
Edit/Solution:
As coderus pointed out below, the Notifications QML-Type does not support this, but from C++ there's
notification.setHintValue("x-nemo-progress", 0.5);
Thanks for digging this out!
good catch, need to try this asap!
coderus ( 2018-08-21 08:31:04 +0200 )edit