kdelibs/kio/kfile/kpreviewwidgetbase.cpp
Ivailo Monev 82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00

37 lines
829 B
C++

/*
* 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;
};
KPreviewWidgetBase::KPreviewWidgetBase( QWidget *parent )
: QWidget(parent), d(new KPreviewWidgetBasePrivate)
{
}
KPreviewWidgetBase::~KPreviewWidgetBase()
{
delete d;
}
void KPreviewWidgetBase::setSupportedMimeTypes( const QStringList& mimeTypes )
{
d->supportedMimeTypes = mimeTypes;
}
QStringList KPreviewWidgetBase::supportedMimeTypes() const
{
return d->supportedMimeTypes;
}
#include "moc_kpreviewwidgetbase.cpp"