mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-29 01:44:24 +02:00
Fixed graph slider handling issue
This commit is contained in:
17
src/gui.h
17
src/gui.h
@ -6,6 +6,8 @@
|
||||
#include <QList>
|
||||
#include <QDate>
|
||||
#include <QPrinter>
|
||||
#include "units.h"
|
||||
#include "graph.h"
|
||||
#include "poi.h"
|
||||
#include "margins.h"
|
||||
|
||||
@ -63,10 +65,10 @@ private slots:
|
||||
void last();
|
||||
void first();
|
||||
|
||||
void setMetricUnits();
|
||||
void setImperialUnits();
|
||||
void setDistanceGraph();
|
||||
void setTimeGraph();
|
||||
void setMetricUnits() {setUnits(Metric);}
|
||||
void setImperialUnits() {setUnits(Imperial);}
|
||||
void setDistanceGraph() {setGraphType(Distance);}
|
||||
void setTimeGraph() {setGraphType(Time);}
|
||||
|
||||
void sliderPositionChanged(qreal pos);
|
||||
|
||||
@ -97,8 +99,8 @@ private:
|
||||
void updateGraphTabs();
|
||||
void updateTrackView();
|
||||
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void closeEvent(QCloseEvent *event);
|
||||
void setUnits(Units units);
|
||||
void setGraphType(GraphType type);
|
||||
|
||||
qreal distance();
|
||||
qreal time();
|
||||
@ -106,6 +108,9 @@ private:
|
||||
void readSettings();
|
||||
void writeSettings();
|
||||
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void closeEvent(QCloseEvent *event);
|
||||
|
||||
QToolBar *_fileToolBar;
|
||||
QToolBar *_showToolBar;
|
||||
QToolBar *_navigationToolBar;
|
||||
|
Reference in New Issue
Block a user