-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdisplayhandler.h
38 lines (31 loc) · 868 Bytes
/
displayhandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef DISPLAYHANDLER_H
#define DISPLAYHANDLER_H
#include <QObject>
#include <QQmlApplicationEngine>
#include <QDebug>
class DisplayHandler : public QObject
{
Q_OBJECT
public:
explicit DisplayHandler(QObject *parent = nullptr, QQmlApplicationEngine *engine = nullptr);
private:
QQmlApplicationEngine *engine;
QObject *speedText;
QObject *altitudeText;
QObject *headingText;
QObject *lockedText;
QObject *angleImage;
QObject *temperatureText;
QObject *humidityText;
signals:
public slots:
void setSpeedText(int valor);
void setAltitudeText(int valor);
void setHeadingText(int valor);
void setTemperatureText(int valor);
void setHumidityText(int valor);
void setLockedText(bool valor);
void setImageAngle(double roll);
void setImageDisplacement(double pitch);
};
#endif // DISPLAYHANDLER_H