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/QObject>
4
#include <QtCore/QUrl>
5
8
class
QmlComponentInfo
:
public
QObject
9
{
10
Q_OBJECT
11
Q_PROPERTY(QString
title
READ
title
CONSTANT)
12
Q_PROPERTY(QUrl
url
READ
url
CONSTANT)
13
Q_PROPERTY(QUrl
icon
READ
icon
CONSTANT)
14
Q_PROPERTY(
bool
requiresVehicle
READ
requiresVehicle
CONSTANT)
15
16
public
:
17
QmlComponentInfo
(
const
QString &
title
, QUrl
url
, QUrl
icon
= QUrl(), QObject *parent =
nullptr
,
bool
requiresVehicle
=
false
);
18
~QmlComponentInfo
();
19
20
const
QString &
title
()
const
{
return
_title
; }
21
QUrl
url
()
const
{
return
_url
; }
22
QUrl
icon
()
const
{
return
_icon
; }
23
bool
requiresVehicle
()
const
{
return
_requiresVehicle
; }
24
25
protected
:
26
const
QString
_title
;
27
const
QUrl
_url
;
28
const
QUrl
_icon
;
29
const
bool
_requiresVehicle
;
30
};
QmlComponentInfo::QmlComponentInfo
QmlComponentInfo(const QString &title, QUrl url, QUrl icon=QUrl(), QObject *parent=nullptr, bool requiresVehicle=false)
Definition
QmlComponentInfo.cc:6
QmlComponentInfo::~QmlComponentInfo
~QmlComponentInfo()
Definition
QmlComponentInfo.cc:16
QmlComponentInfo::requiresVehicle
bool requiresVehicle() const
Definition
QmlComponentInfo.h:23
QmlComponentInfo::_requiresVehicle
const bool _requiresVehicle
Page requires connected vehicle.
Definition
QmlComponentInfo.h:29
QmlComponentInfo::_icon
const QUrl _icon
Icon for page.
Definition
QmlComponentInfo.h:28
QmlComponentInfo::url
QUrl url() const
Definition
QmlComponentInfo.h:21
QmlComponentInfo::_url
const QUrl _url
Qml source code.
Definition
QmlComponentInfo.h:27
QmlComponentInfo::_title
const QString _title
Title for page.
Definition
QmlComponentInfo.h:26
QmlComponentInfo::title
const QString & title() const
Definition
QmlComponentInfo.h:20
QmlComponentInfo::icon
QUrl icon() const
Definition
QmlComponentInfo.h:22
src
API
QmlComponentInfo.h
Generated by
1.15.0