From 609e73256a379820434cf2736cc75daf6dd37582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 24 Nov 2020 21:11:32 +0100 Subject: [PATCH] Back to the original graph tab layout/style on OS X --- src/GUI/gui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 38c458a1..a44f959f 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -634,7 +634,9 @@ void GUI::createGraphTabs() _graphTabWidget->setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred)); _graphTabWidget->setMinimumHeight(200); +#ifndef Q_OS_MAC _graphTabWidget->setDocumentMode(true); +#endif // Q_OS_MAC connect(_graphTabWidget, SIGNAL(currentChanged(int)), this, SLOT(graphChanged(int))); @@ -648,9 +650,9 @@ void GUI::createGraphTabs() _tabs.append(new GearRatioGraph(_graphTabWidget)); for (int i = 0; i < _tabs.count(); i++) { -#ifdef Q_OS_WIN32 +#if defined(Q_OS_WIN32) || defined(Q_OS_MAC) _tabs.at(i)->setFrameShape(QFrame::NoFrame); -#endif // Q_OS_WIN32 +#endif // Q_OS_WIN32 || Q_OS_MAC connect(_tabs.at(i), SIGNAL(sliderPositionChanged(qreal)), this, SLOT(sliderPositionChanged(qreal))); }