| 559 | } |
| 560 | |
| 561 | void 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 | } |