| 72 | } |
| 73 | |
| 74 | void QmitkParagraphQuestionWidget::AdjustHeight() |
| 75 | { |
| 76 | QMargins contentsMargins = m_TextEdit->contentsMargins(); |
| 77 | int documentHeight = static_cast<int>(m_TextEdit->document()->documentLayout()->documentSize().height()); |
| 78 | int totalHeight = contentsMargins.top() + documentHeight + contentsMargins.bottom(); |
| 79 | |
| 80 | m_TextEdit->setFixedHeight(std::max(totalHeight, 50)); |
| 81 | } |
| 82 | |
| 83 | void QmitkParagraphQuestionWidget::OnTextChanged() |
| 84 | { |
no outgoing calls
no test coverage detected