Dialog for selecting a filter from the ones currently registered with the iAFilterRegistry.
More...
#include <iAFilterSelectionDlg.h>
|
| void | filterChanged (QString const &) |
| | Called when the user has changed the content of the input field on top of the dialog.
|
| |
| void | listSelectionChanged (QListWidgetItem *, QListWidgetItem *) |
| | Called when the user selects a filter from the list.
|
| |
Dialog for selecting a filter from the ones currently registered with the iAFilterRegistry.
◆ iAFilterSelectionDlg()
| iAFilterSelectionDlg::iAFilterSelectionDlg |
( |
QWidget * |
parent, |
|
|
QString const & |
preselectedFilter = "" |
|
) |
| |
Create a new filter selection dialog.
- Parameters
-
| parent | the parent widget of the dialog (dialog will be a top level window if you pass nullptr) |
| preselectedFilter | the name of a filter that should be preselected in the dialog |
◆ ~iAFilterSelectionDlg()
| iAFilterSelectionDlg::~iAFilterSelectionDlg |
( |
| ) |
|
|
default |
◆ filterChanged
| void iAFilterSelectionDlg::filterChanged |
( |
QString const & |
filter | ) |
|
|
slot |
Called when the user has changed the content of the input field on top of the dialog.
Causes the list of filters to be updated to only show the ones where at least a part of the name matches what the user has entered.
◆ listSelectionChanged
| void iAFilterSelectionDlg::listSelectionChanged |
( |
QListWidgetItem * |
, |
|
|
QListWidgetItem * |
|
|
) |
| |
|
slot |
Called when the user selects a filter from the list.
◆ selectedFilterName()
| QString iAFilterSelectionDlg::selectedFilterName |
( |
| ) |
const |
Retrieve the name of the filter that the user has selected.
- Returns
- a filter name as it can be passed to iAFilterRegistry::filter() for creating an instance of the filter.
The documentation for this class was generated from the following files: