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

Method setTabBarHidden

kdevplatform/sublime/container.cpp:656–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void Container::setTabBarHidden(bool hide)
657{
658 Q_D(Container);
659
660 if (hide)
661 {
662 d->tabBar->hide();
663 d->fileStatus->show();
664 d->shortCutHelpLeftSpacerItem->changeSize(style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing), 0,
665 QSizePolicy::Fixed, QSizePolicy::Fixed);
666 d->shortcutHelpLabel->show();
667 d->shortCutHelpRightSpacerItem->changeSize(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
668 d->fileNameCorner->show();
669 }
670 else
671 {
672 d->fileNameCorner->hide();
673 d->fileStatus->hide();
674 d->tabBar->show();
675 d->shortCutHelpLeftSpacerItem->changeSize(0, 0, QSizePolicy::Fixed, QSizePolicy::Fixed);
676 d->shortcutHelpLabel->hide();
677 d->shortCutHelpRightSpacerItem->changeSize(0, 0, QSizePolicy::Fixed, QSizePolicy::Fixed);
678 }
679 // have spacer item changes taken into account
680 d->layout->invalidate();
681
682 View* v = currentView();
683 if (v) {
684 documentTitleChanged(v->document());
685 }
686}
687
688void Container::setCloseButtonsOnTabs(bool show)
689{

Callers 1

loadUiPreferencesMethod · 0.80

Calls 3

showMethod · 0.80
invalidateMethod · 0.80
documentMethod · 0.45

Tested by

no test coverage detected