| 2241 | } |
| 2242 | |
| 2243 | void UICodeEditor::copyFilePath( bool copyPosition ) { |
| 2244 | auto clipboard = getUISceneNode()->getWindow()->getClipboard(); |
| 2245 | if ( copyPosition ) |
| 2246 | clipboard->setText( mDoc->getFilePath() + mDoc->getSelection().start().toPositionString() ); |
| 2247 | else |
| 2248 | clipboard->setText( mDoc->getFilePath() ); |
| 2249 | } |
| 2250 | |
| 2251 | void UICodeEditor::scrollToCursor( bool centered ) { |
| 2252 | scrollTo( mDoc->getSelection().start(), centered ); |
no test coverage detected