| 63 | } |
| 64 | |
| 65 | void 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 | |
| 90 | void WidgetSettingFilesystem::resizeEvent(QResizeEvent* event) { |
| 91 | const QSize parent_size = event->size(); |
no test coverage detected