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

Method shortcutsChanged

kdevplatform/shell/mainwindow.cpp:327–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327void MainWindow::shortcutsChanged()
328{
329 KTextEditor::View *activeClient = Core::self()->documentController()->activeTextDocumentView();
330 if(!activeClient)
331 return;
332
333 const auto documents = Core::self()->documentController()->openDocuments();
334 for (IDocument* doc : documents) {
335 KTextEditor::Document *textDocument = doc->textDocument();
336 if (textDocument) {
337 const auto views = textDocument->views();
338 for (KTextEditor::View* client : views) {
339 if (client != activeClient) {
340 client->reloadXML();
341 }
342 }
343 }
344 }
345}
346
347
348void MainWindow::initialize()

Callers

nothing calls this directly

Calls 5

documentControllerMethod · 0.80
openDocumentsMethod · 0.80
textDocumentMethod · 0.45
viewsMethod · 0.45

Tested by

no test coverage detected