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 | |
10 | class Q_DECL_HIDDEN KPreviewWidgetBase::KPreviewWidgetBasePrivate |
11 | { |
12 | public: |
13 | QStringList supportedMimeTypes; |
14 | }; |
15 | |
16 | KPreviewWidgetBase::KPreviewWidgetBase(QWidget *parent) |
17 | : QWidget(parent) |
18 | , d(new KPreviewWidgetBasePrivate) |
19 | { |
20 | } |
21 | |
22 | KPreviewWidgetBase::~KPreviewWidgetBase() = default; |
23 | |
24 | void KPreviewWidgetBase::setSupportedMimeTypes(const QStringList &mimeTypes) |
25 | { |
26 | d->supportedMimeTypes = mimeTypes; |
27 | } |
28 | |
29 | QStringList KPreviewWidgetBase::supportedMimeTypes() const |
30 | { |
31 | return d->supportedMimeTypes; |
32 | } |
33 | |
34 | #include "moc_kpreviewwidgetbase.cpp" |
35 |