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

Method setTabColors

kdevplatform/sublime/container.cpp:715–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713}
714
715void Container::setTabColors(const QHash<const View*, QColor>& colors)
716{
717 Q_D(Container);
718
719 for (int i = 0; i < count(); i++) {
720 auto view = viewForWidget(widget(i));
721 auto color = colors[view];
722 if (color.isValid()) {
723 d->tabBar->setTabTextColor(i, color);
724 }
725 }
726}
727
728void Container::tabMoved(int from, int to)
729{

Callers 1

updateAllTabColorsMethod · 0.80

Calls 2

countFunction · 0.50
isValidMethod · 0.45

Tested by

no test coverage detected