1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Back to the original graph tab layout/style on OS X

This commit is contained in:
Martin Tůma 2020-11-24 21:11:32 +01:00
parent 50c43dc0b7
commit 609e73256a

View File

@ -634,7 +634,9 @@ void GUI::createGraphTabs()
_graphTabWidget->setSizePolicy(QSizePolicy(QSizePolicy::Ignored, _graphTabWidget->setSizePolicy(QSizePolicy(QSizePolicy::Ignored,
QSizePolicy::Preferred)); QSizePolicy::Preferred));
_graphTabWidget->setMinimumHeight(200); _graphTabWidget->setMinimumHeight(200);
#ifndef Q_OS_MAC
_graphTabWidget->setDocumentMode(true); _graphTabWidget->setDocumentMode(true);
#endif // Q_OS_MAC
connect(_graphTabWidget, SIGNAL(currentChanged(int)), this, connect(_graphTabWidget, SIGNAL(currentChanged(int)), this,
SLOT(graphChanged(int))); SLOT(graphChanged(int)));
@ -648,9 +650,9 @@ void GUI::createGraphTabs()
_tabs.append(new GearRatioGraph(_graphTabWidget)); _tabs.append(new GearRatioGraph(_graphTabWidget));
for (int i = 0; i < _tabs.count(); i++) { 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); _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, connect(_tabs.at(i), SIGNAL(sliderPositionChanged(qreal)), this,
SLOT(sliderPositionChanged(qreal))); SLOT(sliderPositionChanged(qreal)));
} }