mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
Fix 13 logic bugs and UI issues across editor, controller, and core
Round 1: Fix updateCommandRow offset, structTypeName undo, changeNodeKind macro, shift-click kCommandRowId leak, type filter byte-vs-column bug. Round 2: Move kFooterIdBit to core.h, add RcxEditor destructor for cursor cleanup, defer refresh during batch ops, use newline separator in type picker, narrow selection on double-click edit, clear hover on keyboard scroll, guard 0x prefix from deletion, cap array count at 100k.
This commit is contained in:
@@ -13,6 +13,7 @@ class RcxEditor : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit RcxEditor(QWidget* parent = nullptr);
|
||||
~RcxEditor() override;
|
||||
|
||||
void applyDocument(const ComposeResult& result);
|
||||
|
||||
@@ -71,7 +72,7 @@ private:
|
||||
uint64_t m_hoveredNodeId = 0;
|
||||
int m_hoveredLine = -1;
|
||||
QSet<uint64_t> m_currentSelIds;
|
||||
int m_hoverSpanLine = -1; // Line with hover span indicator
|
||||
QVector<int> m_hoverSpanLines; // Lines with hover span indicators
|
||||
// ── Drag selection ──
|
||||
bool m_dragging = false;
|
||||
bool m_dragStarted = false; // true once drag threshold exceeded
|
||||
@@ -134,6 +135,9 @@ private:
|
||||
void showSourcePicker();
|
||||
void showTypeListFiltered(const QString& filter);
|
||||
void updateTypeListFilter();
|
||||
void showPointerTargetPicker();
|
||||
void showPointerTargetListFiltered(const QString& filter);
|
||||
void updatePointerTargetFilter();
|
||||
void paintEditableSpans(int line);
|
||||
void updateEditableIndicators(int line);
|
||||
void applyHoverCursor();
|
||||
|
||||
Reference in New Issue
Block a user