From e87fff3247e64b4e9509be991a8f2d6bd4ccfacc Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 14 Feb 2012 21:12:44 -0600 Subject: Update various qt function definitions and static methods for tqt3 --- pyuic3/embed.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyuic3/embed.cpp') diff --git a/pyuic3/embed.cpp b/pyuic3/embed.cpp index 3e54d83..17efd0d 100644 --- a/pyuic3/embed.cpp +++ b/pyuic3/embed.cpp @@ -32,7 +32,7 @@ // on embedded, we do not compress image data. Rationale: by mapping // the ready-only data directly into memory we are both faster and // more memory efficient -#if (QT_VERSION < 0x030100 || defined(Q_WS_QWS)) && !defined(QT_NO_IMAGE_COLLECTION_COMPRESSION) +#if (TQT_VERSION < 0x030100 || defined(Q_WS_QWS)) && !defined(QT_NO_IMAGE_COLLECTION_COMPRESSION) #define QT_NO_IMAGE_COLLECTION_COMPRESSION #endif @@ -129,7 +129,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima out << "# " << *it << "\n"; out << "#\n"; out << "# Created: " << TQDateTime::currentDateTime().toString() << "\n"; - out << "# by: The PyTQt User Interface Compiler (pyuic) " << PYQT_VERSION << "\n"; + out << "# by: The PyTQt User Interface Compiler (pyuic) " << PYTQT_VERSION << "\n"; out << "#\n"; out << "# WARNING! All changes made in this file will be lost!\n"; @@ -137,7 +137,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima out << "\n"; out << "from qt import TQImage, TQMimeSourceFactory"; #ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION - out << ", qUncompress"; + out << ", tqUncompress"; #endif out << "\n"; out << "\n"; @@ -228,7 +228,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima ++indent; #ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION // Keep the data object alive until we have a deep copy of the image. - out << indent << "data = qUncompress(data).data()\n"; + out << indent << "data = tqUncompress(data).data()\n"; #endif out << indent << "img = TQImage(data,w,h,depth,colTab,nrCol,TQImage.BigEndian).copy()\n"; out << "\n"; -- cgit v1.2.3