#include "signal.h"
#include <cfloat>
-#ifdef _MSC_VER
-#define DEGREES_CELSIUS_STRING QString::fromWCharArray(L"\u00B0C")
-#define MICROAMPERES_STRING QString::fromWCharArray(L"\u03BCA")
-#else
-#define DEGREES_CELSIUS_STRING QString::fromUtf8(u8"\u00B0C")
-#define MICROAMPERES_STRING QString::fromUtf8(u8"\u03BCA")
-#endif
+const char Signal::DEGREES_CELSIUS_UTF8[] = {static_cast<char>(0xE2), static_cast<char>(0x84), static_cast<char>(0x83), 0x00};
+const char Signal::MICROAMPERES_UTF8[] = {static_cast<char>(0xC2), static_cast<char>(0xB5), 0x41, 0x00};
const QString Signal::RES_CCD("CCD");
const QString Signal::RES_CURRENT("Current");
const QString Signal::RES_PRESSURE("Pressure");
const QString Signal::RES_TEMPERATURE("Temperature");
const QString Signal::RES_VOLTAGE("Voltage");
-const QString Signal::DEGREES_CELSIUS_SI = DEGREES_CELSIUS_STRING;
+const QString Signal::DEGREES_CELSIUS_SI = QString::fromUtf8(Signal::DEGREES_CELSIUS_UTF8);
const QString Signal::KILOVOTLS_SI("KV");
-const QString Signal::MICROAMPERES_SI = MICROAMPERES_STRING;
+const QString Signal::MICROAMPERES_SI = QString::fromUtf8(Signal::MICROAMPERES_UTF8);
const QString Signal::MILLIAU_SI("mAU");
const QString Signal::MILLIBARS_SI("mbar");
const QString Signal::MILLIVOLTS_SI("mV");
const XUnit m_xunit;
const YUnit m_yunit;
+ static const char DEGREES_CELSIUS_UTF8[];
+ static const char MICROAMPERES_UTF8[];
+
static const QString RES_ABSORBANCE;
static const QString RES_CCD;
static const QString RES_CURRENT;
static const QString MILLIVOLTS_SI;
static const QString WATTS_SI;
+
signals:
public slots: