MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / populateThreadPriorityList

Function populateThreadPriorityList

lib/general.cpp:895–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

893}
894
895static void populateThreadPriorityList(QComboBox *list)
896{
897 for (int i = 0; i < (int)switcher->threadPriorities.size(); ++i) {
898 list->addItem(switcher->threadPriorities[i].name.c_str());
899 list->setItemData(
900 i, switcher->threadPriorities[i].description.c_str(),
901 Qt::ToolTipRole);
902 if (switcher->threadPriority ==
903 switcher->threadPriorities[i].value) {
904 list->setCurrentText(
905 switcher->threadPriorities[i].name.c_str());
906 }
907 }
908}
909
910static bool isGeneralTab(const QString &name)
911{

Callers 1

SetupGeneralTabMethod · 0.85

Calls 3

sizeMethod · 0.80
setCurrentTextMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected