File indexing completed on 2024-11-03 12:39:29
0001 /* 0002 This file is part of the KDE project. 0003 SPDX-FileCopyrightText: 2003 Carsten Pfeiffer <pfeiffer@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only 0006 */ 0007 0008 #include "kpreviewwidgetbase.h" 0009 0010 class Q_DECL_HIDDEN KPreviewWidgetBase::KPreviewWidgetBasePrivate 0011 { 0012 public: 0013 QStringList supportedMimeTypes; 0014 }; 0015 0016 KPreviewWidgetBase::KPreviewWidgetBase(QWidget *parent) 0017 : QWidget(parent) 0018 , d(new KPreviewWidgetBasePrivate) 0019 { 0020 } 0021 0022 KPreviewWidgetBase::~KPreviewWidgetBase() = default; 0023 0024 void KPreviewWidgetBase::setSupportedMimeTypes(const QStringList &mimeTypes) 0025 { 0026 d->supportedMimeTypes = mimeTypes; 0027 } 0028 0029 QStringList KPreviewWidgetBase::supportedMimeTypes() const 0030 { 0031 return d->supportedMimeTypes; 0032 } 0033 0034 #include "moc_kpreviewwidgetbase.cpp"