widgets.custom_qwidgets

Custom QWidgets for Filtering and Zooming.

author:
  1. Vennström (VTT)
date:

4.12.2018

Module Contents

class widgets.custom_qwidgets.FilterWidget(parent=None, show_empty=True)[source]

Bases: PySide2.QtWidgets.QWidget

Filter widget class.

okPressed[source]
cancelPressed[source]
save_state(self)[source]

Saves the state of the FilterCheckboxListModel.

reset_state(self)[source]

Sets the state of the FilterCheckboxListModel to saved state.

clear_filter(self)[source]

Selects all items in FilterCheckBoxListModel.

has_filter(self)[source]

Returns true if any item is filtered in FilterCheckboxListModel false otherwise.

set_filter_list(self, data)[source]

Sets the list of items to filter.

_apply_filter(self)[source]

Apply current filter and save state.

_cancel_filter(self)[source]

Cancel current edit of filter and set the state to the stored state.

_filter_list(self)[source]

Filter list with current text.

_text_edited(self, new_text)[source]

Callback for edit text, starts/restarts timer. Start timer after text is edited, restart timer if text is edited before last time out.

class widgets.custom_qwidgets.ZoomWidget(parent=None)[source]

Bases: PySide2.QtWidgets.QWidget

A widget for a QWidgetAction providing zoom actions for a graph view.

Attributes
parent (QWidget): the widget’s parent
minus_pressed[source]
plus_pressed[source]
reset_pressed[source]
paintEvent(self, event)[source]

Overridden method.