Qt: Fix build with Qt 5.10

Fixes "MemoryModel.cpp:102:15: error: no viable overloaded '='"
This commit is contained in:
ilovezfs 2017-12-11 00:39:32 -08:00 committed by Vicki Pfau
parent 3f921e8f2c
commit d8ef04c6ab
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ void MemoryModel::setRegion(uint32_t base, uint32_t size, const QString& name, i
m_top = 0; m_top = 0;
m_base = base; m_base = base;
m_size = size; m_size = size;
m_regionName = name; m_regionName = QStaticText(name);
m_regionName.prepare(QTransform(), m_font); m_regionName.prepare(QTransform(), m_font);
m_currentBank = segment; m_currentBank = segment;
verticalScrollBar()->setRange(0, (size >> 4) + 1 - viewport()->size().height() / m_cellHeight); verticalScrollBar()->setRange(0, (size >> 4) + 1 - viewport()->size().height() / m_cellHeight);