qmm.widgets module¶
Contains various Qt Widgets used internally by the application.
- class qmm.widgets.ArchiveFilesTreeRow(text: str | List, parent, item: FileMetadata, tooltip: str = None, color: QColor | None = None, icon=None, **extra)[source]¶
Bases:
QTreeWidgetItem
- class qmm.widgets.ListRowItem(filename: str | None, archive_manager: ArchivesCollection)[source]¶
Bases:
ABCListRowItemListWidgetItem representing one single archive.
- class qmm.widgets.ListRowVirtualItem(archive_manager)[source]¶
Bases:
ABCListRowItem
- class qmm.widgets.QAbout(parent=None)[source]¶
Bases:
QWidget,Ui_AboutAbout window displaying various informations about the software.
- class qmm.widgets.TreeWidgetMenu(treewidget: QTreeWidget)[source]¶
Bases:
QObject
- qmm.widgets.autoresize_columns(tree_widget: QTreeWidget)[source]¶
Resize all columns of a QTreeWidget to fit content.
- qmm.widgets.build_conflict_tree_widget(container: QTreeWidget, archive_instance: ArchiveInstance)[source]¶
- qmm.widgets.build_ignored_tree_widget(container: QTreeWidget, ignored_iter: Iterable[FileMetadata])[source]¶
- qmm.widgets.build_tree_from_path(item: FileMetadata, parent: QTreeWidget, folders, color=None, **kwargs)[source]¶
Generate a set of related
PyQt5.QtWidgets.QTreeWidgetItem()based on a file path.If extra_column is specified, it must be a list containing text that will be used to create new columns after the first one. Useful to add extra information.
- Parameters:
item – a
qmm.bucket.FileMetadataobject.parent – The container widget to anchor the first node to.
folders – A dict containing the parents widgets.
color (Optional[List]) – Background color value for the widget.
- Keyword Arguments:
extra_column (List[str]) – Extra values to pass down to
_create_treewidget()- Returns:
A dictionnary containing the folders ancestry.
- Return type:
- qmm.widgets.build_tree_widget(container: QTreeWidget, archive_instance: ArchiveInstance)[source]¶