KTextEditor

View Extension Interfaces
Collaboration diagram for View Extension Interfaces:

Classes

class  KTextEditor::AnnotationViewInterface
 
class  KTextEditor::AnnotationViewInterfaceV2
 
class  KTextEditor::CodeCompletionInterface
 
class  KTextEditor::ConfigInterface
 
class  KTextEditor::InlineNoteInterface
 
class  KTextEditor::TextHintInterface
 

Detailed Description

A KTextEditor implementation may implement a View extension interface, but it does not need to.

So as a KTextEditor user you have to cast the View to the desired interface and then check, whether the cast returns NULL or the valid interface.

Use qobject_cast to cast a View view into the DesiredExtensionInterface, example:

// view is of type KTextEditor::View*
auto iface = qobject_cast<KTextEditor::DesiredExtensionInterface*>(view);
if (iface) {
// the implementation supports the interface
// do stuff
} else {
// the implementation does not support the interface
}
See also
KTextEditor::View

The following classes are a list of all available View extension interfaces.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 22:58:06 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.