1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-08 15:24:01 +01:00
GPXSee/src/GUI/navigationwidget.h

36 lines
647 B
C
Raw Normal View History

2022-05-28 14:05:14 +02:00
#ifndef NAVIGATIONWIDGET_H
#define NAVIGATIONWIDGET_H
2022-06-02 19:02:46 +02:00
#ifdef Q_OS_ANDROID
2022-05-28 14:05:14 +02:00
#include <QWidget>
#include "mapview.h"
class NavigationWidget : public QWidget
{
Q_OBJECT
public:
NavigationWidget(MapView *view);
void enableNext(bool enable) {_showNext = enable; update();}
void enablePrev(bool enable) {_showPrev = enable; update();}
signals:
void next();
void prev();
private slots:
void viewClicked(const QPoint &pos);
private:
bool eventFilter(QObject *obj, QEvent *ev);
bool event(QEvent *ev);
void paintEvent(QPaintEvent *ev);
void newParent();
bool _showPrev, _showNext;
};
#endif // Q_OS_ANDROID
#endif // NAVIGATIONWIDGET_H