summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qtinterface/tq1xcompatibility.h6
-rw-r--r--qtinterface/tqabstractlayout.h6
-rw-r--r--qtinterface/tqaccel.h9
-rw-r--r--qtinterface/tqaccessible.h9
-rw-r--r--qtinterface/tqaction.h9
-rw-r--r--qtinterface/tqapp.h4
-rw-r--r--qtinterface/tqapplication.h9
-rw-r--r--qtinterface/tqarray.h6
-rw-r--r--qtinterface/tqasciicache.h9
-rw-r--r--qtinterface/tqasciidict.h9
-rw-r--r--qtinterface/tqasyncimageio.h9
-rw-r--r--qtinterface/tqasyncio.h9
-rw-r--r--qtinterface/tqbig5codec.h9
-rw-r--r--qtinterface/tqbitarray.h9
-rw-r--r--qtinterface/tqbitarry.h4
-rw-r--r--qtinterface/tqbitmap.h9
-rw-r--r--qtinterface/tqbrush.h9
-rw-r--r--qtinterface/tqbttngrp.h4
-rw-r--r--qtinterface/tqbuffer.h9
-rw-r--r--qtinterface/tqbutton.h9
-rw-r--r--qtinterface/tqbuttongroup.h9
-rw-r--r--qtinterface/tqcache.h9
-rw-r--r--qtinterface/tqcanvas.h9
-rw-r--r--qtinterface/tqcdestyle.h9
-rw-r--r--qtinterface/tqcheckbox.h9
-rw-r--r--qtinterface/tqchkbox.h4
-rw-r--r--qtinterface/tqcleanuphandler.h9
-rw-r--r--qtinterface/tqclipboard.h9
-rw-r--r--qtinterface/tqclipbrd.h4
-rw-r--r--qtinterface/tqcollect.h6
-rw-r--r--qtinterface/tqcollection.h6
-rw-r--r--qtinterface/tqcolor.h9
-rw-r--r--qtinterface/tqcolordialog.h9
-rw-r--r--qtinterface/tqcombo.h4
-rw-r--r--qtinterface/tqcombobox.h9
-rw-r--r--qtinterface/tqcommonstyle.h9
-rw-r--r--qtinterface/tqcompactstyle.h9
-rw-r--r--qtinterface/tqconfig.h8
-rw-r--r--qtinterface/tqconnect.h4
-rw-r--r--qtinterface/tqconnection.h9
-rw-r--r--qtinterface/tqcstring.h9
-rw-r--r--qtinterface/tqcursor.h9
-rw-r--r--qtinterface/tqdatabrowser.h9
-rw-r--r--qtinterface/tqdatastream.h9
-rw-r--r--qtinterface/tqdatatable.h9
-rw-r--r--qtinterface/tqdataview.h9
-rw-r--r--qtinterface/tqdatetime.h9
-rw-r--r--qtinterface/tqdatetimeedit.h9
-rw-r--r--qtinterface/tqdatetm.h4
-rw-r--r--qtinterface/tqdeepcopy.h9
-rw-r--r--qtinterface/tqdesktopwidget.h9
-rw-r--r--qtinterface/tqdial.h9
-rw-r--r--qtinterface/tqdialog.h9
-rw-r--r--qtinterface/tqdict.h9
-rw-r--r--qtinterface/tqdir.h9
-rw-r--r--qtinterface/tqdns.h9
-rw-r--r--qtinterface/tqdockarea.h9
-rw-r--r--qtinterface/tqdockwindow.h9
-rw-r--r--qtinterface/tqdom.h9
-rw-r--r--qtinterface/tqdragobject.h9
-rw-r--r--qtinterface/tqdrawutil.h9
-rw-r--r--qtinterface/tqdrawutl.h4
-rw-r--r--qtinterface/tqdropsite.h9
-rw-r--r--qtinterface/tqdstream.h4
-rw-r--r--qtinterface/tqeditorfactory.h9
-rw-r--r--qtinterface/tqerrormessage.h9
-rw-r--r--qtinterface/tqeucjpcodec.h9
-rw-r--r--qtinterface/tqeuckrcodec.h9
-rw-r--r--qtinterface/tqevent.h9
-rw-r--r--qtinterface/tqeventloop.h9
-rw-r--r--qtinterface/tqfeatures.h8
-rw-r--r--qtinterface/tqfile.h9
-rw-r--r--qtinterface/tqfiledef.h6
-rw-r--r--qtinterface/tqfiledialog.h9
-rw-r--r--qtinterface/tqfiledlg.h4
-rw-r--r--qtinterface/tqfileinf.h4
-rw-r--r--qtinterface/tqfileinfo.h9
-rw-r--r--qtinterface/tqfocusdata.h9
-rw-r--r--qtinterface/tqfont.h9
-rw-r--r--qtinterface/tqfontdatabase.h9
-rw-r--r--qtinterface/tqfontdialog.h9
-rw-r--r--qtinterface/tqfontinf.h4
-rw-r--r--qtinterface/tqfontinfo.h9
-rw-r--r--qtinterface/tqfontmet.h4
-rw-r--r--qtinterface/tqfontmetrics.h9
-rw-r--r--qtinterface/tqframe.h9
-rw-r--r--qtinterface/tqftp.h9
-rw-r--r--qtinterface/tqgarray.h9
-rw-r--r--qtinterface/tqgb18030codec.h9
-rw-r--r--qtinterface/tqgbkcodec.h4
-rw-r--r--qtinterface/tqgcache.h9
-rw-r--r--qtinterface/tqgdict.h9
-rw-r--r--qtinterface/tqgeneric.h6
-rw-r--r--qtinterface/tqgif.h8
-rw-r--r--qtinterface/tqgl.h9
-rw-r--r--qtinterface/tqglcolormap.h9
-rw-r--r--qtinterface/tqglist.h9
-rw-r--r--qtinterface/tqglobal.h8
-rw-r--r--qtinterface/tqgplugin.h9
-rw-r--r--qtinterface/tqgrid.h9
-rw-r--r--qtinterface/tqgridview.h9
-rw-r--r--qtinterface/tqgroupbox.h9
-rw-r--r--qtinterface/tqgrpbox.h4
-rw-r--r--qtinterface/tqguardedptr.h9
-rw-r--r--qtinterface/tqgvector.h9
-rw-r--r--qtinterface/tqhbox.h9
-rw-r--r--qtinterface/tqhbuttongroup.h9
-rw-r--r--qtinterface/tqheader.h9
-rw-r--r--qtinterface/tqhgroupbox.h9
-rw-r--r--qtinterface/tqhostaddress.h9
-rw-r--r--qtinterface/tqhttp.h9
-rw-r--r--qtinterface/tqiconset.h9
-rw-r--r--qtinterface/tqiconview.h9
-rw-r--r--qtinterface/tqimage.h9
-rw-r--r--qtinterface/tqimageformatplugin.h9
-rw-r--r--qtinterface/tqinputcontext.h9
-rw-r--r--qtinterface/tqinputcontextfactory.h9
-rw-r--r--qtinterface/tqinputdialog.h9
-rw-r--r--qtinterface/tqintcach.h4
-rw-r--r--qtinterface/tqintcache.h9
-rw-r--r--qtinterface/tqintdict.h9
-rw-r--r--qtinterface/tqinterlacestyle.h11
-rw-r--r--qtinterface/tqiodev.h4
-rw-r--r--qtinterface/tqiodevice.h9
-rw-r--r--qtinterface/tqjiscodec.h9
-rw-r--r--qtinterface/tqjpegio.h10
-rw-r--r--qtinterface/tqjpunicode.h9
-rw-r--r--qtinterface/tqkeycode.h8
-rw-r--r--qtinterface/tqkeysequence.h9
-rw-r--r--qtinterface/tqlabel.h9
-rw-r--r--qtinterface/tqlayout.h9
-rw-r--r--qtinterface/tqlcdnum.h4
-rw-r--r--qtinterface/tqlcdnumber.h9
-rw-r--r--qtinterface/tqlibrary.h9
-rw-r--r--qtinterface/tqlined.h4
-rw-r--r--qtinterface/tqlineedit.h9
-rw-r--r--qtinterface/tqlist.h4
-rw-r--r--qtinterface/tqlistbox.h9
-rw-r--r--qtinterface/tqlistview.h9
-rw-r--r--qtinterface/tqlocale.h9
-rw-r--r--qtinterface/tqlocalfs.h9
-rw-r--r--qtinterface/tqmainwindow.h9
-rw-r--r--qtinterface/tqmap.h9
-rw-r--r--qtinterface/tqmemarray.h9
-rw-r--r--qtinterface/tqmenubar.h9
-rw-r--r--qtinterface/tqmenudata.h9
-rw-r--r--qtinterface/tqmenudta.h4
-rw-r--r--qtinterface/tqmessagebox.h9
-rw-r--r--qtinterface/tqmetaobj.h4
-rw-r--r--qtinterface/tqmetaobject.h9
-rw-r--r--qtinterface/tqmime.h9
-rw-r--r--qtinterface/tqmlined.h4
-rw-r--r--qtinterface/tqmngio.h10
-rw-r--r--qtinterface/tqmodules.h8
-rw-r--r--qtinterface/tqmotifplusstyle.h9
-rw-r--r--qtinterface/tqmotifstyle.h9
-rw-r--r--qtinterface/tqmovie.h9
-rw-r--r--qtinterface/tqmsgbox.h4
-rw-r--r--qtinterface/tqmultilinedit.h4
-rw-r--r--qtinterface/tqmultilineedit.h9
-rw-r--r--qtinterface/tqmutex.h9
-rw-r--r--qtinterface/tqnamespace.h9
-rw-r--r--qtinterface/tqnetwork.h10
-rw-r--r--qtinterface/tqnetworkprotocol.h9
-rw-r--r--qtinterface/tqnp.h9
-rw-r--r--qtinterface/tqobjcoll.h4
-rw-r--r--qtinterface/tqobjdefs.h4
-rw-r--r--qtinterface/tqobject.h9
-rw-r--r--qtinterface/tqobjectcleanuphandler.h9
-rw-r--r--qtinterface/tqobjectdict.h9
-rw-r--r--qtinterface/tqobjectlist.h9
-rw-r--r--qtinterface/tqpaintd.h4
-rw-r--r--qtinterface/tqpaintdc.h4
-rw-r--r--qtinterface/tqpaintdevice.h9
-rw-r--r--qtinterface/tqpaintdevicemetrics.h9
-rw-r--r--qtinterface/tqpainter.h9
-rw-r--r--qtinterface/tqpair.h9
-rw-r--r--qtinterface/tqpalette.h9
-rw-r--r--qtinterface/tqpdevmet.h4
-rw-r--r--qtinterface/tqpen.h9
-rw-r--r--qtinterface/tqpicture.h9
-rw-r--r--qtinterface/tqpixmap.h9
-rw-r--r--qtinterface/tqpixmapcache.h9
-rw-r--r--qtinterface/tqplatinumstyle.h9
-rw-r--r--qtinterface/tqpmcache.h4
-rw-r--r--qtinterface/tqpngio.h9
-rw-r--r--qtinterface/tqpntarry.h4
-rw-r--r--qtinterface/tqpoint.h9
-rw-r--r--qtinterface/tqpointarray.h9
-rw-r--r--qtinterface/tqpolygonscanner.h9
-rw-r--r--qtinterface/tqpopmenu.h4
-rw-r--r--qtinterface/tqpopupmenu.h9
-rw-r--r--qtinterface/tqprintdialog.h9
-rw-r--r--qtinterface/tqprinter.h9
-rw-r--r--qtinterface/tqprndlg.h4
-rw-r--r--qtinterface/tqprocess.h9
-rw-r--r--qtinterface/tqprogbar.h4
-rw-r--r--qtinterface/tqprogdlg.h4
-rw-r--r--qtinterface/tqprogressbar.h9
-rw-r--r--qtinterface/tqprogressdialog.h9
-rw-r--r--qtinterface/tqptrcollection.h9
-rw-r--r--qtinterface/tqptrdict.h9
-rw-r--r--qtinterface/tqptrlist.h9
-rw-r--r--qtinterface/tqptrqueue.h9
-rw-r--r--qtinterface/tqptrstack.h9
-rw-r--r--qtinterface/tqptrvector.h9
-rw-r--r--qtinterface/tqpushbt.h4
-rw-r--r--qtinterface/tqpushbutton.h9
-rw-r--r--qtinterface/tqqueue.h4
-rw-r--r--qtinterface/tqradiobt.h4
-rw-r--r--qtinterface/tqradiobutton.h9
-rw-r--r--qtinterface/tqrangecontrol.h9
-rw-r--r--qtinterface/tqrangect.h4
-rw-r--r--qtinterface/tqrect.h9
-rw-r--r--qtinterface/tqregexp.h9
-rw-r--r--qtinterface/tqregion.h9
-rw-r--r--qtinterface/tqrtlcodec.h9
-rw-r--r--qtinterface/tqscrbar.h4
-rw-r--r--qtinterface/tqscrollbar.h9
-rw-r--r--qtinterface/tqscrollview.h9
-rw-r--r--qtinterface/tqsemaphore.h9
-rw-r--r--qtinterface/tqsemimodal.h9
-rw-r--r--qtinterface/tqserversocket.h9
-rw-r--r--qtinterface/tqsession.h10
-rw-r--r--qtinterface/tqsessionmanager.h9
-rw-r--r--qtinterface/tqsettings.h9
-rw-r--r--qtinterface/tqsgistyle.h9
-rw-r--r--qtinterface/tqshared.h9
-rw-r--r--qtinterface/tqsignal.h9
-rw-r--r--qtinterface/tqsignalmapper.h9
-rw-r--r--qtinterface/tqsignalslotimp.h9
-rw-r--r--qtinterface/tqsimplerichtext.h9
-rw-r--r--qtinterface/tqsize.h9
-rw-r--r--qtinterface/tqsizegrip.h9
-rw-r--r--qtinterface/tqsizepolicy.h9
-rw-r--r--qtinterface/tqsjiscodec.h9
-rw-r--r--qtinterface/tqslider.h9
-rw-r--r--qtinterface/tqsocket.h9
-rw-r--r--qtinterface/tqsocketdevice.h9
-rw-r--r--qtinterface/tqsocketnotifier.h9
-rw-r--r--qtinterface/tqsocknot.h4
-rw-r--r--qtinterface/tqsortedlist.h9
-rw-r--r--qtinterface/tqsound.h9
-rw-r--r--qtinterface/tqspinbox.h9
-rw-r--r--qtinterface/tqsplashscreen.h9
-rw-r--r--qtinterface/tqsplitter.h9
-rw-r--r--qtinterface/tqsql.h9
-rw-r--r--qtinterface/tqsqlcursor.h9
-rw-r--r--qtinterface/tqsqldatabase.h9
-rw-r--r--qtinterface/tqsqldriver.h9
-rw-r--r--qtinterface/tqsqldriverplugin.h9
-rw-r--r--qtinterface/tqsqleditorfactory.h9
-rw-r--r--qtinterface/tqsqlerror.h9
-rw-r--r--qtinterface/tqsqlfield.h9
-rw-r--r--qtinterface/tqsqlform.h9
-rw-r--r--qtinterface/tqsqlindex.h9
-rw-r--r--qtinterface/tqsqlpropertymap.h9
-rw-r--r--qtinterface/tqsqlquery.h9
-rw-r--r--qtinterface/tqsqlrecord.h9
-rw-r--r--qtinterface/tqsqlresult.h9
-rw-r--r--qtinterface/tqsqlselectcursor.h9
-rw-r--r--qtinterface/tqstack.h8
-rw-r--r--qtinterface/tqstatusbar.h9
-rw-r--r--qtinterface/tqstring.h9
-rw-r--r--qtinterface/tqstringlist.h9
-rw-r--r--qtinterface/tqstrlist.h9
-rw-r--r--qtinterface/tqstrvec.h9
-rw-r--r--qtinterface/tqstyle.h9
-rw-r--r--qtinterface/tqstylefactory.h9
-rw-r--r--qtinterface/tqstyleplugin.h9
-rw-r--r--qtinterface/tqstylesheet.h9
-rw-r--r--qtinterface/tqsyntaxhighlighter.h9
-rw-r--r--qtinterface/tqtabbar.h9
-rw-r--r--qtinterface/tqtabdialog.h9
-rw-r--r--qtinterface/tqtabdlg.h4
-rw-r--r--qtinterface/tqtable.h9
-rw-r--r--qtinterface/tqtabwidget.h9
-rw-r--r--qtinterface/tqtextbrowser.h9
-rw-r--r--qtinterface/tqtextcodec.h9
-rw-r--r--qtinterface/tqtextcodecfactory.h9
-rw-r--r--qtinterface/tqtextcodecplugin.h9
-rw-r--r--qtinterface/tqtextedit.h9
-rw-r--r--qtinterface/tqtextstream.h9
-rw-r--r--qtinterface/tqtextview.h9
-rw-r--r--qtinterface/tqthread.h9
-rw-r--r--qtinterface/tqthreadstorage.h9
-rw-r--r--qtinterface/tqtimer.cpp4
-rw-r--r--qtinterface/tqtimer.h11
-rw-r--r--qtinterface/tqtl.h9
-rw-r--r--qtinterface/tqtoolbar.h10
-rw-r--r--qtinterface/tqtoolbox.h9
-rw-r--r--qtinterface/tqtoolbutton.h9
-rw-r--r--qtinterface/tqtooltip.h9
-rw-r--r--qtinterface/tqtranslator.h9
-rw-r--r--qtinterface/tqtsciicodec.h9
-rw-r--r--qtinterface/tqtstream.h4
-rw-r--r--qtinterface/tqurl.h9
-rw-r--r--qtinterface/tqurlinfo.h9
-rw-r--r--qtinterface/tqurloperator.h9
-rw-r--r--qtinterface/tqutfcodec.h9
-rw-r--r--qtinterface/tquuid.h9
-rw-r--r--qtinterface/tqvalidator.h9
-rw-r--r--qtinterface/tqvaluelist.h9
-rw-r--r--qtinterface/tqvaluestack.h9
-rw-r--r--qtinterface/tqvaluevector.h9
-rw-r--r--qtinterface/tqvariant.h9
-rw-r--r--qtinterface/tqvbox.h9
-rw-r--r--qtinterface/tqvbuttongroup.h9
-rw-r--r--qtinterface/tqvector.h4
-rw-r--r--qtinterface/tqvfbhdr.h9
-rw-r--r--qtinterface/tqvgroupbox.h9
-rw-r--r--qtinterface/tqwaitcondition.h9
-rw-r--r--qtinterface/tqwhatsthis.h9
-rw-r--r--qtinterface/tqwidcoll.h4
-rw-r--r--qtinterface/tqwidget.h9
-rw-r--r--qtinterface/tqwidgetfactory.h9
-rw-r--r--qtinterface/tqwidgetintdict.h9
-rw-r--r--qtinterface/tqwidgetlist.h9
-rw-r--r--qtinterface/tqwidgetplugin.h9
-rw-r--r--qtinterface/tqwidgetstack.h9
-rw-r--r--qtinterface/tqwindefs.h4
-rw-r--r--qtinterface/tqwindowdefs.h8
-rw-r--r--qtinterface/tqwindowsstyle.h9
-rw-r--r--qtinterface/tqwinexport.h8
-rw-r--r--qtinterface/tqwizard.h9
-rw-r--r--qtinterface/tqwmatrix.h9
-rw-r--r--qtinterface/tqworkspace.h9
-rw-r--r--qtinterface/tqxml.h9
328 files changed, 2464 insertions, 222 deletions
diff --git a/qtinterface/tq1xcompatibility.h b/qtinterface/tq1xcompatibility.h
index 5d1c00d..18a6a1a 100644
--- a/qtinterface/tq1xcompatibility.h
+++ b/qtinterface/tq1xcompatibility.h
@@ -30,4 +30,10 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+#include <q1xcompatibility.h>
+
+#endif // USE_QT4
+
#endif /* TQ1XCOMPATIBILITY_H */ \ No newline at end of file
diff --git a/qtinterface/tqabstractlayout.h b/qtinterface/tqabstractlayout.h
index 11d5d9e..776ca08 100644
--- a/qtinterface/tqabstractlayout.h
+++ b/qtinterface/tqabstractlayout.h
@@ -30,4 +30,10 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+#include <qabstractlayout.h>
+
+#endif // USE_QT4
+
#endif /* TQABSTRACTLAYOUT_H */ \ No newline at end of file
diff --git a/qtinterface/tqaccel.h b/qtinterface/tqaccel.h
index 8d17041..68f0b8c 100644
--- a/qtinterface/tqaccel.h
+++ b/qtinterface/tqaccel.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccel class
+// For Qt4, no changes are needed
+
+#include <qaccel.h>
+
+#endif // USE_QT4
+
#endif /* TQACCEL_H */ \ No newline at end of file
diff --git a/qtinterface/tqaccessible.h b/qtinterface/tqaccessible.h
index 07245d2..41b20be 100644
--- a/qtinterface/tqaccessible.h
+++ b/qtinterface/tqaccessible.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccessible class
+// For Qt4, no changes are needed
+
+#include <qaccessible.h>
+
+#endif // USE_QT4
+
#endif /* TQACCESSIBLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqaction.h b/qtinterface/tqaction.h
index e2da81b..4e22bcc 100644
--- a/qtinterface/tqaction.h
+++ b/qtinterface/tqaction.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAction class
+// For Qt4, no changes are needed
+
+#include <qaction.h>
+
+#endif // USE_QT4
+
#endif /* TQACTION_H */ \ No newline at end of file
diff --git a/qtinterface/tqapp.h b/qtinterface/tqapp.h
index 10ba137..0025c77 100644
--- a/qtinterface/tqapp.h
+++ b/qtinterface/tqapp.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqapplication defines
#include <tqapplication.h>
-#endif // USE_QT3
-
#endif /* TQAPP_H */ \ No newline at end of file
diff --git a/qtinterface/tqapplication.h b/qtinterface/tqapplication.h
index 982ac6d..26e4035 100644
--- a/qtinterface/tqapplication.h
+++ b/qtinterface/tqapplication.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QApplication class
+// For Qt4, no changes are needed
+
+#include <qapplication.h>
+
+#endif // USE_QT4
+
#endif /* TQAPPLICATION_H */ \ No newline at end of file
diff --git a/qtinterface/tqarray.h b/qtinterface/tqarray.h
index 786a69c..12a7f2e 100644
--- a/qtinterface/tqarray.h
+++ b/qtinterface/tqarray.h
@@ -24,14 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqmemarray defines
-#ifndef QT_NO_COMPAT
#include <tqmemarray.h>
-#endif // QT_NO_COMPAT
-
-#endif // USE_QT3
#endif /* TQARRAY_H */ \ No newline at end of file
diff --git a/qtinterface/tqasciicache.h b/qtinterface/tqasciicache.h
index 755a7cb..e5f29c6 100644
--- a/qtinterface/tqasciicache.h
+++ b/qtinterface/tqasciicache.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAsciiCache class
+// For Qt4, no changes are needed
+
+#include <qasciicache.h>
+
+#endif // USE_QT4
+
#endif /* TQASCIICACHE_H */ \ No newline at end of file
diff --git a/qtinterface/tqasciidict.h b/qtinterface/tqasciidict.h
index d889f8d..2085f27 100644
--- a/qtinterface/tqasciidict.h
+++ b/qtinterface/tqasciidict.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAsciiDict class
+// For Qt4, no changes are needed
+
+#include <qasciidict.h>
+
+#endif // USE_QT4
+
#endif /* TQASCIIDICT_H */ \ No newline at end of file
diff --git a/qtinterface/tqasyncimageio.h b/qtinterface/tqasyncimageio.h
index 170bdbc..25f157b 100644
--- a/qtinterface/tqasyncimageio.h
+++ b/qtinterface/tqasyncimageio.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAsciiDict class
+// For Qt4, no changes are needed
+
+#include <qasyncimageio.h>
+
+#endif // USE_QT4
+
#endif /* TQASYNCIMAGEIO_H */ \ No newline at end of file
diff --git a/qtinterface/tqasyncio.h b/qtinterface/tqasyncio.h
index 83e1e16..210c6df 100644
--- a/qtinterface/tqasyncio.h
+++ b/qtinterface/tqasyncio.h
@@ -34,4 +34,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAsyncIO class
+// For Qt4, no changes are needed
+
+#include <qasyncio.h>
+
+#endif // USE_QT4
+
#endif /* TQASYNCIO_H */ \ No newline at end of file
diff --git a/qtinterface/tqbig5codec.h b/qtinterface/tqbig5codec.h
index 6a2c9e3..84f758f 100644
--- a/qtinterface/tqbig5codec.h
+++ b/qtinterface/tqbig5codec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QBig5Codec class
+// For Qt4, no changes are needed
+
+#include <qbig5codec.h>
+
+#endif // USE_QT4
+
#endif /* TQQBIG5CODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqbitarray.h b/qtinterface/tqbitarray.h
index 3c59da1..634c459 100644
--- a/qtinterface/tqbitarray.h
+++ b/qtinterface/tqbitarray.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QBitArray class
+// For Qt4, no changes are needed
+
+#include <qbitarray.h>
+
+#endif // USE_QT4
+
#endif /* TQBITARRAY_H */ \ No newline at end of file
diff --git a/qtinterface/tqbitarry.h b/qtinterface/tqbitarry.h
index 00c3947..7b1bc06 100644
--- a/qtinterface/tqbitarry.h
+++ b/qtinterface/tqbitarry.h
@@ -25,11 +25,7 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
#include <tqdatastream.h>
-#ifdef USE_QT3
-
// Pull in tqbitarry defines
#include <tqbitarry.h>
-#endif // USE_QT3
-
#endif /* TQBITARRY_H */ \ No newline at end of file
diff --git a/qtinterface/tqbitmap.h b/qtinterface/tqbitmap.h
index daa56b7..50ceb75 100644
--- a/qtinterface/tqbitmap.h
+++ b/qtinterface/tqbitmap.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QBitmap class
+// For Qt4, no changes are needed
+
+#include <qbitmap.h>
+
+#endif // USE_QT4
+
#endif /* TQBITMAP_H */ \ No newline at end of file
diff --git a/qtinterface/tqbrush.h b/qtinterface/tqbrush.h
index 56fab8f..2a20dcd 100644
--- a/qtinterface/tqbrush.h
+++ b/qtinterface/tqbrush.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QBrush class
+// For Qt4, no changes are needed
+
+#include <qbrush.h>
+
+#endif // USE_QT4
+
#endif /* TQBRUSH_H */ \ No newline at end of file
diff --git a/qtinterface/tqbttngrp.h b/qtinterface/tqbttngrp.h
index fb74410..d888e20 100644
--- a/qtinterface/tqbttngrp.h
+++ b/qtinterface/tqbttngrp.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all buttongroup defines
#include <tqbuttongroup.h>
-#endif // USE_QT3
-
#endif /* TQBTTNGRP_H */ \ No newline at end of file
diff --git a/qtinterface/tqbuffer.h b/qtinterface/tqbuffer.h
index 9849c20..0df56af 100644
--- a/qtinterface/tqbuffer.h
+++ b/qtinterface/tqbuffer.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QBuffer class
+// For Qt4, no changes are needed
+
+#include <qbuffer.h>
+
+#endif // USE_QT4
+
#endif /* TQBUFFER_H */ \ No newline at end of file
diff --git a/qtinterface/tqbutton.h b/qtinterface/tqbutton.h
index 4701455..4890a26 100644
--- a/qtinterface/tqbutton.h
+++ b/qtinterface/tqbutton.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QButton class
+// For Qt4, no changes are needed
+
+#include <qbutton.h>
+
+#endif // USE_QT4
+
#endif /* TQBUTTON_H */ \ No newline at end of file
diff --git a/qtinterface/tqbuttongroup.h b/qtinterface/tqbuttongroup.h
index 0ba248e..74eddde 100644
--- a/qtinterface/tqbuttongroup.h
+++ b/qtinterface/tqbuttongroup.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QButtonGroup class
+// For Qt4, no changes are needed
+
+#include <qbuttongroup.h>
+
+#endif // USE_QT4
+
#endif /* TQBUTTONGROUP_H */ \ No newline at end of file
diff --git a/qtinterface/tqcache.h b/qtinterface/tqcache.h
index ca8f0d6..3f0ac28 100644
--- a/qtinterface/tqcache.h
+++ b/qtinterface/tqcache.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QCache class
+// For Qt4, no changes are needed
+
+#include <qcache.h>
+
+#endif // USE_QT4
+
#endif /* TQCACHE_H */ \ No newline at end of file
diff --git a/qtinterface/tqcanvas.h b/qtinterface/tqcanvas.h
index ddb1439..8c5b744 100644
--- a/qtinterface/tqcanvas.h
+++ b/qtinterface/tqcanvas.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QCanvas class
+// For Qt4, no changes are needed
+
+#include <qcanvas.h>
+
+#endif // USE_QT4
+
#endif /* TQCANVAS_H */ \ No newline at end of file
diff --git a/qtinterface/tqcdestyle.h b/qtinterface/tqcdestyle.h
index 0ce851e..f3c7e26 100644
--- a/qtinterface/tqcdestyle.h
+++ b/qtinterface/tqcdestyle.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QCDEStyle class
+// For Qt4, no changes are needed
+
+#include <qcdestyle.h>
+
+#endif // USE_QT4
+
#endif /* TQCDESTYLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqcheckbox.h b/qtinterface/tqcheckbox.h
index 6da0c65..2eabd1c 100644
--- a/qtinterface/tqcheckbox.h
+++ b/qtinterface/tqcheckbox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the TQCheckBox class
+// For Qt4, no changes are needed
+
+#include <qcheckbox.h>
+
+#endif // USE_QT4
+
#endif /* TQCHECKBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqchkbox.h b/qtinterface/tqchkbox.h
index 7f43533..d25806c 100644
--- a/qtinterface/tqchkbox.h
+++ b/qtinterface/tqchkbox.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all checkbox defines
#include <tqcheckbox.h>
-#endif // USE_QT3
-
#endif /* TQCHKBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqcleanuphandler.h b/qtinterface/tqcleanuphandler.h
index bee00e3..53cfd69 100644
--- a/qtinterface/tqcleanuphandler.h
+++ b/qtinterface/tqcleanuphandler.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT3
+
+// Reimplement the QCleanupHandler class
+// For Qt4, no changes are needed
+
+#include <qcleanuphandler.h>
+
+#endif // USE_QT4
+
#endif /* TQCLEANUPHANDLER_H */ \ No newline at end of file
diff --git a/qtinterface/tqclipboard.h b/qtinterface/tqclipboard.h
index fb9b46f..e0e95f9 100644
--- a/qtinterface/tqclipboard.h
+++ b/qtinterface/tqclipboard.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QClipboard class
+// For Qt4, no changes are needed
+
+#include <qclipboard.h>
+
+#endif // USE_QT4
+
#endif /* TQCLIPBOARD_H */ \ No newline at end of file
diff --git a/qtinterface/tqclipbrd.h b/qtinterface/tqclipbrd.h
index 646a3a9..cba31bc 100644
--- a/qtinterface/tqclipbrd.h
+++ b/qtinterface/tqclipbrd.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all clipboard defines
#include <tqclipboard.h>
-#endif // USE_QT3
-
#endif /* TQCLIPBRD_H */ \ No newline at end of file
diff --git a/qtinterface/tqcollect.h b/qtinterface/tqcollect.h
index c26ced5..8c91510 100644
--- a/qtinterface/tqcollect.h
+++ b/qtinterface/tqcollect.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
-// Pull in all clipboard defines
+// Pull in all qptrcollection defines
#include <tqptrcollection.h>
-#endif // USE_QT3
-
#endif /* TQCOLLECT_H */ \ No newline at end of file
diff --git a/qtinterface/tqcollection.h b/qtinterface/tqcollection.h
index eabea1e..8318def 100644
--- a/qtinterface/tqcollection.h
+++ b/qtinterface/tqcollection.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
-// Pull in all clipboard defines
+// Pull in all qptrcollection defines
#include <tqptrcollection.h>
-#endif // USE_QT3
-
#endif /* TQCOLLECTION_H */ \ No newline at end of file
diff --git a/qtinterface/tqcolor.h b/qtinterface/tqcolor.h
index e126eee..db9702b 100644
--- a/qtinterface/tqcolor.h
+++ b/qtinterface/tqcolor.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QColor class
+// For Qt4, no changes are needed
+
+#include <qcolor.h>
+
+#endif // USE_QT4
+
#endif /* TQCOLOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqcolordialog.h b/qtinterface/tqcolordialog.h
index 7dd6e0c..ba227e3 100644
--- a/qtinterface/tqcolordialog.h
+++ b/qtinterface/tqcolordialog.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QColorDialog class
+// For Qt4, no changes are needed
+
+#include <qcolordialog.h>
+
+#endif // USE_QT4
+
#endif /* TQCOLORDIALOG_H */ \ No newline at end of file
diff --git a/qtinterface/tqcombo.h b/qtinterface/tqcombo.h
index fd8b401..2f69e7f 100644
--- a/qtinterface/tqcombo.h
+++ b/qtinterface/tqcombo.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all combo box defines
#include <tqcombobox.h>
-#endif // USE_QT3
-
#endif /* TQCOMBO_H */ \ No newline at end of file
diff --git a/qtinterface/tqcombobox.h b/qtinterface/tqcombobox.h
index 43fbcd6..7842c7e 100644
--- a/qtinterface/tqcombobox.h
+++ b/qtinterface/tqcombobox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QComboBox class
+// For Qt4, no changes are needed
+
+#include <qcombobox.h>
+
+#endif // USE_QT4
+
#endif /* TQCOMBOBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqcommonstyle.h b/qtinterface/tqcommonstyle.h
index 435f803..bb47b29 100644
--- a/qtinterface/tqcommonstyle.h
+++ b/qtinterface/tqcommonstyle.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QCommonStyle class
+// For Qt4, no changes are needed
+
+#include <qcommonstyle.h>
+
+#endif // USE_QT4
+
#endif /* TQCOMMONSTYLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqcompactstyle.h b/qtinterface/tqcompactstyle.h
index 3e2637e..a3881aa 100644
--- a/qtinterface/tqcompactstyle.h
+++ b/qtinterface/tqcompactstyle.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccel class
+// For Qt4, no changes are needed
+
+#include <qcompactstyle.h>
+
+#endif // USE_QT4
+
#endif /* TQCOMPACTSTYLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqconfig.h b/qtinterface/tqconfig.h
index c70609c..9f0b9e3 100644
--- a/qtinterface/tqconfig.h
+++ b/qtinterface/tqconfig.h
@@ -32,4 +32,12 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in all Qt4 configuration defines
+
+#include <qconfig.h>
+
+#endif // USE_QT4
+
#endif /* TQCONFIG_H */ \ No newline at end of file
diff --git a/qtinterface/tqconnect.h b/qtinterface/tqconnect.h
index 213fb4b..67b4664 100644
--- a/qtinterface/tqconnect.h
+++ b/qtinterface/tqconnect.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all connection defines
#include <tqconnection.h>
-#endif // USE_QT3
-
#endif /* TQCONNECT_H */ \ No newline at end of file
diff --git a/qtinterface/tqconnection.h b/qtinterface/tqconnection.h
index a5ca64b..f17085b 100644
--- a/qtinterface/tqconnection.h
+++ b/qtinterface/tqconnection.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QConnection class
+// For Qt4, no changes are needed
+
+#include <qconnection.h>
+
+#endif // USE_QT4
+
#endif /* TQCONNECTION_H */ \ No newline at end of file
diff --git a/qtinterface/tqcstring.h b/qtinterface/tqcstring.h
index ada1e79..9a4908e 100644
--- a/qtinterface/tqcstring.h
+++ b/qtinterface/tqcstring.h
@@ -35,4 +35,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QCString class
+// For Qt4, no changes are needed
+
+#include <qcstring.h>
+
+#endif // USE_QT4
+
#endif /* TQCSTRING_H */ \ No newline at end of file
diff --git a/qtinterface/tqcursor.h b/qtinterface/tqcursor.h
index 46340df..5c0a88c 100644
--- a/qtinterface/tqcursor.h
+++ b/qtinterface/tqcursor.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QCursor class
+// For Qt4, no changes are needed
+
+#include <qcursor.h>
+
+#endif // USE_QT4
+
#endif /* TQCURSOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqdatabrowser.h b/qtinterface/tqdatabrowser.h
index e0ff70c..ed4419c 100644
--- a/qtinterface/tqdatabrowser.h
+++ b/qtinterface/tqdatabrowser.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDataBrowser class
+// For Qt4, no changes are needed
+
+#include <qdatabrowser.h>
+
+#endif // USE_QT4
+
#endif /* TQDATABROWSER_H */ \ No newline at end of file
diff --git a/qtinterface/tqdatastream.h b/qtinterface/tqdatastream.h
index 91f6a9c..c397e3e 100644
--- a/qtinterface/tqdatastream.h
+++ b/qtinterface/tqdatastream.h
@@ -34,4 +34,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDataStream class
+// For Qt4, no changes are needed
+
+#include <qdatastream.h>
+
+#endif // USE_QT4
+
#endif /* TQDATASTREAM_H */ \ No newline at end of file
diff --git a/qtinterface/tqdatatable.h b/qtinterface/tqdatatable.h
index ead7d9a..d44bde5 100644
--- a/qtinterface/tqdatatable.h
+++ b/qtinterface/tqdatatable.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDataTable class
+// For Qt4, no changes are needed
+
+#include <qdatatable.h>
+
+#endif // USE_QT4
+
#endif /* TQDATATABLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqdataview.h b/qtinterface/tqdataview.h
index 4d126c6..ea2dfcc 100644
--- a/qtinterface/tqdataview.h
+++ b/qtinterface/tqdataview.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDataView class
+// For Qt4, no changes are needed
+
+#include <qdataview.h>
+
+#endif // USE_QT4
+
#endif /* TQDATAVIEW_H */ \ No newline at end of file
diff --git a/qtinterface/tqdatetime.h b/qtinterface/tqdatetime.h
index c793b0c..8223641 100644
--- a/qtinterface/tqdatetime.h
+++ b/qtinterface/tqdatetime.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccel class
+// For Qt4, no changes are needed
+
+#include <qdatetime.h>
+
+#endif // USE_QT4
+
#endif /* TQDATETIME_H */ \ No newline at end of file
diff --git a/qtinterface/tqdatetimeedit.h b/qtinterface/tqdatetimeedit.h
index 15017ea..9b1a51a 100644
--- a/qtinterface/tqdatetimeedit.h
+++ b/qtinterface/tqdatetimeedit.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDateTimeEditBase class
+// For Qt4, no changes are needed
+
+#include <qdatetimeedit.h>
+
+#endif // USE_QT4
+
#endif /* TQDATETIMEEDIT_H */ \ No newline at end of file
diff --git a/qtinterface/tqdatetm.h b/qtinterface/tqdatetm.h
index 4c35e2e..ba98c2e 100644
--- a/qtinterface/tqdatetm.h
+++ b/qtinterface/tqdatetm.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all date/time defines
#include <tqdatetime.h>
-#endif // USE_QT3
-
#endif /* TQDATETM_H */ \ No newline at end of file
diff --git a/qtinterface/tqdeepcopy.h b/qtinterface/tqdeepcopy.h
index 9bf022c..1495934 100644
--- a/qtinterface/tqdeepcopy.h
+++ b/qtinterface/tqdeepcopy.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDeepCopy class
+// For Qt4, no changes are needed
+
+#include <qdeepcopy.h>
+
+#endif // USE_QT4
+
#endif /* TQDEEPCOPY_H */ \ No newline at end of file
diff --git a/qtinterface/tqdesktopwidget.h b/qtinterface/tqdesktopwidget.h
index 1ed82a5..061f354 100644
--- a/qtinterface/tqdesktopwidget.h
+++ b/qtinterface/tqdesktopwidget.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDesktopWidget class
+// For Qt4, no changes are needed
+
+#include <qdesktopwidget.h>
+
+#endif // USE_QT4
+
#endif /* TQDESKTOPWIDGET_H */ \ No newline at end of file
diff --git a/qtinterface/tqdial.h b/qtinterface/tqdial.h
index 72c1e4e..7628ced 100644
--- a/qtinterface/tqdial.h
+++ b/qtinterface/tqdial.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDial class
+// For Qt4, no changes are needed
+
+#include <qdial.h>
+
+#endif // USE_QT4
+
#endif /* TQDIAL_H */ \ No newline at end of file
diff --git a/qtinterface/tqdialog.h b/qtinterface/tqdialog.h
index 57eb8ce..06d605f 100644
--- a/qtinterface/tqdialog.h
+++ b/qtinterface/tqdialog.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDialog class
+// For Qt4, no changes are needed
+
+#include <qdialog.h>
+
+#endif // USE_QT4
+
#endif /* TQDIALOG_H */ \ No newline at end of file
diff --git a/qtinterface/tqdict.h b/qtinterface/tqdict.h
index f662f9b..2ca9e1a 100644
--- a/qtinterface/tqdict.h
+++ b/qtinterface/tqdict.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccel class
+// For Qt4, no changes are needed
+
+#include <qdict.h>
+
+#endif // USE_QT4
+
#endif /* TQDICT_H */ \ No newline at end of file
diff --git a/qtinterface/tqdir.h b/qtinterface/tqdir.h
index 38ae53c..6c2bb6d 100644
--- a/qtinterface/tqdir.h
+++ b/qtinterface/tqdir.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDir class
+// For Qt4, no changes are needed
+
+#include <qdir.h>
+
+#endif // USE_QT4
+
#endif /* TQDIR_H */ \ No newline at end of file
diff --git a/qtinterface/tqdns.h b/qtinterface/tqdns.h
index 900ad61..8c5db78 100644
--- a/qtinterface/tqdns.h
+++ b/qtinterface/tqdns.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDns class
+// For Qt4, no changes are needed
+
+#include <qdns.h>
+
+#endif // USE_QT4
+
#endif /* TQDNS_H */ \ No newline at end of file
diff --git a/qtinterface/tqdockarea.h b/qtinterface/tqdockarea.h
index 769df59..3b9d14a 100644
--- a/qtinterface/tqdockarea.h
+++ b/qtinterface/tqdockarea.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDockArea class
+// For Qt4, no changes are needed
+
+#include <qdockarea.h>
+
+#endif // USE_QT4
+
#endif /* TQDOCKAREA_H */ \ No newline at end of file
diff --git a/qtinterface/tqdockwindow.h b/qtinterface/tqdockwindow.h
index 2b9c207..cf37621 100644
--- a/qtinterface/tqdockwindow.h
+++ b/qtinterface/tqdockwindow.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDockWindow class
+// For Qt4, no changes are needed
+
+#include <qdockwindow.h>
+
+#endif // USE_QT4
+
#endif /* TQDOCKWINDOW_H */ \ No newline at end of file
diff --git a/qtinterface/tqdom.h b/qtinterface/tqdom.h
index c6805a9..7b727f2 100644
--- a/qtinterface/tqdom.h
+++ b/qtinterface/tqdom.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDom class
+// For Qt4, no changes are needed
+
+#include <qdom.h>
+
+#endif // USE_QT4
+
#endif /* TQACCEL_H */ \ No newline at end of file
diff --git a/qtinterface/tqdragobject.h b/qtinterface/tqdragobject.h
index 5fd37dd..143c1fc 100644
--- a/qtinterface/tqdragobject.h
+++ b/qtinterface/tqdragobject.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDragObject class
+// For Qt4, no changes are needed
+
+#include <qdragobject.h>
+
+#endif // USE_QT4
+
#endif /* TQDRAGOBJECT_H */ \ No newline at end of file
diff --git a/qtinterface/tqdrawutil.h b/qtinterface/tqdrawutil.h
index 2366325..9bd754e 100644
--- a/qtinterface/tqdrawutil.h
+++ b/qtinterface/tqdrawutil.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDrawUtil class
+// For Qt4, no changes are needed
+
+#include <qdrawutil.h>
+
+#endif // USE_QT4
+
#endif /* TQDRAWUTIL_H */ \ No newline at end of file
diff --git a/qtinterface/tqdrawutl.h b/qtinterface/tqdrawutl.h
index f0195ca..71ceb1b 100644
--- a/qtinterface/tqdrawutl.h
+++ b/qtinterface/tqdrawutl.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all drawing utility defines
#include <tqdrawutil.h>
-#endif // USE_QT3
-
#endif /* TQDRAWUTIL_H */ \ No newline at end of file
diff --git a/qtinterface/tqdropsite.h b/qtinterface/tqdropsite.h
index 81ce193..73e3f2c 100644
--- a/qtinterface/tqdropsite.h
+++ b/qtinterface/tqdropsite.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QDropSite class
+// For Qt4, no changes are needed
+
+#include <qdropsite.h>
+
+#endif // USE_QT4
+
#endif /* TQDROPSITE_H */ \ No newline at end of file
diff --git a/qtinterface/tqdstream.h b/qtinterface/tqdstream.h
index a3e6ebb..1b330d4 100644
--- a/qtinterface/tqdstream.h
+++ b/qtinterface/tqdstream.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all datastream defines
#include <tqdatastream.h>
-#endif // USE_QT3
-
#endif /* TQDSTREAM_H */ \ No newline at end of file
diff --git a/qtinterface/tqeditorfactory.h b/qtinterface/tqeditorfactory.h
index 2cfb97f..d5bdec4 100644
--- a/qtinterface/tqeditorfactory.h
+++ b/qtinterface/tqeditorfactory.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccel class
+// For Qt4, no changes are needed
+
+#include <qeditorfactory.h>
+
+#endif // USE_QT4
+
#endif /* TQEDITORFACTORY_H */ \ No newline at end of file
diff --git a/qtinterface/tqerrormessage.h b/qtinterface/tqerrormessage.h
index ba733c6..99afd00 100644
--- a/qtinterface/tqerrormessage.h
+++ b/qtinterface/tqerrormessage.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QErrorMessage class
+// For Qt4, no changes are needed
+
+#include <qerrormessage.h>
+
+#endif // USE_QT4
+
#endif /* TQERRORMESSAGE_H */ \ No newline at end of file
diff --git a/qtinterface/tqeucjpcodec.h b/qtinterface/tqeucjpcodec.h
index 8164694..0ae1c27 100644
--- a/qtinterface/tqeucjpcodec.h
+++ b/qtinterface/tqeucjpcodec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QEucJpCodec class
+// For Qt4, no changes are needed
+
+#include <qeucjpcodec.h>
+
+#endif // USE_QT4
+
#endif /* TQEUCJPCODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqeuckrcodec.h b/qtinterface/tqeuckrcodec.h
index 8cf9c8a..5f8dba1 100644
--- a/qtinterface/tqeuckrcodec.h
+++ b/qtinterface/tqeuckrcodec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QEucKrCodec class
+// For Qt4, no changes are needed
+
+#include <qeuckrcodec.h>
+
+#endif // USE_QT4
+
#endif /* TQEUCKRCODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqevent.h b/qtinterface/tqevent.h
index 61e2f38..6f9e77c 100644
--- a/qtinterface/tqevent.h
+++ b/qtinterface/tqevent.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QEvent class
+// For Qt4, no changes are needed
+
+#include <qevent.h>
+
+#endif // USE_QT4
+
#endif /* TQEVENT_H */ \ No newline at end of file
diff --git a/qtinterface/tqeventloop.h b/qtinterface/tqeventloop.h
index a082d7d..deb7305 100644
--- a/qtinterface/tqeventloop.h
+++ b/qtinterface/tqeventloop.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QEventLoop class
+// For Qt4, no changes are needed
+
+#include <qeventloop.h>
+
+#endif // USE_QT4
+
#endif /* TQEVENTLOOP_H */ \ No newline at end of file
diff --git a/qtinterface/tqfeatures.h b/qtinterface/tqfeatures.h
index 3a7a8a1..e2008ff 100644
--- a/qtinterface/tqfeatures.h
+++ b/qtinterface/tqfeatures.h
@@ -32,4 +32,12 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in all Qt4 feature defines
+
+#include <qfeatures.h>
+
+#endif // USE_QT4
+
#endif /* TQFEATURES_H */ \ No newline at end of file
diff --git a/qtinterface/tqfile.h b/qtinterface/tqfile.h
index 7ede982..9e4242d 100644
--- a/qtinterface/tqfile.h
+++ b/qtinterface/tqfile.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFile class
+// For Qt4, no changes are needed
+
+#include <qfile.h>
+
+#endif // USE_QT4
+
#endif /* TQFILE_H */ \ No newline at end of file
diff --git a/qtinterface/tqfiledef.h b/qtinterface/tqfiledef.h
index 4862ff6..da48a55 100644
--- a/qtinterface/tqfiledef.h
+++ b/qtinterface/tqfiledef.h
@@ -32,4 +32,10 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Do not pull in legacy qfiledef defines
+
+#endif // USE_QT4
+
#endif /* TQFILEDEF_H */ \ No newline at end of file
diff --git a/qtinterface/tqfiledialog.h b/qtinterface/tqfiledialog.h
index c265453..54a03bb 100644
--- a/qtinterface/tqfiledialog.h
+++ b/qtinterface/tqfiledialog.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFileDialog class
+// For Qt4, no changes are needed
+
+#include <qfiledialog.h>
+
+#endif // USE_QT4
+
#endif /* TQFILEDIALOG_H */ \ No newline at end of file
diff --git a/qtinterface/tqfiledlg.h b/qtinterface/tqfiledlg.h
index 113afb4..7cc0126 100644
--- a/qtinterface/tqfiledlg.h
+++ b/qtinterface/tqfiledlg.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in file dialog defines
#include <tqfiledialog.h>
-#endif // USE_QT3
-
#endif /* TQFILEDLG_H */ \ No newline at end of file
diff --git a/qtinterface/tqfileinf.h b/qtinterface/tqfileinf.h
index 57de2ce..15d6f4b 100644
--- a/qtinterface/tqfileinf.h
+++ b/qtinterface/tqfileinf.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all file information defines
#include <tqfileinfo.h>
-#endif // USE_QT3
-
#endif /* TQFILEINF_H */ \ No newline at end of file
diff --git a/qtinterface/tqfileinfo.h b/qtinterface/tqfileinfo.h
index 5fdc052..27cfba6 100644
--- a/qtinterface/tqfileinfo.h
+++ b/qtinterface/tqfileinfo.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFileInfo class
+// For Qt4, no changes are needed
+
+#include <qfileinfo.h>
+
+#endif // USE_QT4
+
#endif /* TQFILEINFO_H */ \ No newline at end of file
diff --git a/qtinterface/tqfocusdata.h b/qtinterface/tqfocusdata.h
index 0da96e8..2efdfd1 100644
--- a/qtinterface/tqfocusdata.h
+++ b/qtinterface/tqfocusdata.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFocusData class
+// For Qt4, no changes are needed
+
+#include <qfocusdata.h>
+
+#endif // USE_QT4
+
#endif /* TQFOCUSDATA_H */ \ No newline at end of file
diff --git a/qtinterface/tqfont.h b/qtinterface/tqfont.h
index d165482..65e01ed 100644
--- a/qtinterface/tqfont.h
+++ b/qtinterface/tqfont.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFont class
+// For Qt4, no changes are needed
+
+#include <qfont.h>
+
+#endif // USE_QT4
+
#endif /* TQFONT_H */ \ No newline at end of file
diff --git a/qtinterface/tqfontdatabase.h b/qtinterface/tqfontdatabase.h
index 613c2e4..7c6bff8 100644
--- a/qtinterface/tqfontdatabase.h
+++ b/qtinterface/tqfontdatabase.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFontDatabase class
+// For Qt4, no changes are needed
+
+#include <qfontdatabase.h>
+
+#endif // USE_QT4
+
#endif /* TQFONTDATABASE_H */ \ No newline at end of file
diff --git a/qtinterface/tqfontdialog.h b/qtinterface/tqfontdialog.h
index 27bf2de..eba7c20 100644
--- a/qtinterface/tqfontdialog.h
+++ b/qtinterface/tqfontdialog.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFontDialog class
+// For Qt4, no changes are needed
+
+#include <qfontdialog.h>
+
+#endif // USE_QT4
+
#endif /* TQFONTDIALOG_H */ \ No newline at end of file
diff --git a/qtinterface/tqfontinf.h b/qtinterface/tqfontinf.h
index 01fa53c..98b8fb4 100644
--- a/qtinterface/tqfontinf.h
+++ b/qtinterface/tqfontinf.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all font information defines
#include <tqfontinfo.h>
-#endif // USE_QT3
-
#endif /* TQFONTINF_H */ \ No newline at end of file
diff --git a/qtinterface/tqfontinfo.h b/qtinterface/tqfontinfo.h
index e50e292..31d149a 100644
--- a/qtinterface/tqfontinfo.h
+++ b/qtinterface/tqfontinfo.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFontInfo class
+// For Qt4, no changes are needed
+
+#include <qfontinfo.h>
+
+#endif // USE_QT4
+
#endif /* TQFONTINFO_H */ \ No newline at end of file
diff --git a/qtinterface/tqfontmet.h b/qtinterface/tqfontmet.h
index f3abd16..a6efe22 100644
--- a/qtinterface/tqfontmet.h
+++ b/qtinterface/tqfontmet.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all font metrics defines
#include <tqfontmetrics.h>
-#endif // USE_QT3
-
#endif /* TQFONTMET_H */ \ No newline at end of file
diff --git a/qtinterface/tqfontmetrics.h b/qtinterface/tqfontmetrics.h
index ba22b29..0c1a53f 100644
--- a/qtinterface/tqfontmetrics.h
+++ b/qtinterface/tqfontmetrics.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFontMetrics class
+// For Qt4, no changes are needed
+
+#include <qfontmetrics.h>
+
+#endif // USE_QT4
+
#endif /* TQFONTMETRICS_H */ \ No newline at end of file
diff --git a/qtinterface/tqframe.h b/qtinterface/tqframe.h
index 654dd89..83af4fc 100644
--- a/qtinterface/tqframe.h
+++ b/qtinterface/tqframe.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFrame class
+// For Qt4, no changes are needed
+
+#include <qframe.h>
+
+#endif // USE_QT4
+
#endif /* TQFRAME_H */ \ No newline at end of file
diff --git a/qtinterface/tqftp.h b/qtinterface/tqftp.h
index 922d4e3..725fe3e 100644
--- a/qtinterface/tqftp.h
+++ b/qtinterface/tqftp.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QFtp class
+// For Qt4, no changes are needed
+
+#include <qftp.h>
+
+#endif // USE_QT4
+
#endif /* TQFTP_H */ \ No newline at end of file
diff --git a/qtinterface/tqgarray.h b/qtinterface/tqgarray.h
index 994c85c..0c19f31 100644
--- a/qtinterface/tqgarray.h
+++ b/qtinterface/tqgarray.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGArray class
+// For Qt4, no changes are needed
+
+#include <qgarray.h>
+
+#endif // USE_QT4
+
#endif /* TQGARRAY_H */ \ No newline at end of file
diff --git a/qtinterface/tqgb18030codec.h b/qtinterface/tqgb18030codec.h
index 08a057b..4b4fca7 100644
--- a/qtinterface/tqgb18030codec.h
+++ b/qtinterface/tqgb18030codec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGb18030Codec class
+// For Qt4, no changes are needed
+
+#include <qgb18030codec.h>
+
+#endif // USE_QT4
+
#endif /* TQGB18030CODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqgbkcodec.h b/qtinterface/tqgbkcodec.h
index 18b5092..19afc8a 100644
--- a/qtinterface/tqgbkcodec.h
+++ b/qtinterface/tqgbkcodec.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all qgb18030codec defines
#include <tqgb18030codec.h>
-#endif // USE_QT3
-
#endif /* TQGBKCODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqgcache.h b/qtinterface/tqgcache.h
index 1bb820d..0a5c78e 100644
--- a/qtinterface/tqgcache.h
+++ b/qtinterface/tqgcache.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGCache class
+// For Qt4, no changes are needed
+
+#include <qgcache.h>
+
+#endif // USE_QT4
+
#endif /* TQGCACHE_H */ \ No newline at end of file
diff --git a/qtinterface/tqgdict.h b/qtinterface/tqgdict.h
index 03aaac6..ad75978 100644
--- a/qtinterface/tqgdict.h
+++ b/qtinterface/tqgdict.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGDict class
+// For Qt4, no changes are needed
+
+#include <qgdict.h>
+
+#endif // USE_QT4
+
#endif /* TQGDICT_H */ \ No newline at end of file
diff --git a/qtinterface/tqgeneric.h b/qtinterface/tqgeneric.h
index d82a0ef..8f2d3d0 100644
--- a/qtinterface/tqgeneric.h
+++ b/qtinterface/tqgeneric.h
@@ -26,8 +26,12 @@ Boston, MA 02110-1301, USA.
#ifdef USE_QT3
-#error "Do not use or include tqgeneric.h; it is obsolete!"
+#include <qgeneric.h>
#endif // USE_QT3
+#ifdef USE_QT4
+
+#endif // USE_QT4
+
#endif /* TQGENERIC_H */ \ No newline at end of file
diff --git a/qtinterface/tqgif.h b/qtinterface/tqgif.h
index 9e37b2f..ae21d0c 100644
--- a/qtinterface/tqgif.h
+++ b/qtinterface/tqgif.h
@@ -32,4 +32,12 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Include the Qt4 gif defines
+
+#include <qgif.h>
+
+#endif // USE_QT4
+
#endif /* TQGIF_H */ \ No newline at end of file
diff --git a/qtinterface/tqgl.h b/qtinterface/tqgl.h
index 14564c7..58270d4 100644
--- a/qtinterface/tqgl.h
+++ b/qtinterface/tqgl.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGL class
+// For Qt4, no changes are needed
+
+#include <qgl.h>
+
+#endif // USE_QT4
+
#endif /* TQGL_H */ \ No newline at end of file
diff --git a/qtinterface/tqglcolormap.h b/qtinterface/tqglcolormap.h
index dd8bdc9..d674468 100644
--- a/qtinterface/tqglcolormap.h
+++ b/qtinterface/tqglcolormap.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGLColormap class
+// For Qt4, no changes are needed
+
+#include <qglcolormap.h>
+
+#endif // USE_QT4
+
#endif /* TQGLCOLORMAP_H */ \ No newline at end of file
diff --git a/qtinterface/tqglist.h b/qtinterface/tqglist.h
index c1dc661..5025efb 100644
--- a/qtinterface/tqglist.h
+++ b/qtinterface/tqglist.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGList class
+// For Qt4, no changes are needed
+
+#include <qglist.h>
+
+#endif // USE_QT4
+
#endif /* TQGLIST_H */ \ No newline at end of file
diff --git a/qtinterface/tqglobal.h b/qtinterface/tqglobal.h
index f7f87ce..5db81a3 100644
--- a/qtinterface/tqglobal.h
+++ b/qtinterface/tqglobal.h
@@ -32,4 +32,12 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in all Qt4 global defines
+
+#include <qglobal.h>
+
+#endif // USE_QT4
+
#endif /* TQGLOBAL_H */ \ No newline at end of file
diff --git a/qtinterface/tqgplugin.h b/qtinterface/tqgplugin.h
index 879cd63..39fe982 100644
--- a/qtinterface/tqgplugin.h
+++ b/qtinterface/tqgplugin.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGPlugin class
+// For Qt4, no changes are needed
+
+#include <qgplugin.h>
+
+#endif // USE_QT4
+
#endif /* TQGPLUGIN_H */ \ No newline at end of file
diff --git a/qtinterface/tqgrid.h b/qtinterface/tqgrid.h
index 9308135..1130bf4 100644
--- a/qtinterface/tqgrid.h
+++ b/qtinterface/tqgrid.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGrid class
+// For Qt4, no changes are needed
+
+#include <qgrid.h>
+
+#endif // USE_QT4
+
#endif /* TQGRID_H */ \ No newline at end of file
diff --git a/qtinterface/tqgridview.h b/qtinterface/tqgridview.h
index d1bfa08..fe3a9fe 100644
--- a/qtinterface/tqgridview.h
+++ b/qtinterface/tqgridview.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGridView class
+// For Qt4, no changes are needed
+
+#include <qgridview.h>
+
+#endif // USE_QT4
+
#endif /* TQGRIDVIEW_H */ \ No newline at end of file
diff --git a/qtinterface/tqgroupbox.h b/qtinterface/tqgroupbox.h
index 0db8c79..a7a6008 100644
--- a/qtinterface/tqgroupbox.h
+++ b/qtinterface/tqgroupbox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGroupBox class
+// For Qt4, no changes are needed
+
+#include <qgroupbox.h>
+
+#endif // USE_QT4
+
#endif /* TQGROUPBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqgrpbox.h b/qtinterface/tqgrpbox.h
index 0a9747f..e83205c 100644
--- a/qtinterface/tqgrpbox.h
+++ b/qtinterface/tqgrpbox.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqgroupbox defines
#include <tqgroupbox.h>
-#endif // USE_QT3
-
#endif /* TQGRPBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqguardedptr.h b/qtinterface/tqguardedptr.h
index 58269f6..1ec3aa0 100644
--- a/qtinterface/tqguardedptr.h
+++ b/qtinterface/tqguardedptr.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGuardedPtr class
+// For Qt4, no changes are needed
+
+#include <qguardedptr.h>
+
+#endif // USE_QT4
+
#endif /* TQGUARDEDPTR_H */ \ No newline at end of file
diff --git a/qtinterface/tqgvector.h b/qtinterface/tqgvector.h
index 284f420..911b5c7 100644
--- a/qtinterface/tqgvector.h
+++ b/qtinterface/tqgvector.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QGVector class
+// For Qt4, no changes are needed
+
+#include <qgvector.h>
+
+#endif // USE_QT4
+
#endif /* TQGVECTOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqhbox.h b/qtinterface/tqhbox.h
index 65b7e3c..36c7ab5 100644
--- a/qtinterface/tqhbox.h
+++ b/qtinterface/tqhbox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QHBox class
+// For Qt4, no changes are needed
+
+#include <qhbox.h>
+
+#endif // USE_QT4
+
#endif /* TQHBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqhbuttongroup.h b/qtinterface/tqhbuttongroup.h
index 0959779..caff8dd 100644
--- a/qtinterface/tqhbuttongroup.h
+++ b/qtinterface/tqhbuttongroup.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QHButtonGroup class
+// For Qt4, no changes are needed
+
+#include <qhbuttongroup.h>
+
+#endif // USE_QT4
+
#endif /* TQHBUTTONGROUP_H */ \ No newline at end of file
diff --git a/qtinterface/tqheader.h b/qtinterface/tqheader.h
index 87582aa..d396b43 100644
--- a/qtinterface/tqheader.h
+++ b/qtinterface/tqheader.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QHeader class
+// For Qt4, no changes are needed
+
+#include <qheader.h>
+
+#endif // USE_QT4
+
#endif /* TQHEADER_H */ \ No newline at end of file
diff --git a/qtinterface/tqhgroupbox.h b/qtinterface/tqhgroupbox.h
index d746415..d9ba16a 100644
--- a/qtinterface/tqhgroupbox.h
+++ b/qtinterface/tqhgroupbox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QHGroupBox class
+// For Qt4, no changes are needed
+
+#include <qhgroupbox.h>
+
+#endif // USE_QT4
+
#endif /* TQHGROUPBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqhostaddress.h b/qtinterface/tqhostaddress.h
index d3f58e7..685abee 100644
--- a/qtinterface/tqhostaddress.h
+++ b/qtinterface/tqhostaddress.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QHostAddress class
+// For Qt4, no changes are needed
+
+#include <qhostaddress.h>
+
+#endif // USE_QT4
+
#endif /* TQHOSTADDRESS_H */ \ No newline at end of file
diff --git a/qtinterface/tqhttp.h b/qtinterface/tqhttp.h
index afb4b56..1f90dc7 100644
--- a/qtinterface/tqhttp.h
+++ b/qtinterface/tqhttp.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QHttp class
+// For Qt4, no changes are needed
+
+#include <qhttp.h>
+
+#endif // USE_QT4
+
#endif /* TQHTTP_H */ \ No newline at end of file
diff --git a/qtinterface/tqiconset.h b/qtinterface/tqiconset.h
index 96cee6b..244240b 100644
--- a/qtinterface/tqiconset.h
+++ b/qtinterface/tqiconset.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccel class
+// For Qt4, no changes are needed
+
+#include <qiconset.h>
+
+#endif // USE_QT4
+
#endif /* TQICONSET_H */ \ No newline at end of file
diff --git a/qtinterface/tqiconview.h b/qtinterface/tqiconview.h
index ef519e1..17a6de8 100644
--- a/qtinterface/tqiconview.h
+++ b/qtinterface/tqiconview.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QIconView class
+// For Qt4, no changes are needed
+
+#include <qiconview.h>
+
+#endif // USE_QT4
+
#endif /* TQICONVIEW_H */ \ No newline at end of file
diff --git a/qtinterface/tqimage.h b/qtinterface/tqimage.h
index 272e820..13d8fe4 100644
--- a/qtinterface/tqimage.h
+++ b/qtinterface/tqimage.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QImage class
+// For Qt4, no changes are needed
+
+#include <qimage.h>
+
+#endif // USE_QT4
+
#endif /* TQIMAGE_H */ \ No newline at end of file
diff --git a/qtinterface/tqimageformatplugin.h b/qtinterface/tqimageformatplugin.h
index e72c38f..7745c26 100644
--- a/qtinterface/tqimageformatplugin.h
+++ b/qtinterface/tqimageformatplugin.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QImageFormatPlugin class
+// For Qt4, no changes are needed
+
+#include <qimageformatplugin.h>
+
+#endif // USE_QT4
+
#endif /* TQIMAGEFORMATPLUGIN_H */ \ No newline at end of file
diff --git a/qtinterface/tqinputcontext.h b/qtinterface/tqinputcontext.h
index b5b55c9..2e508e0 100644
--- a/qtinterface/tqinputcontext.h
+++ b/qtinterface/tqinputcontext.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QInputContext class
+// For Qt4, no changes are needed
+
+#include <qinputcontext.h>
+
+#endif // USE_QT4
+
#endif /* TQINPUTCONTEXT_H */ \ No newline at end of file
diff --git a/qtinterface/tqinputcontextfactory.h b/qtinterface/tqinputcontextfactory.h
index 99e4b9f..98e7f9a 100644
--- a/qtinterface/tqinputcontextfactory.h
+++ b/qtinterface/tqinputcontextfactory.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QInputContextFactory class
+// For Qt4, no changes are needed
+
+#include <qinputcontextfactory.h>
+
+#endif // USE_QT4
+
#endif /* TQINPUTCONTEXTFACTORY_H */ \ No newline at end of file
diff --git a/qtinterface/tqinputdialog.h b/qtinterface/tqinputdialog.h
index b5c745d..3572c6c 100644
--- a/qtinterface/tqinputdialog.h
+++ b/qtinterface/tqinputdialog.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QInputDialog class
+// For Qt4, no changes are needed
+
+#include <qinputdialog.h>
+
+#endif // USE_QT4
+
#endif /* TQINPUTDIALOG_H */ \ No newline at end of file
diff --git a/qtinterface/tqintcach.h b/qtinterface/tqintcach.h
index c814fab..d91f457 100644
--- a/qtinterface/tqintcach.h
+++ b/qtinterface/tqintcach.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in all qintcache defines
#include <tqintcache.h>
-#endif // USE_QT3
-
#endif /* TQINTCACH_H */ \ No newline at end of file
diff --git a/qtinterface/tqintcache.h b/qtinterface/tqintcache.h
index eb80685..2b663db 100644
--- a/qtinterface/tqintcache.h
+++ b/qtinterface/tqintcache.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QIntCache class
+// For Qt4, no changes are needed
+
+#include <qintcache.h>
+
+#endif // USE_QT4
+
#endif /* TQINTCACHE_H */ \ No newline at end of file
diff --git a/qtinterface/tqintdict.h b/qtinterface/tqintdict.h
index 381d4c2..d625d63 100644
--- a/qtinterface/tqintdict.h
+++ b/qtinterface/tqintdict.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QIntDict class
+// For Qt4, no changes are needed
+
+#include <qintdict.h>
+
+#endif // USE_QT4
+
#endif /* TQINTDICT_H */ \ No newline at end of file
diff --git a/qtinterface/tqinterlacestyle.h b/qtinterface/tqinterlacestyle.h
index 65d887f..b381077 100644
--- a/qtinterface/tqinterlacestyle.h
+++ b/qtinterface/tqinterlacestyle.h
@@ -35,4 +35,15 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QInterlaceStyle class
+// For Qt4, no changes are needed
+
+#include <qinterlacestyle.h>
+
+#error "Not ported to new API as of Qt4!"
+
+#endif // USE_QT4
+
#endif /* TQINTERLACESTYLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqiodev.h b/qtinterface/tqiodev.h
index 8ae8766..e81b74f 100644
--- a/qtinterface/tqiodev.h
+++ b/qtinterface/tqiodev.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqiodevice defines
#include <tqiodevice.h>
-#endif // USE_QT3
-
#endif /* TQIODEV_H */ \ No newline at end of file
diff --git a/qtinterface/tqiodevice.h b/qtinterface/tqiodevice.h
index a7284d0..59d38d2 100644
--- a/qtinterface/tqiodevice.h
+++ b/qtinterface/tqiodevice.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QIODevice class
+// For Qt4, no changes are needed
+
+#include <qiodevice.h>
+
+#endif // USE_QT4
+
#endif /* TQIODEVICE_H */ \ No newline at end of file
diff --git a/qtinterface/tqjiscodec.h b/qtinterface/tqjiscodec.h
index c9bfdc1..256f880 100644
--- a/qtinterface/tqjiscodec.h
+++ b/qtinterface/tqjiscodec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QJisCodec class
+// For Qt4, no changes are needed
+
+#include <qjiscodec.h>
+
+#endif // USE_QT4
+
#endif /* TQJISCODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqjpegio.h b/qtinterface/tqjpegio.h
index 5299007..01c0dc8 100644
--- a/qtinterface/tqjpegio.h
+++ b/qtinterface/tqjpegio.h
@@ -25,10 +25,18 @@ Boston, MA 02110-1301, USA.
#ifdef USE_QT3
-// Pull in qjpegio.h defines
+// Pull in Qt3 qjpegio.h defines
#include <qjpegio.h>
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in Qt4 qjpegio.h defines
+
+#include <qjpegio.h>
+
+#endif // USE_QT4
+
#endif /* TQJPEGIO_H */ \ No newline at end of file
diff --git a/qtinterface/tqjpunicode.h b/qtinterface/tqjpunicode.h
index 37b57e5..1b70a99 100644
--- a/qtinterface/tqjpunicode.h
+++ b/qtinterface/tqjpunicode.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QJpUnicodeConv class
+// For Qt4, no changes are needed
+
+#include <qjpunicode.h>
+
+#endif // USE_QT4
+
#endif /* TQJPUNICODE_H */ \ No newline at end of file
diff --git a/qtinterface/tqkeycode.h b/qtinterface/tqkeycode.h
index c3e0ede..8b6fd34 100644
--- a/qtinterface/tqkeycode.h
+++ b/qtinterface/tqkeycode.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
+// Pull in tqkeycode defines
-// Pull in qkeycode defines
-
-#include <qkeycode.h>
-
-#endif // USE_QT3
+#include <tqkeycode.h>
#endif /* TQKEYCODE_H */ \ No newline at end of file
diff --git a/qtinterface/tqkeysequence.h b/qtinterface/tqkeysequence.h
index d2df949..8fbf4c6 100644
--- a/qtinterface/tqkeysequence.h
+++ b/qtinterface/tqkeysequence.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QKeySequence class
+// For Qt4, no changes are needed
+
+#include <qkeysequence.h>
+
+#endif // USE_QT4
+
#endif /* TQKEYSEQUENCE_H */ \ No newline at end of file
diff --git a/qtinterface/tqlabel.h b/qtinterface/tqlabel.h
index f6d1508..275f9ae 100644
--- a/qtinterface/tqlabel.h
+++ b/qtinterface/tqlabel.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QLabel class
+// For Qt4, no changes are needed
+
+#include <qlabel.h>
+
+#endif // USE_QT4
+
#endif /* TQLABEL_H */ \ No newline at end of file
diff --git a/qtinterface/tqlayout.h b/qtinterface/tqlayout.h
index c5617f1..b45b165 100644
--- a/qtinterface/tqlayout.h
+++ b/qtinterface/tqlayout.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QLayout class
+// For Qt4, no changes are needed
+
+#include <qlayout.h>
+
+#endif // USE_QT4
+
#endif /* TQLAYOUT_H */ \ No newline at end of file
diff --git a/qtinterface/tqlcdnum.h b/qtinterface/tqlcdnum.h
index ea8b020..cd3fadf 100644
--- a/qtinterface/tqlcdnum.h
+++ b/qtinterface/tqlcdnum.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqlcdnumber defines
#include <tqlcdnumber.h>
-#endif // USE_QT3
-
#endif /* TQLCDNUMBER_H */ \ No newline at end of file
diff --git a/qtinterface/tqlcdnumber.h b/qtinterface/tqlcdnumber.h
index 580706a..24be6e2 100644
--- a/qtinterface/tqlcdnumber.h
+++ b/qtinterface/tqlcdnumber.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QLCDNumber class
+// For Qt4, no changes are needed
+
+#include <qlcdnumber.h>
+
+#endif // USE_QT4
+
#endif /* TQLCDNUMBER_H */ \ No newline at end of file
diff --git a/qtinterface/tqlibrary.h b/qtinterface/tqlibrary.h
index c0c6c60..1388a47 100644
--- a/qtinterface/tqlibrary.h
+++ b/qtinterface/tqlibrary.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QLibrary class
+// For Qt4, no changes are needed
+
+#include <qlibrary.h>
+
+#endif // USE_QT4
+
#endif /* TQLIBRARY_H */ \ No newline at end of file
diff --git a/qtinterface/tqlined.h b/qtinterface/tqlined.h
index 393ba9a..d579a99 100644
--- a/qtinterface/tqlined.h
+++ b/qtinterface/tqlined.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqlineedit defines
#include <tqlineedit.h>
-#endif // USE_QT3
-
#endif /* TQLINED_H */ \ No newline at end of file
diff --git a/qtinterface/tqlineedit.h b/qtinterface/tqlineedit.h
index bd38189..3879f33 100644
--- a/qtinterface/tqlineedit.h
+++ b/qtinterface/tqlineedit.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QLineEdit class
+// For Qt4, no changes are needed
+
+#include <qlineedit.h>
+
+#endif // USE_QT4
+
#endif /* TQLINEEDIT_H */ \ No newline at end of file
diff --git a/qtinterface/tqlist.h b/qtinterface/tqlist.h
index 9dde8f0..e497685 100644
--- a/qtinterface/tqlist.h
+++ b/qtinterface/tqlist.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqptrlist defines
#include <tqptrlist.h>
-#endif // USE_QT3
-
#endif /* TQLIST_H */ \ No newline at end of file
diff --git a/qtinterface/tqlistbox.h b/qtinterface/tqlistbox.h
index 42db1e5..2d3d9ca 100644
--- a/qtinterface/tqlistbox.h
+++ b/qtinterface/tqlistbox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QListBox class
+// For Qt4, no changes are needed
+
+#include <qlistbox.h>
+
+#endif // USE_QT4
+
#endif /* TQLISTBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqlistview.h b/qtinterface/tqlistview.h
index 3e74b60..eca43fa 100644
--- a/qtinterface/tqlistview.h
+++ b/qtinterface/tqlistview.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QListView class
+// For Qt4, no changes are needed
+
+#include <qlistview.h>
+
+#endif // USE_QT4
+
#endif /* TQLISTVIEW_H */ \ No newline at end of file
diff --git a/qtinterface/tqlocale.h b/qtinterface/tqlocale.h
index bf94469..d06cea3 100644
--- a/qtinterface/tqlocale.h
+++ b/qtinterface/tqlocale.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QLocale class
+// For Qt4, no changes are needed
+
+#include <qlocale.h>
+
+#endif // USE_QT4
+
#endif /* TQLOCALE_H */ \ No newline at end of file
diff --git a/qtinterface/tqlocalfs.h b/qtinterface/tqlocalfs.h
index a83e060..5206463 100644
--- a/qtinterface/tqlocalfs.h
+++ b/qtinterface/tqlocalfs.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QLocalFs class
+// For Qt4, no changes are needed
+
+#include <qlocalfs.h>
+
+#endif // USE_QT4
+
#endif /* TQLOCALFS_H */ \ No newline at end of file
diff --git a/qtinterface/tqmainwindow.h b/qtinterface/tqmainwindow.h
index f73b787..5970505 100644
--- a/qtinterface/tqmainwindow.h
+++ b/qtinterface/tqmainwindow.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMainWindow class
+// For Qt4, no changes are needed
+
+#include <qmainwindow.h>
+
+#endif // USE_QT4
+
#endif /* TQMAINWINDOW_H */ \ No newline at end of file
diff --git a/qtinterface/tqmap.h b/qtinterface/tqmap.h
index a813d63..7893016 100644
--- a/qtinterface/tqmap.h
+++ b/qtinterface/tqmap.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMap class
+// For Qt4, no changes are needed
+
+#include <qmap.h>
+
+#endif // USE_QT4
+
#endif /* TQMAP_H */ \ No newline at end of file
diff --git a/qtinterface/tqmemarray.h b/qtinterface/tqmemarray.h
index 56b7fdd..47accef 100644
--- a/qtinterface/tqmemarray.h
+++ b/qtinterface/tqmemarray.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMemArray class
+// For Qt4, no changes are needed
+
+#include <qmemarray.h>
+
+#endif // USE_QT4
+
#endif /* TQMEMARRAY_H */ \ No newline at end of file
diff --git a/qtinterface/tqmenubar.h b/qtinterface/tqmenubar.h
index 49ff250..7eae17f 100644
--- a/qtinterface/tqmenubar.h
+++ b/qtinterface/tqmenubar.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMenuBar class
+// For Qt4, no changes are needed
+
+#include <qmenubar.h>
+
+#endif // USE_QT4
+
#endif /* TQMENUBAR_H */ \ No newline at end of file
diff --git a/qtinterface/tqmenudata.h b/qtinterface/tqmenudata.h
index ce8820c..07e172f 100644
--- a/qtinterface/tqmenudata.h
+++ b/qtinterface/tqmenudata.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMenuData class
+// For Qt4, no changes are needed
+
+#include <qmenudata.h>
+
+#endif // USE_QT4
+
#endif /* TQMENUDATA_H */ \ No newline at end of file
diff --git a/qtinterface/tqmenudta.h b/qtinterface/tqmenudta.h
index 0f92da5..5251b7f 100644
--- a/qtinterface/tqmenudta.h
+++ b/qtinterface/tqmenudta.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqmenudata defines
#include <tqmenudata.h>
-#endif // USE_QT3
-
#endif /* TQMENUDTA_H */ \ No newline at end of file
diff --git a/qtinterface/tqmessagebox.h b/qtinterface/tqmessagebox.h
index d81b2e2..968eee5 100644
--- a/qtinterface/tqmessagebox.h
+++ b/qtinterface/tqmessagebox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMessageBox class
+// For Qt4, no changes are needed
+
+#include <qmessagebox.h>
+
+#endif // USE_QT4
+
#endif /* TQMESSAGEBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqmetaobj.h b/qtinterface/tqmetaobj.h
index 8a13092..fed7246 100644
--- a/qtinterface/tqmetaobj.h
+++ b/qtinterface/tqmetaobj.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqmetaobject defines
#include <tqmetaobject.h>
-#endif // USE_QT3
-
#endif /* TQMETAOBJ_H */ \ No newline at end of file
diff --git a/qtinterface/tqmetaobject.h b/qtinterface/tqmetaobject.h
index 3c31205..ee77ff8 100644
--- a/qtinterface/tqmetaobject.h
+++ b/qtinterface/tqmetaobject.h
@@ -35,4 +35,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMetaObject class
+// For Qt4, no changes are needed
+
+#include <qmetaobject.h>
+
+#endif // USE_QT4
+
#endif /* TQMETAOBJECT_H */ \ No newline at end of file
diff --git a/qtinterface/tqmime.h b/qtinterface/tqmime.h
index 74f723f..4a80351 100644
--- a/qtinterface/tqmime.h
+++ b/qtinterface/tqmime.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMime class
+// For Qt4, no changes are needed
+
+#include <qmime.h>
+
+#endif // USE_QT4
+
#endif /* TQMIME_H */ \ No newline at end of file
diff --git a/qtinterface/tqmlined.h b/qtinterface/tqmlined.h
index 7762db8..a35d81e 100644
--- a/qtinterface/tqmlined.h
+++ b/qtinterface/tqmlined.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqmultilineedit defines
#include <tqmultilineedit.h>
-#endif // USE_QT3
-
#endif /* TQMLINED_H */ \ No newline at end of file
diff --git a/qtinterface/tqmngio.h b/qtinterface/tqmngio.h
index 568098b..fe55e28 100644
--- a/qtinterface/tqmngio.h
+++ b/qtinterface/tqmngio.h
@@ -26,10 +26,18 @@ Boston, MA 02110-1301, USA.
#ifdef USE_QT3
-// Pull in qmngio defines
+// Pull in Qt3 qmngio defines
#include <qmngio.h>
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in Qt4 qmngio defines
+
+#include <qmngio.h>
+
+#endif // USE_QT4
+
#endif /* TQMNGIO_H */ \ No newline at end of file
diff --git a/qtinterface/tqmodules.h b/qtinterface/tqmodules.h
index 9218bdc..57b6da7 100644
--- a/qtinterface/tqmodules.h
+++ b/qtinterface/tqmodules.h
@@ -32,4 +32,12 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in Qt4 modules defines
+
+#include <qmodules.h>
+
+#endif // USE_QT4
+
#endif /* TQMODULES_H */ \ No newline at end of file
diff --git a/qtinterface/tqmotifplusstyle.h b/qtinterface/tqmotifplusstyle.h
index 4daa2f8..46538c3 100644
--- a/qtinterface/tqmotifplusstyle.h
+++ b/qtinterface/tqmotifplusstyle.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMotifPlusStyle class
+// For Qt4, no changes are needed
+
+#include <qmotifplusstyle.h>
+
+#endif // USE_QT4
+
#endif /* TQMOTIFPLUSSTYLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqmotifstyle.h b/qtinterface/tqmotifstyle.h
index e2d77af..3161066 100644
--- a/qtinterface/tqmotifstyle.h
+++ b/qtinterface/tqmotifstyle.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMotifStyle class
+// For Qt4, no changes are needed
+
+#include <qmotifstyle.h>
+
+#endif // USE_QT4
+
#endif /* TQACCEL_H */ \ No newline at end of file
diff --git a/qtinterface/tqmovie.h b/qtinterface/tqmovie.h
index cd1b543..9211eab 100644
--- a/qtinterface/tqmovie.h
+++ b/qtinterface/tqmovie.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMovie class
+// For Qt4, no changes are needed
+
+#include <qmovie.h>
+
+#endif // USE_QT4
+
#endif /* TQMOVIE_H */ \ No newline at end of file
diff --git a/qtinterface/tqmsgbox.h b/qtinterface/tqmsgbox.h
index df90920..30f2fc0 100644
--- a/qtinterface/tqmsgbox.h
+++ b/qtinterface/tqmsgbox.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqmessagebox defines
#include <tqmessagebox.h>
-#endif // USE_QT3
-
#endif /* TQMSGBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqmultilinedit.h b/qtinterface/tqmultilinedit.h
index 71beabe..6a7707c 100644
--- a/qtinterface/tqmultilinedit.h
+++ b/qtinterface/tqmultilinedit.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqmultilineedit defines
#include <tqmultilineedit.h>
-#endif // USE_QT3
-
#endif /* TQMULTILINEDIT_H */ \ No newline at end of file
diff --git a/qtinterface/tqmultilineedit.h b/qtinterface/tqmultilineedit.h
index 5dea332..e5190f1 100644
--- a/qtinterface/tqmultilineedit.h
+++ b/qtinterface/tqmultilineedit.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMultiLineEdit class
+// For Qt4, no changes are needed
+
+#include <qmultilineedit.h>
+
+#endif // USE_QT4
+
#endif /* TQMULTILINEEDIT_H */ \ No newline at end of file
diff --git a/qtinterface/tqmutex.h b/qtinterface/tqmutex.h
index 3f4f96d..9f67c2e 100644
--- a/qtinterface/tqmutex.h
+++ b/qtinterface/tqmutex.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QMutex class
+// For Qt4, no changes are needed
+
+#include <qmutex.h>
+
+#endif // USE_QT4
+
#endif /* TQMUTEX_H */ \ No newline at end of file
diff --git a/qtinterface/tqnamespace.h b/qtinterface/tqnamespace.h
index 076c8e5..423887a 100644
--- a/qtinterface/tqnamespace.h
+++ b/qtinterface/tqnamespace.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccel class
+// For Qt4, no changes are needed
+
+#include <qnamespace.h>
+
+#endif // USE_QT4
+
#endif /* TQNAMESPACE_H */ \ No newline at end of file
diff --git a/qtinterface/tqnetwork.h b/qtinterface/tqnetwork.h
index 2587d05..5043413 100644
--- a/qtinterface/tqnetwork.h
+++ b/qtinterface/tqnetwork.h
@@ -26,10 +26,18 @@ Boston, MA 02110-1301, USA.
#ifdef USE_QT3
-// Pull in qnetwork defines
+// Pull in Qt3 qnetwork defines
#include <qnetwork.h>
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in Qt4 qnetwork defines
+
+#include <qnetwork.h>
+
+#endif // USE_QT4
+
#endif /* TQNETWORK_H */ \ No newline at end of file
diff --git a/qtinterface/tqnetworkprotocol.h b/qtinterface/tqnetworkprotocol.h
index 8a55cb7..f4abed0 100644
--- a/qtinterface/tqnetworkprotocol.h
+++ b/qtinterface/tqnetworkprotocol.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QNetworkProtocol class
+// For Qt4, no changes are needed
+
+#include <qnetworkprotocol.h>
+
+#endif // USE_QT4
+
#endif /* TQNETWORKPROTOCOL_H */ \ No newline at end of file
diff --git a/qtinterface/tqnp.h b/qtinterface/tqnp.h
index 455fffb..1f72e97 100644
--- a/qtinterface/tqnp.h
+++ b/qtinterface/tqnp.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QNPWidget class
+// For Qt4, no changes are needed
+
+#include <qnp.h>
+
+#endif // USE_QT4
+
#endif /* TQNP_H */ \ No newline at end of file
diff --git a/qtinterface/tqobjcoll.h b/qtinterface/tqobjcoll.h
index eabc932..2a1b40f 100644
--- a/qtinterface/tqobjcoll.h
+++ b/qtinterface/tqobjcoll.h
@@ -24,13 +24,9 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in object collection defines
#include <tqobjectlist.h>
#include <tqobjectdict.h>
-#endif // USE_QT3
-
#endif /* TQOBJCALL_H */ \ No newline at end of file
diff --git a/qtinterface/tqobjdefs.h b/qtinterface/tqobjdefs.h
index 818f6e2..e000053 100644
--- a/qtinterface/tqobjdefs.h
+++ b/qtinterface/tqobjdefs.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in object definition defines
#include <tqobjectdefs.h>
-#endif // USE_QT3
-
#endif /* TQOBJDEFS_H */ \ No newline at end of file
diff --git a/qtinterface/tqobject.h b/qtinterface/tqobject.h
index 5dbe8fd..6d5e063 100644
--- a/qtinterface/tqobject.h
+++ b/qtinterface/tqobject.h
@@ -36,4 +36,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QObject class
+// For Qt4, no changes are needed
+
+#include <qobject.h>
+
+#endif // USE_QT4
+
#endif /* TQOBJECT_H */ \ No newline at end of file
diff --git a/qtinterface/tqobjectcleanuphandler.h b/qtinterface/tqobjectcleanuphandler.h
index 6eec0aa..3229a7f 100644
--- a/qtinterface/tqobjectcleanuphandler.h
+++ b/qtinterface/tqobjectcleanuphandler.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QObjectCleanupHandler class
+// For Qt4, no changes are needed
+
+#include <qobjectcleanuphandler.h>
+
+#endif // USE_QT4
+
#endif /* TQOBJECTCLEANUPHANDLER_H */ \ No newline at end of file
diff --git a/qtinterface/tqobjectdict.h b/qtinterface/tqobjectdict.h
index d13d1ff..34b3620 100644
--- a/qtinterface/tqobjectdict.h
+++ b/qtinterface/tqobjectdict.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QObjectDictionary class
+// For Qt4, no changes are needed
+
+#include <qobjectdict.h>
+
+#endif // USE_QT4
+
#endif /* TQOBJECTDICT_H */ \ No newline at end of file
diff --git a/qtinterface/tqobjectlist.h b/qtinterface/tqobjectlist.h
index 9c918ae..ac0be7e 100644
--- a/qtinterface/tqobjectlist.h
+++ b/qtinterface/tqobjectlist.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QObjectList class
+// For Qt4, no changes are needed
+
+#include <qobjectlist.h>
+
+#endif // USE_QT4
+
#endif /* TQOBJECTLIST_H */ \ No newline at end of file
diff --git a/qtinterface/tqpaintd.h b/qtinterface/tqpaintd.h
index ca711a5..d21bdd7 100644
--- a/qtinterface/tqpaintd.h
+++ b/qtinterface/tqpaintd.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqpaintdevice defines
#include <tqpaintdevice.h>
-#endif // USE_QT3
-
#endif /* TQPAINTD_H */ \ No newline at end of file
diff --git a/qtinterface/tqpaintdc.h b/qtinterface/tqpaintdc.h
index f1ae6af..33071ce 100644
--- a/qtinterface/tqpaintdc.h
+++ b/qtinterface/tqpaintdc.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqpaintdevicedefs defines
#include <tqpaintdevicedefs.h>
-#endif // USE_QT3
-
#endif /* TQPAINTDC_H */ \ No newline at end of file
diff --git a/qtinterface/tqpaintdevice.h b/qtinterface/tqpaintdevice.h
index 63506a9..7c30751 100644
--- a/qtinterface/tqpaintdevice.h
+++ b/qtinterface/tqpaintdevice.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPaintDevice class
+// For Qt4, no changes are needed
+
+#include <qpaintdevice.h>
+
+#endif // USE_QT4
+
#endif /* TQPAINTDEVICE_H */ \ No newline at end of file
diff --git a/qtinterface/tqpaintdevicemetrics.h b/qtinterface/tqpaintdevicemetrics.h
index d60da79..6a92a85 100644
--- a/qtinterface/tqpaintdevicemetrics.h
+++ b/qtinterface/tqpaintdevicemetrics.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPaintDeviceMetrics class
+// For Qt4, no changes are needed
+
+#include <qpaintdevicemetrics.h>
+
+#endif // USE_QT4
+
#endif /* TQPAINTDEVICEMETRICS_H */ \ No newline at end of file
diff --git a/qtinterface/tqpainter.h b/qtinterface/tqpainter.h
index 1186299..56db57f 100644
--- a/qtinterface/tqpainter.h
+++ b/qtinterface/tqpainter.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPainter class
+// For Qt4, no changes are needed
+
+#include <qpainter.h>
+
+#endif // USE_QT4
+
#endif /* TQPAINTER_H */ \ No newline at end of file
diff --git a/qtinterface/tqpair.h b/qtinterface/tqpair.h
index 8001e9a..3efa894 100644
--- a/qtinterface/tqpair.h
+++ b/qtinterface/tqpair.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPair class
+// For Qt4, no changes are needed
+
+#include <qpair.h>
+
+#endif // USE_QT4
+
#endif /* TQPAIR_H */ \ No newline at end of file
diff --git a/qtinterface/tqpalette.h b/qtinterface/tqpalette.h
index 168b319..7713bc4 100644
--- a/qtinterface/tqpalette.h
+++ b/qtinterface/tqpalette.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPalette class
+// For Qt4, no changes are needed
+
+#include <qpalette.h>
+
+#endif // USE_QT4
+
#endif /* TQPALETTE_H */ \ No newline at end of file
diff --git a/qtinterface/tqpdevmet.h b/qtinterface/tqpdevmet.h
index 3ff148a..2a2e91e 100644
--- a/qtinterface/tqpdevmet.h
+++ b/qtinterface/tqpdevmet.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqpaintdevicemetrics defines
#include <tqpaintdevicemetrics.h>
-#endif // USE_QT3
-
#endif /* TQPDEVMET_H */ \ No newline at end of file
diff --git a/qtinterface/tqpen.h b/qtinterface/tqpen.h
index 84b036f..2dc62ec 100644
--- a/qtinterface/tqpen.h
+++ b/qtinterface/tqpen.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPen class
+// For Qt4, no changes are needed
+
+#include <qpen.h>
+
+#endif // USE_QT4
+
#endif /* TQPEN_H */ \ No newline at end of file
diff --git a/qtinterface/tqpicture.h b/qtinterface/tqpicture.h
index 75fc7b2..7159211 100644
--- a/qtinterface/tqpicture.h
+++ b/qtinterface/tqpicture.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPicture class
+// For Qt4, no changes are needed
+
+#include <qpicture.h>
+
+#endif // USE_QT4
+
#endif /* TQPICTURE_H */ \ No newline at end of file
diff --git a/qtinterface/tqpixmap.h b/qtinterface/tqpixmap.h
index 688fbde..a5e8fbb 100644
--- a/qtinterface/tqpixmap.h
+++ b/qtinterface/tqpixmap.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPixmap class
+// For Qt4, no changes are needed
+
+#include <qpixmap.h>
+
+#endif // USE_QT4
+
#endif /* TQPIXMAP_H */ \ No newline at end of file
diff --git a/qtinterface/tqpixmapcache.h b/qtinterface/tqpixmapcache.h
index a0a5b4d..3174095 100644
--- a/qtinterface/tqpixmapcache.h
+++ b/qtinterface/tqpixmapcache.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPixmapCache class
+// For Qt4, no changes are needed
+
+#include <qpixmapcache.h>
+
+#endif // USE_QT4
+
#endif /* TQPIXMAPCACHE_H */ \ No newline at end of file
diff --git a/qtinterface/tqplatinumstyle.h b/qtinterface/tqplatinumstyle.h
index db22804..ee56252 100644
--- a/qtinterface/tqplatinumstyle.h
+++ b/qtinterface/tqplatinumstyle.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPlatinumStyle class
+// For Qt4, no changes are needed
+
+#include <qplatinumstyle.h>
+
+#endif // USE_QT4
+
#endif /* TQPLATINUMSTYLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqpmcache.h b/qtinterface/tqpmcache.h
index 4780a71..e2d7f8d 100644
--- a/qtinterface/tqpmcache.h
+++ b/qtinterface/tqpmcache.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqpixmapcache defines
#include <tqpixmapcache.h>
-#endif // USE_QT3
-
#endif /* TQPMCACHE_H */ \ No newline at end of file
diff --git a/qtinterface/tqpngio.h b/qtinterface/tqpngio.h
index 62e691d..a3e77f2 100644
--- a/qtinterface/tqpngio.h
+++ b/qtinterface/tqpngio.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPNGImage class
+// For Qt4, no changes are needed
+
+#include <qpngio.h>
+
+#endif // USE_QT4
+
#endif /* TQPNGIO_H */ \ No newline at end of file
diff --git a/qtinterface/tqpntarry.h b/qtinterface/tqpntarry.h
index b190495..0844498 100644
--- a/qtinterface/tqpntarry.h
+++ b/qtinterface/tqpntarry.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqpointarray defines
#include <tqpointarray.h>
-#endif // USE_QT3
-
#endif /* TQPNTARRY_H */ \ No newline at end of file
diff --git a/qtinterface/tqpoint.h b/qtinterface/tqpoint.h
index 460fceb..d1b895d 100644
--- a/qtinterface/tqpoint.h
+++ b/qtinterface/tqpoint.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPoint class
+// For Qt4, no changes are needed
+
+#include <qpoint.h>
+
+#endif // USE_QT4
+
#endif /* TQPOINT_H */ \ No newline at end of file
diff --git a/qtinterface/tqpointarray.h b/qtinterface/tqpointarray.h
index 0a3a599..b4560bf 100644
--- a/qtinterface/tqpointarray.h
+++ b/qtinterface/tqpointarray.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccel class
+// For Qt4, no changes are needed
+
+#include <qpointarray.h>
+
+#endif // USE_QT4
+
#endif /* TQPOINTARRAY_H */ \ No newline at end of file
diff --git a/qtinterface/tqpolygonscanner.h b/qtinterface/tqpolygonscanner.h
index 5a8c903..757520d 100644
--- a/qtinterface/tqpolygonscanner.h
+++ b/qtinterface/tqpolygonscanner.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPolygonScanner class
+// For Qt4, no changes are needed
+
+#include <qpolygonscanner.h>
+
+#endif // USE_QT4
+
#endif /* TQPOLYGONSCANNER_H */ \ No newline at end of file
diff --git a/qtinterface/tqpopmenu.h b/qtinterface/tqpopmenu.h
index de2c3a3..34b0c91 100644
--- a/qtinterface/tqpopmenu.h
+++ b/qtinterface/tqpopmenu.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqpopupmenu defines
#include <tqpopupmenu.h>
-#endif // USE_QT3
-
#endif /* TQPOPMENU_H */ \ No newline at end of file
diff --git a/qtinterface/tqpopupmenu.h b/qtinterface/tqpopupmenu.h
index e1124db..4d0fd9a 100644
--- a/qtinterface/tqpopupmenu.h
+++ b/qtinterface/tqpopupmenu.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPopupMenu class
+// For Qt4, no changes are needed
+
+#include <qpopupmenu.h>
+
+#endif // USE_QT4
+
#endif /* TQPOPUPMENU_H */ \ No newline at end of file
diff --git a/qtinterface/tqprintdialog.h b/qtinterface/tqprintdialog.h
index b9fdf56..6847f28 100644
--- a/qtinterface/tqprintdialog.h
+++ b/qtinterface/tqprintdialog.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPrintDialog class
+// For Qt4, no changes are needed
+
+#include <qprintdialog.h>
+
+#endif // USE_QT4
+
#endif /* TQPRINTDIALOG_H */ \ No newline at end of file
diff --git a/qtinterface/tqprinter.h b/qtinterface/tqprinter.h
index 59dd67d..00d7a51 100644
--- a/qtinterface/tqprinter.h
+++ b/qtinterface/tqprinter.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPrinter class
+// For Qt4, no changes are needed
+
+#include <qprinter.h>
+
+#endif // USE_QT4
+
#endif /* TQPRINTER_H */ \ No newline at end of file
diff --git a/qtinterface/tqprndlg.h b/qtinterface/tqprndlg.h
index 24d0ac3..1f0b43b 100644
--- a/qtinterface/tqprndlg.h
+++ b/qtinterface/tqprndlg.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqprintdialog defines
#include <tqprintdialog.h>
-#endif // USE_QT3
-
#endif /* TQPRNDLG_H */ \ No newline at end of file
diff --git a/qtinterface/tqprocess.h b/qtinterface/tqprocess.h
index aa479f1..283663b 100644
--- a/qtinterface/tqprocess.h
+++ b/qtinterface/tqprocess.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QProcess class
+// For Qt4, no changes are needed
+
+#include <qprocess.h>
+
+#endif // USE_QT4
+
#endif /* TQPROCESS_H */ \ No newline at end of file
diff --git a/qtinterface/tqprogbar.h b/qtinterface/tqprogbar.h
index 03cf049..44a36b0 100644
--- a/qtinterface/tqprogbar.h
+++ b/qtinterface/tqprogbar.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqprogressbar defines
#include <tqprogressbar.h>
-#endif // USE_QT3
-
#endif /* TQPROGBAR_H */ \ No newline at end of file
diff --git a/qtinterface/tqprogdlg.h b/qtinterface/tqprogdlg.h
index b637d7e..64de922 100644
--- a/qtinterface/tqprogdlg.h
+++ b/qtinterface/tqprogdlg.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqprogressdialog defines
#include <tqprogressdialog.h>
-#endif // USE_QT3
-
#endif /* TQPROGDLG_H */ \ No newline at end of file
diff --git a/qtinterface/tqprogressbar.h b/qtinterface/tqprogressbar.h
index 23f87d9..e5ece58 100644
--- a/qtinterface/tqprogressbar.h
+++ b/qtinterface/tqprogressbar.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QProgressBar class
+// For Qt4, no changes are needed
+
+#include <qprogressbar.h>
+
+#endif // USE_QT4
+
#endif /* TQPROGRESSBAR_H */ \ No newline at end of file
diff --git a/qtinterface/tqprogressdialog.h b/qtinterface/tqprogressdialog.h
index 4ca4cf9..e87347b 100644
--- a/qtinterface/tqprogressdialog.h
+++ b/qtinterface/tqprogressdialog.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QProgressDialog class
+// For Qt4, no changes are needed
+
+#include <qprogressdialog.h>
+
+#endif // USE_QT4
+
#endif /* TQPROGRESSDIALOG_H */ \ No newline at end of file
diff --git a/qtinterface/tqptrcollection.h b/qtinterface/tqptrcollection.h
index 88bac08..41e5559 100644
--- a/qtinterface/tqptrcollection.h
+++ b/qtinterface/tqptrcollection.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPtrCollection class
+// For Qt4, no changes are needed
+
+#include <qptrcollection.h>
+
+#endif // USE_QT4
+
#endif /* TQPTRCOLLECTION_H */ \ No newline at end of file
diff --git a/qtinterface/tqptrdict.h b/qtinterface/tqptrdict.h
index 2563a14..3221c11 100644
--- a/qtinterface/tqptrdict.h
+++ b/qtinterface/tqptrdict.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPtrDict class
+// For Qt4, no changes are needed
+
+#include <qptrdict.h>
+
+#endif // USE_QT4
+
#endif /* TQPTRDICT_H */ \ No newline at end of file
diff --git a/qtinterface/tqptrlist.h b/qtinterface/tqptrlist.h
index 3d47cc9..8c7a96c 100644
--- a/qtinterface/tqptrlist.h
+++ b/qtinterface/tqptrlist.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPtrList class
+// For Qt4, no changes are needed
+
+#include <qptrlist.h>
+
+#endif // USE_QT4
+
#endif /* TQPTRLIST_H */ \ No newline at end of file
diff --git a/qtinterface/tqptrqueue.h b/qtinterface/tqptrqueue.h
index ba79194..18fbd16 100644
--- a/qtinterface/tqptrqueue.h
+++ b/qtinterface/tqptrqueue.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPtrQueue class
+// For Qt4, no changes are needed
+
+#include <qptrqueue.h>
+
+#endif // USE_QT4
+
#endif /* TQPTRQUEUE_H */ \ No newline at end of file
diff --git a/qtinterface/tqptrstack.h b/qtinterface/tqptrstack.h
index e798de4..1778459 100644
--- a/qtinterface/tqptrstack.h
+++ b/qtinterface/tqptrstack.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPtrStack class
+// For Qt4, no changes are needed
+
+#include <qptrstack.h>
+
+#endif // USE_QT4
+
#endif /* TQPTRSTACK_H */ \ No newline at end of file
diff --git a/qtinterface/tqptrvector.h b/qtinterface/tqptrvector.h
index 0544ee7..d3429f3 100644
--- a/qtinterface/tqptrvector.h
+++ b/qtinterface/tqptrvector.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPtrVector class
+// For Qt4, no changes are needed
+
+#include <qptrvector.h>
+
+#endif // USE_QT4
+
#endif /* TQPTRVECTOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqpushbt.h b/qtinterface/tqpushbt.h
index 9749c6f..96594bf 100644
--- a/qtinterface/tqpushbt.h
+++ b/qtinterface/tqpushbt.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqpushbutton defines
#include <tqpushbutton.h>
-#endif // USE_QT3
-
#endif /* TQPUSHBT_H */ \ No newline at end of file
diff --git a/qtinterface/tqpushbutton.h b/qtinterface/tqpushbutton.h
index 1e2c819..d9d997a 100644
--- a/qtinterface/tqpushbutton.h
+++ b/qtinterface/tqpushbutton.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QPushButton class
+// For Qt4, no changes are needed
+
+#include <qpushbutton.h>
+
+#endif // USE_QT4
+
#endif /* TQPUSHBUTTON_H */ \ No newline at end of file
diff --git a/qtinterface/tqqueue.h b/qtinterface/tqqueue.h
index cfc3556..6118ebb 100644
--- a/qtinterface/tqqueue.h
+++ b/qtinterface/tqqueue.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqptrqueue defines
#include <tqptrqueue.h>
-#endif // USE_QT3
-
#endif /* TQQUEUE_H */ \ No newline at end of file
diff --git a/qtinterface/tqradiobt.h b/qtinterface/tqradiobt.h
index 5839312..c0092e5 100644
--- a/qtinterface/tqradiobt.h
+++ b/qtinterface/tqradiobt.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqradiobutton defines
#include <tqradiobutton.h>
-#endif // USE_QT3
-
#endif /* TQRADIOBT_H */ \ No newline at end of file
diff --git a/qtinterface/tqradiobutton.h b/qtinterface/tqradiobutton.h
index 198deec..69f3e85 100644
--- a/qtinterface/tqradiobutton.h
+++ b/qtinterface/tqradiobutton.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QRadioButton class
+// For Qt4, no changes are needed
+
+#include <qradiobutton.h>
+
+#endif // USE_QT4
+
#endif /* TQRADIOBUTTON_H */ \ No newline at end of file
diff --git a/qtinterface/tqrangecontrol.h b/qtinterface/tqrangecontrol.h
index af50182..7d20e6d 100644
--- a/qtinterface/tqrangecontrol.h
+++ b/qtinterface/tqrangecontrol.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QRangeControl class
+// For Qt4, no changes are needed
+
+#include <qrangecontrol.h>
+
+#endif // USE_QT4
+
#endif /* TQRANGECONTROL_H */ \ No newline at end of file
diff --git a/qtinterface/tqrangect.h b/qtinterface/tqrangect.h
index 220cce2..c3fb1f7 100644
--- a/qtinterface/tqrangect.h
+++ b/qtinterface/tqrangect.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqrangecontrol defines
#include <tqrangecontrol.h>
-#endif // USE_QT3
-
#endif /* TQRANGECT_H */ \ No newline at end of file
diff --git a/qtinterface/tqrect.h b/qtinterface/tqrect.h
index fbf7840..0163593 100644
--- a/qtinterface/tqrect.h
+++ b/qtinterface/tqrect.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QRect class
+// For Qt4, no changes are needed
+
+#include <qrect.h>
+
+#endif // USE_QT4
+
#endif /* TQRECT_H */ \ No newline at end of file
diff --git a/qtinterface/tqregexp.h b/qtinterface/tqregexp.h
index 6ee0b19..d98acb7 100644
--- a/qtinterface/tqregexp.h
+++ b/qtinterface/tqregexp.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QRegExp class
+// For Qt4, no changes are needed
+
+#include <qregexp.h>
+
+#endif // USE_QT4
+
#endif /* TQREGEXP_H */ \ No newline at end of file
diff --git a/qtinterface/tqregion.h b/qtinterface/tqregion.h
index a33ab41..b39449a 100644
--- a/qtinterface/tqregion.h
+++ b/qtinterface/tqregion.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QRegion class
+// For Qt4, no changes are needed
+
+#include <qregion.h>
+
+#endif // USE_QT4
+
#endif /* TQREGION_H */ \ No newline at end of file
diff --git a/qtinterface/tqrtlcodec.h b/qtinterface/tqrtlcodec.h
index 532ad9f..79fa115 100644
--- a/qtinterface/tqrtlcodec.h
+++ b/qtinterface/tqrtlcodec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QHebrewCodec class
+// For Qt4, no changes are needed
+
+#include <qrtlcodec.h>
+
+#endif // USE_QT4
+
#endif /* TQRTLCODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqscrbar.h b/qtinterface/tqscrbar.h
index 22c5c5d..ad028a4 100644
--- a/qtinterface/tqscrbar.h
+++ b/qtinterface/tqscrbar.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqscrollbar defines
#include <tqscrollbar.h>
-#endif // USE_QT3
-
#endif /* TQSCRBAR_H */ \ No newline at end of file
diff --git a/qtinterface/tqscrollbar.h b/qtinterface/tqscrollbar.h
index bdcc191..ec8c937 100644
--- a/qtinterface/tqscrollbar.h
+++ b/qtinterface/tqscrollbar.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QScrollBar class
+// For Qt4, no changes are needed
+
+#include <qscrollbar.h>
+
+#endif // USE_QT4
+
#endif /* TQSCROLLBAR_H */ \ No newline at end of file
diff --git a/qtinterface/tqscrollview.h b/qtinterface/tqscrollview.h
index 8e0f5b1..b2a3bf2 100644
--- a/qtinterface/tqscrollview.h
+++ b/qtinterface/tqscrollview.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QScrollView class
+// For Qt4, no changes are needed
+
+#include <qscrollview.h>
+
+#endif // USE_QT4
+
#endif /* TQSCROLLVIEW_H */ \ No newline at end of file
diff --git a/qtinterface/tqsemaphore.h b/qtinterface/tqsemaphore.h
index dfbec87..d297d92 100644
--- a/qtinterface/tqsemaphore.h
+++ b/qtinterface/tqsemaphore.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSemaphore class
+// For Qt4, no changes are needed
+
+#include <qsemaphore.h>
+
+#endif // USE_QT4
+
#endif /* TQSEMAPHORE_H */ \ No newline at end of file
diff --git a/qtinterface/tqsemimodal.h b/qtinterface/tqsemimodal.h
index 90aa5d0..d08a7d4 100644
--- a/qtinterface/tqsemimodal.h
+++ b/qtinterface/tqsemimodal.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSemiModal class
+// For Qt4, no changes are needed
+
+#include <qsemimodal.h>
+
+#endif // USE_QT4
+
#endif /* TQSEMIMODAL_H */ \ No newline at end of file
diff --git a/qtinterface/tqserversocket.h b/qtinterface/tqserversocket.h
index b4ab81f..8bc63df 100644
--- a/qtinterface/tqserversocket.h
+++ b/qtinterface/tqserversocket.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QServerSocket class
+// For Qt4, no changes are needed
+
+#include <qserversocket.h>
+
+#endif // USE_QT4
+
#endif /* TQSERVERSOCKET_H */ \ No newline at end of file
diff --git a/qtinterface/tqsession.h b/qtinterface/tqsession.h
index d179287..1485f20 100644
--- a/qtinterface/tqsession.h
+++ b/qtinterface/tqsession.h
@@ -26,10 +26,18 @@ Boston, MA 02110-1301, USA.
#ifdef USE_QT3
-// Pull in qsession defines
+// Pull in Qt3 qsession defines
#include <qsession.h>
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in Qt4 qsession defines
+
+#include <qsession.h>
+
+#endif // USE_QT4
+
#endif /* TQSESSION_H */ \ No newline at end of file
diff --git a/qtinterface/tqsessionmanager.h b/qtinterface/tqsessionmanager.h
index 61b07fc..3faea08 100644
--- a/qtinterface/tqsessionmanager.h
+++ b/qtinterface/tqsessionmanager.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSessionManager class
+// For Qt4, no changes are needed
+
+#include <qsessionmanager.h>
+
+#endif // USE_QT4
+
#endif /* TQSESSIONMANAGER_H */ \ No newline at end of file
diff --git a/qtinterface/tqsettings.h b/qtinterface/tqsettings.h
index 63b6b40..65f9686 100644
--- a/qtinterface/tqsettings.h
+++ b/qtinterface/tqsettings.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSettings class
+// For Qt4, no changes are needed
+
+#include <qsettings.h>
+
+#endif // USE_QT4
+
#endif /* TQSETTINGS_H */ \ No newline at end of file
diff --git a/qtinterface/tqsgistyle.h b/qtinterface/tqsgistyle.h
index 001048c..e768301 100644
--- a/qtinterface/tqsgistyle.h
+++ b/qtinterface/tqsgistyle.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSGIStyle class
+// For Qt4, no changes are needed
+
+#include <qsgistyle.h>
+
+#endif // USE_QT4
+
#endif /* TQSGISTYLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqshared.h b/qtinterface/tqshared.h
index a5239a8..19a59db 100644
--- a/qtinterface/tqshared.h
+++ b/qtinterface/tqshared.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QShared class
+// For Qt4, no changes are needed
+
+#include <qsettings.h>
+
+#endif // USE_QT4
+
#endif /* TQSHARED_H */ \ No newline at end of file
diff --git a/qtinterface/tqsignal.h b/qtinterface/tqsignal.h
index e41d76e..2d0ae34 100644
--- a/qtinterface/tqsignal.h
+++ b/qtinterface/tqsignal.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSignal class
+// For Qt4, no changes are needed
+
+#include <qsignal.h>
+
+#endif // USE_QT4
+
#endif /* TQSIGNAL_H */ \ No newline at end of file
diff --git a/qtinterface/tqsignalmapper.h b/qtinterface/tqsignalmapper.h
index fae2756..2244a24 100644
--- a/qtinterface/tqsignalmapper.h
+++ b/qtinterface/tqsignalmapper.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSignalMapper class
+// For Qt4, no changes are needed
+
+#include <qsignalmapper.h>
+
+#endif // USE_QT4
+
#endif /* TQSIGNALMAPPER_H */ \ No newline at end of file
diff --git a/qtinterface/tqsignalslotimp.h b/qtinterface/tqsignalslotimp.h
index 547fced..9d10888 100644
--- a/qtinterface/tqsignalslotimp.h
+++ b/qtinterface/tqsignalslotimp.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSignalSlotImp class
+// For Qt4, no changes are needed
+
+#include <qsignalslotimp.h>
+
+#endif // USE_QT4
+
#endif /* TQSIGNALSLOTIMP_H */ \ No newline at end of file
diff --git a/qtinterface/tqsimplerichtext.h b/qtinterface/tqsimplerichtext.h
index a2b6286..aa23d65 100644
--- a/qtinterface/tqsimplerichtext.h
+++ b/qtinterface/tqsimplerichtext.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSimpleRichText class
+// For Qt4, no changes are needed
+
+#include <qsimplerichtext.h>
+
+#endif // USE_QT4
+
#endif /* TQSIMPLERICHTEXT_H */ \ No newline at end of file
diff --git a/qtinterface/tqsize.h b/qtinterface/tqsize.h
index c2f1eb6..4ed2fe1 100644
--- a/qtinterface/tqsize.h
+++ b/qtinterface/tqsize.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSize class
+// For Qt4, no changes are needed
+
+#include <qsize.h>
+
+#endif // USE_QT4
+
#endif /* TQSIZE_H */ \ No newline at end of file
diff --git a/qtinterface/tqsizegrip.h b/qtinterface/tqsizegrip.h
index 6519b1b..ddc9474 100644
--- a/qtinterface/tqsizegrip.h
+++ b/qtinterface/tqsizegrip.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSizeGrip class
+// For Qt4, no changes are needed
+
+#include <qsizegrip.h>
+
+#endif // USE_QT4
+
#endif /* TQSIZEGRIP_H */ \ No newline at end of file
diff --git a/qtinterface/tqsizepolicy.h b/qtinterface/tqsizepolicy.h
index 7b5a489..0bcf095 100644
--- a/qtinterface/tqsizepolicy.h
+++ b/qtinterface/tqsizepolicy.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSizePolicy class
+// For Qt4, no changes are needed
+
+#include <qsizepolicy.h>
+
+#endif // USE_QT4
+
#endif /* TQSIZEPOLICY_H */ \ No newline at end of file
diff --git a/qtinterface/tqsjiscodec.h b/qtinterface/tqsjiscodec.h
index e576303..8166875 100644
--- a/qtinterface/tqsjiscodec.h
+++ b/qtinterface/tqsjiscodec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSjisCodec class
+// For Qt4, no changes are needed
+
+#include <qsjiscodec.h>
+
+#endif // USE_QT4
+
#endif /* TQSJISCODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqslider.h b/qtinterface/tqslider.h
index 82641c3..b26adf0 100644
--- a/qtinterface/tqslider.h
+++ b/qtinterface/tqslider.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSlider class
+// For Qt4, no changes are needed
+
+#include <qslider.h>
+
+#endif // USE_QT4
+
#endif /* TQSLIDER_H */ \ No newline at end of file
diff --git a/qtinterface/tqsocket.h b/qtinterface/tqsocket.h
index f427613..44eeac0 100644
--- a/qtinterface/tqsocket.h
+++ b/qtinterface/tqsocket.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSocket class
+// For Qt4, no changes are needed
+
+#include <qsocket.h>
+
+#endif // USE_QT4
+
#endif /* TQSOCKET_H */ \ No newline at end of file
diff --git a/qtinterface/tqsocketdevice.h b/qtinterface/tqsocketdevice.h
index 41d5892..90df1c0 100644
--- a/qtinterface/tqsocketdevice.h
+++ b/qtinterface/tqsocketdevice.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSocketDevice class
+// For Qt4, no changes are needed
+
+#include <qsocketdevice.h>
+
+#endif // USE_QT4
+
#endif /* TQSOCKETDEVICE_H */ \ No newline at end of file
diff --git a/qtinterface/tqsocketnotifier.h b/qtinterface/tqsocketnotifier.h
index fac2817..d2a4f1a 100644
--- a/qtinterface/tqsocketnotifier.h
+++ b/qtinterface/tqsocketnotifier.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSocketNotifier class
+// For Qt4, no changes are needed
+
+#include <qsocketnotifier.h>
+
+#endif // USE_QT4
+
#endif /* TQSOCKETNOTIFIER_H */ \ No newline at end of file
diff --git a/qtinterface/tqsocknot.h b/qtinterface/tqsocknot.h
index 147a784..ed6861b 100644
--- a/qtinterface/tqsocknot.h
+++ b/qtinterface/tqsocknot.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqsocketnotifier defines
#include <tqsocketnotifier.h>
-#endif // USE_QT3
-
#endif /* TQSOCKNOT_H */ \ No newline at end of file
diff --git a/qtinterface/tqsortedlist.h b/qtinterface/tqsortedlist.h
index ad918c5..bb4574b 100644
--- a/qtinterface/tqsortedlist.h
+++ b/qtinterface/tqsortedlist.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QAccel class
+// For Qt4, no changes are needed
+
+#include <qsortedlist.h>
+
+#endif // USE_QT4
+
#endif /* TQSORTEDLIST_H */ \ No newline at end of file
diff --git a/qtinterface/tqsound.h b/qtinterface/tqsound.h
index b0834c5..25665d3 100644
--- a/qtinterface/tqsound.h
+++ b/qtinterface/tqsound.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSound class
+// For Qt4, no changes are needed
+
+#include <qsound.h>
+
+#endif // USE_QT4
+
#endif /* TQSOUND_H */ \ No newline at end of file
diff --git a/qtinterface/tqspinbox.h b/qtinterface/tqspinbox.h
index 100930e..0844f8f 100644
--- a/qtinterface/tqspinbox.h
+++ b/qtinterface/tqspinbox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSpinBox class
+// For Qt4, no changes are needed
+
+#include <qspinbox.h>
+
+#endif // USE_QT4
+
#endif /* TQSPINBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqsplashscreen.h b/qtinterface/tqsplashscreen.h
index 7f39273..6d40496 100644
--- a/qtinterface/tqsplashscreen.h
+++ b/qtinterface/tqsplashscreen.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSplashScreen class
+// For Qt4, no changes are needed
+
+#include <qsplashscreen.h>
+
+#endif // USE_QT4
+
#endif /* TQSPLASHSCREEN_H */ \ No newline at end of file
diff --git a/qtinterface/tqsplitter.h b/qtinterface/tqsplitter.h
index c1c6844..6ee1857 100644
--- a/qtinterface/tqsplitter.h
+++ b/qtinterface/tqsplitter.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSplitter class
+// For Qt4, no changes are needed
+
+#include <qsplitter.h>
+
+#endif // USE_QT4
+
#endif /* TQSPLITTER_H */ \ No newline at end of file
diff --git a/qtinterface/tqsql.h b/qtinterface/tqsql.h
index 0dff59e..6ff80e6 100644
--- a/qtinterface/tqsql.h
+++ b/qtinterface/tqsql.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSql class
+// For Qt4, no changes are needed
+
+#include <qsql.h>
+
+#endif // USE_QT4
+
#endif /* TQSQL_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlcursor.h b/qtinterface/tqsqlcursor.h
index fadd412..0aeee1e 100644
--- a/qtinterface/tqsqlcursor.h
+++ b/qtinterface/tqsqlcursor.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlCursor class
+// For Qt4, no changes are needed
+
+#include <qsqlcursor.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLCURSOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqldatabase.h b/qtinterface/tqsqldatabase.h
index d8f1cda..64fa723 100644
--- a/qtinterface/tqsqldatabase.h
+++ b/qtinterface/tqsqldatabase.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlDatabase class
+// For Qt4, no changes are needed
+
+#include <qsqldatabase.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLDATABASE_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqldriver.h b/qtinterface/tqsqldriver.h
index 836b7f7..12431ad 100644
--- a/qtinterface/tqsqldriver.h
+++ b/qtinterface/tqsqldriver.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlDriver class
+// For Qt4, no changes are needed
+
+#include <qsqldriver.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLDRIVER_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqldriverplugin.h b/qtinterface/tqsqldriverplugin.h
index c198387..654ff82 100644
--- a/qtinterface/tqsqldriverplugin.h
+++ b/qtinterface/tqsqldriverplugin.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlDriverPlugin class
+// For Qt4, no changes are needed
+
+#include <qsqldriverplugin.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLDRIVERPLUGIN_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqleditorfactory.h b/qtinterface/tqsqleditorfactory.h
index 350d2e4..806cd3a 100644
--- a/qtinterface/tqsqleditorfactory.h
+++ b/qtinterface/tqsqleditorfactory.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlEditorFactory class
+// For Qt4, no changes are needed
+
+#include <qsqleditorfactory.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLEDITORFACTORY_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlerror.h b/qtinterface/tqsqlerror.h
index e6479cd..ec118a3 100644
--- a/qtinterface/tqsqlerror.h
+++ b/qtinterface/tqsqlerror.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlError class
+// For Qt4, no changes are needed
+
+#include <qsqlerror.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLERROR_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlfield.h b/qtinterface/tqsqlfield.h
index 7829e1a..5a0cb55 100644
--- a/qtinterface/tqsqlfield.h
+++ b/qtinterface/tqsqlfield.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlField class
+// For Qt4, no changes are needed
+
+#include <qsqlfield.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLFIELD_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlform.h b/qtinterface/tqsqlform.h
index 4781936..1ead663 100644
--- a/qtinterface/tqsqlform.h
+++ b/qtinterface/tqsqlform.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlForm class
+// For Qt4, no changes are needed
+
+#include <qsqlform.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLFORM_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlindex.h b/qtinterface/tqsqlindex.h
index c0e5be8..013f71d 100644
--- a/qtinterface/tqsqlindex.h
+++ b/qtinterface/tqsqlindex.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlIndex class
+// For Qt4, no changes are needed
+
+#include <qsqlindex.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLINDEX_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlpropertymap.h b/qtinterface/tqsqlpropertymap.h
index b481df4..c269ee2 100644
--- a/qtinterface/tqsqlpropertymap.h
+++ b/qtinterface/tqsqlpropertymap.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlPropertyMap class
+// For Qt4, no changes are needed
+
+#include <qsqlpropertymap.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLPROPERTYMAP_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlquery.h b/qtinterface/tqsqlquery.h
index 9b67472..f7bcf99 100644
--- a/qtinterface/tqsqlquery.h
+++ b/qtinterface/tqsqlquery.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlQuery class
+// For Qt4, no changes are needed
+
+#include <qsqlquery.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLQUERY_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlrecord.h b/qtinterface/tqsqlrecord.h
index 0ec085b..370c13b 100644
--- a/qtinterface/tqsqlrecord.h
+++ b/qtinterface/tqsqlrecord.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlRecord class
+// For Qt4, no changes are needed
+
+#include <qsqlrecord.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLRECORD_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlresult.h b/qtinterface/tqsqlresult.h
index 81156ea..b7de2f9 100644
--- a/qtinterface/tqsqlresult.h
+++ b/qtinterface/tqsqlresult.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlResult class
+// For Qt4, no changes are needed
+
+#include <qsqlresult.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLRESULT_H */ \ No newline at end of file
diff --git a/qtinterface/tqsqlselectcursor.h b/qtinterface/tqsqlselectcursor.h
index f1f39dc..05ed66f 100644
--- a/qtinterface/tqsqlselectcursor.h
+++ b/qtinterface/tqsqlselectcursor.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSqlSelectCursor class
+// For Qt4, no changes are needed
+
+#include <qsqlselectcursor.h>
+
+#endif // USE_QT4
+
#endif /* TQSQLSELECTCURSOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqstack.h b/qtinterface/tqstack.h
index d49ebf3..03f9491 100644
--- a/qtinterface/tqstack.h
+++ b/qtinterface/tqstack.h
@@ -32,4 +32,12 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in Qt4 qptrstack defines
+
+#include <qptrstack.h>
+
+#endif // USE_QT4
+
#endif /* TQSTACK_H */ \ No newline at end of file
diff --git a/qtinterface/tqstatusbar.h b/qtinterface/tqstatusbar.h
index 319c30d..0ae83e9 100644
--- a/qtinterface/tqstatusbar.h
+++ b/qtinterface/tqstatusbar.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QStatusBar class
+// For Qt4, no changes are needed
+
+#include <qstatusbar.h>
+
+#endif // USE_QT4
+
#endif /* TQSTATUSBAR_H */ \ No newline at end of file
diff --git a/qtinterface/tqstring.h b/qtinterface/tqstring.h
index b52f996..6a02469 100644
--- a/qtinterface/tqstring.h
+++ b/qtinterface/tqstring.h
@@ -35,4 +35,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QString class
+// For Qt4, no changes are needed
+
+#include <qstring.h>
+
+#endif // USE_QT4
+
#endif /* TQSTRING_H */ \ No newline at end of file
diff --git a/qtinterface/tqstringlist.h b/qtinterface/tqstringlist.h
index 135bacb..aaf6986 100644
--- a/qtinterface/tqstringlist.h
+++ b/qtinterface/tqstringlist.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QStringList class
+// For Qt4, no changes are needed
+
+#include <qstringlist.h>
+
+#endif // USE_QT4
+
#endif /* TQSTRINGLIST_H */ \ No newline at end of file
diff --git a/qtinterface/tqstrlist.h b/qtinterface/tqstrlist.h
index f42ca1e..38c9927 100644
--- a/qtinterface/tqstrlist.h
+++ b/qtinterface/tqstrlist.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QStrList class
+// For Qt4, no changes are needed
+
+#include <qstrlist.h>
+
+#endif // USE_QT4
+
#endif /* TQSTRLIST_H */ \ No newline at end of file
diff --git a/qtinterface/tqstrvec.h b/qtinterface/tqstrvec.h
index 3e5de75..4755a66 100644
--- a/qtinterface/tqstrvec.h
+++ b/qtinterface/tqstrvec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QStrVec class
+// For Qt4, no changes are needed
+
+#include <qstrvec.h>
+
+#endif // USE_QT4
+
#endif /* TQSTRVEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqstyle.h b/qtinterface/tqstyle.h
index fa6051b..59b8177 100644
--- a/qtinterface/tqstyle.h
+++ b/qtinterface/tqstyle.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QStyle class
+// For Qt4, no changes are needed
+
+#include <qstyle.h>
+
+#endif // USE_QT4
+
#endif /* TQSTYLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqstylefactory.h b/qtinterface/tqstylefactory.h
index ec1f8ba..00b38e8 100644
--- a/qtinterface/tqstylefactory.h
+++ b/qtinterface/tqstylefactory.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QStyleFactory class
+// For Qt4, no changes are needed
+
+#include <qstylefactory.h>
+
+#endif // USE_QT4
+
#endif /* TQSTYLEFACTORY_H */ \ No newline at end of file
diff --git a/qtinterface/tqstyleplugin.h b/qtinterface/tqstyleplugin.h
index 4476132..2d9278a 100644
--- a/qtinterface/tqstyleplugin.h
+++ b/qtinterface/tqstyleplugin.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QStylePlugin class
+// For Qt4, no changes are needed
+
+#include <qstyleplugin.h>
+
+#endif // USE_QT4
+
#endif /* TQSTYLEPLUGIN_H */ \ No newline at end of file
diff --git a/qtinterface/tqstylesheet.h b/qtinterface/tqstylesheet.h
index fc8c935..4ed88e7 100644
--- a/qtinterface/tqstylesheet.h
+++ b/qtinterface/tqstylesheet.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QStyleSheet class
+// For Qt4, no changes are needed
+
+#include <qstylesheet.h>
+
+#endif // USE_QT4
+
#endif /* TQSTYLESHEET_H */ \ No newline at end of file
diff --git a/qtinterface/tqsyntaxhighlighter.h b/qtinterface/tqsyntaxhighlighter.h
index 9dd7cd4..b99efe6 100644
--- a/qtinterface/tqsyntaxhighlighter.h
+++ b/qtinterface/tqsyntaxhighlighter.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QSyntaxHighlighter class
+// For Qt4, no changes are needed
+
+#include <qsyntaxhighlighter.h>
+
+#endif // USE_QT4
+
#endif /* TQSYNTAXHIGHLIGHTER_H */ \ No newline at end of file
diff --git a/qtinterface/tqtabbar.h b/qtinterface/tqtabbar.h
index 7bf2c36..d94b33f 100644
--- a/qtinterface/tqtabbar.h
+++ b/qtinterface/tqtabbar.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTabBar class
+// For Qt4, no changes are needed
+
+#include <qtabbar.h>
+
+#endif // USE_QT4
+
#endif /* TQTABBAR_H */ \ No newline at end of file
diff --git a/qtinterface/tqtabdialog.h b/qtinterface/tqtabdialog.h
index 7527c6b..12bc004 100644
--- a/qtinterface/tqtabdialog.h
+++ b/qtinterface/tqtabdialog.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTabDialog class
+// For Qt4, no changes are needed
+
+#include <qtabdialog.h>
+
+#endif // USE_QT4
+
#endif /* TQTABDIALOG_H */ \ No newline at end of file
diff --git a/qtinterface/tqtabdlg.h b/qtinterface/tqtabdlg.h
index f8ac17d..dd4ef83 100644
--- a/qtinterface/tqtabdlg.h
+++ b/qtinterface/tqtabdlg.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqtabdialog defines
#include <tqtabdialog.h>
-#endif // USE_QT3
-
#endif /* TQTABDLG_H */ \ No newline at end of file
diff --git a/qtinterface/tqtable.h b/qtinterface/tqtable.h
index 263bc86..4c3b080 100644
--- a/qtinterface/tqtable.h
+++ b/qtinterface/tqtable.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTable class
+// For Qt4, no changes are needed
+
+#include <qtable.h>
+
+#endif // USE_QT4
+
#endif /* TQTABLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqtabwidget.h b/qtinterface/tqtabwidget.h
index 1709444..1228acd 100644
--- a/qtinterface/tqtabwidget.h
+++ b/qtinterface/tqtabwidget.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTabWidget class
+// For Qt4, no changes are needed
+
+#include <qtabwidget.h>
+
+#endif // USE_QT4
+
#endif /* TQTABWIDGET_H */ \ No newline at end of file
diff --git a/qtinterface/tqtextbrowser.h b/qtinterface/tqtextbrowser.h
index 0c0bb96..dd939fb 100644
--- a/qtinterface/tqtextbrowser.h
+++ b/qtinterface/tqtextbrowser.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTextBrowser class
+// For Qt4, no changes are needed
+
+#include <qtextbrowser.h>
+
+#endif // USE_QT4
+
#endif /* TQTEXTBROWSER_H */ \ No newline at end of file
diff --git a/qtinterface/tqtextcodec.h b/qtinterface/tqtextcodec.h
index e5be111..f779c64 100644
--- a/qtinterface/tqtextcodec.h
+++ b/qtinterface/tqtextcodec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTextCodec class
+// For Qt4, no changes are needed
+
+#include <qtextcodec.h>
+
+#endif // USE_QT4
+
#endif /* TQTEXTCODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqtextcodecfactory.h b/qtinterface/tqtextcodecfactory.h
index 1829f5d..8d37be5 100644
--- a/qtinterface/tqtextcodecfactory.h
+++ b/qtinterface/tqtextcodecfactory.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTextCodecFactory class
+// For Qt4, no changes are needed
+
+#include <qtextcodecfactory.h>
+
+#endif // USE_QT4
+
#endif /* TQTEXTCODECFACTORY_H */ \ No newline at end of file
diff --git a/qtinterface/tqtextcodecplugin.h b/qtinterface/tqtextcodecplugin.h
index 688523d..0882eb8 100644
--- a/qtinterface/tqtextcodecplugin.h
+++ b/qtinterface/tqtextcodecplugin.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTextCodecPlugin class
+// For Qt4, no changes are needed
+
+#include <qtextcodecplugin.h>
+
+#endif // USE_QT4
+
#endif /* TQTEXTCODECPLUGIN_H */ \ No newline at end of file
diff --git a/qtinterface/tqtextedit.h b/qtinterface/tqtextedit.h
index e6f9f92..e2742c8 100644
--- a/qtinterface/tqtextedit.h
+++ b/qtinterface/tqtextedit.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTextEdit class
+// For Qt4, no changes are needed
+
+#include <qtextedit.h>
+
+#endif // USE_QT4
+
#endif /* TQTEXTEDIT_H */ \ No newline at end of file
diff --git a/qtinterface/tqtextstream.h b/qtinterface/tqtextstream.h
index 765302e..54b2c1f 100644
--- a/qtinterface/tqtextstream.h
+++ b/qtinterface/tqtextstream.h
@@ -35,4 +35,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTextStream class
+// For Qt4, no changes are needed
+
+#include <qtextstream.h>
+
+#endif // USE_QT4
+
#endif /* TQTEXTSTREAM_H */ \ No newline at end of file
diff --git a/qtinterface/tqtextview.h b/qtinterface/tqtextview.h
index fb74756..b9d1361 100644
--- a/qtinterface/tqtextview.h
+++ b/qtinterface/tqtextview.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTextView class
+// For Qt4, no changes are needed
+
+#include <qtextview.h>
+
+#endif // USE_QT4
+
#endif /* TQTEXTVIEW_H */ \ No newline at end of file
diff --git a/qtinterface/tqthread.h b/qtinterface/tqthread.h
index 3c6da08..6cd6da2 100644
--- a/qtinterface/tqthread.h
+++ b/qtinterface/tqthread.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QThread class
+// For Qt4, no changes are needed
+
+#include <qthread.h>
+
+#endif // USE_QT4
+
#endif /* TQTHREAD_H */ \ No newline at end of file
diff --git a/qtinterface/tqthreadstorage.h b/qtinterface/tqthreadstorage.h
index e2e365b..e9b4fe6 100644
--- a/qtinterface/tqthreadstorage.h
+++ b/qtinterface/tqthreadstorage.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QThreadStorage class
+// For Qt4, no changes are needed
+
+#include <qthreadstorage.h>
+
+#endif // USE_QT4
+
#endif /* TQTHREADSTORAGE_H */ \ No newline at end of file
diff --git a/qtinterface/tqtimer.cpp b/qtinterface/tqtimer.cpp
index bd7301c..8d9f6c8 100644
--- a/qtinterface/tqtimer.cpp
+++ b/qtinterface/tqtimer.cpp
@@ -22,11 +22,11 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
#include <tqtimer.h>
-#ifdef USE_QT3
+#ifdef USE_QT4
int QTimer::myNewFunction(int parameter_one)
{
return parameter_one;
}
-#endif \ No newline at end of file
+#endif // USE_QT4 \ No newline at end of file
diff --git a/qtinterface/tqtimer.h b/qtinterface/tqtimer.h
index 4df2502..7b6b72b 100644
--- a/qtinterface/tqtimer.h
+++ b/qtinterface/tqtimer.h
@@ -29,6 +29,15 @@ Boston, MA 02110-1301, USA.
// Reimplement the QTimer class
// For Qt3, no changes are needed
+#include <qtimer.h>
+
+#endif // USE_QT3
+
+#ifdef USE_QT4
+
+// Reimplement the QTimer class
+// For Qt4, some changes are needed
+
// Linker tricks required to override a class without changing its name
#define QTimer IQTimer
#include <qtimer.h>
@@ -83,7 +92,7 @@ inline bool QTimer::isActive() const
return id >= 0;
}
-#endif // USE_QT3
+#endif // USE_QT4
// #ifdef USE_QT4
//
diff --git a/qtinterface/tqtl.h b/qtinterface/tqtl.h
index 79244f4..1c4edca 100644
--- a/qtinterface/tqtl.h
+++ b/qtinterface/tqtl.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the Qtl class
+// For Qt4, no changes are needed
+
+#include <qtl.h>
+
+#endif // USE_QT4
+
#endif /* TQTL_H */ \ No newline at end of file
diff --git a/qtinterface/tqtoolbar.h b/qtinterface/tqtoolbar.h
index 77e1b72..4afce7a 100644
--- a/qtinterface/tqtoolbar.h
+++ b/qtinterface/tqtoolbar.h
@@ -33,4 +33,14 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+
+#ifdef USE_QT4
+
+// Reimplement the QToolBar class
+// For Qt4, no changes are needed
+
+#include <qtoolbar.h>
+
+#endif // USE_QT4
+
#endif /* TQTOOLBAR_H */ \ No newline at end of file
diff --git a/qtinterface/tqtoolbox.h b/qtinterface/tqtoolbox.h
index 1de2536..f4a67e1 100644
--- a/qtinterface/tqtoolbox.h
+++ b/qtinterface/tqtoolbox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QToolBox class
+// For Qt4, no changes are needed
+
+#include <qtoolbox.h>
+
+#endif // USE_QT4
+
#endif /* TQTOOLBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqtoolbutton.h b/qtinterface/tqtoolbutton.h
index 7a2bd01..e9cf5cb 100644
--- a/qtinterface/tqtoolbutton.h
+++ b/qtinterface/tqtoolbutton.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QToolButton class
+// For Qt4, no changes are needed
+
+#include <qtoolbutton.h>
+
+#endif // USE_QT4
+
#endif /* TQTOOLBUTTON_H */ \ No newline at end of file
diff --git a/qtinterface/tqtooltip.h b/qtinterface/tqtooltip.h
index 3111f6b..5c74fef 100644
--- a/qtinterface/tqtooltip.h
+++ b/qtinterface/tqtooltip.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QToolTip class
+// For Qt4, no changes are needed
+
+#include <qtooltip.h>
+
+#endif // USE_QT4
+
#endif /* TQTOOLTIP_H */ \ No newline at end of file
diff --git a/qtinterface/tqtranslator.h b/qtinterface/tqtranslator.h
index f2cc5e8..30e92cf 100644
--- a/qtinterface/tqtranslator.h
+++ b/qtinterface/tqtranslator.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTranslator class
+// For Qt4, no changes are needed
+
+#include <qtranslator.h>
+
+#endif // USE_QT4
+
#endif /* TQTRANSLATOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqtsciicodec.h b/qtinterface/tqtsciicodec.h
index 0f504f7..c35b6aa 100644
--- a/qtinterface/tqtsciicodec.h
+++ b/qtinterface/tqtsciicodec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QTsciiCodec class
+// For Qt4, no changes are needed
+
+#include <qtsciicodec.h>
+
+#endif // USE_QT4
+
#endif /* TQTSCIICODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tqtstream.h b/qtinterface/tqtstream.h
index e3a5303..7815be3 100644
--- a/qtinterface/tqtstream.h
+++ b/qtinterface/tqtstream.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqtextstream defines
#include <tqtextstream.h>
-#endif // USE_QT3
-
#endif /* TQTSTREAM_H */ \ No newline at end of file
diff --git a/qtinterface/tqurl.h b/qtinterface/tqurl.h
index 2466502..4ea1f24 100644
--- a/qtinterface/tqurl.h
+++ b/qtinterface/tqurl.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QUrl class
+// For Qt4, no changes are needed
+
+#include <qurl.h>
+
+#endif // USE_QT4
+
#endif /* TQURL_H */ \ No newline at end of file
diff --git a/qtinterface/tqurlinfo.h b/qtinterface/tqurlinfo.h
index cde7120..29da9c2 100644
--- a/qtinterface/tqurlinfo.h
+++ b/qtinterface/tqurlinfo.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QUrlInfo class
+// For Qt4, no changes are needed
+
+#include <qurlinfo.h>
+
+#endif // USE_QT4
+
#endif /* TQURL_H */ \ No newline at end of file
diff --git a/qtinterface/tqurloperator.h b/qtinterface/tqurloperator.h
index 17667bf..781cec0 100644
--- a/qtinterface/tqurloperator.h
+++ b/qtinterface/tqurloperator.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QUrlOperator class
+// For Qt4, no changes are needed
+
+#include <qurloperator.h>
+
+#endif // USE_QT4
+
#endif /* TQURLOPERATOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqutfcodec.h b/qtinterface/tqutfcodec.h
index f64f29d..0ec3e3d 100644
--- a/qtinterface/tqutfcodec.h
+++ b/qtinterface/tqutfcodec.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QUtfCodec class
+// For Qt4, no changes are needed
+
+#include <qutfcodec.h>
+
+#endif // USE_QT4
+
#endif /* TQUTFCODEC_H */ \ No newline at end of file
diff --git a/qtinterface/tquuid.h b/qtinterface/tquuid.h
index f42d49d..120297d 100644
--- a/qtinterface/tquuid.h
+++ b/qtinterface/tquuid.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QUuid class
+// For Qt4, no changes are needed
+
+#include <quuid.h>
+
+#endif // USE_QT4
+
#endif /* TQUUID_H */ \ No newline at end of file
diff --git a/qtinterface/tqvalidator.h b/qtinterface/tqvalidator.h
index 94d43a2..7a643c4 100644
--- a/qtinterface/tqvalidator.h
+++ b/qtinterface/tqvalidator.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QValidator class
+// For Qt4, no changes are needed
+
+#include <qvalidator.h>
+
+#endif // USE_QT4
+
#endif /* TQVALIDATOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqvaluelist.h b/qtinterface/tqvaluelist.h
index 59d4c8b..af27329 100644
--- a/qtinterface/tqvaluelist.h
+++ b/qtinterface/tqvaluelist.h
@@ -34,4 +34,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QValueList class
+// For Qt4, no changes are needed
+
+#include <qvaluelist.h>
+
+#endif // USE_QT4
+
#endif /* TQVALUELIST_H */ \ No newline at end of file
diff --git a/qtinterface/tqvaluestack.h b/qtinterface/tqvaluestack.h
index fd1e7f6..151dfc4 100644
--- a/qtinterface/tqvaluestack.h
+++ b/qtinterface/tqvaluestack.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QValueStack class
+// For Qt4, no changes are needed
+
+#include <qvaluestack.h>
+
+#endif // USE_QT4
+
#endif /* TQVALUESTACK_H */ \ No newline at end of file
diff --git a/qtinterface/tqvaluevector.h b/qtinterface/tqvaluevector.h
index daefbe1..bb7f223 100644
--- a/qtinterface/tqvaluevector.h
+++ b/qtinterface/tqvaluevector.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QValueVector class
+// For Qt4, no changes are needed
+
+#include <qvaluevector.h>
+
+#endif // USE_QT4
+
#endif /* TQVALUEVECTOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqvariant.h b/qtinterface/tqvariant.h
index f6e43e8..81011f0 100644
--- a/qtinterface/tqvariant.h
+++ b/qtinterface/tqvariant.h
@@ -34,4 +34,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QVariant class
+// For Qt4, no changes are needed
+
+#include <qvariant.h>
+
+#endif // USE_QT4
+
#endif /* TQVARIANT_H */ \ No newline at end of file
diff --git a/qtinterface/tqvbox.h b/qtinterface/tqvbox.h
index 79d773c..0df40c4 100644
--- a/qtinterface/tqvbox.h
+++ b/qtinterface/tqvbox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QVBox class
+// For Qt4, no changes are needed
+
+#include <qvbox.h>
+
+#endif // USE_QT4
+
#endif /* TQVBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqvbuttongroup.h b/qtinterface/tqvbuttongroup.h
index df42942..a8c6e0d 100644
--- a/qtinterface/tqvbuttongroup.h
+++ b/qtinterface/tqvbuttongroup.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QVButtonGroup class
+// For Qt4, no changes are needed
+
+#include <qvbuttongroup.h>
+
+#endif // USE_QT4
+
#endif /* TQVBUTTONGROUP_H */ \ No newline at end of file
diff --git a/qtinterface/tqvector.h b/qtinterface/tqvector.h
index 72a558c..14a005a 100644
--- a/qtinterface/tqvector.h
+++ b/qtinterface/tqvector.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqptrvector defines
#include <tqptrvector.h>
-#endif // USE_QT3
-
#endif /* TQVECTOR_H */ \ No newline at end of file
diff --git a/qtinterface/tqvfbhdr.h b/qtinterface/tqvfbhdr.h
index b282277..85041cb 100644
--- a/qtinterface/tqvfbhdr.h
+++ b/qtinterface/tqvfbhdr.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QVFBHDR class
+// For Qt4, no changes are needed
+
+#include <qvfbhdr.h>
+
+#endif // USE_QT4
+
#endif /* TQVFBHDR_H */ \ No newline at end of file
diff --git a/qtinterface/tqvgroupbox.h b/qtinterface/tqvgroupbox.h
index 6b7d155..f2349bf 100644
--- a/qtinterface/tqvgroupbox.h
+++ b/qtinterface/tqvgroupbox.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QVGroupBox class
+// For Qt4, no changes are needed
+
+#include <qvgroupbox.h>
+
+#endif // USE_QT4
+
#endif /* TQVGROUPBOX_H */ \ No newline at end of file
diff --git a/qtinterface/tqwaitcondition.h b/qtinterface/tqwaitcondition.h
index 58919a2..4e5f965 100644
--- a/qtinterface/tqwaitcondition.h
+++ b/qtinterface/tqwaitcondition.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWaitCondition class
+// For Qt4, no changes are needed
+
+#include <qwaitcondition.h>
+
+#endif // USE_QT4
+
#endif /* TQWAITCONDITION_H */ \ No newline at end of file
diff --git a/qtinterface/tqwhatsthis.h b/qtinterface/tqwhatsthis.h
index efe3427..d97989e 100644
--- a/qtinterface/tqwhatsthis.h
+++ b/qtinterface/tqwhatsthis.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWhatsThis class
+// For Qt4, no changes are needed
+
+#include <qwhatsthis.h>
+
+#endif // USE_QT4
+
#endif /* TQWHATSTHIS_H */ \ No newline at end of file
diff --git a/qtinterface/tqwidcoll.h b/qtinterface/tqwidcoll.h
index abd2883..c323cb0 100644
--- a/qtinterface/tqwidcoll.h
+++ b/qtinterface/tqwidcoll.h
@@ -24,13 +24,9 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in the widget defines
#include <tqwidgetlist.h>
#include <tqwidgetintdict.h>
-#endif // USE_QT3
-
#endif /* TQWIDCOLL_H */ \ No newline at end of file
diff --git a/qtinterface/tqwidget.h b/qtinterface/tqwidget.h
index f1b167c..96423e6 100644
--- a/qtinterface/tqwidget.h
+++ b/qtinterface/tqwidget.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWidget class
+// For Qt4, no changes are needed
+
+#include <qwidget.h>
+
+#endif // USE_QT4
+
#endif /* TQWIDGET_H */ \ No newline at end of file
diff --git a/qtinterface/tqwidgetfactory.h b/qtinterface/tqwidgetfactory.h
index 99216a5..55147d4 100644
--- a/qtinterface/tqwidgetfactory.h
+++ b/qtinterface/tqwidgetfactory.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWidgetFactory class
+// For Qt4, no changes are needed
+
+#include <qwidgetfactory.h>
+
+#endif // USE_QT4
+
#endif /* TQWIDGETFACTORY_H */ \ No newline at end of file
diff --git a/qtinterface/tqwidgetintdict.h b/qtinterface/tqwidgetintdict.h
index 29497f5..9fed11d 100644
--- a/qtinterface/tqwidgetintdict.h
+++ b/qtinterface/tqwidgetintdict.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWidgetIntDict class
+// For Qt4, no changes are needed
+
+#include <qwidgetintdict.h>
+
+#endif // USE_QT4
+
#endif /* TQWIDGETINTDICT_H */ \ No newline at end of file
diff --git a/qtinterface/tqwidgetlist.h b/qtinterface/tqwidgetlist.h
index b121ebd..f63208f 100644
--- a/qtinterface/tqwidgetlist.h
+++ b/qtinterface/tqwidgetlist.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWidgetList class
+// For Qt4, no changes are needed
+
+#include <qwidgetlist.h>
+
+#endif // USE_QT4
+
#endif /* TQWIDGETLIST_H */ \ No newline at end of file
diff --git a/qtinterface/tqwidgetplugin.h b/qtinterface/tqwidgetplugin.h
index 005a486..4ecde4a 100644
--- a/qtinterface/tqwidgetplugin.h
+++ b/qtinterface/tqwidgetplugin.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWidgetPlugin class
+// For Qt4, no changes are needed
+
+#include <qwidgetplugin.h>
+
+#endif // USE_QT4
+
#endif /* TQWIDGETPLUGIN_H */ \ No newline at end of file
diff --git a/qtinterface/tqwidgetstack.h b/qtinterface/tqwidgetstack.h
index 95df50c..e9ec0fe 100644
--- a/qtinterface/tqwidgetstack.h
+++ b/qtinterface/tqwidgetstack.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWidgetStack class
+// For Qt4, no changes are needed
+
+#include <qwidgetstack.h>
+
+#endif // USE_QT4
+
#endif /* TQWIDGETSTACK_H */ \ No newline at end of file
diff --git a/qtinterface/tqwindefs.h b/qtinterface/tqwindefs.h
index 8f660d4..fd292bd 100644
--- a/qtinterface/tqwindefs.h
+++ b/qtinterface/tqwindefs.h
@@ -24,12 +24,8 @@ Boston, MA 02110-1301, USA.
#include <tqt.h>
-#ifdef USE_QT3
-
// Pull in tqwindowdefs defines
#include <tqwindowdefs.h>
-#endif // USE_QT3
-
#endif /* TQWINDEFS_H */ \ No newline at end of file
diff --git a/qtinterface/tqwindowdefs.h b/qtinterface/tqwindowdefs.h
index 3920a02..9d5a34c 100644
--- a/qtinterface/tqwindowdefs.h
+++ b/qtinterface/tqwindowdefs.h
@@ -32,4 +32,12 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in Qt4 qwindowdefs defines
+
+#include <qwindowdefs.h>
+
+#endif // USE_QT4
+
#endif /* TQWINDOWDEFS_H */ \ No newline at end of file
diff --git a/qtinterface/tqwindowsstyle.h b/qtinterface/tqwindowsstyle.h
index 183cff3..9d7678d 100644
--- a/qtinterface/tqwindowsstyle.h
+++ b/qtinterface/tqwindowsstyle.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWindowsStyle class
+// For Qt4, no changes are needed
+
+#include <qwindowsstyle.h>
+
+#endif // USE_QT4
+
#endif /* TQWINDOWSSTYLE_H */ \ No newline at end of file
diff --git a/qtinterface/tqwinexport.h b/qtinterface/tqwinexport.h
index 30957b9..8542b94 100644
--- a/qtinterface/tqwinexport.h
+++ b/qtinterface/tqwinexport.h
@@ -32,4 +32,12 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Pull in Qt4 qwinexport defines
+
+#include <qwinexport.h>
+
+#endif // USE_QT4
+
#endif /* TQWINEXPORT_H */ \ No newline at end of file
diff --git a/qtinterface/tqwizard.h b/qtinterface/tqwizard.h
index 83c22e9..54f4dd0 100644
--- a/qtinterface/tqwizard.h
+++ b/qtinterface/tqwizard.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWizard class
+// For Qt4, no changes are needed
+
+#include <qwizard.h>
+
+#endif // USE_QT4
+
#endif /* TQWIZARD_H */ \ No newline at end of file
diff --git a/qtinterface/tqwmatrix.h b/qtinterface/tqwmatrix.h
index 5a587cf..2546d39 100644
--- a/qtinterface/tqwmatrix.h
+++ b/qtinterface/tqwmatrix.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWMatrix class
+// For Qt4, no changes are needed
+
+#include <qwmatrix.h>
+
+#endif // USE_QT4
+
#endif /* TQWMATRIX_H */ \ No newline at end of file
diff --git a/qtinterface/tqworkspace.h b/qtinterface/tqworkspace.h
index 1067a1b..8b3bac1 100644
--- a/qtinterface/tqworkspace.h
+++ b/qtinterface/tqworkspace.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QWorkspace class
+// For Qt4, no changes are needed
+
+#include <qworkspace.h>
+
+#endif // USE_QT4
+
#endif /* TQWORKSPACE_H */ \ No newline at end of file
diff --git a/qtinterface/tqxml.h b/qtinterface/tqxml.h
index 5dc3391..d495484 100644
--- a/qtinterface/tqxml.h
+++ b/qtinterface/tqxml.h
@@ -33,4 +33,13 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT3
+#ifdef USE_QT4
+
+// Reimplement the QXml class
+// For Qt4, no changes are needed
+
+#include <qxml.h>
+
+#endif // USE_QT4
+
#endif /* TQXML_H */ \ No newline at end of file