File indexing completed on 2024-11-17 05:01:16
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 "componentchooserimageviewer.h" 0009 0010 ComponentChooserImageViewer::ComponentChooserImageViewer(QObject *parent) 0011 : ComponentChooser(parent, 0012 QStringLiteral("image/png"), 0013 QStringLiteral("Viewer"), 0014 QStringLiteral("org.kde.gwenview.desktop"), 0015 i18n("Select default image viewer")) 0016 { 0017 } 0018 0019 static const QStringList imageViewerMimetypes{"image/png", "image/jpeg", "image/webp", "image/avif", "image/heif", "image/bmp", "image/x-icns"}; 0020 0021 QStringList ComponentChooserImageViewer::mimeTypes() const 0022 { 0023 return imageViewerMimetypes; 0024 }