From b1e50fb157c6c86af28d4beb4e365ec15a08e748 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 28 Jun 2014 21:07:39 -0700 Subject: Profile: change event icon for gaschange This is not ideal, but it gets us closer to what we need. Fixes #556 Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveeventitem.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/profile/diveeventitem.cpp') diff --git a/qt-ui/profile/diveeventitem.cpp b/qt-ui/profile/diveeventitem.cpp index f20d44e5c..73d58a672 100644 --- a/qt-ui/profile/diveeventitem.cpp +++ b/qt-ui/profile/diveeventitem.cpp @@ -58,12 +58,15 @@ void DiveEventItem::setEvent(struct event *ev) void DiveEventItem::setupPixmap() { #define EVENT_PIXMAP(PIX) QPixmap(QString(PIX)).scaled(20, 20, Qt::KeepAspectRatio, Qt::SmoothTransformation) +#define EVENT_PIXMAP_BIGGER(PIX) QPixmap(QString(PIX)).scaled(30, 28, Qt::KeepAspectRatio, Qt::SmoothTransformation) if (!internalEvent->name) { setPixmap(EVENT_PIXMAP(":warning")); } else if (internalEvent->type == SAMPLE_EVENT_BOOKMARK) { setPixmap(EVENT_PIXMAP(":flag")); } else if (strcmp(internalEvent->name, "heading") == 0) { setPixmap(EVENT_PIXMAP(":flag")); + } else if (internalEvent->type == SAMPLE_EVENT_GASCHANGE || internalEvent->type == SAMPLE_EVENT_GASCHANGE2) { + setPixmap(EVENT_PIXMAP_BIGGER(":gaschange")); } else { setPixmap(EVENT_PIXMAP(":warning")); } -- cgit v1.2.3-70-g09d2