Qt/Debugger: Implement "Watch" window

This commit is contained in:
spycrab
2017-09-27 08:53:05 +02:00
parent ec37ce093f
commit 08716be43b
10 changed files with 397 additions and 1 deletions

View File

@ -225,3 +225,18 @@ bool Settings::IsRegistersVisible() const
{
return QSettings().value(QStringLiteral("debugger/showregisters")).toBool();
}
void Settings::SetWatchVisible(bool enabled)
{
if (IsWatchVisible() != enabled)
{
QSettings().setValue(QStringLiteral("debugger/showwatch"), enabled);
emit WatchVisibilityChanged(enabled);
}
}
bool Settings::IsWatchVisible() const
{
return QSettings().value(QStringLiteral("debugger/showwatch")).toBool();
}