Porting to KF6KTextEditor

This document describes the changes in the api and what you need to be able to port to KF6 KTextEditor.

Interfaces are gone

All KTextEditor::Document and KTextEditor::View extension interfaces for e.g., MovingInterface, MarkInterface, ConfigInterface etc were removed and their API merged into respective view and document class. For porting, you can just remove the interface case and use the document or view object directly, e.g:

// KF5
if (auto miface = qobject<KTextEditor::MovingInterface*>(m_doc)) {
KTextEditor::MovingRange *range = miface->newMovingInterface(...);
A range that is bound to a specific Document, and maintains its position.

in KF6 becomes:

KTextEditor::MovingRange *range = m_doc->newMovingInterface(...);
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.