| 113 | } |
| 114 | |
| 115 | void ResizableTextEdit::addSize(QSize size) { |
| 116 | if (m_size.height() + size.height() < minimumHeight()) |
| 117 | return; |
| 118 | |
| 119 | m_size = QSize(m_size.width(), m_size.height() + size.height()); |
| 120 | updateGeometry(); |
| 121 | setMaximumHeight(m_size.height()); |
| 122 | } |
| 123 | |
| 124 | QSize ResizableTextEdit::sizeHint() const { |
| 125 | return m_size; |
no test coverage detected