[PATCH] Turn Powerdevil suspend notification into a dialog

Thomas L├╝bking thomas.luebking at web.de
Tue Sep 22 21:32:12 BST 2009


On Tuesday 22 September 2009 16:58:34 Dario Freddi wrote:
> Hey Aurelien,
>
> the topic is quite controversial, but considering that such a
> dialog/notification would pop up just when the battery is critical, I
> think it  makes sense. Bonus points for thinking about the focus issue
> and finding a good solution to the problem.
setDisabled();
show();
QTimer::singleShot(2500, this, SLOT(setEnabled());
// you'll need to overload setEnabled(bool)

Regarding this is /the/ moment to break the users workflow and pull his 
excllusive focus, one could make this a fs window (covering Aarons "user 
confused about dialog source" argument)

Imho:
This event is exceptional and /outside/ the workspace/workflow.
Its handling should, can and must not be scheduled and the event cannot be 
ignored.
Therefore it's different from anything the VisualNotifications are used for 
and deserves a drastic treatment.

Also the more present the notification is, the less time will the user waste 
on recognizing the situation and the more time he'll have to plug the AC (in 
doubt)

Regards,
Thomas




More information about the kde-core-devel mailing list