qml_static_analyzer 0.2.0

A static analyzer for QML files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include <QObject>

class SensorController : public QObject {
    Q_OBJECT
    Q_PROPERTY(double temperature READ temperature NOTIFY temperatureChanged)
    Q_PROPERTY(bool connected READ connected NOTIFY connectedChanged)
    Q_PROPERTY(int sensorCount READ sensorCount NOTIFY sensorCountChanged)
public:
    Q_INVOKABLE void calibrate();
    Q_INVOKABLE void reset();
signals:
    void temperatureChanged();
    void connectedChanged();
    void sensorCountChanged();
};