2014-11-13 01:04:59 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the KDE project.
|
|
|
|
* Copyright (C) 2003 Carsten Pfeiffer <pfeiffer@kde.org>
|
|
|
|
*
|
|
|
|
* You can Freely distribute this program under the GNU Library General Public
|
|
|
|
* License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "kpreviewwidgetbase.h"
|
|
|
|
|
|
|
|
class KPreviewWidgetBase::KPreviewWidgetBasePrivate
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QStringList supportedMimeTypes;
|
|
|
|
};
|
|
|
|
|
2023-06-19 06:00:02 +03:00
|
|
|
KPreviewWidgetBase::KPreviewWidgetBase(QWidget *parent)
|
|
|
|
: QWidget(parent),
|
|
|
|
d(new KPreviewWidgetBasePrivate())
|
2014-11-13 01:04:59 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
KPreviewWidgetBase::~KPreviewWidgetBase()
|
|
|
|
{
|
|
|
|
delete d;
|
|
|
|
}
|
|
|
|
|
2023-06-19 06:00:02 +03:00
|
|
|
void KPreviewWidgetBase::setSupportedMimeTypes(const QStringList &mimeTypes)
|
2014-11-13 01:04:59 +02:00
|
|
|
{
|
|
|
|
d->supportedMimeTypes = mimeTypes;
|
|
|
|
}
|
|
|
|
|
|
|
|
QStringList KPreviewWidgetBase::supportedMimeTypes() const
|
|
|
|
{
|
|
|
|
return d->supportedMimeTypes;
|
|
|
|
}
|
|
|
|
|
2015-02-27 07:40:26 +00:00
|
|
|
#include "moc_kpreviewwidgetbase.cpp"
|