diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-09-28 13:27:40 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-09-28 13:27:52 +0200 |
commit | 929e8d56cb7d1ab497d8ad31ad95b37221f91dd8 (patch) | |
tree | e984c25d76b40b6314bdc2ff62eb806cf3920c5c /pyuic3 | |
parent | f303e4dc2ba3075192db2ab1fc570abd10ba224a (diff) | |
download | pytqt-fa2c309128d4a7b70a4b24f4b13d50c584b5b414.tar.gz pytqt-fa2c309128d4a7b70a4b24f4b13d50c584b5b414.zip |
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 1638609997cfef8fa1c63ba3f6ba93b9f6a4b014)
Diffstat (limited to 'pyuic3')
-rw-r--r-- | pyuic3/embed.cpp | 2 | ||||
-rw-r--r-- | pyuic3/form.cpp | 8 | ||||
-rw-r--r-- | pyuic3/main.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/pyuic3/embed.cpp b/pyuic3/embed.cpp index 410a0d8..bba5f7f 100644 --- a/pyuic3/embed.cpp +++ b/pyuic3/embed.cpp @@ -135,7 +135,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima out << "\n"; out << "\n"; - out << "from qt import TQImage, TQMimeSourceFactory"; + out << "from python_tqt.qt import TQImage, TQMimeSourceFactory"; #ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION out << ", tqUncompress"; #endif diff --git a/pyuic3/form.cpp b/pyuic3/form.cpp index 1e5a81e..3ef0c04 100644 --- a/pyuic3/form.cpp +++ b/pyuic3/form.cpp @@ -258,13 +258,13 @@ void Uic::createFormImpl( const TQDomElement &e ) } if (globalIncludes.findIndex("qtable.h") >= 0) - out << indent << "from qttable import TQTable" << endl; + out << indent << "from python_tqt.qttable import TQTable" << endl; if (!axwidgets.empty()) - out << indent << "from qtaxcontainer import TQAxWidget" << endl; + out << indent << "from python_tqt.qtaxcontainer import TQAxWidget" << endl; if (globalIncludes.findIndex("qextscintilla.h") >= 0) - out << indent << "from qtext import QextScintilla" << endl; + out << indent << "from python_tqt.qtext import QextScintilla" << endl; registerDatabases( e ); dbConnections = unique( dbConnections ); @@ -302,7 +302,7 @@ void Uic::createFormImpl( const TQDomElement &e ) sqlClasses += "TQDataView"; if ( !sqlClasses.empty() ) { - out << indent << "from qtsql import"; + out << indent << "from python_tqt.qtsql import"; const char *sep = " "; for ( it = sqlClasses.begin(); it != sqlClasses.end(); ++it ) { diff --git a/pyuic3/main.cpp b/pyuic3/main.cpp index b1c1fdb..42d1c63 100644 --- a/pyuic3/main.cpp +++ b/pyuic3/main.cpp @@ -220,7 +220,7 @@ int main( int argc, char * argv[] ) if (testCode || execCode) out << "import sys" << endl; - out << "from qt import *" << endl; + out << "from python_tqt.qt import *" << endl; Uic( fileName, outputFile, out, doc, subcl, trmacro, className, uicClass ); |