Qt/Debugger: Implement "Registers" window

This commit is contained in:
spycrab
2017-09-13 19:33:45 +02:00
parent 2a19ccf806
commit ec37ce093f
12 changed files with 633 additions and 2 deletions

View File

@ -210,3 +210,18 @@ bool Settings::IsDebugModeEnabled() const
{
return SConfig::GetInstance().bEnableDebugging;
}
void Settings::SetRegistersVisible(bool enabled)
{
if (IsRegistersVisible() != enabled)
{
QSettings().setValue(QStringLiteral("debugger/showregisters"), enabled);
emit RegistersVisibilityChanged(enabled);
}
}
bool Settings::IsRegistersVisible() const
{
return QSettings().value(QStringLiteral("debugger/showregisters")).toBool();
}