From 17b1e7850279ce936e0d090c9381d6167a7d548b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 10:46:19 -0500 Subject: Convert to TDE R14 API --- src/videopreview.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/videopreview.h') diff --git a/src/videopreview.h b/src/videopreview.h index cb4f255..6adcf2d 100644 --- a/src/videopreview.h +++ b/src/videopreview.h @@ -21,40 +21,40 @@ #ifndef _videopreview_H_ #define _videopreview_H_ -#include -#include +#include +#include -#include +#include #include -class QProcess; -class QCString; +class TQProcess; +class TQCString; class KTempDir; class KRandomSequence; class KPixmapSplitter; -#include +#include -class VideoPreview : public QObject, public ThumbCreator +class VideoPreview : public TQObject, public ThumbCreator { Q_OBJECT public: VideoPreview(); virtual ~VideoPreview(); - virtual bool create(const QString &path, int width, int height, QImage &img); + virtual bool create(const TQString &path, int width, int height, TQImage &img); virtual Flags flags() const; protected: - QPixmap getFrame(const QString &path, int flags); - static uint imageVariance(QImage image ); + TQPixmap getFrame(const TQString &path, int flags); + static uint imageVariance(TQImage image ); private: KPixmapSplitter *m_splitter; char *m_data; int m_dataSize; - QPixmap m_pixmap; - QProcess *mplayerprocess; - QStringList customargs; + TQPixmap m_pixmap; + TQProcess *mplayerprocess; + TQStringList customargs; KTempDir *tmpdir; KRandomSequence *rand; - QString playerBin; + TQString playerBin; enum frameflags { framerandom=0x1, framestart=0x2, frameend=0x4 }; struct { int towidth; int toheight; int fps; int seconds; } fileinfo; }; -- cgit v1.2.1