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

[partly solved]ProgressBar in Notifications

asked 2018-07-27 13:18:17 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2018-09-19 10:45:51 +0300

velox gravatar image

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!

edit retag flag offensive close delete

Comments

good catch, need to try this asap!

coderus ( 2018-08-21 08:31:04 +0300 )edit

2 Answers

Sort by » oldest newest most voted
4

answered 2018-08-20 10:57:26 +0300

updated 2018-08-20 10:58:03 +0300

Screenshot_20180820_001.png

Android apps can use it though

edit flag offensive delete publish link more
2

answered 2018-08-23 11:13:48 +0300

coderus gravatar image

updated 2018-08-23 12:30:02 +0300

notification.setHintValue("x-nemo-progress", 0.5);
edit flag offensive delete publish link more

Comments

interesting,...where would you insert that line of code?, or is there more code involved?

Spam Hunter ( 2018-08-23 12:00:41 +0300 )edit
1

using c++ Notifications class, not available via QML

coderus ( 2018-08-23 12:21:56 +0300 )edit
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2018-07-27 13:18:17 +0300

Seen: 652 times

Last updated: Sep 19 '18