MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / setCategoryVisibility

Method setCategoryVisibility

src/plugins/reversedebug/taskwindow.cpp:588–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588void TaskWindow::setCategoryVisibility(const QString &categoryId, bool visible)
589{
590 if (categoryId.isEmpty())
591 return;
592
593 QList<QString> categories = d->filter->filteredCategories();
594
595 if (visible)
596 categories.removeOne(categoryId);
597 else
598 categories.append(categoryId);
599
600 d->filter->setFilteredCategories(categories);
601 d->timeline->setFilteredCategories(categories);
602}
603
604void TaskWindow::currentChanged(const QModelIndex &index)
605{

Callers

nothing calls this directly

Calls 4

filteredCategoriesMethod · 0.80
isEmptyMethod · 0.45
appendMethod · 0.45
setFilteredCategoriesMethod · 0.45

Tested by

no test coverage detected