| 202 | } |
| 203 | |
| 204 | void QmitkForm::UpdateSubmittedHeader() |
| 205 | { |
| 206 | if (m_HasBeenSubmitted && m_Ui->sectionWidget->currentIndex() != -1) |
| 207 | { |
| 208 | bool showTitle = !m_Form->GetTitle().empty(); |
| 209 | |
| 210 | m_Ui->submittedTitleLabel->setVisible(showTitle); |
| 211 | |
| 212 | if (showTitle) |
| 213 | m_Ui->submittedTitleLabel->setText(QString("<h2>%1</h2>").arg(QString::fromStdString(m_Form->GetTitle()))); |
| 214 | |
| 215 | m_Ui->submittedFrame->show(); |
| 216 | } |
| 217 | else |
| 218 | { |
| 219 | m_Ui->submittedFrame->hide(); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | void QmitkForm::UpdateSectionHeader() |
| 224 | { |