summaryrefslogtreecommitdiffstats
path: root/tools/designer/uic/form.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/uic/form.cpp')
-rw-r--r--tools/designer/uic/form.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/tools/designer/uic/form.cpp b/tools/designer/uic/form.cpp
index be21ee9e0..e185af6c3 100644
--- a/tools/designer/uic/form.cpp
+++ b/tools/designer/uic/form.cpp
@@ -35,12 +35,12 @@
#include "parser.h"
#include "widgetdatabase.h"
#include "domtool.h"
-#include <qstringlist.h>
-#include <qvaluelist.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <ntqstringlist.h>
+#include <ntqvaluelist.h>
+#include <ntqfile.h>
+#include <ntqfileinfo.h>
+#include <ntqdir.h>
+#include <ntqregexp.h>
#define NO_STATIC_COLORS
#include <globaldefs.h>
@@ -196,10 +196,10 @@ void Uic::createFormDecl( const TQDomElement &e )
out << "#ifndef " << protector << endl;
out << "#define " << protector << endl;
out << endl;
- out << "#include <qvariant.h>" << endl; // for broken HP-UX compilers
+ out << "#include <ntqvariant.h>" << endl; // for broken HP-UX compilers
if ( !imageMembers.isEmpty() )
- out << "#include <qpixmap.h>" << endl;
+ out << "#include <ntqpixmap.h>" << endl;
TQStringList globalIncludes, localIncludes;
int wid = WidgetDatabase::idFromClassName( objClass );
@@ -753,9 +753,9 @@ void Uic::createFormImpl( const TQDomElement &e )
registerDatabases( e );
dbConnections = unique( dbConnections );
if ( dbConnections.count() )
- globalIncludes += "qsqldatabase.h";
+ globalIncludes += "ntqsqldatabase.h";
if ( dbCursors.count() )
- globalIncludes += "qsqlcursor.h";
+ globalIncludes += "ntqsqlcursor.h";
bool dbForm = FALSE;
if ( dbForms[ "(default)" ].count() )
dbForm = TRUE;
@@ -769,8 +769,8 @@ void Uic::createFormImpl( const TQDomElement &e )
}
}
if ( dbForm || subDbForms ) {
- globalIncludes += "qsqlform.h";
- globalIncludes += "qsqlrecord.h";
+ globalIncludes += "ntqsqlform.h";
+ globalIncludes += "ntqsqlrecord.h";
}
// do the local includes afterwards, since global includes have priority on clashes
@@ -803,12 +803,12 @@ void Uic::createFormImpl( const TQDomElement &e )
for ( i = 1; i < (int) nl.length(); i++ ) { // start at 1, 0 is the toplevel widget
TQString name = getClassName( nl.item(i).toElement() );
if ( name == "Spacer" ) {
- globalIncludes += "qlayout.h";
- globalIncludes += "qapplication.h";
+ globalIncludes += "ntqlayout.h";
+ globalIncludes += "ntqapplication.h";
continue;
}
if (( name.mid( 1 ) == "ListView" ) || ( name.mid( 2 ) == "ListView" ))
- globalIncludes += "qheader.h";
+ globalIncludes += "ntqheader.h";
if ( name != objClass ) {
int wid = WidgetDatabase::idFromClassName( name );
TQMap<TQString, CustomInclude>::Iterator it = customWidgetIncludes.find( name );
@@ -818,7 +818,7 @@ void Uic::createFormImpl( const TQDomElement &e )
}
}
- out << "#include <qvariant.h>" << endl; // first for gcc 2.7.2
+ out << "#include <ntqvariant.h>" << endl; // first for gcc 2.7.2
globalIncludes = unique( globalIncludes );
for ( it = globalIncludes.begin(); it != globalIncludes.end(); ++it ) {
@@ -826,14 +826,14 @@ void Uic::createFormImpl( const TQDomElement &e )
out << "#include <" << *it << ">" << endl;
}
- out << "#include <qlayout.h>" << endl;
- out << "#include <qtooltip.h>" << endl;
- out << "#include <qwhatsthis.h>" << endl;
+ out << "#include <ntqlayout.h>" << endl;
+ out << "#include <ntqtooltip.h>" << endl;
+ out << "#include <ntqwhatsthis.h>" << endl;
if ( objClass == "TQMainWindow" ) {
- out << "#include <qaction.h>" << endl;
- out << "#include <qmenubar.h>" << endl;
- out << "#include <qpopupmenu.h>" << endl;
- out << "#include <qtoolbar.h>" << endl;
+ out << "#include <ntqaction.h>" << endl;
+ out << "#include <ntqmenubar.h>" << endl;
+ out << "#include <ntqpopupmenu.h>" << endl;
+ out << "#include <ntqtoolbar.h>" << endl;
}
// find out what images are required
@@ -851,8 +851,8 @@ void Uic::createFormImpl( const TQDomElement &e )
}
if ( !requiredImages.isEmpty() || externPixmaps ) {
- out << "#include <qimage.h>" << endl;
- out << "#include <qpixmap.h>" << endl << endl;
+ out << "#include <ntqimage.h>" << endl;
+ out << "#include <ntqpixmap.h>" << endl << endl;
}
/*