29 lines
620 B
C++
29 lines
620 B
C++
#ifndef FM_FRAME_GPS_H
|
|
#define FM_FRAME_GPS_H
|
|
#if (USE_FRAME_GPS)
|
|
|
|
#include "../rm_include.h"
|
|
#include "../core/rm_player_base.h"
|
|
#include "rm_widget_style_base.h"
|
|
class RMSensorData;
|
|
class FMFrameGPS : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FMFrameGPS(QWidget *parent = nullptr);
|
|
|
|
private:
|
|
//QLabel* speed;
|
|
QLabel* lat;
|
|
QLabel* lon;
|
|
QHBoxLayout* layout;
|
|
RMSensorData* _sensor;
|
|
void paintEvent(QPaintEvent *pe);
|
|
public slots:
|
|
void onPositionChanged(qint64 position,qint64 duration);
|
|
void onPlayEvent(PLAY_EVENT event,RMVideoItem* item);
|
|
};
|
|
|
|
#endif
|
|
#endif // FM_FRAME_GPS_H
|