mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
Remove command row leading spaces, add right-click menu in empty area
- Command row text is now flush-left (no 3-space fold prefix) - Right-clicking empty area below nodes shows a limited context menu with "Append 128 bytes" (inserts 16 Hex64 fields at root level) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -38,9 +38,10 @@ struct ComposeState {
|
||||
void emitLine(const QString& lineText, LineMeta lm) {
|
||||
if (currentLine > 0) text += '\n';
|
||||
// 3-char fold indicator column: " - " expanded, " + " collapsed, " " other
|
||||
if (lm.lineKind == LineKind::CommandRow)
|
||||
text += QStringLiteral(" ");
|
||||
else if (lm.foldHead)
|
||||
// CommandRow has no fold prefix (flush left)
|
||||
if (lm.lineKind == LineKind::CommandRow) {
|
||||
// no prefix
|
||||
} else if (lm.foldHead)
|
||||
text += lm.foldCollapsed ? QStringLiteral(" + ") : QStringLiteral(" - ");
|
||||
else
|
||||
text += QStringLiteral(" ");
|
||||
|
||||
Reference in New Issue
Block a user