BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
FitParameterLinkItem.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Job/FitParameterLinkItem.cpp
6 //! @brief Implements class FitParameterLinkItem
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
16 
18  : SessionItem(M_TYPE)
19 {
20  addProperty(P_LINK, QString());
21  addProperty(P_TITLE, QString());
22 }
23 
25 {
26  return getItemValue(P_LINK).toString();
27 }
28 
29 void FitParameterLinkItem::setLink(const QString& link)
30 {
32 }
33 
35 {
36  return getItemValue(P_TITLE).toString();
37 }
38 
39 void FitParameterLinkItem::setTitle(const QString& title)
40 {
42 }
43 
45 {
46  return getItem(P_LINK);
47 }
Defines class FitParameterLinkItem.
void setLink(const QString &link)
static constexpr auto P_LINK
static constexpr auto P_TITLE
SessionItem * linkItem() const
void setTitle(const QString &title)
Base class for a GUI data item.
Definition: SessionItem.h:204
SessionItem * addProperty(const QString &name, const QVariant &variant)
Add new property item and register new tag. name is the tag name and the display name....
QVariant getItemValue(const QString &tag) const
Directly access value of item under given tag.
void setItemValue(const QString &tag, const QVariant &variant) const
Directly set value of item under given tag.
SessionItem * getItem(const QString &tag="", int row=0) const
Returns item in given row of given tag.