Fix root class rename targeting wrong struct when using type selector

RootClassName and RootClassType edit handlers now use m_viewRootId
instead of blindly picking the first root struct. Default name for
unnamed structs changed from <no name> to NoName. Dim the opening
brace on the command row to match the rest of the bar's grey text.
This commit is contained in:
IChooseYou
2026-02-10 08:06:43 -07:00
committed by sysadmin
parent 24a7e68136
commit df566064ba
3 changed files with 41 additions and 17 deletions

View File

@@ -496,7 +496,7 @@ ComposeResult compose(const NodeTree& tree, const Provider& prov, uint64_t viewR
}
// Emit CommandRow as line 0 (combined: source + address + root class type + name)
const QString cmdRowText = QStringLiteral("[\u25B8] source\u25BE \u00B7 0x0 \u00B7 struct\u25BE <no class> {");
const QString cmdRowText = QStringLiteral("[\u25B8] source\u25BE \u00B7 0x0 \u00B7 struct\u25BE NoName {");
{
LineMeta lm;
lm.nodeIdx = -1;