Skip to content

enh(ui): add option to read more on notification

Marc SCHWEITZER requested to merge 485-snotifier-add-option-to-read-more into dev

Description

Add option to "Read more..." (shorten as "...") when the message exceeds the maximum allowed size on notification.

  • Maximum size is computed relatively to the actual size of the notification
  • A QMessageDialog can be opened to read the full message (only enabled if message in truncated)
  • Mouse event has been update, double click to close the notification, and simple click to read the message (only enabled if message is truncated).
  • An option has been added to STestNofication of print a message that exceeds maximum size, in order to test it in ExNotifications.
  • Small improvement have been made to move notifications stack when the oldest notification disapears.

Closes #485 (closed)

How to test it?

Use ExNotifications, enable/disable option called "Reach max. characters".

When truncated, simple click should open a QMessageDialog with the full test (Icon changed if INFO or FAILURE).

Edited by Marc SCHWEITZER

Merge request reports