summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqmovie.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-12 18:31:45 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-12 18:31:45 +0000
commit52f8a1d18175ad99fbc01d2d9b7b9e822573cac3 (patch)
treeb5ca23487a951381de58cfc28fb3cde9d6052d8d /qtinterface/tqmovie.cpp
parent8385c1bc03d09c43de703fcf50d8f607f3250cfa (diff)
downloadtqtinterface-52f8a1d18175ad99fbc01d2d9b7b9e822573cac3.tar.gz
tqtinterface-52f8a1d18175ad99fbc01d2d9b7b9e822573cac3.zip
Qt3 compilation fix
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1162810 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/tqmovie.cpp')
-rw-r--r--qtinterface/tqmovie.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/qtinterface/tqmovie.cpp b/qtinterface/tqmovie.cpp
index 866a8cc..20367dd 100644
--- a/qtinterface/tqmovie.cpp
+++ b/qtinterface/tqmovie.cpp
@@ -21,3 +21,37 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
#include <tqmovie.h>
+
+#ifdef USE_QT4
+
+// TQMovie::TQMovie(QObject *parent) : QMovie(parent) {}
+// TQMovie::TQMovie(QIODevice *device, const QByteArray &format, QObject *parent) : QMovie(device, format, parent) {}
+// TQMovie::TQMovie(const QString &fileName, const QByteArray &format, QObject *parent) : QMovie(fileName, format, parent) {}
+
+TQMovie::TQMovie(QObject *parent) {
+ d = new QMovie(parent);
+}
+
+TQMovie::TQMovie(QIODevice *device, const QByteArray &format, QObject *parent) {
+ d = new QMovie(device, format, parent);
+}
+
+TQMovie::TQMovie(const QString &fileName, const QByteArray &format, QObject *parent) {
+ d = new QMovie(fileName, format, parent);
+}
+
+TQMovie::operator QMovie *() const {
+ return d;
+}
+
+/*!
+ Makes this movie use the same data as movie \a movie. QMovies use
+ explicit sharing.
+*/
+TQMovie& TQMovie::operator=(const TQMovie& movie)
+{
+ d = movie.d;
+ return *this;
+}
+
+#endif // USE_QT4 \ No newline at end of file