Move hex string conversions to Util

This commit is contained in:
GriffinR
2025-02-27 13:32:48 -05:00
parent ded9f724dc
commit 6d8b4f21d8
10 changed files with 39 additions and 31 deletions

View File

@@ -5,6 +5,7 @@
#include "selectablepixmapitem.h"
#include "paletteutil.h"
#include "imageproviders.h"
#include "utility.h"
#include <memory>
using std::shared_ptr;
@@ -66,7 +67,7 @@ public:
}
virtual QString info() const {
return QString("Tile: 0x") + QString("%1 ").arg(this->id(), 4, 16, QChar('0')).toUpper();
return QString("Tile: %1 ").arg(Util::toHexString(this->id(), 4));
}
};