| 200 | } |
| 201 | |
| 202 | void OpenDialog::fixCurrentText(QComboBox* pCB) |
| 203 | { |
| 204 | QString s = pCB->currentText(); |
| 205 | qsizetype pos = s.indexOf('\n'); |
| 206 | |
| 207 | if(pos >= 0) |
| 208 | s = s.left(pos); |
| 209 | pos = s.indexOf('\r'); |
| 210 | if(pos >= 0) |
| 211 | s = s.left(pos); |
| 212 | |
| 213 | pCB->setEditText(s); |
| 214 | } |
| 215 | |
| 216 | void OpenDialog::accept() |
| 217 | { |
nothing calls this directly
no outgoing calls
no test coverage detected