summaryrefslogtreecommitdiffstats
path: root/helpers.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 04:23:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 04:23:10 -0800
commit995192c5fb6bd890741ef2da873da4befd2120c4 (patch)
treed4b797ecaad613a9a4454aa17efb65c405859e83 /helpers.h
parent8aadd4d3726bda224d5215bb810e3e37dff53b28 (diff)
downloadsubsurface-995192c5fb6bd890741ef2da873da4befd2120c4.tar.gz
Work around QMessageBox not showing its title on Mac
This is a bit hacky and simply adds the title to the message text when compiling on a Mac, but hopefully this will be enough. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/helpers.h b/helpers.h
index fb0bbd78b..067ec386a 100644
--- a/helpers.h
+++ b/helpers.h
@@ -35,4 +35,9 @@ QString get_trip_date_string(timestamp_t when, int nr);
extern DiveComputerList dcList;
+#if defined __APPLE__
+#define TITLE_OR_TEXT(_t,_m) "", _t + "\n" + _m
+#else
+#define TITLE_OR_TEXT(_t,_m) _t, _m
+#endif
#endif /* HELPER_H */