Warning, /frameworks/ktexteditor/docs/porting_kf6.md is written in an unsupported language. File is not indexed.
0001 # Porting to KF6KTextEditor 0002 0003 This document describes the changes in the api and what you need to be able to port to KF6 KTextEditor. 0004 0005 ## Interfaces are gone 0006 0007 All KTextEditor::Document and KTextEditor::View extension interfaces for e.g., MovingInterface, MarkInterface, ConfigInterface etc were 0008 removed and their API merged into respective view and document class. For porting, you can just remove the interface case and use the 0009 document or view object directly, e.g: 0010 ```c++ 0011 // KF5 0012 if (auto miface = qobject<KTextEditor::MovingInterface*>(m_doc)) { 0013 KTextEditor::MovingRange *range = miface->newMovingInterface(...); 0014 } 0015 ``` 0016 in KF6 becomes: 0017 0018 ```c++ 0019 KTextEditor::MovingRange *range = m_doc->newMovingInterface(...); 0020 ```