|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Implements class CLASS? More...
Go to the source code of this file.
Classes | |
| class | ViewModelUtilsTest |
Functions | |
| TEST_F (ViewModelUtilsTest, itemCheckStateRole) | |
| Testing check state role of item. More... | |
| TEST_F (ViewModelUtilsTest, itemDecorationRole) | |
| Testing decoration role of the item. More... | |
| TEST_F (ViewModelUtilsTest, ItemRoleToQtRole) | |
| Translation of item role to Qt roles. More... | |
| TEST_F (ViewModelUtilsTest, itemsFromIndex) | |
| Check ItemsFromIndex in PropertyTableViewModel context. More... | |
| TEST_F (ViewModelUtilsTest, itemTextColorRole) | |
| Testing color role of item. More... | |
| TEST_F (ViewModelUtilsTest, itemToolTipRole) | |
| Testing tooltip role of the item. More... | |
| TEST_F (ViewModelUtilsTest, iterate) | |
| TEST_F (ViewModelUtilsTest, parentItemsFromIndex) | |
| Check ParentItemsFromIndex in PropertyTableViewModel context. More... | |
| TEST_F (ViewModelUtilsTest, UniqueItemsFromIndex) | |
| Check UniqueItemsFromIndex for artificially constructed viewmodel. More... | |
Implements class CLASS?
Definition in file viewmodelutils.test.cpp.
| TEST_F | ( | ViewModelUtilsTest | , |
| itemCheckStateRole | |||
| ) |
Testing check state role of item.
Definition at line 114 of file viewmodelutils.test.cpp.
References ModelView::Utils::CheckStateRole(), and ModelView::SessionItem::setData().
| TEST_F | ( | ViewModelUtilsTest | , |
| itemDecorationRole | |||
| ) |
Testing decoration role of the item.
Definition at line 131 of file viewmodelutils.test.cpp.
References ModelView::Utils::DecorationRole(), and ModelView::SessionItem::setData().
| TEST_F | ( | ViewModelUtilsTest | , |
| ItemRoleToQtRole | |||
| ) |
Translation of item role to Qt roles.
Definition at line 75 of file viewmodelutils.test.cpp.
References ModelView::ItemDataRole::APPEARANCE, ModelView::ItemDataRole::DATA, SessionItemUtils::ForegroundRole(), ModelView::Utils::ItemRoleToQtRole(), ModelView::Utils::TextColorRole(), ModelView::ItemDataRole::TOOLTIP, and SessionItemUtils::ToolTipRole().
| TEST_F | ( | ViewModelUtilsTest | , |
| itemsFromIndex | |||
| ) |
Check ItemsFromIndex in PropertyTableViewModel context.
ViewItem with its three property x, y, z forms one row. All corresponding indices of (x,y,z) should give us pointers to VectorItem's properties.
Definition at line 161 of file viewmodelutils.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::Utils::ItemsFromIndex(), ModelView::VectorItem::P_X, ModelView::VectorItem::P_Y, ModelView::VectorItem::P_Z, and ModelView::Utils::UniqueItemsFromIndex().
| TEST_F | ( | ViewModelUtilsTest | , |
| itemTextColorRole | |||
| ) |
Testing color role of item.
Definition at line 99 of file viewmodelutils.test.cpp.
References ModelView::SessionItem::setEnabled(), and ModelView::Utils::TextColorRole().
| TEST_F | ( | ViewModelUtilsTest | , |
| itemToolTipRole | |||
| ) |
Testing tooltip role of the item.
Definition at line 146 of file viewmodelutils.test.cpp.
References ModelView::SessionItem::setToolTip(), ModelView::Utils::ToolTipRole(), and PyUtils::toString().
| TEST_F | ( | ViewModelUtilsTest | , |
| iterate | |||
| ) |
Definition at line 48 of file viewmodelutils.test.cpp.
References ModelView::Utils::iterate_model().
| TEST_F | ( | ViewModelUtilsTest | , |
| parentItemsFromIndex | |||
| ) |
Check ParentItemsFromIndex in PropertyTableViewModel context.
ViewItem with its three property x, y, z forms one row. All corresponding indices of (x,y,z) should give us pointer to VectorItem.
Definition at line 217 of file viewmodelutils.test.cpp.
References ModelView::SessionModel::insertItem(), and ModelView::Utils::ParentItemsFromIndex().
| TEST_F | ( | ViewModelUtilsTest | , |
| UniqueItemsFromIndex | |||
| ) |
Check UniqueItemsFromIndex for artificially constructed viewmodel.
Definition at line 190 of file viewmodelutils.test.cpp.
References ModelView::ItemDataRole::DATA, ModelView::ViewModelBase::index(), ModelView::ViewModelBase::insertRow(), ModelView::Utils::ItemsFromIndex(), ModelView::ViewModelBase::rootItem(), ModelView::SessionItem::setData(), and ModelView::Utils::UniqueItemsFromIndex().