diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 01:04:16 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-27 01:04:16 -0600 |
commit | 5159cd2beb2e87806a5b54e9991b7895285c9d3e (patch) | |
tree | 9b70e8be47a390f8f4d56ead812ab0c9dad88709 /tdeio/tdefile/kpreviewwidgetbase.cpp | |
parent | c17cb900dcf52b8bd6dc300d4f103392900ec2b4 (diff) | |
download | tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.tar.gz tdelibs-5159cd2beb2e87806a5b54e9991b7895285c9d3e.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdeio/tdefile/kpreviewwidgetbase.cpp')
-rw-r--r-- | tdeio/tdefile/kpreviewwidgetbase.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tdeio/tdefile/kpreviewwidgetbase.cpp b/tdeio/tdefile/kpreviewwidgetbase.cpp new file mode 100644 index 000000000..979da919e --- /dev/null +++ b/tdeio/tdefile/kpreviewwidgetbase.cpp @@ -0,0 +1,49 @@ +/* + * 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" +#include <tqstringlist.h> + +class KPreviewWidgetBase::KPreviewWidgetBasePrivate +{ +public: + TQStringList supportedMimeTypes; +}; + +TQPtrDict<KPreviewWidgetBase::KPreviewWidgetBasePrivate> * KPreviewWidgetBase::s_private; + +KPreviewWidgetBase::KPreviewWidgetBase( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) +{ + if ( !s_private ) + s_private = new TQPtrDict<KPreviewWidgetBasePrivate>(); + + s_private->insert( this, new KPreviewWidgetBasePrivate() ); +} + +KPreviewWidgetBase::~KPreviewWidgetBase() +{ + s_private->remove( this ); + if ( s_private->isEmpty() ) + { + delete s_private; + s_private = 0L; + } +} + +void KPreviewWidgetBase::setSupportedMimeTypes( const TQStringList& mimeTypes ) +{ + d()->supportedMimeTypes = mimeTypes; +} + +TQStringList KPreviewWidgetBase::supportedMimeTypes() const +{ + return d()->supportedMimeTypes; +} + +#include "kpreviewwidgetbase.moc" |