RFC: [Device Notifier] Provide inline feedback

Review Request #126688 - Created Jan. 9, 2016 and submitted

Kai Uwe Broulik
plasma, usability

Instead of showing a detached status bar with the device name, show the message below the device.

When removing a device, device notifier will pop up and a "You can now safely remove this device" message will show up; after 5 seconds the message and the device will disappear. When trying to unmount a device and it fails, device notifier will show up with an error message that will stay there until device notifier is closed or another message appears.

This review consists of two patches: one for fixing the device notifications engine's wording (I'm open to better verbalizations) and one for the device notifier

There a still a couple of glitches:
- the layout doesn't properly reset at times (eg. the delegate height doesn't update) or fails to show certain items (also looks like a Qt bug)
- sometimes the delegates suddenly overlap each other beacuse the section thing gets confused when the one item is already gone in the model (looks like a Qt bug)
- the "no devices" heading doesn't know that there's still a pseudo-device there
- it cannot actually highlight the device that was safely removed (it's no longer part of the model and thus has no index), we could do a hack for this though
- the message doesn't disappear reliably or spontaneously re-appears
- depending on your screen dpi you sometimes get a black and white Info icon but the error thing is always red, there's a smaller variant for the former but not the latter apparently, also it seems we lack a proper "task done" icon, Oxygen had one


Sebastian Kügler
Thomas Pfeiffer
Kai Uwe Broulik
Kai Uwe Broulik
Kai Uwe Broulik
Heiko Tietze
Andreas Kainz
Kai Uwe Broulik
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 1ed7209f08aa69cec7847c606da8a2fc091dc603 by Kai Uwe Broulik to branch master.
Antonis Geralis
Hello! There is a typo in file ksolidnotify.cpp:166, also shown in third screenshot.
  1. Well spotted. Fixed, thanks.