KMimeTypeEditor Namespace

This namespace provides a method for starting the file types editor. More...

Header: #include <KMimeTypeEditor>
CMake: find_package(KF6 REQUIRED COMPONENTS WidgetsAddons)
target_link_libraries(mytarget PRIVATE KF6::WidgetsAddons)
Since: 5.4

Functions

(since 5.4) void editMimeType(const QString &mimeType, QWidget *widget)

Detailed Description

Function Documentation

[since 5.4] void KMimeTypeEditor::editMimeType(const QString &mimeType, QWidget *widget)

Starts the file types editor for a given MIME type.

Displays an error message if the mimetype editing tool (keditfiletype) couldn't be launched.

mimeType the MIME type to edit, e.g. "text/plain"

widget the parent widget

This function was introduced in 5.4.