MCPcopy Create free account
hub / github.com/KDE/kdevelop / renameInDocumentListMenu

Method renameInDocumentListMenu

kdevplatform/sublime/container.cpp:252–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

documentTitleChangedMethod · 0.80

Calls 2

removeActionMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected