BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
ParameterLabelItem Class Reference

Description

ParameterTreeItems is a collection of items necessary to form a tuning tree for real time widget.

The ParameterLabelItem class represents a label (string without value, like 'Layer', 'MultiLayer') in a parameter tuning tree.

Definition at line 28 of file ParameterTreeItems.h.

Inheritance diagram for ParameterLabelItem:
[legend]
Collaboration diagram for ParameterLabelItem:
[legend]

Public Member Functions

 ParameterLabelItem (const QString &title, QObject *parent)
 
 ParameterLabelItem (QObject *parent)
 
void setTitle (const QString &title)
 
QString title () const
 

Private Attributes

QString m_title
 

Constructor & Destructor Documentation

◆ ParameterLabelItem() [1/2]

ParameterLabelItem::ParameterLabelItem ( QObject *  parent)

Definition at line 54 of file ParameterTreeItems.cpp.

55  : QObject(parent)
56 {
57 }

◆ ParameterLabelItem() [2/2]

ParameterLabelItem::ParameterLabelItem ( const QString &  title,
QObject *  parent 
)

Definition at line 59 of file ParameterTreeItems.cpp.

60  : QObject(parent)
61  , m_title(title)
62 {
63 }

Member Function Documentation

◆ setTitle()

void ParameterLabelItem::setTitle ( const QString &  title)

Definition at line 70 of file ParameterTreeItems.cpp.

71 {
72  m_title = title;
73 }

References m_title, and title().

Here is the call graph for this function:

◆ title()

QString ParameterLabelItem::title ( ) const

Definition at line 65 of file ParameterTreeItems.cpp.

66 {
67  return m_title;
68 }

References m_title.

Referenced by setTitle().

Member Data Documentation

◆ m_title

QString ParameterLabelItem::m_title
private

Definition at line 37 of file ParameterTreeItems.h.

Referenced by setTitle(), and title().


The documentation for this class was generated from the following files: