| 321 | } |
| 322 | |
| 323 | void CodeEditor::showDebugInfo(bool show) |
| 324 | { |
| 325 | if (filepath!="" && !filepath.endsWith(".mzn")) |
| 326 | show = false; |
| 327 | if (show) { |
| 328 | if(debugInfo->isHidden()){ |
| 329 | debugInfo->show(); |
| 330 | setViewportWidth(0); |
| 331 | } |
| 332 | } else { |
| 333 | if(!debugInfo->isHidden()){ |
| 334 | debugInfo->hide(); |
| 335 | setViewportWidth(0); |
| 336 | } |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | void CodeEditor::setViewportWidth(int) |
| 341 | { |
no test coverage detected