From 8facdc62fd5a5a81c01a31c8df5d8a4bb3fbcdca Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Sat, 6 Feb 2016 16:27:52 +1100 Subject: profile-widget: use smaller event icons on Subsurface-mobile Smaller event icons fit the mobile display much nicer Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- profile-widget/diveeventitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'profile-widget') 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) -- cgit v1.2.3-70-g09d2