From b0ab79a709a1100b1ecd3cabffac713786b9e81c Mon Sep 17 00:00:00 2001 From: Andrei Cherniaev <27889022+AndreiCherniaev@users.noreply.github.com> Date: Fri, 3 Jul 2026 23:45:53 +0900 Subject: [PATCH] Public current screen address area --- src/qhexedit.cpp | 10 ++++++++++ src/qhexedit.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/qhexedit.cpp b/src/qhexedit.cpp index 9736579..7d79ada 100644 --- a/src/qhexedit.cpp +++ b/src/qhexedit.cpp @@ -1212,3 +1212,13 @@ void QHexEdit::updateCursor() _blink = true; viewport()->update(_cursorRect); } + +qint64 QHexEdit::bPosLast() const +{ + return _bPosLast; +} + +qint64 QHexEdit::bPosFirst() const +{ + return _bPosFirst; +} diff --git a/src/qhexedit.h b/src/qhexedit.h index 94d4cd7..1f56e6c 100644 --- a/src/qhexedit.h +++ b/src/qhexedit.h @@ -361,6 +361,9 @@ public slots: bool isReadOnly() const; void setReadOnly(bool readOnly); + qint64 bPosFirst() const; + qint64 bPosLast() const; + protected: // Handle events bool event(QEvent *event);