BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
viewmodelutils.h File Reference

Defines class CLASS? More...

Include dependency graph for viewmodelutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ModelView
 materialitems.h Collection of materials to populate MaterialModel.
 
 ModelView::Utils
 Collection of various widget-related utils.
 

Functions

MVVM_VIEWMODEL_EXPORT QVariant ModelView::Utils::CheckStateRole (const SessionItem &item)
 Returns check state role of given item. More...
 
MVVM_VIEWMODEL_EXPORT QVariant ModelView::Utils::DecorationRole (const SessionItem &item)
 Returns decoration role for given item. More...
 
MVVM_VIEWMODEL_EXPORT QVector< int > ModelView::Utils::ItemRoleToQtRole (int role)
 Returns vector of Qt roles corresponding to given ItemDataRole. More...
 
MVVM_VIEWMODEL_EXPORT std::vector< SessionItem * > ModelView::Utils::ItemsFromIndex (const QModelIndexList &index_list)
 Returns vector of underlying SessionItem's for given index list. More...
 
MVVM_VIEWMODEL_EXPORT void ModelView::Utils::iterate_model (const QAbstractItemModel *model, const QModelIndex &parent, const std::function< void(const QModelIndex &child)> &fun)
 Iterates through QAbstractItem model. More...
 
MVVM_VIEWMODEL_EXPORT std::vector< SessionItem * > ModelView::Utils::ParentItemsFromIndex (const QModelIndexList &index_list)
 Returns vector of parent items from given index list. More...
 
MVVM_VIEWMODEL_EXPORT QVariant ModelView::Utils::TextColorRole (const SessionItem &item)
 Returns text color for given item. More...
 
MVVM_VIEWMODEL_EXPORT QVariant ModelView::Utils::ToolTipRole (const SessionItem &item)
 Returns tooltip role for given item. More...
 
MVVM_VIEWMODEL_EXPORT std::vector< SessionItem * > ModelView::Utils::UniqueItemsFromIndex (const QModelIndexList &index_list)
 Returns vector of underlying SessionItem's for given index list. Removes repetitions. More...
 

Detailed Description

Defines class CLASS?

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file viewmodelutils.h.