From 21cb382c2a09405d9ca85e4193582bfd8ae00731 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 3 Jul 2018 08:23:05 +0200 Subject: cleanup --- filter-kalman/kalman.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'filter-kalman') 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 #include +#include 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"); -- cgit v1.2.3