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

Description

Defines class ProjectDocument.

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

Definition in file ProjectDocument.h.

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

Go to the source code of this file.

Classes

class  ProjectDocument
 Project document class handles all data related to the opened project (sample, job, project specific settings). More...
 

Functions

ProjectDocument::Functionalities toFunctionalities (const QVariant &v)
 
QVariant toVariant (const ProjectDocument::Functionalities &f)
 

Function Documentation

◆ toFunctionalities()

ProjectDocument::Functionalities toFunctionalities ( const QVariant &  v)
inline

Definition at line 158 of file ProjectDocument.h.

159 {
160  return static_cast<ProjectDocument::Functionalities>(
161  v.value<ProjectDocument::Functionalities::Int>());
162 }

Referenced by ProjectManager::createNewProject().

◆ toVariant()

QVariant toVariant ( const ProjectDocument::Functionalities &  f)
inline

Definition at line 153 of file ProjectDocument.h.

154 {
155  return QVariant(static_cast<ProjectDocument::Functionalities::Int>(f));
156 }

Referenced by ProjectManager::createNewProject(), and ProjectSettingsView::storeAsDefaults().