KWidgetsAddons

kmimetypeeditor.h
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2014 David Faure <faure@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef KMIMETYPE_EDITOR_H
9#define KMIMETYPE_EDITOR_H
10
11#include <QWidget>
12#include <kwidgetsaddons_export.h>
13
14/**
15 * This namespace provides a method for starting the file types editor.
16 * @since 5.4
17 */
19{
20/**
21 * Starts the file types editor for a given MIME type.
22 *
23 * Displays an error message if the mimetype editing tool (keditfiletype)
24 * couldn't be launched.
25 *
26 * @param mimeType the MIME type to edit, e.g. "text/plain"
27 * @param widget the parent widget
28 * @since 5.4
29 */
30KWIDGETSADDONS_EXPORT void editMimeType(const QString &mimeType, QWidget *widget);
31}
32
33#endif
This namespace provides a method for starting the file types editor.
void editMimeType(const QString &mimeType, QWidget *widget)
Starts the file types editor for a given MIME type.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:45:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.