BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
propertyitem.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/model/mvvm/model/propertyitem.cpp
6 //! @brief Implements class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
17 #include "mvvm/model/mvvm_types.h"
18 
19 using namespace ModelView;
20 
22 
24 {
26  return this;
27 }
28 
30 {
31  this->setData(value, ItemDataRole::LIMITS);
32  return this;
33 }
Item to carry concrete editable entity (e.g.
Definition: propertyitem.h:27
PropertyItem * setDisplayName(const std::string &name) override
Sets display name (fluent interface).
PropertyItem * setLimits(const RealLimits &value)
Limits for double.
Definition: reallimits.h:25
The main object representing an editable/displayable/serializable entity.
Definition: sessionitem.h:38
bool setData(const T &value, int role=ItemDataRole::DATA, bool direct=false)
Sets data for a given role.
Definition: sessionitem.h:141
virtual SessionItem * setDisplayName(const std::string &name)
Sets display name (fluent interface).
Defines class CLASS?
Defines class CLASS?
const model_type PropertyType
Definition: mvvm_types.h:59
const int LIMITS
possibly limits on item's data
Definition: mvvm_types.h:33
materialitems.h Collection of materials to populate MaterialModel.
QString const & name(EShape k)
Definition: particles.cpp:21
Defines class CLASS?