- Extending Qt Creator Manual
- QtCreator
- EditorType
- Extending Qt Creator Manual 10.0.2

# EditorType Class

class Core::EditorType

The EditorType class is the base class for Core::IEditorFactory and Core::IExternalEditor. More...

Header: | #include <coreplugin/editormanager/ieditorfactory.h>
Inherited By: | Core::IEditorFactory and Core::IExternalEditor

- List of all members, including inherited members

## Protected Functions

void | addMimeType(const QString &mimeType)
void | setDisplayName(const QString &displayName)
void | setMimeTypes(const QStringList &mimeTypes)

## Detailed Description

## Member Function Documentation

### `[protected]` void EditorType::addMimeType(const QString &mimeType)

Adds mimeType to the list of MIME types supported by this editor type.

See also mimeTypes() and setMimeTypes().

### `[protected]` void EditorType::setDisplayName(const QString &displayName)

Sets the displayName of the editor type. This is for example shown in the Open With menu and the MIME type preferences.

See also displayName().

### `[protected]` void EditorType::setMimeTypes(const QStringList &mimeTypes)

Sets the MIME types supported by the editor type to mimeTypes.

See also addMimeType() and mimeTypes().