diff options
author | Willem Ferguson <willemferguson@zoology.up.ac.za> | 2018-04-05 14:50:11 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-05-14 23:47:00 +0300 |
commit | 5f95c226ef4d0def6aafc60a9f4880a3a3374167 (patch) | |
tree | 9c5751de04e35844504e09a7e0b88e1a103892b1 /profile-widget | |
parent | 0e08c0870a1c82ded398e1d2fb830d61ffe6a647 (diff) | |
download | subsurface-5f95c226ef4d0def6aafc60a9f4880a3a3374167.tar.gz |
Provide icons for bailout events on the dive profile.
Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/diveeventitem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp index f3c81f102..7e7c602a1 100644 --- a/profile-widget/diveeventitem.cpp +++ b/profile-widget/diveeventitem.cpp @@ -84,6 +84,10 @@ void DiveEventItem::setupPixmap(struct gasmix *lastgasmix) #define EVENT_PIXMAP_BIGGER(PIX) QPixmap(QString(PIX)).scaled(sz_bigger, sz_bigger, Qt::KeepAspectRatio, Qt::SmoothTransformation) if (empty_string(internalEvent->name)) { setPixmap(EVENT_PIXMAP(":status-warning-icon")); + } else if (same_string_caseinsensitive(internalEvent->name, "OC")) { + setPixmap(EVENT_PIXMAP(":bailout-icon")); + } else if (same_string_caseinsensitive(internalEvent->name, "CCR") || same_string_caseinsensitive(internalEvent->name, "PSCR")) { + setPixmap(EVENT_PIXMAP(":onCCRLoop-icon")); } else if (internalEvent->type == SAMPLE_EVENT_BOOKMARK) { setPixmap(EVENT_PIXMAP(":dive-bookmark-icon")); } else if (event_is_gaschange(internalEvent)) { |