summaryrefslogtreecommitdiff
path: root/widgets/astro.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/astro.cpp')
-rw-r--r--widgets/astro.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/astro.cpp b/widgets/astro.cpp
index 8c083a89..122b86ef 100644
--- a/widgets/astro.cpp
+++ b/widgets/astro.cpp
@@ -131,7 +131,11 @@ auto Astro::astroUpdate(QDateTime const& t, QString const& mygrid, QString const
QTextStream out {&message};
out << " " << date << "\n"
"UTC: " << utc << "\n"
+#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
+ << Qt::fixed
+#else
<< fixed
+#endif
<< qSetFieldWidth (6)
<< qSetRealNumberPrecision (1)
<< "Az: " << azmoon << "\n"