Skip to content

Class QfGeometryEditorsModel

ClassList > QfGeometryEditorsModel

Inherits the following classes: QStandardItemModel

Public Types

Type Name
enum ActionRoles
enum GeometryType

Public Properties

Type Name
property QfVertexModel * vertexModel

Public Signals

Type Name
signal void vertexModelChanged

Public Functions

Type Name
QfGeometryEditorsModel (QObject * parent=nullptr)
Q_INVOKABLE void addEditor (const QString & name, const QString & icon, const QString & toolbar, SupportedGeometries supportedGeometries=AllGeometries)
QHash< int, QByteArray > roleNames () override const
void setVertexModel (QfVertexModel * vertexModel)
QfVertexModel * vertexModel () const

Public Static Functions

Type Name
Q_INVOKABLE bool supportsGeometry (const QgsGeometry & geometry, const SupportedGeometries & supportedGeometries)

Public Types Documentation

enum ActionRoles

enum QfGeometryEditorsModel::ActionRoles {
    NameRole = Qt::UserRole + 1,
    IconPathRole,
    ToolbarRole,
    SupportedGeometriesRole
};

enum GeometryType

enum QfGeometryEditorsModel::GeometryType {
    Point = 1,
    Line = 2,
    Polygon = 4,
    AllGeometries = Point | Line | Polygon
};

Public Properties Documentation

property vertexModel [1/2]

QfVertexModel * QfGeometryEditorsModel::vertexModel;

Public Signals Documentation

signal vertexModelChanged

void QfGeometryEditorsModel::vertexModelChanged;

Public Functions Documentation

function QfGeometryEditorsModel

explicit QfGeometryEditorsModel::QfGeometryEditorsModel (
    QObject * parent=nullptr
) 

function addEditor

Q_INVOKABLE void QfGeometryEditorsModel::addEditor (
    const QString & name,
    const QString & icon,
    const QString & toolbar,
    SupportedGeometries supportedGeometries=AllGeometries
) 

function roleNames

QHash< int, QByteArray > QfGeometryEditorsModel::roleNames () override const

function setVertexModel

void QfGeometryEditorsModel::setVertexModel (
    QfVertexModel * vertexModel
) 

function vertexModel [2/2]

inline QfVertexModel * QfGeometryEditorsModel::vertexModel () const

Public Static Functions Documentation

function supportsGeometry

static Q_INVOKABLE bool QfGeometryEditorsModel::supportsGeometry (
    const QgsGeometry & geometry,
    const SupportedGeometries & supportedGeometries
) 


The documentation for this class was generated from the following file src/gui/qfgeometryeditorsmodel.h