2022-05-16 20:54:41 +10:00
# The following has been generated automatically from src/core/project/qgsprojectstylesettings.h
2024-02-06 11:13:01 +10:00
QgsProjectStyleDatabaseModel . Role = QgsProjectStyleDatabaseModel . CustomRole
# monkey patching scoped based enum
QgsProjectStyleDatabaseModel . StyleRole = QgsProjectStyleDatabaseModel . CustomRole . Style
QgsProjectStyleDatabaseModel . Role . StyleRole = QgsProjectStyleDatabaseModel . CustomRole . Style
QgsProjectStyleDatabaseModel . StyleRole . is_monkey_patched = True
QgsProjectStyleDatabaseModel . StyleRole . __doc__ = " Style object "
QgsProjectStyleDatabaseModel . PathRole = QgsProjectStyleDatabaseModel . CustomRole . Path
QgsProjectStyleDatabaseModel . Role . PathRole = QgsProjectStyleDatabaseModel . CustomRole . Path
QgsProjectStyleDatabaseModel . PathRole . is_monkey_patched = True
QgsProjectStyleDatabaseModel . PathRole . __doc__ = " Style path "
2024-08-31 18:05:36 +10:00
QgsProjectStyleDatabaseModel . CustomRole . __doc__ = """ Custom model roles.
. . note : :
Prior to QGIS 3.36 this was available as QgsProjectStyleDatabaseModel . Role
. . versionadded : : 3.36
2024-09-02 09:36:31 +10:00
* ` ` Style ` ` : Style object
Available as ` ` QgsProjectStyleDatabaseModel . StyleRole ` ` in older QGIS releases .
* ` ` Path ` ` : Style path
Available as ` ` QgsProjectStyleDatabaseModel . PathRole ` ` in older QGIS releases .
2024-08-31 18:05:36 +10:00
"""
2024-02-06 11:13:01 +10:00
# --
QgsProjectStyleDatabaseModel . CustomRole . baseClass = QgsProjectStyleDatabaseModel
2022-05-16 20:54:41 +10:00
# monkey patching scoped based enum
QgsProjectStyleDatabaseProxyModel . Filter . FilterHideReadOnly . __doc__ = " Hide read-only style databases "
2024-08-31 18:05:36 +10:00
QgsProjectStyleDatabaseProxyModel . Filter . __doc__ = """ Available filter flags for filtering the model
* ` ` FilterHideReadOnly ` ` : Hide read - only style databases
"""
2022-05-16 20:54:41 +10:00
# --
QgsProjectStyleDatabaseProxyModel . Filter . baseClass = QgsProjectStyleDatabaseProxyModel
QgsProjectStyleDatabaseProxyModel . Filters . baseClass = QgsProjectStyleDatabaseProxyModel
Filters = QgsProjectStyleDatabaseProxyModel # dirty hack since SIP seems to introduce the flags in module
2024-08-14 09:45:06 +10:00
try :
QgsProjectStyleSettings . __attribute_docs__ = { ' styleDatabasesChanged ' : ' Emitted whenever the set of style databases associated with the project is changed. \n ' }
2024-08-16 09:08:23 +10:00
QgsProjectStyleSettings . __group__ = [ ' project ' ]
2024-12-03 07:47:10 +00:00
except ( NameError , AttributeError ) :
2024-08-16 09:08:23 +10:00
pass
try :
QgsProjectStyleDatabaseModel . __group__ = [ ' project ' ]
2024-12-03 07:47:10 +00:00
except ( NameError , AttributeError ) :
2024-08-16 09:08:23 +10:00
pass
try :
QgsProjectStyleDatabaseProxyModel . __group__ = [ ' project ' ]
2024-12-03 07:47:10 +00:00
except ( NameError , AttributeError ) :
2024-08-16 09:08:23 +10:00
pass