1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Draw the graph tabs area more style aware

This commit is contained in:
Martin Tůma 2020-11-23 22:20:06 +01:00
parent 2eed9884a5
commit 1b27be6173
2 changed files with 9 additions and 8 deletions

View File

@ -14,8 +14,7 @@ class GraphTab : public GraphView
Q_OBJECT
public:
GraphTab(QWidget *parent = 0) : GraphView(parent)
{setFrameShape(QFrame::NoFrame);}
GraphTab(QWidget *parent = 0) : GraphView(parent) {}
virtual ~GraphTab() {}
virtual QString label() const = 0;

View File

@ -631,15 +631,13 @@ void GUI::createMapView()
void GUI::createGraphTabs()
{
_graphTabWidget = new QTabWidget();
connect(_graphTabWidget, SIGNAL(currentChanged(int)), this,
SLOT(graphChanged(int)));
_graphTabWidget->setSizePolicy(QSizePolicy(QSizePolicy::Ignored,
QSizePolicy::Preferred));
_graphTabWidget->setMinimumHeight(200);
#ifdef Q_OS_WIN32
_graphTabWidget->setDocumentMode(true);
#endif // Q_OS_WIN32
connect(_graphTabWidget, SIGNAL(currentChanged(int)), this,
SLOT(graphChanged(int)));
_tabs.append(new ElevationGraph(_graphTabWidget));
_tabs.append(new SpeedGraph(_graphTabWidget));
@ -649,10 +647,14 @@ void GUI::createGraphTabs()
_tabs.append(new TemperatureGraph(_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
_tabs.at(i)->setFrameShape(QFrame::NoFrame);
#endif // Q_OS_WIN32
connect(_tabs.at(i), SIGNAL(sliderPositionChanged(qreal)), this,
SLOT(sliderPositionChanged(qreal)));
}
}
void GUI::createStatusBar()
{