Debugger: Add a Thread widget

DebugInterface: Add GetThreads

WatchWidget: Update widget on AddWatch
This commit is contained in:
Sepalani
2020-03-21 11:48:49 +04:00
parent 9ffa72ad1f
commit 39d34e133f
24 changed files with 1090 additions and 12 deletions

View File

@ -364,6 +364,20 @@ void Settings::SetRegistersVisible(bool enabled)
}
}
bool Settings::IsThreadsVisible() const
{
return GetQSettings().value(QStringLiteral("debugger/showthreads")).toBool();
}
void Settings::SetThreadsVisible(bool enabled)
{
if (IsThreadsVisible() == enabled)
return;
GetQSettings().setValue(QStringLiteral("debugger/showthreads"), enabled);
emit ThreadsVisibilityChanged(enabled);
}
bool Settings::IsRegistersVisible() const
{
return GetQSettings().value(QStringLiteral("debugger/showregisters")).toBool();