| 59 | } |
| 60 | |
| 61 | ctkXnatProject *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 | } |
nothing calls this directly
no test coverage detected