| 1894 | } |
| 1895 | |
| 1896 | std::shared_ptr<TextDocument> UICodeEditorSplitter::getTextDocumentRef( TextDocument* doc ) { |
| 1897 | std::shared_ptr<TextDocument> ret; |
| 1898 | forEachEditor( [doc, &ret]( UICodeEditor* editor ) { |
| 1899 | if ( editor->getDocumentRef().get() == doc ) |
| 1900 | ret = editor->getDocumentRef(); |
| 1901 | } ); |
| 1902 | return ret; |
| 1903 | } |
| 1904 | |
| 1905 | void UICodeEditorSplitter::setTabTryCloseCallback( TabTryCloseCallback cb ) { |
| 1906 | mTabTryCloseCb = cb; |
no test coverage detected