| 172 | } |
| 173 | |
| 174 | void PropertyFieldPosition::notifyToggleRelativeMode() |
| 175 | { |
| 176 | WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(mCurrentWidget); |
| 177 | // если нет контейнера, занчит мы не в режиме редактирования |
| 178 | if (widgetContainer == nullptr) |
| 179 | return; |
| 180 | |
| 181 | widgetContainer->setRelativeMode(!widgetContainer->getRelativeMode()); |
| 182 | |
| 183 | updateButton(); |
| 184 | updatePositionCaption(); |
| 185 | |
| 186 | UndoManager::getInstance().addValue(PR_PROPERTIES); |
| 187 | } |
| 188 | |
| 189 | void PropertyFieldPosition::updateButton() |
| 190 | { |
nothing calls this directly
no test coverage detected