mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Draw the graph tabs area more style aware
This commit is contained in:
parent
2eed9884a5
commit
1b27be6173
@ -14,8 +14,7 @@ class GraphTab : public GraphView
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GraphTab(QWidget *parent = 0) : GraphView(parent)
|
GraphTab(QWidget *parent = 0) : GraphView(parent) {}
|
||||||
{setFrameShape(QFrame::NoFrame);}
|
|
||||||
virtual ~GraphTab() {}
|
virtual ~GraphTab() {}
|
||||||
|
|
||||||
virtual QString label() const = 0;
|
virtual QString label() const = 0;
|
||||||
|
@ -631,15 +631,13 @@ void GUI::createMapView()
|
|||||||
void GUI::createGraphTabs()
|
void GUI::createGraphTabs()
|
||||||
{
|
{
|
||||||
_graphTabWidget = new QTabWidget();
|
_graphTabWidget = new QTabWidget();
|
||||||
connect(_graphTabWidget, SIGNAL(currentChanged(int)), this,
|
|
||||||
SLOT(graphChanged(int)));
|
|
||||||
|
|
||||||
_graphTabWidget->setSizePolicy(QSizePolicy(QSizePolicy::Ignored,
|
_graphTabWidget->setSizePolicy(QSizePolicy(QSizePolicy::Ignored,
|
||||||
QSizePolicy::Preferred));
|
QSizePolicy::Preferred));
|
||||||
_graphTabWidget->setMinimumHeight(200);
|
_graphTabWidget->setMinimumHeight(200);
|
||||||
#ifdef Q_OS_WIN32
|
|
||||||
_graphTabWidget->setDocumentMode(true);
|
_graphTabWidget->setDocumentMode(true);
|
||||||
#endif // Q_OS_WIN32
|
|
||||||
|
connect(_graphTabWidget, SIGNAL(currentChanged(int)), this,
|
||||||
|
SLOT(graphChanged(int)));
|
||||||
|
|
||||||
_tabs.append(new ElevationGraph(_graphTabWidget));
|
_tabs.append(new ElevationGraph(_graphTabWidget));
|
||||||
_tabs.append(new SpeedGraph(_graphTabWidget));
|
_tabs.append(new SpeedGraph(_graphTabWidget));
|
||||||
@ -649,9 +647,13 @@ void GUI::createGraphTabs()
|
|||||||
_tabs.append(new TemperatureGraph(_graphTabWidget));
|
_tabs.append(new TemperatureGraph(_graphTabWidget));
|
||||||
_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
|
||||||
|
_tabs.at(i)->setFrameShape(QFrame::NoFrame);
|
||||||
|
#endif // Q_OS_WIN32
|
||||||
connect(_tabs.at(i), SIGNAL(sliderPositionChanged(qreal)), this,
|
connect(_tabs.at(i), SIGNAL(sliderPositionChanged(qreal)), this,
|
||||||
SLOT(sliderPositionChanged(qreal)));
|
SLOT(sliderPositionChanged(qreal)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::createStatusBar()
|
void GUI::createStatusBar()
|
||||||
|
Loading…
Reference in New Issue
Block a user