From 22cc11da1a9097f79891446f96ca0c99684aa1be Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Sat, 30 May 2020 10:09:51 +0000 Subject: science/pulseview: prepare for Qt5-5.15 --- science/pulseview/files/patch-pv_util.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 science/pulseview/files/patch-pv_util.cpp (limited to 'science/pulseview/files/patch-pv_util.cpp') diff --git a/science/pulseview/files/patch-pv_util.cpp b/science/pulseview/files/patch-pv_util.cpp new file mode 100644 index 000000000000..15d09b7b7b6a --- /dev/null +++ b/science/pulseview/files/patch-pv_util.cpp @@ -0,0 +1,20 @@ +--- pv/util.cpp.orig 2020-05-30 09:57:56 UTC ++++ pv/util.cpp +@@ -137,7 +137,7 @@ QString format_time_si(const Timestamp& v, SIPrefix pr + QString s; + QTextStream ts(&s); + if (sign && !v.is_zero()) +- ts << forcesign; ++ ts << Qt::forcesign; + ts << qSetRealNumberPrecision(precision) << (v * multiplier); + ts << ' ' << prefix << unit; + +@@ -175,7 +175,7 @@ QString format_value_si(double v, SIPrefix prefix, uns + QString s; + QTextStream ts(&s); + if (sign && (v != 0)) +- ts << forcesign; ++ ts << Qt::forcesign; + ts.setRealNumberNotation(QTextStream::FixedNotation); + ts.setRealNumberPrecision(precision); + ts << (v * multiplier) << ' ' << prefix << unit; -- cgit v1.2.3