| 110 | } |
| 111 | |
| 112 | void PanelProperties::notifyAction(std::string_view _name, std::string_view _value, bool _final) |
| 113 | { |
| 114 | WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(mCurrentWidget); |
| 115 | |
| 116 | EditorWidgets::getInstance().tryToApplyProperty(widgetContainer->getWidget(), _name, _value); |
| 117 | |
| 118 | if (_final) |
| 119 | { |
| 120 | if (_value.empty()) |
| 121 | widgetContainer->clearProperty(_name); |
| 122 | else |
| 123 | widgetContainer->setProperty(_name, _value); |
| 124 | |
| 125 | UndoManager::getInstance().addValue(PR_PROPERTIES); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | void PanelProperties::hidePropertyFields() |
| 130 | { |
nothing calls this directly
no test coverage detected