| 1668 | } |
| 1669 | |
| 1670 | bool UICodeEditor::unfold( Int64 docLineIdx ) { |
| 1671 | if ( mDoc->getFoldRangeService().isFoldingRegionInLine( docLineIdx ) ) { |
| 1672 | /* if ( mDocView.isFolded( docLineIdx ) ) */ { |
| 1673 | sendCommonEvent( Event::OnBeforeFoldUnfoldRange ); |
| 1674 | mDocView.unfoldRegion( docLineIdx ); |
| 1675 | return true; |
| 1676 | } |
| 1677 | } |
| 1678 | return false; |
| 1679 | } |
| 1680 | |
| 1681 | bool UICodeEditor::toggleFoldUnfold( Int64 docLineIdx ) { |
| 1682 | if ( mDoc->getFoldRangeService().isFoldingRegionInLine( docLineIdx ) ) { |
no test coverage detected