From 83f155855bd18475766e35a5703c7c6ae45b4904 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 12 May 2017 15:26:47 +0100 Subject: [PATCH] Hex formatted numbers are always uppercase --- qrenderdoc/Code/QRDUtils.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qrenderdoc/Code/QRDUtils.h b/qrenderdoc/Code/QRDUtils.h index 3429913a3..514085999 100644 --- a/qrenderdoc/Code/QRDUtils.h +++ b/qrenderdoc/Code/QRDUtils.h @@ -629,19 +629,19 @@ struct Formatter static QString Format(double f, bool hex = false); static QString Format(uint64_t u, bool hex = false) { - return QFormatStr("%1").arg(u, hex ? 16 : 0, hex ? 16 : 10, QLatin1Char('0')); + return QFormatStr("%1").arg(u, hex ? 16 : 0, hex ? 16 : 10, QLatin1Char('0')).toUpper(); } static QString Format(uint32_t u, bool hex = false) { - return QFormatStr("%1").arg(u, hex ? 8 : 0, hex ? 16 : 10, QLatin1Char('0')); + return QFormatStr("%1").arg(u, hex ? 8 : 0, hex ? 16 : 10, QLatin1Char('0')).toUpper(); } static QString Format(uint16_t u, bool hex = false) { - return QFormatStr("%1").arg(u, hex ? 4 : 0, hex ? 16 : 10, QLatin1Char('0')); + return QFormatStr("%1").arg(u, hex ? 4 : 0, hex ? 16 : 10, QLatin1Char('0')).toUpper(); } static QString Format(uint8_t u, bool hex = false) { - return QFormatStr("%1").arg(u, hex ? 2 : 0, hex ? 16 : 10, QLatin1Char('0')); + return QFormatStr("%1").arg(u, hex ? 2 : 0, hex ? 16 : 10, QLatin1Char('0')).toUpper(); } static QString HexFormat(uint32_t u, uint32_t byteSize) {