9 #include "kpreviewwidgetbase.h"
10 #include <tqstringlist.h>
12 class KPreviewWidgetBase::KPreviewWidgetBasePrivate
15 TQStringList supportedMimeTypes;
18 TQPtrDict<KPreviewWidgetBase::KPreviewWidgetBasePrivate> * KPreviewWidgetBase::s_private;
21 : TQWidget( parent, name )
24 s_private =
new TQPtrDict<KPreviewWidgetBasePrivate>();
26 s_private->insert(
this,
new KPreviewWidgetBasePrivate() );
29 KPreviewWidgetBase::~KPreviewWidgetBase()
31 s_private->remove(
this );
32 if ( s_private->isEmpty() )
39 void KPreviewWidgetBase::setSupportedMimeTypes(
const TQStringList& mimeTypes )
41 d()->supportedMimeTypes = mimeTypes;
44 TQStringList KPreviewWidgetBase::supportedMimeTypes()
const
46 return d()->supportedMimeTypes;
49 #include "kpreviewwidgetbase.moc"