From cd30562222f4889a208c90dc219e64469ddc4191 Mon Sep 17 00:00:00 2001 From: morsisko Date: Sun, 18 Jul 2021 20:32:37 +0200 Subject: [PATCH] GUI: Added function that allows conversion to dword string --- src/gui/Src/Utils/StringUtil.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/Src/Utils/StringUtil.h b/src/gui/Src/Utils/StringUtil.h index 6de13e0e..c89765ba 100644 --- a/src/gui/Src/Utils/StringUtil.h +++ b/src/gui/Src/Utils/StringUtil.h @@ -70,6 +70,13 @@ inline QString ToWordString(unsigned short Value) return QString(temp); } +inline QString ToDwordString(unsigned int Value) +{ + char temp[16]; + sprintf_s(temp, "%08X", Value); + return QString(temp); +} + template inline QString ToFloatingString(const void* buffer, int precision) {