diff --git a/src/lib/tabwidget/combotabbar.cpp b/src/lib/tabwidget/combotabbar.cpp index 8ab804c75..b30b0cc1b 100644 --- a/src/lib/tabwidget/combotabbar.cpp +++ b/src/lib/tabwidget/combotabbar.cpp @@ -636,6 +636,7 @@ void ComboTabBar::paintEvent(QPaintEvent* ev) { QWidget::paintEvent(ev); +#ifndef Q_OS_MAC // Draw tabbar base even on parts of ComboTabBar that are not directly QTabBar QPainter p(this); QStyleOptionTabBarBaseV2 opt; @@ -664,6 +665,7 @@ void ComboTabBar::paintEvent(QPaintEvent* ev) opt.rect.setWidth(scrollButtonWidth); style()->drawPrimitive(QStyle::PE_FrameTabBarBase, &opt, &p); } +#endif } int ComboTabBar::comboTabBarPixelMetric(ComboTabBar::SizeType sizeType) const