diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2016-02-06 16:27:52 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-05 22:02:24 -0800 |
commit | 8facdc62fd5a5a81c01a31c8df5d8a4bb3fbcdca (patch) | |
tree | 3d6a63b34b9e1d428f5633cbbfb987c39b1c37a3 | |
parent | 130f4cd7ac5b27f5d8243b5c238a66c86f2604ba (diff) | |
download | subsurface-8facdc62fd5a5a81c01a31c8df5d8a4bb3fbcdca.tar.gz |
profile-widget: use smaller event icons on Subsurface-mobile
Smaller event icons fit the mobile display much nicer
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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 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) |