diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp index 083c8b5b8..1986015f7 100644 --- a/profile-widget/diveeventitem.cpp +++ b/profile-widget/diveeventitem.cpp @@ -63,7 +63,11 @@ void DiveEventItem::setEvent(struct event *ev) void DiveEventItem::setupPixmap() { const IconMetrics& metrics = defaultIconMetrics(); +#ifndef SUBSURFACE_MOBILE int sz_bigger = metrics.sz_med + metrics.sz_small; // ex 40px +#else + int sz_bigger = metrics.sz_med; +#endif int sz_pix = sz_bigger/2; // ex 20px #define EVENT_PIXMAP(PIX) QPixmap(QString(PIX)).scaled(sz_pix, sz_pix, Qt::KeepAspectRatio, Qt::SmoothTransformation)