Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider Class Reference

This class provides the value and change notifications for the properties of a single setting. More...

Inherits QObject.

Public Member Functions

 __init__ (self, parent=None, *args, **kwargs)
 
 setContainerId (self, container_id)
 Set the containerId property.
 
 containerId (self)
 The ID of the container we should query for property values.
 
 setWatchedProperties (self, properties)
 Set the watchedProperties property.
 
 watchedProperties (self)
 A list of property names that should be watched for changes.
 
 setKey (self, key)
 Set the key property.
 
 key (self)
 The key of the setting that we should provide property values for.
 
 properties (self)
 
 setPropertyValue (self, property_name, property_value)
 Set the value of a property.
 

Static Public Attributes

 containerIdChanged = pyqtSignal()
 Emitted when the containerId property changes.
 
 watchedPropertiesChanged = pyqtSignal()
 Emitted when the watchedProperties property changes.
 
 keyChanged = pyqtSignal()
 Emitted when the key property changes.
 
 propertiesChanged = pyqtSignal()
 

Protected Member Functions

 _onPropertyChanged (self, key, property_name)
 
 _update (self, container=None)
 
str _getPropertyValue (self, str property_name)
 

Protected Attributes

 _container_id
 
 _container
 
 _key
 
 _watched_properties
 
 _property_values
 
 _onPropertyChanged
 

Detailed Description

This class provides the value and change notifications for the properties of a single setting.

This class provides the property values through QObject dynamic properties so that they are available from QML.

Member Function Documentation

◆ setPropertyValue()

UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.setPropertyValue (   self,
  property_name,
  property_value 
)

Set the value of a property.

Parameters
property_nameThe name of the property to set.
property_valueThe value of the property to set.

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