#include "EngaugeAssert.h"
#include "EnumsToQt.h"
#include <QHash>
#include <QString>
Go to the source code of this file.
◆ ColorPaletteToQColor()
Definition at line 15 of file EnumsToQt.cpp.
16{
17 if (colorPaletteLookupTable.count() == 0) {
18
19
29 }
30
31 if (colorPaletteLookupTable.contains (color)) {
32
33 return colorPaletteLookupTable [color];
34
35 } else {
36
39
40 }
41}
@ COLOR_PALETTE_TRANSPARENT
const int INNER_RADIUS_MIN
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
◆ EndianToString()
Definition at line 43 of file EnumsToQt.cpp.
44{
45 if (endianLookupTable.count() == 0) {
46
47
48 endianLookupTable [QSysInfo::BigEndian] = "BigEndian";
49 endianLookupTable [QSysInfo::LittleEndian] = "LittleEndian";
50 }
51
52 if (endianLookupTable.contains (
endian)) {
53
54 return endianLookupTable [
endian];
55
56 } else {
57
58 return "<Unknown>";
59
60 }
61}