summaryrefslogtreecommitdiffhomepage
path: root/filter-kalman
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-03 08:23:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-03 08:23:05 +0200
commit21cb382c2a09405d9ca85e4193582bfd8ae00731 (patch)
tree619de8e112630d4058844086d9c437e5e81f21be /filter-kalman
parent269b9331888fbf371e2ca1370e80afec79323bbd (diff)
cleanup
Diffstat (limited to 'filter-kalman')
-rw-r--r--filter-kalman/kalman.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/filter-kalman/kalman.cpp b/filter-kalman/kalman.cpp
index c70093bb..83898853 100644
--- a/filter-kalman/kalman.cpp
+++ b/filter-kalman/kalman.cpp
@@ -5,8 +5,8 @@
* copyright notice and this permission notice appear in all copies.
*/
#include "kalman.h"
-#include <QDebug>
#include <cmath>
+#include <QDebug>
void KalmanFilter::init()
{
@@ -270,12 +270,8 @@ dialog_kalman::dialog_kalman()
void dialog_kalman::updateLabels(const slider_value&)
{
- // M$ hates unicode! (M$ autoconverts source code of one kind of utf-8 format,
- // the one without BOM, to another kind that QT does not like)
- // Previous attempt to use c++11 utf8 strings like u8" °" now failed for unknown
- // reasons where it worked before. Hence fallback to QChar(0x00b0).
this->ui.noiseRotLabel->setText(
- QString::number(settings::map_slider_value(s.noise_rot_slider_value), 'f', 3) + " " + QChar(0x00b0));
+ QString::number(settings::map_slider_value(s.noise_rot_slider_value), 'f', 3) + "°");
this->ui.noisePosLabel->setText(
QString::number(settings::map_slider_value(s.noise_pos_slider_value), 'f', 3) + " cm");