KIO

kpreviewwidgetbase.cpp
1 /*
2  This file is part of the KDE project.
3  SPDX-FileCopyrightText: 2003 Carsten Pfeiffer <[email protected]>
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 
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"
Abstract baseclass for all preview widgets.
KPreviewWidgetBase(QWidget *parent)
Constructor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:00:36 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.