dspdfviewer failed to build on two Ubuntu xenial architectures, powerpc and s390x.
The mismatching numbers (printed in decimal in the logs) are 0xFF88FF88 vs 0x88FF88FF and 0xFF701EC1 vs 0xC11E70FF which suggests an endian-issue.
This PR first helps by printing colors in html-ish hex format #rrggbb and comparing the QColor objects instead of the possibly endian-dependent QRgb (typedef for some int) instances.
dspdfviewer failed to build on two Ubuntu xenial architectures, powerpc and s390x.
The mismatching numbers (printed in decimal in the logs) are
0xFF88FF88
vs0x88FF88FF
and0xFF701EC1
vs0xC11E70FF
which suggests an endian-issue.This PR first helps by printing colors in html-ish hex format
#rrggbb
and comparing the QColor objects instead of the possibly endian-dependent QRgb (typedef for some int) instances.