QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QmlComponentInfo Class Reference

Represents a Qml component which can be loaded from a resource. More...

#include <QmlComponentInfo.h>

Inheritance diagram for QmlComponentInfo:
Collaboration diagram for QmlComponentInfo:

Public Member Functions

 QmlComponentInfo (const QString &title, QUrl url, QUrl icon=QUrl(), QObject *parent=nullptr, bool requiresVehicle=false)
 ~QmlComponentInfo ()
const QString & title () const
QUrl url () const
QUrl icon () const
bool requiresVehicle () const

Protected Attributes

const QString _title
 Title for page.
const QUrl _url
 Qml source code.
const QUrl _icon
 Icon for page.
const bool _requiresVehicle
 Page requires connected vehicle.

Detailed Description

Represents a Qml component which can be loaded from a resource.

Definition at line 8 of file QmlComponentInfo.h.

Constructor & Destructor Documentation

◆ QmlComponentInfo()

QmlComponentInfo::QmlComponentInfo ( const QString & title,
QUrl url,
QUrl icon = QUrl(),
QObject * parent = nullptr,
bool requiresVehicle = false )

Definition at line 6 of file QmlComponentInfo.cc.

References _icon, _requiresVehicle, _title, _url, icon(), requiresVehicle(), title(), and url().

◆ ~QmlComponentInfo()

QmlComponentInfo::~QmlComponentInfo ( )

Definition at line 16 of file QmlComponentInfo.cc.

Member Function Documentation

◆ icon()

QUrl QmlComponentInfo::icon ( ) const
inline

Definition at line 22 of file QmlComponentInfo.h.

References _icon.

Referenced by QmlComponentInfo().

◆ requiresVehicle()

bool QmlComponentInfo::requiresVehicle ( ) const
inline

Definition at line 23 of file QmlComponentInfo.h.

References _requiresVehicle.

Referenced by QmlComponentInfo().

◆ title()

const QString & QmlComponentInfo::title ( ) const
inline

Definition at line 20 of file QmlComponentInfo.h.

References _title.

Referenced by QmlComponentInfo().

◆ url()

QUrl QmlComponentInfo::url ( ) const
inline

Definition at line 21 of file QmlComponentInfo.h.

References _url.

Referenced by QmlComponentInfo().

Member Data Documentation

◆ _icon

const QUrl QmlComponentInfo::_icon
protected

Icon for page.

Definition at line 28 of file QmlComponentInfo.h.

Referenced by icon(), and QmlComponentInfo().

◆ _requiresVehicle

const bool QmlComponentInfo::_requiresVehicle
protected

Page requires connected vehicle.

Definition at line 29 of file QmlComponentInfo.h.

Referenced by QmlComponentInfo(), and requiresVehicle().

◆ _title

const QString QmlComponentInfo::_title
protected

Title for page.

Definition at line 26 of file QmlComponentInfo.h.

Referenced by QmlComponentInfo(), and title().

◆ _url

const QUrl QmlComponentInfo::_url
protected

Qml source code.

Definition at line 27 of file QmlComponentInfo.h.

Referenced by QmlComponentInfo(), and url().


The documentation for this class was generated from the following files: