profile_manager.gui.utils module

profile_manager.gui.utils.data_sources_as_tree(provider: str, data_sources: dict, make_checkable: bool) → qgis.PyQt.QtWidgets.QTreeWidgetItem[source]

Returns a tree of checkable items for all specified data sources, the root item named by the provider.

The tree contains a checkable item per data source found.

Parameters:
  • provider – Name of the provider to gather data sources for

  • data_sources – TODO document structure

  • make_checkable – Flag to indicate if items should be checkable

Returns:

Tree widget item representing the data sources or None if none were found

Return type:

QTreeWidgetItem

profile_manager.gui.utils.plugins_as_items(plugins: list[str], make_checkable: bool) → list[qgis.PyQt.QtWidgets.QListWidgetItem][source]

Return the plugins as list of QListWidgetItem.