1/*
2 This file is part of the KDE project.
3 SPDX-FileCopyrightText: 2003 Carsten Pfeiffer <pfeiffer@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-only
6*/
7
8#include "kpreviewwidgetbase.h"
9
10class Q_DECL_HIDDEN KPreviewWidgetBase::KPreviewWidgetBasePrivate
11{
12public:
13 QStringList supportedMimeTypes;
14};
15
16KPreviewWidgetBase::KPreviewWidgetBase(QWidget *parent)
17 : QWidget(parent)
18 , d(new KPreviewWidgetBasePrivate)
19{
20}
21
22KPreviewWidgetBase::~KPreviewWidgetBase() = default;
23
24void KPreviewWidgetBase::setSupportedMimeTypes(const QStringList &mimeTypes)
25{
26 d->supportedMimeTypes = mimeTypes;
27}
28
29QStringList KPreviewWidgetBase::supportedMimeTypes() const
30{
31 return d->supportedMimeTypes;
32}
33
34#include "moc_kpreviewwidgetbase.cpp"
35

source code of kio/src/filewidgets/kpreviewwidgetbase.cpp