all repos — mgba @ e31373560535203d826687044290a4994706c2dd

mGBA Game Boy Advance Emulator

Qt: Fix build with Qt 5.10

Fixes "MemoryModel.cpp:102:15: error: no viable overloaded '='"
ilovezfs ilovezfs@icloud.com
Mon, 11 Dec 2017 00:39:32 -0800
commit

e31373560535203d826687044290a4994706c2dd

parent

db408920ca40417bb1826b82738aefeed06b4814

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/MemoryModel.cppsrc/platform/qt/MemoryModel.cpp

@@ -99,7 +99,7 @@ void MemoryModel::setRegion(uint32_t base, uint32_t size, const QString& name, int segment) {

m_top = 0; m_base = base; m_size = size; - m_regionName = name; + m_regionName = QStaticText(name); m_regionName.prepare(QTransform(), m_font); m_currentBank = segment; verticalScrollBar()->setRange(0, (size >> 4) + 1 - viewport()->size().height() / m_cellHeight);