| 250 | } |
| 251 | |
| 252 | void renameInDocumentListMenu(View* view) |
| 253 | { |
| 254 | Q_ASSERT(view); |
| 255 | |
| 256 | auto* const action = documentListActionForView.value(view); |
| 257 | Q_ASSERT(action); |
| 258 | // Here and in Container::removeWidget() we don't consider removing the containing directory name |
| 259 | // from the text of former neighbor actions of the [re]moved action, because if |
| 260 | // multiple recently open documents shared a file name, it still deserves disambiguation. |
| 261 | documentListMenu->removeAction(action); |
| 262 | insertIntoDocumentListMenu(view, action); |
| 263 | } |
| 264 | |
| 265 | void setAsDockMenu() |
| 266 | { |
no test coverage detected