We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2018-07-27 13:18:17 +0200

ProgressBar in Notifications

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.

Any help is greatly appreciated, thanks! :)

ProgressBar [partly solved]ProgressBar in Notifications

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.

Any help is greatly appreciated, thanks! :)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!