RPropertyEvent
Class in Core Module
Header: #include <src/core/RPropertyEvent.h>
Inherits: QEvent
Description
Section titled “Description”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.
Public Functions
Section titled “Public Functions”RPropertyEvent() |
|
RPropertyEvent(RPropertyTypeId propertyTypeId, const QVariant &value, RS::EntityType entityTypeFilter=RS::EntityAll) |
|
| RS::EntityType | getEntityTypeFilter() const |
| RPropertyTypeId | getPropertyTypeId() const |
| QVariant | getValue() const |
Private Attributes
Section titled “Private Attributes”| RS::EntityType | entityTypeFilter |
| RPropertyTypeId | propertyTypeId |
| QVariant | value |
Member Documentation
Section titled “Member Documentation”RPropertyEvent
Section titled “RPropertyEvent”RPropertyEvent::RPropertyEvent()inline
RPropertyEvent
Section titled “RPropertyEvent”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.
getEntityTypeFilter
Section titled “getEntityTypeFilter”RS::EntityType RPropertyEvent::getEntityTypeFilter() constinline const
Returns: Entity type filter to use for this event.
getPropertyTypeId
Section titled “getPropertyTypeId”RPropertyTypeId RPropertyEvent::getPropertyTypeId() constconst
Returns: The position of the event in real graphic measures.
getValue
Section titled “getValue”QVariant RPropertyEvent::getValue() constinline const
Returns: true If the position of the coordinate event is valid.
entityTypeFilter
Section titled “entityTypeFilter”RS::EntityType RPropertyEvent::entityTypeFilterprivate
propertyTypeId
Section titled “propertyTypeId”RPropertyTypeId RPropertyEvent::propertyTypeIdprivate
QVariant RPropertyEvent::valueprivate