Skip to content

RPropertyEvent

Class in Core Module
Header: #include <src/core/RPropertyEvent.h>
Inherits: QEvent

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

A property change event is fired whenever a user interface component was used to change the value of a property.

Scriptable: This class is available in script environments.

Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.

RPropertyEvent()
RPropertyEvent(RPropertyTypeId propertyTypeId, const QVariant &value, RS::EntityType entityTypeFilter=RS::EntityAll)
RS::EntityType getEntityTypeFilter() const
RPropertyTypeId getPropertyTypeId() const
QVariant getValue() const
RS::EntityType entityTypeFilter
RPropertyTypeId propertyTypeId
QVariant value

RPropertyEvent::RPropertyEvent()

inline

RPropertyEvent::RPropertyEvent(RPropertyTypeId propertyTypeId, const QVariant &value, RS::EntityType entityTypeFilter=RS::EntityAll)

inline

Parameters:

  • propertyTypeId: ID of the property that was changed.
  • value: New value of the property.

RS::EntityType RPropertyEvent::getEntityTypeFilter() const

inline const

Returns: Entity type filter to use for this event.

RPropertyTypeId RPropertyEvent::getPropertyTypeId() const

const

Returns: The position of the event in real graphic measures.

QVariant RPropertyEvent::getValue() const

inline const

Returns: true If the position of the coordinate event is valid.

RS::EntityType RPropertyEvent::entityTypeFilter

private

RPropertyTypeId RPropertyEvent::propertyTypeId

private

QVariant RPropertyEvent::value

private