Add comments for quality settings model

This commit is contained in:
Lipu Fei 2018-03-05 10:32:59 +01:00
parent 2255dc628b
commit f86c2a2f8a

View file

@ -87,6 +87,8 @@ class QualitySettingsModel(ListModel):
settings_keys = quality_group.getAllKeys() settings_keys = quality_group.getAllKeys()
quality_containers = [quality_node.getContainer()] quality_containers = [quality_node.getContainer()]
# Here, if the user has selected a quality changes, then "quality_changes_group" will not be None, and we fetch
# the settings in that quality_changes_group.
if quality_changes_group is not None: if quality_changes_group is not None:
if self._selected_position == "": if self._selected_position == "":
quality_changes_node = quality_changes_group.node_for_global quality_changes_node = quality_changes_group.node_for_global