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

Method Refresh

vkconfig_gui/widget_setting_filesystem.cpp:65–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void WidgetSettingFilesystem::Refresh(RefreshAreas refresh_areas) {
66 const SettingDependenceMode enabled = ::CheckDependence(this->meta, data_set);
67
68 this->item->setHidden(enabled == SETTING_DEPENDENCE_HIDE);
69 this->item->setDisabled(enabled != SETTING_DEPENDENCE_ENABLE);
70 this->item_child->setDisabled(enabled != SETTING_DEPENDENCE_ENABLE);
71 this->setEnabled(enabled == SETTING_DEPENDENCE_ENABLE);
72 this->field->setEnabled(enabled == SETTING_DEPENDENCE_ENABLE);
73 this->button->setEnabled(enabled == SETTING_DEPENDENCE_ENABLE);
74
75 if (refresh_areas == REFRESH_ENABLE_AND_STATE) {
76 LoadPath(this->data().GetValue());
77
78 this->field->blockSignals(true);
79 this->field->setText(this->data().GetValue().RelativePath().c_str());
80 this->field->setToolTip(this->data().GetValue().AbsolutePath().c_str());
81
82 if (::CheckSettingOverridden(this->meta)) {
83 this->DisplayOverride(this->field, this->meta);
84 }
85
86 this->field->blockSignals(false);
87 }
88}
89
90void WidgetSettingFilesystem::resizeEvent(QResizeEvent* event) {
91 const QSize parent_size = event->size();

Callers 1

Calls 6

CheckDependenceFunction · 0.85
CheckSettingOverriddenFunction · 0.85
GetValueMethod · 0.80
RelativePathMethod · 0.80
AbsolutePathMethod · 0.80
DisplayOverrideMethod · 0.80

Tested by

no test coverage detected