QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QmlComponentInfo.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QLoggingCategory>
4#include <QtCore/QObject>
5#include <QtCore/QUrl>
6
7Q_DECLARE_LOGGING_CATEGORY(QmlComponentInfoLog)
8
9
10class QmlComponentInfo : public QObject
11{
12 Q_OBJECT
13 Q_PROPERTY(QString title READ title CONSTANT)
14 Q_PROPERTY(QUrl url READ url CONSTANT)
15 Q_PROPERTY(QUrl icon READ icon CONSTANT)
16
17public:
18 QmlComponentInfo(const QString &title, QUrl url, QUrl icon = QUrl(), QObject *parent = nullptr);
20
21 const QString &title() const { return _title; }
22 QUrl url() const { return _url; }
23 QUrl icon() const { return _icon; }
24
25protected:
26 const QString _title;
27 const QUrl _url;
28 const QUrl _icon;
29};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Represents a Qml component which can be loaded from a resource.
const QUrl _icon
Icon for page.
const QUrl _url
Qml source code.
const QString _title
Title for page.