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

Method UpdateSubmittedHeader

Modules/FormsUI/src/QmitkForm.cpp:204–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void 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
223void QmitkForm::UpdateSectionHeader()
224{

Callers 1

UpdateMethod · 0.95

Calls 5

showMethod · 0.80
QStringClass · 0.50
emptyMethod · 0.45
GetTitleMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected