Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Signals | Public Member Functions | Public Attributes | Protected Member Functions
DelegateMenu Class Reference

Special menu class that repositions itself to the cursor position when shown. More...

#include <Modules/Loadable/SubjectHierarchy/Widgets/qMRMLTransformItemDelegate.h>

Inheritance diagram for DelegateMenu:
Inheritance graph
[legend]
Collaboration diagram for DelegateMenu:
Collaboration graph
[legend]

Signals

void closed ()
 

Public Member Functions

 DelegateMenu (QWidget *parent=nullptr)
 

Public Attributes

QString SelectedTransformNodeID
 

Protected Member Functions

void showEvent (QShowEvent *event) override
 

Detailed Description

Special menu class that repositions itself to the cursor position when shown.

This is needed because after creating the editor widget, the show function is called by the delegate mechanism. However, the menu shows up in global position instead of local and need to be moved. The cursor position is a convenient place to move it to.

Definition at line 97 of file qMRMLTransformItemDelegate.h.

Constructor & Destructor Documentation

◆ DelegateMenu()

DelegateMenu::DelegateMenu ( QWidget *  parent = nullptr)
explicit

Member Function Documentation

◆ closed

void DelegateMenu::closed ( )
signal

◆ showEvent()

void DelegateMenu::showEvent ( QShowEvent *  event)
overrideprotected

Member Data Documentation

◆ SelectedTransformNodeID

QString DelegateMenu::SelectedTransformNodeID

Definition at line 102 of file qMRMLTransformItemDelegate.h.


The documentation for this class was generated from the following file: