mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
Widen value column to 96 chars, remove Mat4x4 truncation
kColValue 32 -> 96 to prevent float truncation with ellipsis. Mat4x4 rows bypass fit() entirely so long matrix rows display fully. Updated test expectations to use kColValue instead of hardcoded 32.
This commit is contained in:
@@ -507,7 +507,7 @@ enum class EditTarget { Name, Type, Value, BaseAddress, Source, ArrayIndex, Arra
|
||||
inline constexpr int kFoldCol = 3; // 3-char fold indicator prefix per line
|
||||
inline constexpr int kColType = 14; // Max type column width (fits "uint64_t[999]")
|
||||
inline constexpr int kColName = 22;
|
||||
inline constexpr int kColValue = 32;
|
||||
inline constexpr int kColValue = 96;
|
||||
inline constexpr int kColComment = 28; // "// Enter=Save Esc=Cancel" fits
|
||||
inline constexpr int kColBaseAddr = 12; // "0x" + up to 10 hex digits (40-bit address)
|
||||
inline constexpr int kSepWidth = 1;
|
||||
|
||||
@@ -337,9 +337,9 @@ QString fmtNodeLine(const Node& node, const Provider& prov,
|
||||
QString cmtSuffix = comment.isEmpty() ? QString()
|
||||
: fit(comment, COL_COMMENT);
|
||||
|
||||
// Mat4x4: subLine 0..3 = rows
|
||||
// Mat4x4: subLine 0..3 = rows — no truncation so large floats always display fully
|
||||
if (node.kind == NodeKind::Mat4x4) {
|
||||
QString val = fit(readValue(node, prov, addr, subLine), COL_VALUE);
|
||||
QString val = readValue(node, prov, addr, subLine);
|
||||
if (subLine == 0) return ind + type + SEP + name + SEP + val + cmtSuffix;
|
||||
return ind + QString(prefixW, ' ') + val + cmtSuffix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user