Widget representing a single data node selection item with a clear button.
More...
#include <QmitkNodeSelectionListItemWidget.h>
|
| std::unique_ptr< Ui::QmitkNodeSelectionListItemWidget > | m_Controls |
| |
Widget representing a single data node selection item with a clear button.
Displays the node's name and class icon, with an optional clear button to remove the selection. Used as an item widget in node selection lists.
- See also
- QmitkAbstractNodeSelectionWidget, QmitkSingleNodeSelectionWidget
Definition at line 33 of file QmitkNodeSelectionListItemWidget.h.
◆ QmitkNodeSelectionListItemWidget()
| QmitkNodeSelectionListItemWidget::QmitkNodeSelectionListItemWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Construct the list item widget.
- Parameters
-
◆ ~QmitkNodeSelectionListItemWidget()
| QmitkNodeSelectionListItemWidget::~QmitkNodeSelectionListItemWidget |
( |
| ) |
|
|
override |
◆ ClearSelection
| void QmitkNodeSelectionListItemWidget::ClearSelection |
( |
const mitk::DataNode * |
node | ) |
|
|
signal |
Emitted when the user clicks the clear button.
- Parameters
-
| [in] | node | The node being cleared. |
◆ eventFilter()
| bool QmitkNodeSelectionListItemWidget::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
ev |
|
) |
| |
|
overrideprotected |
◆ GetSelectedNode()
| const mitk::DataNode* QmitkNodeSelectionListItemWidget::GetSelectedNode |
( |
| ) |
const |
Get the currently displayed data node.
- Returns
- The selected data node, or
nullptr if none.
◆ OnClearSelection
| void QmitkNodeSelectionListItemWidget::OnClearSelection |
( |
| ) |
|
|
protectedslot |
◆ SetClearAllowed
| virtual void QmitkNodeSelectionListItemWidget::SetClearAllowed |
( |
bool |
allowed | ) |
|
|
virtualslot |
Enable or disable the clear button.
- Parameters
-
| [in] | allowed | If true, the clear button is shown. |
◆ SetSelectedNode
| virtual void QmitkNodeSelectionListItemWidget::SetSelectedNode |
( |
const mitk::DataNode * |
node | ) |
|
|
virtualslot |
Set the data node to display.
- Parameters
-
| [in] | node | The data node to show in this item. |
◆ m_Controls
| std::unique_ptr<Ui::QmitkNodeSelectionListItemWidget> QmitkNodeSelectionListItemWidget::m_Controls |
|
protected |
The documentation for this class was generated from the following file: