BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ModelView::ItemDataRole Namespace Reference

Defines constants to be used as SessionItem data role. More...

Variables

const int APPEARANCE = 3
 appearance flag More...
 
const int DATA = 1
 main data role More...
 
const int DISPLAY = 2
 display name More...
 
const int EDITORTYPE = 6
 type of custom editor for the data role More...
 
const int IDENTIFIER = 0
 unique identifier More...
 
const int LIMITS = 4
 possibly limits on item's data More...
 
const int TOOLTIP = 5
 tooltip for item's data More...
 

Detailed Description

Defines constants to be used as SessionItem data role.

Variable Documentation

◆ APPEARANCE

const int ModelView::ItemDataRole::APPEARANCE = 3

appearance flag

Definition at line 32 of file mvvm_types.h.

Referenced by ModelView::Utils::ItemRoleToQtRole(), ModelView::SessionItem::setAppearanceFlag(), and TEST_F().

◆ DATA

◆ DISPLAY

const int ModelView::ItemDataRole::DISPLAY = 2

◆ EDITORTYPE

const int ModelView::ItemDataRole::EDITORTYPE = 6

type of custom editor for the data role

Definition at line 35 of file mvvm_types.h.

Referenced by ModelView::SessionItem::editorType(), ModelView::SessionItem::setEditorType(), and TEST_F().

◆ IDENTIFIER

◆ LIMITS

◆ TOOLTIP

const int ModelView::ItemDataRole::TOOLTIP = 5