spinetoolbox.widgets.custom_qtreeview¶
Classes for custom QTreeView.
| author: |
|
|---|---|
| date: | 25.4.2018 |
Module Contents¶
-
class
spinetoolbox.widgets.custom_qtreeview.CopyTreeView(parent)[source]¶ Bases:
PySide2.QtWidgets.QTreeViewCustom QTreeView class with copy support.
Initialize the view.
-
class
spinetoolbox.widgets.custom_qtreeview.EntityTreeView(parent)[source]¶ Bases:
spinetoolbox.widgets.custom_qtreeview.CopyTreeViewCustom QTreeView class for object tree in DataStoreForm.
-
parent¶ The parent of this view
Type: QWidget
Initialize the view.
-
-
class
spinetoolbox.widgets.custom_qtreeview.StickySelectionEntityTreeView[source]¶ Bases:
spinetoolbox.widgets.custom_qtreeview.EntityTreeViewCustom QTreeView class for object tree in DataStoreForm.
-
parent¶ The parent of this view
Type: QWidget
-
mousePressEvent(self, event)[source]¶ Overrides selection behaviour if the user has selected sticky selection in Settings. If sticky selection is enabled, multi-selection is enabled when selecting items in the Object tree. Pressing the Ctrl-button down, enables single selection. If sticky selection is disabled, single selection is enabled and pressing the Ctrl-button down enables multi-selection.
Parameters: event (QMouseEvent) –
-
-
class
spinetoolbox.widgets.custom_qtreeview.ReferencesTreeView(parent)[source]¶ Bases:
PySide2.QtWidgets.QTreeViewCustom QTreeView class for ‘References’ in Data Connection properties.
-
parent¶ The parent of this view
Type: QWidget
Initialize the view.
-
-
class
spinetoolbox.widgets.custom_qtreeview.DataTreeView(parent)[source]¶ Bases:
PySide2.QtWidgets.QTreeViewCustom QTreeView class for ‘Data’ in Data Connection properties.
-
parent¶ The parent of this view
Type: QWidget
Initialize the view.
-
-
class
spinetoolbox.widgets.custom_qtreeview.SourcesTreeView(parent)[source]¶ Bases:
PySide2.QtWidgets.QTreeViewCustom QTreeView class for ‘Sources’ in Tool specification editor widget.
-
parent¶ The parent of this view
Type: QWidget
Initialize the view.
-