mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
For warnings, show icon in infobox
Render a warning sign in front of the event string in the infobox. This is done in rich text. Note: This shows the warning sign for all events, not just warnings. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
d306ba9b38
commit
77a5ca4234
4 changed files with 7 additions and 5 deletions
|
@ -170,7 +170,7 @@ void DiveEventItem::setupToolTipString(struct gasmix lastgasmix)
|
|||
name += ev->flags & SAMPLE_FLAGS_BEGIN ? tr(" begin", "Starts with space!") :
|
||||
ev->flags & SAMPLE_FLAGS_END ? tr(" end", "Starts with space!") : "";
|
||||
}
|
||||
setToolTip(name);
|
||||
setToolTip(QString("<img height=\"16\" src=\":status-warning-icon\"> ") + name);
|
||||
}
|
||||
|
||||
void DiveEventItem::eventVisibilityChanged(const QString&, bool)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue