diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2021-02-19 19:25:53 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2021-03-16 20:40:13 -0400 |
| commit | e43222c3e8da9f42d0d95207fa94335165a27d9d (patch) | |
| tree | e8f64b54dafd7c75f48c95bd7c7e62fed0c904a2 /examples/triage/entropy.cpp | |
| parent | a327eb06173d0aa814460842e5280a6bf1edddf1 (diff) | |
Compatibility with Qt 6
Diffstat (limited to 'examples/triage/entropy.cpp')
| -rw-r--r-- | examples/triage/entropy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/triage/entropy.cpp b/examples/triage/entropy.cpp index 87849dcc..72ca0a92 100644 --- a/examples/triage/entropy.cpp +++ b/examples/triage/entropy.cpp @@ -111,7 +111,7 @@ void EntropyWidget::mousePressEvent(QMouseEvent* event) { if (event->button() != Qt::LeftButton) return; - float frac = (float)event->x() / (float)rect().width(); + float frac = (float)event->pos().x() / (float)rect().width(); uint64_t offset = (uint64_t)(frac * m_width * m_blockSize); m_view->navigateToFileOffset(offset); } |
