qmm.widgets module¶
Contains various Qt Widgets used internally by the application.
-
class
qmm.widgets.ArchiveFilesTreeRow(text: Union[str, List[T]], parent, item: qmm.bucket.FileMetadata, tooltip: str = None, color: Optional[PyQt5.QtGui.QColor] = None, icon=None, **extra)[source]¶ Bases:
QTreeWidgetItem
-
class
qmm.widgets.ListRowItem(filename: Optional[str], archive_manager: qmm.filehandler.ArchivesCollection)[source]¶ Bases:
qmm.ab.widgets.ABCListRowItemListWidgetItem representing one single archive.
-
class
qmm.widgets.ListRowVirtualItem(archive_manager)[source]¶
-
class
qmm.widgets.QAbout(parent=None)[source]¶ Bases:
QWidget,qmm.ui_about.Ui_AboutAbout window displaying various informations about the software.
-
qmm.widgets.autoresize_columns(tree_widget: PyQt5.QtWidgets.QTreeWidget)[source]¶ Resize all columns of a QTreeWidget to fit content.
-
qmm.widgets.build_conflict_tree_widget(container: PyQt5.QtWidgets.QTreeWidget, archive_instance: qmm.filehandler.ArchiveInstance)[source]¶
-
qmm.widgets.build_ignored_tree_widget(container: PyQt5.QtWidgets.QTreeWidget, ignored_iter: Iterable[qmm.bucket.FileMetadata])[source]¶
-
qmm.widgets.build_tree_from_path(item: qmm.bucket.FileMetadata, parent: PyQt5.QtWidgets.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: - item – a