Class QfGeometryEditorsModel
ClassList > QfGeometryEditorsModel
Inherits the following classes: QStandardItemModel
Public Types
Public Properties
Public Signals
Public Functions
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