KIO

kpreviewwidgetbase.cpp
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
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"
Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(cons...
KPreviewWidgetBase(QWidget *parent)
Constructor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:56:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.