MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / RefreshItem

Method RefreshItem

vkconfig_gui/settings_tree.cpp:561–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void SettingsTreeManager::RefreshItem(RefreshAreas refresh_areas, QTreeWidgetItem *parent) {
562 QWidget *widget = this->ui->configurations_settings->itemWidget(parent, 0);
563 if (widget != nullptr) {
564 WidgetSettingBase *widget_base = dynamic_cast<WidgetSettingBase *>(widget);
565 if (widget_base != nullptr) {
566 widget_base->Refresh(refresh_areas);
567 }
568 }
569
570 for (int i = 0, n = parent->childCount(); i < n; ++i) {
571 QTreeWidgetItem *child = parent->child(i);
572 if (child == nullptr) {
573 continue;
574 }
575
576 this->RefreshItem(refresh_areas, child);
577 }
578}

Callers 1

RefreshMethod · 0.95

Calls 1

RefreshMethod · 0.45

Tested by

no test coverage detected