MCPcopy Create free account
hub / github.com/MITK/MITK / GetProject

Method GetProject

Modules/XNAT/src/QmitkXnatProjectWidget.cpp:61–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61ctkXnatProject *QmitkXnatProjectWidget::GetProject() const
62{
63 if (m_Mode == Mode::CREATE)
64 {
65 if (!m_Controls->idLineEdit->text().isEmpty())
66 {
67 m_Project->setProperty("ID", m_Controls->idLineEdit->text());
68 }
69 if (!m_Controls->nameLineEdit->text().isEmpty())
70 {
71 m_Project->setProperty("name", m_Controls->nameLineEdit->text());
72 }
73 if (!m_Controls->descriptionLineEdit->text().isEmpty())
74 {
75 m_Project->setProperty("description", m_Controls->descriptionLineEdit->text());
76 }
77 // pi name needs to be inserted separated
78 }
79 return m_Project;
80}

Callers

nothing calls this directly

Calls 2

textMethod · 0.80
setPropertyMethod · 0.80

Tested by

no test coverage detected