23
23
24
24
25
25
class PyQgsSettingsEntryEnumFlag (QgsSettingsEntryBase ):
26
- """ class QgsSettingsEntryEnum
27
- ingroup core
28
- An enum settings entry.
29
- since QGIS 3.20
26
+ """ class PyQgsSettingsEntryEnumFlag
27
+ ingroup core
28
+ An enum settings entry.
29
+ since QGIS 3.20
30
30
"""
31
31
32
32
def __init__ (self , key , pluginName , defaultValue , description = str ()):
33
33
""" Constructor for PyQgsSettingsEntryEnumFlag.
34
34
35
- :param self: the QgsSettingsEntryEnum object
36
- :param key: argument specifies the final part of the settings key.
37
- :param pluginName: argument is inserted in the key after the section.
38
- :param defaultValue: argument specifies the default value for the settings entry.
39
- :param description: argument specifies a description for the settings entry.
40
-
41
- .. note:: This constructor should not be used. Use PyQgsSettingsEntryEnum
42
- or PyQgsSettingsEntryFlag instead.
35
+ :param self: the PyQgsSettingsEntryEnumFlag object
36
+ :param key: argument specifies the final part of the settings key.
37
+ :param pluginName: argument is inserted in the key after the section.
38
+ :param defaultValue: argument specifies the default value for the settings entry.
39
+ :param description: argument specifies a description for the settings entry.
43
40
"""
44
41
45
42
defaultValueStr = str ()
@@ -58,10 +55,10 @@ def __init__(self, key, pluginName, defaultValue, description=str()):
58
55
def value (self , dynamicKeyPart = None , useDefaultValueOverride = False , defaultValueOverride = None ):
59
56
""" Get settings value.
60
57
61
- :param self: the PyQgsSettingsEntryEnumFlag object
62
- :param dynamicKeyPart: argument specifies the dynamic part of the settings key.
63
- :param useDefaultValueOverride: argument specifies if defaultValueOverride should be used.
64
- :param defaultValueOverride: argument if valid is used instead of the normal default value.
58
+ :param self: the PyQgsSettingsEntryEnumFlag object
59
+ :param dynamicKeyPart: argument specifies the dynamic part of the settings key.
60
+ :param useDefaultValueOverride: argument specifies if defaultValueOverride should be used.
61
+ :param defaultValueOverride: argument if valid is used instead of the normal default value.
65
62
"""
66
63
67
64
defaultValue = self .defaultValue ()
@@ -80,7 +77,7 @@ def value(self, dynamicKeyPart=None, useDefaultValueOverride=False, defaultValue
80
77
def defaultValue (self ):
81
78
""" Get settings default value.
82
79
83
- :param self: the PyQgsSettingsEntryEnumFlag object
80
+ :param self: the PyQgsSettingsEntryEnumFlag object
84
81
"""
85
82
86
83
if self .__metaEnum is None or not self .__metaEnum .isValid ():
@@ -103,8 +100,8 @@ def defaultValue(self):
103
100
def setValue (self , value , dynamicKeyPart = None ):
104
101
""" Set settings value.
105
102
106
- :param self: the PyQgsSettingsEntryEnumFlag object
107
- :param dynamicKeyPart: argument specifies the dynamic part of the settings key.
103
+ :param self: the PyQgsSettingsEntryEnumFlag object
104
+ :param dynamicKeyPart: argument specifies the dynamic part of the settings key.
108
105
"""
109
106
110
107
if self .__metaEnum is None or not self .__metaEnum .isValid ():
@@ -125,7 +122,7 @@ def setValue(self, value, dynamicKeyPart=None):
125
122
def settingsType (self ):
126
123
""" Get the settings entry type.
127
124
128
- :param self: the QgsSettingsEntryEnumFlag object
125
+ :param self: the PyQgsSettingsEntryEnumFlag object
129
126
"""
130
127
131
128
return self .SettingsType .EnumFlag
0 commit comments