Merge pull request #6473 from spycrab/qt_dbg_memory

Qt/Debugger: Implement "Memory" widget
This commit is contained in:
Léo Lam 2018-04-04 16:58:04 +02:00 committed by GitHub
commit 9be505fde2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 1195 additions and 1 deletions

View file

@ -305,6 +305,20 @@ bool Settings::IsCodeVisible() const
return GetQSettings().value(QStringLiteral("debugger/showcode")).toBool();
}
void Settings::SetMemoryVisible(bool enabled)
{
if (IsMemoryVisible() == enabled)
return;
QSettings().setValue(QStringLiteral("debugger/showmemory"), enabled);
emit MemoryVisibilityChanged(enabled);
}
bool Settings::IsMemoryVisible() const
{
return QSettings().value(QStringLiteral("debugger/showmemory")).toBool();
}
void Settings::SetDebugFont(QFont font)
{
if (GetDebugFont() != font)