File indexing completed on 2024-05-26 05:37:00

0001 /*
0002     SPDX-FileCopyrightText: 2022 Thiago Sueto <herzenschein@gmail.com>
0003     SPDX-FileCopyrightText: 2022 Méven Car <meven@kde.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #include "componentchoosertexteditor.h"
0009 
0010 ComponentChooserTextEditor::ComponentChooserTextEditor(QObject *parent)
0011     : ComponentChooser(parent,
0012                        QStringLiteral("text/plain"),
0013                        QStringLiteral("TextEditor"),
0014                        QStringLiteral("org.kde.kate.desktop"),
0015                        i18n("Select default text editor"))
0016 {
0017 }
0018 
0019 static const QStringList textEditorMimetypes{"text/plain",
0020                                              "text/x-cmake",
0021                                              "text/markdown",
0022                                              "application/x-docbook+xml",
0023                                              "application/json",
0024                                              "application/x-yaml"};
0025 
0026 QStringList ComponentChooserTextEditor::mimeTypes() const
0027 {
0028     return textEditorMimetypes;
0029 }