mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
fix: insert above node, clear value history cooldown, search context menu
- Insert 4/8 now inserts above the right-clicked node and shifts siblings down instead of appending at end. Insert key shortcut (Shift+Ins = 4, Ins = 8). Falls back to append when clicking empty space. - Clear Value History uses a 5-cycle cooldown counter so heat stays gone for ~1s instead of returning on the next async refresh. - Right-click Search defers showFindBar via QTimer::singleShot so focus isn't stolen by the closing context menu.
This commit is contained in:
@@ -1471,7 +1471,12 @@ void RcxEditor::applyHeatmapHighlight(const QVector<LineMeta>& meta) {
|
||||
int typeW = lm.effectiveTypeW;
|
||||
int nameW = lm.effectiveNameW;
|
||||
|
||||
if (heat <= 0) continue;
|
||||
if (heat <= 0) {
|
||||
// Clear any stale heat indicators from a previous frame
|
||||
for (int hi : heatIndicators)
|
||||
clearIndicatorLine(hi, i);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Pick the right indicator for this heat level (1→cold, 2→warm, 3→hot)
|
||||
int activeInd = heatIndicators[qBound(0, heat - 1, 2)];
|
||||
@@ -2242,6 +2247,12 @@ bool RcxEditor::handleNormalKey(QKeyEvent* ke) {
|
||||
case Qt::Key_Return:
|
||||
case Qt::Key_Enter:
|
||||
return beginInlineEdit(EditTarget::Value);
|
||||
case Qt::Key_Insert:
|
||||
if (ke->modifiers() & Qt::ShiftModifier)
|
||||
emit insertAboveRequested(currentNodeIndex(), NodeKind::Hex32);
|
||||
else
|
||||
emit insertAboveRequested(currentNodeIndex(), NodeKind::Hex64);
|
||||
return true;
|
||||
case Qt::Key_Tab: {
|
||||
EditTarget order[] = {EditTarget::Name, EditTarget::Type, EditTarget::Value,
|
||||
EditTarget::ArrayElementType, EditTarget::ArrayElementCount,
|
||||
|
||||
Reference in New Issue
Block a user