| 702 | } |
| 703 | |
| 704 | void Container::setTabColor(const View* view, const QColor& color) |
| 705 | { |
| 706 | Q_D(Container); |
| 707 | |
| 708 | for (int i = 0; i < count(); i++){ |
| 709 | if (view == viewForWidget(widget(i))) { |
| 710 | d->tabBar->setTabTextColor(i, color); |
| 711 | } |
| 712 | } |
| 713 | } |
| 714 | |
| 715 | void Container::setTabColors(const QHash<const View*, QColor>& colors) |
| 716 | { |