This commit is contained in:
2022-05-03 18:57:01 +03:00
parent d34a7cc38f
commit 1a8b442aaa
7 changed files with 37 additions and 1 deletions

View File

@@ -25,7 +25,11 @@ ThreadsModel::ThreadsModel() {
PICodeInfo::EnumInfo * ei = PICodeInfo::enumsInfo->value("PIIntrospectionThreads::ThreadState");
if (ei) {
piForeachC (PICodeInfo::EnumeratorInfo & e, ei->members) {
#if PIP_VERSION >= PIP_MAKE_VERSION(2,39,0)
state_names[e.value] = PI2QString(e.name.mid(1).toString());
#else
state_names[e.value] = PI2QString(e.name.mid(1));
#endif
}
}
state_colors[PIIntrospectionThreads::sStopped] = QColor(Qt::red).lighter(150);