all repos — mgba @ e51d3e105ffedc5c983165fc7ae24ebda8786148

mGBA Game Boy Advance Emulator

Qt: Fix scrollbar arrows in memory view (fixes #1558)
Vicki Pfau vi@endrift.com
Thu, 05 Dec 2019 16:19:54 -0800
commit

e51d3e105ffedc5c983165fc7ae24ebda8786148

parent

c300da9be6e85928dc6068aaadc3f9275e476418

2 files changed, 14 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -97,6 +97,7 @@ - 3DS: Fix screen darkening (fixes mgba.io/i/1562)

- Core: Fix uninitialized memory issues with graphics caches - Vita: Fix analog controls (fixes mgba.io/i/1554) - Qt: Fix fast forward mute being reset (fixes mgba.io/i/1574) + - Qt: Fix scrollbar arrows in memory view (fixes mgba.io/i/1558) Misc: - GB Memory: Support manual SRAM editing (fixes mgba.io/i/1580)
M src/platform/qt/MemoryModel.cppsrc/platform/qt/MemoryModel.cpp

@@ -88,6 +88,19 @@ m_top = position;

update(); }); + connect(verticalScrollBar(), &QSlider::actionTriggered, [this](int action) { + if (action == QSlider::SliderSingleStepAdd) { + ++m_top; + } else if (action == QSlider::SliderSingleStepSub) { + --m_top; + } else { + return; + } + boundsCheck(); + verticalScrollBar()->setValue(m_top); + update(); + }); + setRegion(0, 0x10000000, tr("All")); }