From 1638609997cfef8fa1c63ba3f6ba93b9f6a4b014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 28 Sep 2016 13:27:40 +0200 Subject: Properly import python_tqt module in scripts generated by pyuic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- pyuic3/form.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyuic3/form.cpp') 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 ) { -- cgit v1.2.1