4#include <QtGui/private/qtguiglobal_p.h>
5#include <QtCore/qpoint.h>
6#include <QtCore/qstring.h>
7#include <QtGui/qpolygon.h>
8#include <QtCore/qstringbuilder.h>
30 inline HexString(
const T t)
34 inline void write(QChar *&dest)
const
36 const char16_t hexChars[] = {
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'a',
'b',
'c',
'd',
'e',
'f' };
37 const char *c =
reinterpret_cast<
const char *>(&val);
38 for (uint i = 0; i <
sizeof(T); ++i) {
39 *dest++ = hexChars[*c & 0xf];
40 *dest++ = hexChars[(*c & 0xf0) >> 4];
49 struct QConcatenable<HexString<T> >
53 static int size(
const HexString<T> &) {
return sizeof(T) * 2; }
54 static inline void appendTo(
const HexString<T> &str, QChar *&out) { str.write(out); }
static int size(const HexString< T > &)
static void appendTo(const HexString< T > &str, QChar *&out)