mirror of https://github.com/WerWolv/ImHex.git
patterns: Display actual type name of types declared with `using`
This commit is contained in:
parent
949a26ca0e
commit
559b86efe1
|
@ -256,7 +256,7 @@ namespace hex::pl {
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::TextFormatted("0x{0:04X}", this->getSize());
|
ImGui::TextFormatted("0x{0:04X}", this->getSize());
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::TextFormattedColored(ImColor(0xFF9BC64D), "{}", this->getFormattedName());
|
ImGui::TextFormattedColored(ImColor(0xFF9BC64D), "{}", this->getTypeName().empty() ? this->getFormattedName() : this->getTypeName());
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::TextFormatted("{}", formatDisplayValue(value, std::move(literal)));
|
ImGui::TextFormatted("{}", formatDisplayValue(value, std::move(literal)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ namespace hex::pl {
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] std::string getFormattedName() const override {
|
[[nodiscard]] std::string getFormattedName() const override {
|
||||||
std::string result = this->m_pointedAt->getFormattedName() + "* : ";
|
std::string result = this->getTypeName().empty() ? this->getFormattedName() : this->getTypeName() + "* : ";
|
||||||
switch (this->getSize()) {
|
switch (this->getSize()) {
|
||||||
case 1:
|
case 1:
|
||||||
result += "u8";
|
result += "u8";
|
||||||
|
|
Loading…
Reference in New Issue