Qt: Fix scrollbar arrows in memory view (fixes #1558)
Vicki Pfau vi@endrift.com
Thu, 05 Dec 2019 16:19:54 -0800
2 files changed,
14 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.cpp
→
src/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")); }