diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /k9author/k9avidecode.h | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9author/k9avidecode.h')
-rw-r--r-- | k9author/k9avidecode.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/k9author/k9avidecode.h b/k9author/k9avidecode.h index 53f6029..67614a3 100644 --- a/k9author/k9avidecode.h +++ b/k9author/k9avidecode.h @@ -13,7 +13,7 @@ #define K9AVIDECODE_H #include "k9common.h" -#include <qobject.h> +#include <tqobject.h> #ifdef OLD_FFMPEG #include <ffmpeg/avformat.h> #endif @@ -22,7 +22,7 @@ #endif -#include <qimage.h> +#include <tqimage.h> /** @author Jean-Michel PETIT <k9copy@free.fr> @@ -54,23 +54,24 @@ typedef void (*avcodec_flush_buffers_t)(AVCodecContext *); -class k9AviDecode : public QObject +class k9AviDecode : public TQObject { Q_OBJECT + TQ_OBJECT public: - k9AviDecode(QObject *parent = 0, const char *name = 0); + k9AviDecode(TQObject *tqparent = 0, const char *name = 0); ~k9AviDecode(); - bool open(const QString & _fileName); + bool open(const TQString & _fileName); void readFrame(double _seconds); void seek(double _seconds); void close(); double getDuration() const; bool opened() const; - QString getFileName() const; + TQString getFileName() const; - QString getError() const; + TQString getError() const; private: av_register_all_t av_register_all; @@ -102,11 +103,11 @@ private: int m_videoStream; bool m_opened; double m_duration; - QString m_fileName; - QString m_error; + TQString m_fileName; + TQString m_error; void SaveFrame(AVFrame *pFrame, int width, int height); signals: - void drawFrame(QImage*); + void drawFrame(TQImage*); }; #endif |