spinetoolbox.spine_db_editor.widgets.custom_qwidgets
¶
Custom QWidgets.
- author
Marin (KTH)
- date
13.5.2018
Module Contents¶
Classes¶
Filter widget class. |
|
Filter widget class. |
|
A button to open files or show them in the folder. |
|
A button to open sqlite files, show them in the folder, or add them to the project. |
|
- class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.DataToValueFilterWidget(parent, data_to_value, show_empty=True)[source]¶
Bases:
spinetoolbox.widgets.custom_qwidgets.FilterWidgetBase
Filter widget class.
Init class.
- Parameters
parent (QWidget) –
data_to_value (method) – a method to translate item data to a value for display role
- class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.LazyFilterWidget(parent, source_model, show_empty=True)[source]¶
Bases:
spinetoolbox.widgets.custom_qwidgets.FilterWidgetBase
Filter widget class.
Init class.
- Parameters
parent (SpineDBEditor) –
source_model (CompoundParameterModel, optional) – a model to lazily get data from
- class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.OpenFileButton(file_path, db_editor)[source]¶
Bases:
PySide2.QtWidgets.QToolButton
A button to open files or show them in the folder.
- class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.OpenSQLiteFileButton(file_path, db_editor)[source]¶
Bases:
OpenFileButton
A button to open sqlite files, show them in the folder, or add them to the project.