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

Method statusIconChanged

kdevplatform/sublime/container.cpp:510–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510void Container::statusIconChanged(Document* doc)
511{
512 Q_D(Container);
513
514 QHashIterator<QWidget*, View*> it = d->viewForWidget;
515 while (it.hasNext()) {
516 if (it.next().value()->document() == doc) {
517 d->fileStatus->setPixmap( doc->statusIcon().pixmap( QSize( 16,16 ) ) );
518 int tabIndex = d->stack->indexOf(it.key());
519 if (tabIndex != -1) {
520 d->tabBar->setTabIcon(tabIndex, doc->statusIcon());
521 }
522
523 // Update the document title's menu associated action
524 // using the View* index map
525 auto* const action = d->documentListActionForView.value(it.value());
526 Q_ASSERT(action);
527 action->setIcon(doc->icon());
528 break;
529 }
530 }
531}
532
533void Container::documentTitleChanged(Sublime::Document* doc)
534{

Callers

nothing calls this directly

Calls 10

pixmapMethod · 0.80
statusIconMethod · 0.80
setIconMethod · 0.80
hasNextMethod · 0.45
documentMethod · 0.45
valueMethod · 0.45
nextMethod · 0.45
indexOfMethod · 0.45
keyMethod · 0.45
iconMethod · 0.45

Tested by

no test coverage detected