summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src')
-rw-r--r--tqtinterface/qt4/src/.obj/README2
-rw-r--r--tqtinterface/qt4/src/.tmp/README2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/README14
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/filelist.doc4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/install.doc20
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcapimin.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcapistd.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jccoefct.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jccolor.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcdctmgr.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.c10
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.h4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcinit.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcmainct.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcmarker.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcmaster.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcomapi.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcparam.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcphuff.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcprepct.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jcsample.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jctrans.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdapimin.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdapistd.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdatadst.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdatasrc.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdcoefct.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdcolor.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdct.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jddctmgr.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.h8
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdinput.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdmainct.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdmarker.c14
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdmaster.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdmerge.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdphuff.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdpostct.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdsample.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jdtrans.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jerror.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jerror.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jfdctflt.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jfdctfst.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jfdctint.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jidctflt.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jidctfst.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jidctint.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jidctred.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jinclude.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jmemmgr.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jmorecfg.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jpeglib.h8
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jquant1.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jquant2.c38
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jutils.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/jversion.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/libjpeg.doc52
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/structure.doc20
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/usage.doc4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libjpeg/wizard.doc2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/Changes4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/README.autoconf4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/README.contrib2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/README.dll2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/aclocal.m446
-rwxr-xr-xtqtinterface/qt4/src/3rdparty/libmng/config.guess8
-rwxr-xr-xtqtinterface/qt4/src/3rdparty/libmng/config.sub2
-rwxr-xr-xtqtinterface/qt4/src/3rdparty/libmng/configure46
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/doc/doc.readme2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/doc/libmng.txt10
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/doc/man/libmng.310
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/doc/man/mng.52
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/doc/rpm/libmng.spec2
-rwxr-xr-xtqtinterface/qt4/src/3rdparty/libmng/install-sh2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng.h10
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c32
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_data.h6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_display.c38
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_hlapi.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.c8
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_pixels.c30
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_trace.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/libmng_types.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/ltmain.sh48
-rw-r--r--tqtinterface/qt4/src/3rdparty/libmng/makefiles/makefile.mingw2
-rwxr-xr-xtqtinterface/qt4/src/3rdparty/libmng/missing2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/CHANGES6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/README6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/Y2KINFO2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/example.c10
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/libpng.334
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/libpng.txt34
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/libpngpf.32
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/png.52
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/png.h20
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngconf.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngerror.c12
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pnggccrd.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngmem.c10
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngread.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngrio.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngrtran.c16
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngrutil.c10
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngtest.c14
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngwio.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngwrite.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/pngwutil.c16
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/projects/msvc/README.txt2
-rw-r--r--tqtinterface/qt4/src/3rdparty/libpng/scripts/makefile.bd322
-rw-r--r--tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.h4
-rw-r--r--tqtinterface/qt4/src/3rdparty/opentype/ftxgpos.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/opentype/ftxgsub.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/opentype/ftxopen.h4
-rw-r--r--tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/attach.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/auth.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/btree.c46
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/btree.h4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/btree_rb.c14
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/build.c16
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/copy.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/date.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/delete.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/expr.c8
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/func.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/hash.c10
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/hash.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/insert.c8
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/main.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/os.c26
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/os.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/pager.c10
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/pager.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/parse.c14
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/pragma.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/printf.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/random.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/select.c16
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/shell.c10
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/sqlite.h10
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/sqliteInt.h16
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/table.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/tokenize.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/trigger.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/update.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/util.c6
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/vacuum.c8
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/vdbe.c42
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/vdbe.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/vdbeInt.h6
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/vdbeaux.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/sqlite/where.c14
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/ChangeLog8
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/FAQ2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/algorithm.txt10
-rwxr-xr-xtqtinterface/qt4/src/3rdparty/zlib/configure2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/crc32.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/deflate.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/deflate.h2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/inftrees.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/minigzip.c2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/projects/README.projects2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/projects/visualc6/README.txt2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/trees.c4
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/win32/DLL_FAQ.txt12
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.emx4
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.gcc2
-rw-r--r--tqtinterface/qt4/src/3rdparty/zlib/zutil.h2
-rw-r--r--tqtinterface/qt4/src/attic/README2
-rw-r--r--tqtinterface/qt4/src/attic/qtmultilineedit.cpp36
-rw-r--r--tqtinterface/qt4/src/attic/qtmultilineedit.h2
-rw-r--r--tqtinterface/qt4/src/attic/qttableview.cpp50
-rw-r--r--tqtinterface/qt4/src/attic/qttableview.h10
-rw-r--r--tqtinterface/qt4/src/canvas/tqcanvas.cpp26
-rw-r--r--tqtinterface/qt4/src/codecs/tqbig5codec.cpp30
-rw-r--r--tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp28
-rw-r--r--tqtinterface/qt4/src/codecs/tqeuckrcodec.cpp12
-rw-r--r--tqtinterface/qt4/src/codecs/tqgb18030codec.cpp50
-rw-r--r--tqtinterface/qt4/src/codecs/tqisciicodec.cpp2
-rw-r--r--tqtinterface/qt4/src/codecs/tqjiscodec.cpp8
-rw-r--r--tqtinterface/qt4/src/codecs/tqjpunicode.cpp2
-rw-r--r--tqtinterface/qt4/src/codecs/tqrtlcodec.cpp12
-rw-r--r--tqtinterface/qt4/src/codecs/tqsjiscodec.cpp16
-rw-r--r--tqtinterface/qt4/src/codecs/tqtextcodec.cpp34
-rw-r--r--tqtinterface/qt4/src/codecs/tqtsciicodec.cpp4
-rw-r--r--tqtinterface/qt4/src/codecs/tqutfcodec.cpp6
-rw-r--r--tqtinterface/qt4/src/dialogs/tqdialog.cpp2
-rw-r--r--tqtinterface/qt4/src/dialogs/tqerrormessage.cpp4
-rw-r--r--tqtinterface/qt4/src/dialogs/tqfiledialog.cpp76
-rw-r--r--tqtinterface/qt4/src/dialogs/tqfontdialog.cpp10
-rw-r--r--tqtinterface/qt4/src/dialogs/tqmessagebox.cpp8
-rw-r--r--tqtinterface/qt4/src/dialogs/tqprintdialog.cpp30
-rw-r--r--tqtinterface/qt4/src/dialogs/tqtabdialog.cpp4
-rw-r--r--tqtinterface/qt4/src/dialogs/tqwizard.cpp6
-rw-r--r--tqtinterface/qt4/src/embedded/qt_embedded.pri48
-rw-r--r--tqtinterface/qt4/src/iconview/tqiconview.cpp182
-rw-r--r--tqtinterface/qt4/src/iconview/tqiconview.h14
-rw-r--r--tqtinterface/qt4/src/kernel/qpsprinter.ps12
-rw-r--r--tqtinterface/qt4/src/kernel/tqabstractlayout.cpp8
-rw-r--r--tqtinterface/qt4/src/kernel/tqaccel.cpp40
-rw-r--r--tqtinterface/qt4/src/kernel/tqaccel.h2
-rw-r--r--tqtinterface/qt4/src/kernel/tqaccessible.cpp10
-rw-r--r--tqtinterface/qt4/src/kernel/tqapplication.cpp60
-rw-r--r--tqtinterface/qt4/src/kernel/tqapplication.h10
-rw-r--r--tqtinterface/qt4/src/kernel/tqapplication_x11.cpp152
-rw-r--r--tqtinterface/qt4/src/kernel/tqasyncimageio.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqclipboard.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqclipboard_x11.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqcolor.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqcolor_x11.cpp18
-rw-r--r--tqtinterface/qt4/src/kernel/tqcursor.h2
-rw-r--r--tqtinterface/qt4/src/kernel/tqcursor_x11.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqdesktopwidget_x11.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqdnd_x11.cpp34
-rw-r--r--tqtinterface/qt4/src/kernel/tqdragobject.cpp42
-rw-r--r--tqtinterface/qt4/src/kernel/tqdrawutil.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqevent.cpp66
-rw-r--r--tqtinterface/qt4/src/kernel/tqevent.h4
-rw-r--r--tqtinterface/qt4/src/kernel/tqeventloop_unix.cpp8
-rw-r--r--tqtinterface/qt4/src/kernel/tqeventloop_x11.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqfocusdata.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqfont.cpp50
-rw-r--r--tqtinterface/qt4/src/kernel/tqfont_x11.cpp18
-rw-r--r--tqtinterface/qt4/src/kernel/tqfontdata_p.h4
-rw-r--r--tqtinterface/qt4/src/kernel/tqfontdatabase.cpp60
-rw-r--r--tqtinterface/qt4/src/kernel/tqfontdatabase.h4
-rw-r--r--tqtinterface/qt4/src/kernel/tqfontdatabase_x11.cpp36
-rw-r--r--tqtinterface/qt4/src/kernel/tqfontengine_p.h2
-rw-r--r--tqtinterface/qt4/src/kernel/tqfontengine_x11.cpp18
-rw-r--r--tqtinterface/qt4/src/kernel/tqiconset.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqimage.cpp76
-rw-r--r--tqtinterface/qt4/src/kernel/tqjpegio.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqkeysequence.cpp10
-rw-r--r--tqtinterface/qt4/src/kernel/tqlayout.cpp22
-rw-r--r--tqtinterface/qt4/src/kernel/tqlayout.h4
-rw-r--r--tqtinterface/qt4/src/kernel/tqlayoutengine.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqmetaobject.cpp38
-rw-r--r--tqtinterface/qt4/src/kernel/tqmetaobject.h12
-rw-r--r--tqtinterface/qt4/src/kernel/tqmime.cpp14
-rw-r--r--tqtinterface/qt4/src/kernel/tqmovie.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqnetworkprotocol.cpp34
-rw-r--r--tqtinterface/qt4/src/kernel/tqobject.cpp92
-rw-r--r--tqtinterface/qt4/src/kernel/tqobjectcleanuphandler.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqobjectdefs.h4
-rw-r--r--tqtinterface/qt4/src/kernel/tqpaintdevice.h4
-rw-r--r--tqtinterface/qt4/src/kernel/tqpaintdevicemetrics.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqpainter.cpp32
-rw-r--r--tqtinterface/qt4/src/kernel/tqpainter.h2
-rw-r--r--tqtinterface/qt4/src/kernel/tqpainter_x11.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqpalette.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqpicture.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqpixmap.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqpixmap_x11.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqpixmapcache.cpp18
-rw-r--r--tqtinterface/qt4/src/kernel/tqpixmapcache.h4
-rw-r--r--tqtinterface/qt4/src/kernel/tqpointarray.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqpolygonscanner.cpp14
-rw-r--r--tqtinterface/qt4/src/kernel/tqprinter_unix.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqprocess.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqprocess_unix.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqpsprinter.cpp154
-rw-r--r--tqtinterface/qt4/src/kernel/tqrect.cpp18
-rw-r--r--tqtinterface/qt4/src/kernel/tqrect.h20
-rw-r--r--tqtinterface/qt4/src/kernel/tqregion.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqregion.h8
-rw-r--r--tqtinterface/qt4/src/kernel/tqregion_x11.cpp22
-rw-r--r--tqtinterface/qt4/src/kernel/tqrichtext.cpp210
-rw-r--r--tqtinterface/qt4/src/kernel/tqrichtext_p.cpp12
-rw-r--r--tqtinterface/qt4/src/kernel/tqrichtext_p.h3
-rw-r--r--tqtinterface/qt4/src/kernel/tqscriptengine.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqscriptengine_x11.cpp10
-rw-r--r--tqtinterface/qt4/src/kernel/tqsignal.cpp8
-rw-r--r--tqtinterface/qt4/src/kernel/tqsignalmapper.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqsimplerichtext.cpp6
-rw-r--r--tqtinterface/qt4/src/kernel/tqsound_x11.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqstyle.cpp12
-rw-r--r--tqtinterface/qt4/src/kernel/tqstylesheet.cpp8
-rw-r--r--tqtinterface/qt4/src/kernel/tqtextengine.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqtextlayout.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqtextlayout_p.h4
-rw-r--r--tqtinterface/qt4/src/kernel/tqtimer.cpp2
-rw-r--r--tqtinterface/qt4/src/kernel/tqtranslator.cpp76
-rw-r--r--tqtinterface/qt4/src/kernel/tqtranslator.h16
-rw-r--r--tqtinterface/qt4/src/kernel/tqurl.cpp44
-rw-r--r--tqtinterface/qt4/src/kernel/tqurlinfo.cpp4
-rw-r--r--tqtinterface/qt4/src/kernel/tqurloperator.cpp32
-rw-r--r--tqtinterface/qt4/src/kernel/tqvariant.cpp10
-rw-r--r--tqtinterface/qt4/src/kernel/tqvariant.cpp.new10
-rw-r--r--tqtinterface/qt4/src/kernel/tqvariant.h4
-rw-r--r--tqtinterface/qt4/src/kernel/tqwidget.cpp52
-rw-r--r--tqtinterface/qt4/src/kernel/tqwidget.h8
-rw-r--r--tqtinterface/qt4/src/kernel/tqwidget_x11.cpp34
-rw-r--r--tqtinterface/qt4/src/kernel/tqwmatrix.cpp2
-rw-r--r--tqtinterface/qt4/src/network/tqdns.cpp68
-rw-r--r--tqtinterface/qt4/src/network/tqdns.h2
-rw-r--r--tqtinterface/qt4/src/network/tqftp.cpp12
-rw-r--r--tqtinterface/qt4/src/network/tqhostaddress.cpp4
-rw-r--r--tqtinterface/qt4/src/network/tqhttp.cpp28
-rw-r--r--tqtinterface/qt4/src/network/tqsocket.cpp18
-rw-r--r--tqtinterface/qt4/src/network/tqsocketdevice_unix.cpp2
-rw-r--r--tqtinterface/qt4/src/opengl/tqgl.cpp24
-rw-r--r--tqtinterface/qt4/src/opengl/tqgl_x11.cpp28
-rw-r--r--tqtinterface/qt4/src/opengl/tqglcolormap.cpp8
-rw-r--r--tqtinterface/qt4/src/opengl/tqglcolormap.h4
-rw-r--r--tqtinterface/qt4/src/qt.pro2
-rw-r--r--tqtinterface/qt4/src/qt_professional.pri14
-rw-r--r--tqtinterface/qt4/src/sql/drivers/mysql/tqsql_mysql.cpp4
-rw-r--r--tqtinterface/qt4/src/sql/drivers/odbc/tqsql_odbc.cpp14
-rw-r--r--tqtinterface/qt4/src/sql/drivers/psql/tqsql_psql.cpp12
-rw-r--r--tqtinterface/qt4/src/sql/drivers/sqlite/tqsql_sqlite.cpp8
-rw-r--r--tqtinterface/qt4/src/sql/qt_sql.pri34
-rw-r--r--tqtinterface/qt4/src/sql/tqdatabrowser.cpp4
-rw-r--r--tqtinterface/qt4/src/sql/tqdatatable.cpp30
-rw-r--r--tqtinterface/qt4/src/sql/tqdatatable.h10
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlcursor.cpp14
-rw-r--r--tqtinterface/qt4/src/sql/tqsqldatabase.cpp42
-rw-r--r--tqtinterface/qt4/src/sql/tqsqldatabase.h2
-rw-r--r--tqtinterface/qt4/src/sql/tqsqldriver.cpp14
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlextension_p.cpp2
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlfield.cpp2
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlform.cpp8
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlindex.cpp6
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp6
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlmanager_p.h2
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlpropertymap.cpp6
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlquery.cpp14
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlrecord.cpp24
-rw-r--r--tqtinterface/qt4/src/sql/tqsqlrecord.h6
-rw-r--r--tqtinterface/qt4/src/styles/qt_styles.pri46
-rw-r--r--tqtinterface/qt4/src/styles/tqcommonstyle.cpp6
-rw-r--r--tqtinterface/qt4/src/styles/tqcompactstyle.cpp4
-rw-r--r--tqtinterface/qt4/src/styles/tqmotifplusstyle.cpp10
-rw-r--r--tqtinterface/qt4/src/styles/tqmotifstyle.cpp6
-rw-r--r--tqtinterface/qt4/src/styles/tqsgistyle.cpp14
-rw-r--r--tqtinterface/qt4/src/styles/tqstylefactory.cpp20
-rw-r--r--tqtinterface/qt4/src/styles/tqwindowsstyle.cpp8
-rw-r--r--tqtinterface/qt4/src/table/tqtable.cpp136
-rw-r--r--tqtinterface/qt4/src/table/tqtable.h6
-rw-r--r--tqtinterface/qt4/src/tools/tqasciicache.h6
-rw-r--r--tqtinterface/qt4/src/tools/tqasciidict.h4
-rw-r--r--tqtinterface/qt4/src/tools/tqbitarray.cpp2
-rw-r--r--tqtinterface/qt4/src/tools/tqcache.h6
-rw-r--r--tqtinterface/qt4/src/tools/tqcleanuphandler.h2
-rw-r--r--tqtinterface/qt4/src/tools/tqcomlibrary.cpp6
-rw-r--r--tqtinterface/qt4/src/tools/tqcomponentfactory.cpp2
-rw-r--r--tqtinterface/qt4/src/tools/tqcstring.cpp186
-rw-r--r--tqtinterface/qt4/src/tools/tqcstring.h78
-rw-r--r--tqtinterface/qt4/src/tools/tqdatetime.cpp28
-rw-r--r--tqtinterface/qt4/src/tools/tqdict.h4
-rw-r--r--tqtinterface/qt4/src/tools/tqdir.cpp16
-rw-r--r--tqtinterface/qt4/src/tools/tqfile_unix.cpp2
-rw-r--r--tqtinterface/qt4/src/tools/tqfileinfo.cpp8
-rw-r--r--tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp4
-rw-r--r--tqtinterface/qt4/src/tools/tqgarray.cpp12
-rw-r--r--tqtinterface/qt4/src/tools/tqgarray.h4
-rw-r--r--tqtinterface/qt4/src/tools/tqgcache.cpp30
-rw-r--r--tqtinterface/qt4/src/tools/tqgcache.h4
-rw-r--r--tqtinterface/qt4/src/tools/tqgdict.cpp30
-rw-r--r--tqtinterface/qt4/src/tools/tqglist.cpp22
-rw-r--r--tqtinterface/qt4/src/tools/tqglist.h10
-rw-r--r--tqtinterface/qt4/src/tools/tqglobal.cpp6
-rw-r--r--tqtinterface/qt4/src/tools/tqglobal.h2
-rw-r--r--tqtinterface/qt4/src/tools/tqgpluginmanager.cpp22
-rw-r--r--tqtinterface/qt4/src/tools/tqgvector.cpp12
-rw-r--r--tqtinterface/qt4/src/tools/tqgvector.h8
-rw-r--r--tqtinterface/qt4/src/tools/tqintcache.h6
-rw-r--r--tqtinterface/qt4/src/tools/tqintdict.h4
-rw-r--r--tqtinterface/qt4/src/tools/tqiodevice.cpp2
-rw-r--r--tqtinterface/qt4/src/tools/tqlibrary.cpp8
-rw-r--r--tqtinterface/qt4/src/tools/tqlibrary_unix.cpp2
-rw-r--r--tqtinterface/qt4/src/tools/tqlocale.cpp8
-rw-r--r--tqtinterface/qt4/src/tools/tqmap.h36
-rw-r--r--tqtinterface/qt4/src/tools/tqmemarray.h8
-rw-r--r--tqtinterface/qt4/src/tools/tqptrcollection.cpp2
-rw-r--r--tqtinterface/qt4/src/tools/tqptrdict.h4
-rw-r--r--tqtinterface/qt4/src/tools/tqptrlist.h16
-rw-r--r--tqtinterface/qt4/src/tools/tqptrvector.h16
-rw-r--r--tqtinterface/qt4/src/tools/tqregexp.cpp68
-rw-r--r--tqtinterface/qt4/src/tools/tqsettings.cpp92
-rw-r--r--tqtinterface/qt4/src/tools/tqstring.cpp294
-rw-r--r--tqtinterface/qt4/src/tools/tqstring.h166
-rw-r--r--tqtinterface/qt4/src/tools/tqstringlist.cpp24
-rw-r--r--tqtinterface/qt4/src/tools/tqtextstream.cpp4
-rw-r--r--tqtinterface/qt4/src/tools/tqunicodetables.cpp2
-rw-r--r--tqtinterface/qt4/src/tools/tqvaluelist.h24
-rw-r--r--tqtinterface/qt4/src/tqmoc/README2
-rw-r--r--tqtinterface/qt4/src/tqmoc/tqmoc.l4
-rw-r--r--tqtinterface/qt4/src/tqmoc/tqmoc.pro2
-rw-r--r--tqtinterface/qt4/src/tqmoc/tqmoc.y56
-rw-r--r--tqtinterface/qt4/src/tqmoc/tqmoc_lex.cpp4
-rw-r--r--tqtinterface/qt4/src/tqmoc/tqmoc_yacc.cpp56
-rw-r--r--tqtinterface/qt4/src/widgets/tqaction.cpp16
-rw-r--r--tqtinterface/qt4/src/widgets/tqbutton.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqbuttongroup.cpp8
-rw-r--r--tqtinterface/qt4/src/widgets/tqbuttongroup.h2
-rw-r--r--tqtinterface/qt4/src/widgets/tqcheckbox.cpp4
-rw-r--r--tqtinterface/qt4/src/widgets/tqcombobox.cpp24
-rw-r--r--tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp14
-rw-r--r--tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp20
-rw-r--r--tqtinterface/qt4/src/widgets/tqdockarea.cpp72
-rw-r--r--tqtinterface/qt4/src/widgets/tqdockarea.h2
-rw-r--r--tqtinterface/qt4/src/widgets/tqdockwindow.cpp6
-rw-r--r--tqtinterface/qt4/src/widgets/tqframe.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqgridview.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqgroupbox.cpp4
-rw-r--r--tqtinterface/qt4/src/widgets/tqheader.cpp20
-rw-r--r--tqtinterface/qt4/src/widgets/tqheader.h2
-rw-r--r--tqtinterface/qt4/src/widgets/tqlabel.cpp8
-rw-r--r--tqtinterface/qt4/src/widgets/tqlcdnumber.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqlineedit.cpp38
-rw-r--r--tqtinterface/qt4/src/widgets/tqlistbox.cpp52
-rw-r--r--tqtinterface/qt4/src/widgets/tqlistbox.h4
-rw-r--r--tqtinterface/qt4/src/widgets/tqlistview.cpp58
-rw-r--r--tqtinterface/qt4/src/widgets/tqlistview.h4
-rw-r--r--tqtinterface/qt4/src/widgets/tqmainwindow.cpp24
-rw-r--r--tqtinterface/qt4/src/widgets/tqmenubar.cpp12
-rw-r--r--tqtinterface/qt4/src/widgets/tqmenudata.cpp66
-rw-r--r--tqtinterface/qt4/src/widgets/tqmenudata.h6
-rw-r--r--tqtinterface/qt4/src/widgets/tqmultilineedit.cpp4
-rw-r--r--tqtinterface/qt4/src/widgets/tqpopupmenu.cpp74
-rw-r--r--tqtinterface/qt4/src/widgets/tqradiobutton.cpp4
-rw-r--r--tqtinterface/qt4/src/widgets/tqscrollbar.cpp4
-rw-r--r--tqtinterface/qt4/src/widgets/tqscrollview.cpp6
-rw-r--r--tqtinterface/qt4/src/widgets/tqslider.cpp6
-rw-r--r--tqtinterface/qt4/src/widgets/tqspinbox.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqspinwidget.cpp12
-rw-r--r--tqtinterface/qt4/src/widgets/tqsplitter.cpp14
-rw-r--r--tqtinterface/qt4/src/widgets/tqsplitter.h4
-rw-r--r--tqtinterface/qt4/src/widgets/tqsyntaxhighlighter.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqtabbar.cpp38
-rw-r--r--tqtinterface/qt4/src/widgets/tqtabwidget.cpp6
-rw-r--r--tqtinterface/qt4/src/widgets/tqtextbrowser.cpp8
-rw-r--r--tqtinterface/qt4/src/widgets/tqtextedit.cpp122
-rw-r--r--tqtinterface/qt4/src/widgets/tqtextedit.h2
-rw-r--r--tqtinterface/qt4/src/widgets/tqtitlebar.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqtoolbar.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqtoolbox.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqtoolbutton.cpp14
-rw-r--r--tqtinterface/qt4/src/widgets/tqtooltip.cpp14
-rw-r--r--tqtinterface/qt4/src/widgets/tqvalidator.cpp12
-rw-r--r--tqtinterface/qt4/src/widgets/tqwhatsthis.cpp22
-rw-r--r--tqtinterface/qt4/src/widgets/tqwidgetplugin.cpp2
-rw-r--r--tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp4
-rw-r--r--tqtinterface/qt4/src/widgets/tqwidgetstack.cpp20
-rw-r--r--tqtinterface/qt4/src/workspace/tqworkspace.cpp52
-rw-r--r--tqtinterface/qt4/src/workspace/tqworkspace.h2
-rw-r--r--tqtinterface/qt4/src/xml/tqdom.cpp122
-rw-r--r--tqtinterface/qt4/src/xml/tqdom.h6
-rw-r--r--tqtinterface/qt4/src/xml/tqsvgdevice.cpp32
-rw-r--r--tqtinterface/qt4/src/xml/tqxml.cpp68
455 files changed, 3653 insertions, 3664 deletions
diff --git a/tqtinterface/qt4/src/.obj/README b/tqtinterface/qt4/src/.obj/README
index c24e158..efb41f3 100644
--- a/tqtinterface/qt4/src/.obj/README
+++ b/tqtinterface/qt4/src/.obj/README
@@ -1 +1 @@
-This directory tqcontains only generated object files.
+This directory contains only generated object files.
diff --git a/tqtinterface/qt4/src/.tmp/README b/tqtinterface/qt4/src/.tmp/README
index e4a8beb..9d010df 100644
--- a/tqtinterface/qt4/src/.tmp/README
+++ b/tqtinterface/qt4/src/.tmp/README
@@ -1 +1 @@
-This directory tqcontains only generated files.
+This directory contains only generated files.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/README b/tqtinterface/qt4/src/3rdparty/libjpeg/README
index c3cd473..86cc206 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/README
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/README
@@ -4,7 +4,7 @@ The Independent JPEG Group's JPEG software
README for release 6b of 27-Mar-1998
====================================
-This distribution tqcontains the sixth public release of the Independent JPEG
+This distribution contains the sixth public release of the Independent JPEG
Group's free JPEG software. You are welcome to redistribute this software and
to use it for any purpose, subject to the conditions under LEGAL ISSUES, below.
@@ -24,12 +24,12 @@ IJG is not affiliated with the official ISO JPEG standards committee.
DOCUMENTATION ROADMAP
=====================
-This file tqcontains the following sections:
+This file contains the following sections:
OVERVIEW General description of JPEG and the IJG software.
LEGAL ISSUES Copyright, lack of warranty, terms of distribution.
REFERENCES Where to learn more about JPEG.
-ARCHIVE LOCATIONS Where to tqfind newer versions of this software.
+ARCHIVE LOCATIONS Where to find newer versions of this software.
RELATED SOFTWARE Other stuff you should get.
FILE FORMAT WARS Software *not* to get.
TO DO Plans for future IJG releases.
@@ -52,7 +52,7 @@ Programmer and internal documentation:
Please read at least the files install.doc and usage.doc. Useful information
can also be found in the JPEG FAQ (Frequently Asked Questions) article. See
-ARCHIVE LOCATIONS below to tqfind out where to obtain the FAQ article.
+ARCHIVE LOCATIONS below to find out where to obtain the FAQ article.
If you want to understand how the JPEG code works, we suggest reading one or
more of the REFERENCES, then looking at the documentation files (in roughly
@@ -62,7 +62,7 @@ the order listed) before diving into the code.
OVERVIEW
========
-This package tqcontains C software to implement JPEG image compression and
+This package contains C software to implement JPEG image compression and
decompression. JPEG (pronounced "jay-peg") is a standardized compression
method for full-color and gray-scale images. JPEG is intended for compressing
"real-world" scenes; line drawings, cartoons and other non-realistic images
@@ -113,7 +113,7 @@ LEGAL ISSUES
In plain English:
-1. We don't promise that this software works. (But if you tqfind any bugs,
+1. We don't promise that this software works. (But if you find any bugs,
please let us know!)
2. You can use this software for whatever you want. You don't have to pay us.
3. You may not pretend that you wrote this software. If you use it in a
@@ -269,7 +269,7 @@ IJG does not recommend use of the TIFF 6.0 design (TIFF Compression tag 6).
Instead, we recommend the JPEG design proposed by TIFF Technical Note #2
(Compression tag 7). Copies of this Note can be obtained from ftp.sgi.com or
from ftp://ftp.uu.net/graphics/jpeg/. It is expected that the next revision
-of the TIFF spec will tqreplace the 6.0 JPEG design with the Note's design.
+of the TIFF spec will replace the 6.0 JPEG design with the Note's design.
Although IJG's own code does not support TIFF/JPEG, the free libtiff library
uses our library to implement TIFF/JPEG per the Note. libtiff is available
from ftp://ftp.sgi.com/graphics/tiff/.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/filelist.doc b/tqtinterface/qt4/src/3rdparty/libjpeg/filelist.doc
index d6b3a36..e14982c 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/filelist.doc
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/filelist.doc
@@ -102,7 +102,7 @@ jdatasrc.c Data source manager for stdio input.
Support files for both compression and decompression:
-jerror.c Standard error handling routines (application tqreplaceable).
+jerror.c Standard error handling routines (application replaceable).
jmemmgr.c System-independent (more or less) memory management code.
jutils.c Miscellaneous utility routines.
@@ -119,7 +119,7 @@ jmemmac.c Custom implementation for Apple Macintosh.
Exactly one of the system-dependent modules should be configured into an
installed JPEG library (see install.doc for hints about which one to use).
-On unusual systems you may tqfind it worthwhile to make a special
+On unusual systems you may find it worthwhile to make a special
system-dependent memory manager.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/install.doc b/tqtinterface/qt4/src/3rdparty/libjpeg/install.doc
index 1bed300..806393b 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/install.doc
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/install.doc
@@ -65,7 +65,7 @@ CONFIGURING THE SOFTWARE
========================
To configure the IJG code for your system, you need to create two files:
- * jconfig.h: tqcontains values for system-dependent #define symbols.
+ * jconfig.h: contains values for system-dependent #define symbols.
* Makefile: controls the compilation process.
(On a non-Unix machine, you may create "project files" or some other
substitute for a Makefile. jconfig.h is needed in any environment.)
@@ -103,7 +103,7 @@ shared library building methods. If things don't work this way, please try
running configure without either switch; that should build a static library
without using libtool. If that works, your problem is probably with libtool
not with the IJG code. libtool is fairly new and doesn't support all flavors
-of Unix yet. (You might be able to tqfind a newer version of libtool than the
+of Unix yet. (You might be able to find a newer version of libtool than the
one included with libjpeg; see ftp.gnu.org. Report libtool problems to
bug-libtool@gnu.org.)
@@ -196,7 +196,7 @@ ckconfig.c to work, make sure the same switches are in CFLAGS.
If you are on a system that doesn't use makefiles, you'll need to set up
project files (or whatever you do use) to compile all the source files and
link them into executable files cjpeg, djpeg, jpegtran, rdjpgcom, and wrjpgcom.
-See the file lists in any of the makefiles to tqfind out which files go into
+See the file lists in any of the makefiles to find out which files go into
each program. Note that the provided makefiles all make a "library" file
libjpeg first, but you don't have to do that if you don't want to; the file
lists identify which source files are actually needed for compression,
@@ -513,7 +513,7 @@ in that mode. (Note: some of the distributed compiler-specific jconfig files
already contain #define switches to select appropriate MULTIPLYxxx
definitions.)
-If your machine has sufficiently fast floating point hardware, you may tqfind
+If your machine has sufficiently fast floating point hardware, you may find
that the float DCT method is faster than the integer DCT methods, even
after tweaking the integer multiply macros. In that case you may want to
make the float DCT be the default method. (The only objection to this is
@@ -598,7 +598,7 @@ less than your normal free memory. Put "#define DEFAULT_MAX_MEM nnnn" into
jconfig.h to do this.
To use the 68881/68882 coprocessor for the floating point DCT, add the
-compiler option "-8" to the project files and tqreplace pcfltlib.lib with
+compiler option "-8" to the project files and replace pcfltlib.lib with
pc881lib.lib in cjpeg.prj and djpeg.prj. Or if you don't have a
coprocessor, you may prefer to remove the float DCT code by undefining
DCT_FLOAT_SUPPORTED in jmorecfg.h (since without a coprocessor, the float
@@ -614,7 +614,7 @@ depend on the JPEG library.
There is a bug in some older versions of the Turbo C library which causes the
space used by temporary files created with "tmpfile()" not to be freed after
-an abnormal program exit. If you check your disk afterwards, you will tqfind
+an abnormal program exit. If you check your disk afterwards, you will find
cluster chains that are allocated but not used by a file. This should not
happen in cjpeg/djpeg/jpegtran, since we enable a signal catcher to explicitly
close temp files before exiting. But if you use the JPEG library with your
@@ -865,7 +865,7 @@ add something like this to your jconfig.h file:
#define HAVE_BOOLEAN /* prevent jmorecfg.h from redefining it */
(This is already in jconfig.vc, by the way.)
-windef.h tqcontains the declarations
+windef.h contains the declarations
#define far
#define FAR far
Since jmorecfg.h tries to define FAR as empty, you may get a compiler
@@ -874,12 +874,12 @@ includes). To suppress the warning, you can put "#ifndef FAR"/"#endif"
around the line "#define FAR" in jmorecfg.h.
When using the library in a Windows application, you will almost certainly
-want to modify or tqreplace the error handler module jerror.c, since our
+want to modify or replace the error handler module jerror.c, since our
default error handler does a couple of inappropriate things:
1. it tries to write error and warning messages on stderr;
2. in event of a fatal error, it exits by calling exit().
-A simple stopgap solution for problem 1 is to tqreplace the line
+A simple stopgap solution for problem 1 is to replace the line
fprintf(stderr, "%s\n", buffer);
(in output_message in jerror.c) with
MessageBox(GetActiveWindow(),buffer,"JPEG Error",MB_OK|MB_ICONERROR);
@@ -908,7 +908,7 @@ into jconfig.h to limit allocation chunks to 64Kb. (Without that, you'd
have to use huge memory model, which slows things down unnecessarily.)
jmemnobs.c works without modification in large or flat memory models, but to
use medium model, you need to modify its jpeg_get_large and jpeg_free_large
-routines to allocate far memory. In any case, you might like to tqreplace
+routines to allocate far memory. In any case, you might like to replace
its calls to malloc and free with direct calls on Windows memory allocation
functions.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcapimin.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcapimin.c
index 0d27717..e24faa5 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcapimin.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcapimin.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains application interface code for the compression half
+ * This file contains application interface code for the compression half
* of the JPEG library. These are the "minimum" API routines that may be
* needed in either the normal full-compression case or the transcoding-only
* case.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcapistd.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcapistd.c
index d15ae9e..858d4e9 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcapistd.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcapistd.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains application interface code for the compression half
+ * This file contains application interface code for the compression half
* of the JPEG library. These are the "standard" API routines that are
* used in the normal full-compression case. They are not used by a
* transcoding-only application. Note that if an application links in
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jccoefct.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jccoefct.c
index 8a322e6..1963ddb 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jccoefct.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jccoefct.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains the coefficient buffer controller for compression.
+ * This file contains the coefficient buffer controller for compression.
* This controller is the top level of the JPEG compressor proper.
* The coefficient buffer lies between forward-DCT and entropy encoding steps.
*/
@@ -135,7 +135,7 @@ start_pass_coef (j_compress_ptr cinfo, J_BUF_MODE pass_mode)
* per call, ie, v_samp_factor block rows for each component in the image.
* Returns TRUE if the iMCU row is completed, FALSE if suspended.
*
- * NB: input_buf tqcontains a plane for each component in image,
+ * NB: input_buf contains a plane for each component in image,
* which we index according to the component's SOF position.
*/
@@ -234,7 +234,7 @@ compress_data (j_compress_ptr cinfo, JSAMPIMAGE input_buf)
* done by calling compress_output() after we've loaded the current strip
* of the virtual arrays.
*
- * NB: input_buf tqcontains a plane for each component in image. All
+ * NB: input_buf contains a plane for each component in image. All
* components are DCT'd and loaded into the virtual arrays in this pass.
* However, it may be that only a subset of the components are emitted to
* the entropy encoder during this first pass; be careful about looking
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jccolor.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jccolor.c
index 894df01..0a8a4b5 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jccolor.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jccolor.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains input colorspace conversion routines.
+ * This file contains input colorspace conversion routines.
*/
#define JPEG_INTERNALS
@@ -357,7 +357,7 @@ jinit_color_converter (j_compress_ptr cinfo)
(*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
SIZEOF(my_color_converter));
cinfo->cconvert = (struct jpeg_color_converter *) cconvert;
- /* set start_pass to null method until we tqfind out differently */
+ /* set start_pass to null method until we find out differently */
cconvert->pub.start_pass = null_method;
/* Make sure input_components agrees with in_color_space */
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcdctmgr.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcdctmgr.c
index e580797..36fbc90 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcdctmgr.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcdctmgr.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains the forward-DCT management logic.
+ * This file contains the forward-DCT management logic.
* This code selects a particular DCT implementation to be used,
* and it performs related housekeeping chores including coefficient
* quantization.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.c
index 82e2c31..aec9cf8 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains Huffman entropy encoding routines.
+ * This file contains Huffman entropy encoding routines.
*
* Much of the complexity here has to do with supporting output suspension.
* If the data destination module demands suspension, we want to be able to
@@ -22,7 +22,7 @@
/* Expanded entropy encoder object for Huffman encoding.
*
- * The savable_state subrecord tqcontains fields that change within an MCU,
+ * The savable_state subrecord contains fields that change within an MCU,
* but must not be updated permanently until we complete the MCU.
*/
@@ -74,7 +74,7 @@ typedef struct {
typedef huff_entropy_encoder * huff_entropy_ptr;
/* Working state while writing an MCU.
- * This struct tqcontains all the fields that are needed by subroutines.
+ * This struct contains all the fields that are needed by subroutines.
*/
typedef struct {
@@ -800,7 +800,7 @@ jpeg_gen_optimal_table (j_compress_ptr cinfo, JHUFF_TBL * htbl, long freq[])
for (i = MAX_CLEN; i > 16; i--) {
while (bits[i] > 0) {
- j = i - 2; /* tqfind length of new prefix to be used */
+ j = i - 2; /* find length of new prefix to be used */
while (bits[j] == 0)
j--;
@@ -812,7 +812,7 @@ jpeg_gen_optimal_table (j_compress_ptr cinfo, JHUFF_TBL * htbl, long freq[])
}
/* Remove the count for the pseudo-symbol 256 from the largest codelength */
- while (bits[i] == 0) /* tqfind largest codelength still in use */
+ while (bits[i] == 0) /* find largest codelength still in use */
i--;
bits[i]--;
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.h b/tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.h
index fea9064..a9599fc 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.h
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jchuff.h
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains declarations for Huffman entropy encoding routines
+ * This file contains declarations for Huffman entropy encoding routines
* that are shared between the sequential encoder (jchuff.c) and the
* progressive encoder (jcphuff.c). No other modules need to see these.
*/
@@ -27,7 +27,7 @@
typedef struct {
unsigned int ehufco[256]; /* code for each symbol */
char ehufsi[256]; /* length of code for each symbol */
- /* If no code has been allocated for a symbol S, ehufsi[S] tqcontains 0 */
+ /* If no code has been allocated for a symbol S, ehufsi[S] contains 0 */
} c_derived_tbl;
/* Short forms of external names for systems with brain-damaged linkers. */
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcinit.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcinit.c
index 01985a4..5efffe3 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcinit.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcinit.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains initialization logic for the JPEG compressor.
+ * This file contains initialization logic for the JPEG compressor.
* This routine is in charge of selecting the modules to be executed and
* making an initialization call to each one.
*
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcmainct.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcmainct.c
index 3fa3c7f..e0279a7 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcmainct.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcmainct.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains the main buffer controller for compression.
+ * This file contains the main buffer controller for compression.
* The main buffer lies between the pre-processor and the JPEG
* compressor proper; it holds downsampled data in the JPEG colorspace.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcmarker.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcmarker.c
index 9a49c6c..38e3e9c 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcmarker.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcmarker.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains routines to write JPEG datastream markers.
+ * This file contains routines to write JPEG datastream markers.
*/
#define JPEG_INTERNALS
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcmaster.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcmaster.c
index 914cb58..aab4020 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcmaster.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcmaster.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains master control logic for the JPEG compressor.
+ * This file contains master control logic for the JPEG compressor.
* These routines are concerned with parameter validation, initial setup,
* and inter-pass control (determining the number of passes and the work
* to be done in each pass).
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcomapi.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcomapi.c
index fc4c6ce..a1f7fcb 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcomapi.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcomapi.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains application interface routines that are used for both
+ * This file contains application interface routines that are used for both
* compression and decompression.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcparam.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcparam.c
index d5279f7..f5418f8 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcparam.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcparam.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains optional default-setting code for the JPEG compressor.
+ * This file contains optional default-setting code for the JPEG compressor.
* Applications do not have to use this file, but those that don't use it
* must know a lot more about the innards of the JPEG code.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcphuff.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcphuff.c
index efcf7f2..5567f88 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcphuff.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcphuff.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains Huffman entropy encoding routines for progressive JPEG.
+ * This file contains Huffman entropy encoding routines for progressive JPEG.
*
* We do not support output suspension in this module, since the library
* currently does not allow multiple-scan files to be written with output
@@ -494,7 +494,7 @@ encode_mcu_AC_first (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
/* We must apply the point transform by Al. For AC coefficients this
* is an integer division with rounding towards 0. To do this portably
* in C, we shift after obtaining the absolute value; so the code is
- * interwoven with tqfinding the abs value (temp) and output bits (temp2).
+ * interwoven with finding the abs value (temp) and output bits (temp2).
*/
if (temp < 0) {
temp = -temp; /* temp is abs value of input */
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcprepct.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcprepct.c
index 37b551d..fa93333 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcprepct.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcprepct.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains the compression preprocessing controller.
+ * This file contains the compression preprocessing controller.
* This controller manages the color conversion, downsampling,
* and edge expansion steps.
*
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jcsample.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jcsample.c
index fe6e527..1cb0b89 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jcsample.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jcsample.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains downsampling routines.
+ * This file contains downsampling routines.
*
* Downsampling input data is counted in "row groups". A row group
* is defined to be max_v_samp_factor pixel rows of each component,
@@ -37,9 +37,9 @@
* advised to improve this code.
*
* A simple input-smoothing capability is provided. This is mainly intended
- * for cleaning up color-dithered GIF input files (if you tqfind it inadequate,
+ * for cleaning up color-dithered GIF input files (if you find it inadequate,
* we suggest using an external filtering program such as pnmconvol). When
- * enabled, each input pixel P is tqreplaced by a weighted sum of itself and its
+ * enabled, each input pixel P is replaced by a weighted sum of itself and its
* eight neighbors. P's weight is 1-8*SF and each neighbor's weight is SF,
* where SF = (smoothing_factor / 1024).
* Currently, smoothing is only supported for 2h2v sampling factors.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jctrans.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jctrans.c
index f0ced25..bdca8cf 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jctrans.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jctrans.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains library routines for transcoding compression,
+ * This file contains library routines for transcoding compression,
* that is, writing raw DCT coefficient arrays to an output JPEG file.
* The routines in jcapimin.c will also be needed by a transcoder.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdapimin.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdapimin.c
index d734c4c..103c17b 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdapimin.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdapimin.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains application interface code for the decompression half
+ * This file contains application interface code for the decompression half
* of the JPEG library. These are the "minimum" API routines that may be
* needed in either the normal full-decompression case or the
* transcoding-only case.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdapistd.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdapistd.c
index fd29573..9bca84c 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdapistd.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdapistd.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains application interface code for the decompression half
+ * This file contains application interface code for the decompression half
* of the JPEG library. These are the "standard" API routines that are
* used in the normal full-decompression case. They are not used by a
* transcoding-only application. Note that if an application links in
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdatadst.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdatadst.c
index a203331..a8f6fb0 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdatadst.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdatadst.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains compression data destination routines for the case of
+ * This file contains compression data destination routines for the case of
* emitting JPEG data to a file (or any stdio stream). While these routines
* are sufficient for most applications, some will want to use a different
* destination manager.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdatasrc.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdatasrc.c
index 078f3fa..edc752b 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdatasrc.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdatasrc.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains decompression data source routines for the case of
+ * This file contains decompression data source routines for the case of
* reading JPEG data from a file (or any stdio stream). While these routines
* are sufficient for most applications, some will want to use a different
* source manager.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdcoefct.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdcoefct.c
index 978457d..e3ba6bf 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdcoefct.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdcoefct.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains the coefficient buffer controller for decompression.
+ * This file contains the coefficient buffer controller for decompression.
* This controller is the top level of the JPEG decompressor proper.
* The coefficient buffer lies between entropy decoding and inverse-DCT steps.
*
@@ -139,7 +139,7 @@ start_output_pass (j_decompress_ptr cinfo)
* Input and output must run in lockstep since we have only a one-MCU buffer.
* Return value is JPEG_ROW_COMPLETED, JPEG_SCAN_COMPLETED, or JPEG_SUSPENDED.
*
- * NB: output_buf tqcontains a plane for each component in image,
+ * NB: output_buf contains a plane for each component in image,
* which we index according to the component's SOF position.
*/
@@ -308,7 +308,7 @@ consume_data (j_decompress_ptr cinfo)
* Always attempts to emit one fully interleaved MCU row ("iMCU" row).
* Return value is JPEG_ROW_COMPLETED, JPEG_SCAN_COMPLETED, or JPEG_SUSPENDED.
*
- * NB: output_buf tqcontains a plane for each component in image.
+ * NB: output_buf contains a plane for each component in image.
*/
METHODDEF(int)
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdcolor.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdcolor.c
index 7a2e524..6c04dfe 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdcolor.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdcolor.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains output colorspace conversion routines.
+ * This file contains output colorspace conversion routines.
*/
#define JPEG_INTERNALS
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdct.h b/tqtinterface/qt4/src/3rdparty/libjpeg/jdct.h
index 76cda5e..24e4c5c 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdct.h
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdct.h
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This include file tqcontains common declarations for the forward and
+ * This include file contains common declarations for the forward and
* inverse DCT modules. These declarations are private to the DCT managers
* (jcdctmgr.c, jddctmgr.c) and the individual DCT algorithms.
* The individual DCT algorithms are kept in separate files to ease
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jddctmgr.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jddctmgr.c
index 626ad6c..2bb81a4 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jddctmgr.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jddctmgr.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains the inverse-DCT management logic.
+ * This file contains the inverse-DCT management logic.
* This code selects a particular IDCT implementation to be used,
* and it performs related housekeeping chores. No code in this file
* is executed per IDCT step, only during output pass setup.
@@ -43,7 +43,7 @@
typedef struct {
struct jpeg_inverse_dct pub; /* public fields */
- /* This array tqcontains the IDCT method code that each multiplier table
+ /* This array contains the IDCT method code that each multiplier table
* is currently set up for, or -1 if it's not yet set up.
* The actual multiplier tables are pointed to by dct_table in the
* per-component comp_info structures.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.c
index 883e3a0..51e8d63 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains Huffman entropy decoding routines.
+ * This file contains Huffman entropy decoding routines.
*
* Much of the complexity here has to do with supporting input suspension.
* If the data source module demands suspension, we want to be able to back
@@ -23,7 +23,7 @@
/*
* Expanded entropy decoder object for Huffman decoding.
*
- * The savable_state subrecord tqcontains fields that change within an MCU,
+ * The savable_state subrecord contains fields that change within an MCU,
* but must not be updated permanently until we complete the MCU.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.h b/tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.h
index 9e59158..ae19b6c 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.h
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdhuff.h
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains declarations for Huffman entropy decoding routines
+ * This file contains declarations for Huffman entropy decoding routines
* that are shared between the sequential decoder (jdhuff.c) and the
* progressive decoder (jdphuff.c). No other modules need to see these.
*/
@@ -58,13 +58,13 @@ EXTERN(void) jpeg_make_d_derived_tbl
* demanded at one time) never exceeds 15 for JPEG use.
*
* We read source bytes into get_buffer and dole out bits as needed.
- * If get_buffer already tqcontains enough bits, they are fetched in-line
+ * If get_buffer already contains enough bits, they are fetched in-line
* by the macros CHECK_BIT_BUFFER and GET_BITS. When there aren't enough
* bits, jpeg_fill_bit_buffer is called; it will attempt to fill get_buffer
* as full as possible (not just to the number of bits needed; this
* prefetching reduces the overhead cost of calling jpeg_fill_bit_buffer).
* Note that jpeg_fill_bit_buffer may return FALSE to indicate suspension.
- * On TRUE return, jpeg_fill_bit_buffer guarantees that get_buffer tqcontains
+ * On TRUE return, jpeg_fill_bit_buffer guarantees that get_buffer contains
* at least the requested number of bits --- dummy zeroes are inserted if
* necessary.
*/
@@ -168,7 +168,7 @@ EXTERN(boolean) jpeg_fill_bit_buffer
* Notes about the HUFF_DECODE macro:
* 1. Near the end of the data segment, we may fail to get enough bits
* for a lookahead. In that case, we do it the hard way.
- * 2. If the lookahead table tqcontains no entry, the next code must be
+ * 2. If the lookahead table contains no entry, the next code must be
* more than HUFF_LOOKAHEAD bits long.
* 3. jpeg_huff_decode returns -1 if forced to suspend.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdinput.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdinput.c
index c9050db..6268d9b 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdinput.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdinput.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains input control logic for the JPEG decompressor.
+ * This file contains input control logic for the JPEG decompressor.
* These routines are concerned with controlling the decompressor's input
* processing (marker reading and coefficient decoding). The actual input
* reading is done in jdmarker.c, jdhuff.c, and jdphuff.c.
@@ -109,7 +109,7 @@ initial_setup (j_decompress_ptr cinfo)
jdiv_round_up((long) cinfo->image_height,
(long) (cinfo->max_v_samp_factor*DCTSIZE));
- /* Decide whether file tqcontains multiple scans */
+ /* Decide whether file contains multiple scans */
if (cinfo->comps_in_scan < cinfo->num_components || cinfo->progressive_mode)
cinfo->inputctl->has_multiple_scans = TRUE;
else
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdmainct.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdmainct.c
index 0cc0426..82517ae 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdmainct.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdmainct.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains the main buffer controller for decompression.
+ * This file contains the main buffer controller for decompression.
* The main buffer lies between the JPEG decompressor proper and the
* post-processor; it holds downsampled data in the JPEG colorspace.
*
@@ -36,7 +36,7 @@
* applying).
*
* The coefficient controller will deliver data to us one iMCU row at a time;
- * each iMCU row tqcontains v_samp_factor * DCT_scaled_size sample rows, or
+ * each iMCU row contains v_samp_factor * DCT_scaled_size sample rows, or
* exactly min_DCT_scaled_size row groups. (This amount of data corresponds
* to one row of MCUs when the image is fully interleaved.) Note that the
* number of sample rows varies across components, but the number of row
@@ -51,7 +51,7 @@
* out as row groups to the postprocessor.
*
* When need_context_rows is TRUE, this controller guarantees that the buffer
- * passed to postprocessing tqcontains at least one row group's worth of samples
+ * passed to postprocessing contains at least one row group's worth of samples
* above and below the row group(s) being processed. Note that the context
* rows "above" the first passed row group appear at negative row offsets in
* the passed buffer. At the top and bottom of the image, the required
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdmarker.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdmarker.c
index 2247b34..1399247 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdmarker.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdmarker.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains routines to decode JPEG datastream markers.
+ * This file contains routines to decode JPEG datastream markers.
* Most of the complexity arises from our desire to support input
* suspension: if not all of the data for a marker is available,
* we must exit back to the application. On resumption, we reprocess
@@ -183,7 +183,7 @@ typedef my_marker_reader * my_marker_ptr;
* into memory, we use a slightly different convention: when forced to
* suspend, the marker processor updates the restart point to the end of
* what it's consumed (ie, the end of the buffer) before returning FALSE.
- * On resumption, cinfo->unread_marker still tqcontains the marker code,
+ * On resumption, cinfo->unread_marker still contains the marker code,
* but the data source will point to the next chunk of marker data.
* The marker processor must retain internal state to deal with this.
*
@@ -964,7 +964,7 @@ read_markers (j_decompress_ptr cinfo)
return JPEG_SUSPENDED;
}
}
- /* At this point cinfo->unread_marker tqcontains the marker code and the
+ /* At this point cinfo->unread_marker contains the marker code and the
* input point is just past the marker proper, but before any parameters.
* A suspension will cause us to return with this state still true.
*/
@@ -1146,7 +1146,7 @@ read_restart_marker (j_decompress_ptr cinfo)
* which permits a more intelligent recovery strategy; such managers would
* presumably supply their own resync method.
*
- * read_restart_marker calls resync_to_restart if it tqfinds a marker other than
+ * read_restart_marker calls resync_to_restart if it finds a marker other than
* the restart marker it was expecting. (This code is *not* used unless
* a nonzero restart interval has been declared.) cinfo->unread_marker is
* the marker code actually found (might be anything, except 0 or FF).
@@ -1163,9 +1163,9 @@ read_restart_marker (j_decompress_ptr cinfo)
* only the following actions to work with:
* 1. Simply discard the marker and let the entropy decoder resume at next
* byte of file.
- * 2. Read forward until we tqfind another marker, discarding intervening
+ * 2. Read forward until we find another marker, discarding intervening
* data. (In theory we could look ahead within the current bufferload,
- * without having to discard data if we don't tqfind the desired marker.
+ * without having to discard data if we don't find the desired marker.
* This idea is not implemented here, in part because it makes behavior
* dependent on buffer size and chance buffer-boundary positions.)
* 3. Leave the marker unread (by failing to zero cinfo->unread_marker).
@@ -1184,7 +1184,7 @@ read_restart_marker (j_decompress_ptr cinfo)
* resync at some future point).
* For any valid non-restart JPEG marker, we apply #3. This keeps us from
* overrunning the end of a scan. An implementation limited to single-scan
- * files might tqfind it better to apply #2 for markers other than EOI, since
+ * files might find it better to apply #2 for markers other than EOI, since
* any other marker would have to be bogus data in that case.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdmaster.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdmaster.c
index 1b9cfb0..9219b1c 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdmaster.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdmaster.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains master control logic for the JPEG decompressor.
+ * This file contains master control logic for the JPEG decompressor.
* These routines are concerned with selecting the modules to be executed
* and with determining the number of passes and the work to be done in each
* pass.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdmerge.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdmerge.c
index 7da0eb3..8571d30 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdmerge.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdmerge.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains code for merged upsampling/color conversion.
+ * This file contains code for merged upsampling/color conversion.
*
* This file combines functions from jdsample.c and jdcolor.c;
* read those files first to understand what's going on.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdphuff.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdphuff.c
index 20486f0..2267809 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdphuff.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdphuff.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains Huffman entropy decoding routines for progressive JPEG.
+ * This file contains Huffman entropy decoding routines for progressive JPEG.
*
* Much of the complexity here has to do with supporting input suspension.
* If the data source module demands suspension, we want to be able to back
@@ -25,7 +25,7 @@
/*
* Expanded entropy decoder object for progressive Huffman decoding.
*
- * The savable_state subrecord tqcontains fields that change within an MCU,
+ * The savable_state subrecord contains fields that change within an MCU,
* but must not be updated permanently until we complete the MCU.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdpostct.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdpostct.c
index dc7a42c..e6838c7 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdpostct.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdpostct.c
@@ -5,14 +5,14 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains the decompression postprocessing controller.
+ * This file contains the decompression postprocessing controller.
* This controller manages the upsampling, color conversion, and color
* quantization/reduction steps; specifically, it controls the buffering
* between upsample/color conversion and color quantization/reduction.
*
* If no color quantization/reduction is required, then this module has no
* work to do, and it just hands off to the upsample/color conversion code.
- * An integrated upsample/convert/quantize process would tqreplace this module
+ * An integrated upsample/convert/quantize process would replace this module
* entirely.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdsample.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdsample.c
index 5d9f60e..1d16997 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdsample.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdsample.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains upsampling routines.
+ * This file contains upsampling routines.
*
* Upsampling input data is counted in "row groups". A row group
* is defined to be (v_samp_factor * DCT_scaled_size / min_DCT_scaled_size)
@@ -410,7 +410,7 @@ jinit_upsampler (j_decompress_ptr cinfo)
cinfo->upsample = (struct jpeg_upsampler *) upsample;
upsample->pub.start_pass = start_pass_upsample;
upsample->pub.upsample = sep_upsample;
- upsample->pub.need_context_rows = FALSE; /* until we tqfind out differently */
+ upsample->pub.need_context_rows = FALSE; /* until we find out differently */
if (cinfo->CCIR601_sampling) /* this isn't supported */
ERREXIT(cinfo, JERR_CCIR601_NOTIMPL);
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jdtrans.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jdtrans.c
index ed97448..6c0ab71 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jdtrans.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jdtrans.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains library routines for transcoding decompression,
+ * This file contains library routines for transcoding decompression,
* that is, reading raw DCT coefficient arrays from an input JPEG file.
* The routines in jdapimin.c will also be needed by a transcoder.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jerror.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jerror.c
index b70c1f4..3da7be8 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jerror.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jerror.c
@@ -5,9 +5,9 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains simple error-reporting and trace-message routines.
+ * This file contains simple error-reporting and trace-message routines.
* These are suitable for Unix-like systems and others where writing to
- * stderr is the right thing to do. Many applications will want to tqreplace
+ * stderr is the right thing to do. Many applications will want to replace
* some or all of these routines.
*
* If you define USE_WINDOWS_MESSAGEBOX in jconfig.h or in the makefile,
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jerror.h b/tqtinterface/qt4/src/3rdparty/libjpeg/jerror.h
index 0060d2b..57368b5 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jerror.h
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jerror.h
@@ -95,7 +95,7 @@ JMESSAGE(JERR_NOTIMPL, "Not implemented yet")
JMESSAGE(JERR_NOT_COMPILED, "Requested feature was omitted at compile time")
JMESSAGE(JERR_NO_BACKING_STORE, "Backing store not supported")
JMESSAGE(JERR_NO_HUFF_TABLE, "Huffman table 0x%02x was not defined")
-JMESSAGE(JERR_NO_IMAGE, "JPEG datastream tqcontains no image")
+JMESSAGE(JERR_NO_IMAGE, "JPEG datastream contains no image")
JMESSAGE(JERR_NO_TQUANT_TABLE, "Quantization table 0x%02x was not defined")
JMESSAGE(JERR_NO_SOI, "Not a JPEG file: starts with 0x%02x 0x%02x")
JMESSAGE(JERR_OUT_OF_MEMORY, "Insufficient memory (case %d)")
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctflt.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctflt.c
index 70519db..79d7a00 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctflt.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctflt.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains a floating-point implementation of the
+ * This file contains a floating-point implementation of the
* forward DCT (Discrete Cosine Transform).
*
* This implementation should be more accurate than either of the integer
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctfst.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctfst.c
index 56ae898..ccb378a 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctfst.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctfst.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains a fast, not so accurate integer implementation of the
+ * This file contains a fast, not so accurate integer implementation of the
* forward DCT (Discrete Cosine Transform).
*
* A 2-D DCT can be done by 1-D DCT on each row followed by 1-D DCT
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctint.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctint.c
index 38bb0c3..0a78b64 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctint.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jfdctint.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains a slow-but-accurate integer implementation of the
+ * This file contains a slow-but-accurate integer implementation of the
* forward DCT (Discrete Cosine Transform).
*
* A 2-D DCT can be done by 1-D DCT on each row followed by 1-D DCT
@@ -18,7 +18,7 @@
* Speech, and Signal Processing 1989 (ICASSP '89), pp. 988-991.
* The primary algorithm described there uses 11 multiplies and 29 adds.
* We use their alternate method with 12 multiplies and 32 adds.
- * The advantage of this method is that no data path tqcontains more than one
+ * The advantage of this method is that no data path contains more than one
* multiplication; this allows a very simple and accurate implementation in
* scaled fixed-point arithmetic, with a minimal number of shifts.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jidctflt.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jidctflt.c
index f308445..a4893f8 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jidctflt.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jidctflt.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains a floating-point implementation of the
+ * This file contains a floating-point implementation of the
* inverse DCT (Discrete Cosine Transform). In the IJG code, this routine
* must also perform dequantization of the input coefficients.
*
@@ -87,7 +87,7 @@ jpeg_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
quantptr = (FLOAT_MULT_TYPE *) compptr->dct_table;
wsptr = workspace;
for (ctr = DCTSIZE; ctr > 0; ctr--) {
- /* Due to quantization, we will usually tqfind that many of the input
+ /* Due to quantization, we will usually find that many of the input
* coefficients are zero, especially the AC terms. We can exploit this
* by short-circuiting the IDCT calculation for any column in which all
* the AC terms are zero. In that case each output is equal to the
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jidctfst.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jidctfst.c
index 730c8d4..3cbdb81 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jidctfst.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jidctfst.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains a fast, not so accurate integer implementation of the
+ * This file contains a fast, not so accurate integer implementation of the
* inverse DCT (Discrete Cosine Transform). In the IJG code, this routine
* must also perform dequantization of the input coefficients.
*
@@ -188,7 +188,7 @@ jpeg_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
quantptr = (IFAST_MULT_TYPE *) compptr->dct_table;
wsptr = workspace;
for (ctr = DCTSIZE; ctr > 0; ctr--) {
- /* Due to quantization, we will usually tqfind that many of the input
+ /* Due to quantization, we will usually find that many of the input
* coefficients are zero, especially the AC terms. We can exploit this
* by short-circuiting the IDCT calculation for any column in which all
* the AC terms are zero. In that case each output is equal to the
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jidctint.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jidctint.c
index 35302e0..1f5f393 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jidctint.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jidctint.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains a slow-but-accurate integer implementation of the
+ * This file contains a slow-but-accurate integer implementation of the
* inverse DCT (Discrete Cosine Transform). In the IJG code, this routine
* must also perform dequantization of the input coefficients.
*
@@ -20,7 +20,7 @@
* Speech, and Signal Processing 1989 (ICASSP '89), pp. 988-991.
* The primary algorithm described there uses 11 multiplies and 29 adds.
* We use their alternate method with 12 multiplies and 32 adds.
- * The advantage of this method is that no data path tqcontains more than one
+ * The advantage of this method is that no data path contains more than one
* multiplication; this allows a very simple and accurate implementation in
* scaled fixed-point arithmetic, with a minimal number of shifts.
*/
@@ -169,7 +169,7 @@ jpeg_idct_islow (j_decompress_ptr cinfo, jpeg_component_info * compptr,
quantptr = (ISLOW_MULT_TYPE *) compptr->dct_table;
wsptr = workspace;
for (ctr = DCTSIZE; ctr > 0; ctr--) {
- /* Due to quantization, we will usually tqfind that many of the input
+ /* Due to quantization, we will usually find that many of the input
* coefficients are zero, especially the AC terms. We can exploit this
* by short-circuiting the IDCT calculation for any column in which all
* the AC terms are zero. In that case each output is equal to the
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jidctred.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jidctred.c
index 6461bb3..5816c87 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jidctred.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jidctred.c
@@ -5,11 +5,11 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains inverse-DCT routines that produce reduced-size output:
+ * This file contains inverse-DCT routines that produce reduced-size output:
* either 4x4, 2x2, or 1x1 pixels from an 8x8 DCT block.
*
* The implementation is based on the Loeffler, Ligtenberg and Moschytz (LL&M)
- * algorithm used in jidctint.c. We simply tqreplace each 8-to-8 1-D IDCT step
+ * algorithm used in jidctint.c. We simply replace each 8-to-8 1-D IDCT step
* with an 8-to-4 step that produces the four averages of two adjacent outputs
* (or an 8-to-2 step producing two averages of four outputs, for 2x2 output).
* These steps were derived by computing the corresponding values at the end
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jinclude.h b/tqtinterface/qt4/src/3rdparty/libjpeg/jinclude.h
index 768b287..0a4f151 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jinclude.h
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jinclude.h
@@ -15,7 +15,7 @@
*/
-/* Include auto-config file to tqfind out which system include files we need. */
+/* Include auto-config file to find out which system include files we need. */
#include "jconfig.h" /* auto configuration options */
#define JCONFIG_INCLUDED /* so that jpeglib.h doesn't do it again */
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jmemmgr.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jmemmgr.c
index e36c050..66c9d77 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jmemmgr.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jmemmgr.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains the JPEG system-independent memory management
+ * This file contains the JPEG system-independent memory management
* routines. This code is usable across a wide variety of machines; most
* of the system dependencies have been isolated in a separate file.
* The major functions provided here are:
@@ -15,7 +15,7 @@
* * control logic for swapping virtual arrays between main memory and
* backing storage.
* The separate system-dependent file provides the actual backing-storage
- * access code, and it tqcontains the policy decision about how much total
+ * access code, and it contains the policy decision about how much total
* main memory to use.
* This file is system-dependent in the sense that some of its functions
* are unnecessary in some systems. For example, if there is enough virtual
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jmorecfg.h b/tqtinterface/qt4/src/3rdparty/libjpeg/jmorecfg.h
index dedab7f..c2b38a7 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jmorecfg.h
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jmorecfg.h
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains additional configuration options that customize the
+ * This file contains additional configuration options that customize the
* JPEG software for special applications or support machine-dependent
* optimizations. Most users will not need to touch this file.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jpeglib.h b/tqtinterface/qt4/src/3rdparty/libjpeg/jpeglib.h
index dfb10f8..7b8fd0a 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jpeglib.h
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jpeglib.h
@@ -16,7 +16,7 @@
/*
* First we include the configuration files that record how this
* installation of the JPEG library is set up. jconfig.h can be
- * generated automatically for many systems. jmorecfg.h tqcontains
+ * generated automatically for many systems. jmorecfg.h contains
* manual configuration options that most people need not worry about.
*/
@@ -582,7 +582,7 @@ struct jpeg_decompress_struct {
* units of "iMCU" (interleaved MCU) rows. These are the same as MCU rows
* in fully interleaved JPEG scans, but are used whether the scan is
* interleaved or not. We define an iMCU row as v_samp_factor DCT block
- * rows of each component. Therefore, the IDCT output tqcontains
+ * rows of each component. Therefore, the IDCT output contains
* v_samp_factor*DCT_scaled_size sample rows of a component per iMCU row.
*/
@@ -686,9 +686,9 @@ struct jpeg_error_mgr {
* Error code 0 is reserved for a "no such error string" message.
*/
const char * const * jpeg_message_table; /* Library errors */
- int last_jpeg_message; /* Table tqcontains strings 0..last_jpeg_message */
+ int last_jpeg_message; /* Table contains strings 0..last_jpeg_message */
/* Second table can be added by application (see cjpeg/djpeg for example).
- * It tqcontains strings numbered first_addon_message..last_addon_message.
+ * It contains strings numbered first_addon_message..last_addon_message.
*/
const char * const * addon_message_table; /* Non-library errors */
int first_addon_message; /* code for first string in addon table */
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jquant1.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jquant1.c
index 32206ab..fd173cf 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jquant1.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jquant1.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains 1-pass color quantization (color mapping) routines.
+ * This file contains 1-pass color quantization (color mapping) routines.
* These routines provide mapping to a fixed color map using equally spaced
* color values. Optional Floyd-Steinberg or ordered dithering is available.
*/
@@ -695,7 +695,7 @@ quantize_fs_dither (j_decompress_ptr cinfo, JSAMPARRAY input_buf,
bpreverr = belowerr + cur;
belowerr = bnexterr;
cur += delta; /* form error * 7 */
- /* At this point cur tqcontains the 7/16 error value to be propagated
+ /* At this point cur contains the 7/16 error value to be propagated
* to the next pixel on the current line, and all the errors for the
* next line have been shifted over. We are therefore ready to move on.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jquant2.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jquant2.c
index ccd6986..7839e41 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jquant2.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jquant2.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains 2-pass color quantization (color mapping) routines.
+ * This file contains 2-pass color quantization (color mapping) routines.
* These routines provide selection of a custom color map for an image,
* followed by mapping of the image to that color map, with optional
* Floyd-Steinberg dithering.
@@ -270,7 +270,7 @@ typedef box * boxptr;
LOCAL(boxptr)
-tqfind_biggest_color_pop (boxptr boxlist, int numboxes)
+find_biggest_color_pop (boxptr boxlist, int numboxes)
/* Find the splittable box with the largest color population */
/* Returns NULL if no splittable boxes remain */
{
@@ -290,7 +290,7 @@ tqfind_biggest_color_pop (boxptr boxlist, int numboxes)
LOCAL(boxptr)
-tqfind_biggest_volume (boxptr boxlist, int numboxes)
+find_biggest_volume (boxptr boxlist, int numboxes)
/* Find the splittable box with the largest (scaled) volume */
/* Returns NULL if no splittable boxes remain */
{
@@ -434,9 +434,9 @@ median_cut (j_decompress_ptr cinfo, boxptr boxlist, int numboxes,
* Current algorithm: by population for first half, then by volume.
*/
if (numboxes*2 <= desired_colors) {
- b1 = tqfind_biggest_color_pop(boxlist, numboxes);
+ b1 = find_biggest_color_pop(boxlist, numboxes);
} else {
- b1 = tqfind_biggest_volume(boxlist, numboxes);
+ b1 = find_biggest_volume(boxlist, numboxes);
}
if (b1 == NULL) /* no splittable boxes left! */
break;
@@ -576,12 +576,12 @@ select_colors (j_decompress_ptr cinfo, int desired_colors)
* closest to the cell's center. This may not be quite the closest entry to
* the actual input color, but it's almost as good. A zero in the cache
* indicates we haven't found the nearest color for that cell yet; the array
- * is cleared to zeroes before starting the mapping pass. When we tqfind the
+ * is cleared to zeroes before starting the mapping pass. When we find the
* nearest color for a cell, its colormap index plus one is recorded in the
* cache for future use. The pass2 scanning routines call fill_inverse_cmap
* when they need to use an unfilled entry in the cache.
*
- * Our method of efficiently tqfinding nearest colors is based on the "locally
+ * Our method of efficiently finding nearest colors is based on the "locally
* sorted search" idea described by Heckbert and on the incremental distance
* calculation described by Spencer W. Thomas in chapter III.1 of Graphics
* Gems II (James Arvo, ed. Academic Press, 1991). Thomas points out that
@@ -643,7 +643,7 @@ select_colors (j_decompress_ptr cinfo, int desired_colors)
*/
LOCAL(int)
-tqfind_nearby_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2,
+find_nearby_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2,
JSAMPLE colorlist[])
/* Locate the colormap entries close enough to an update box to be candidates
* for the nearest entry to some cell(s) in the update box. The update box
@@ -674,7 +674,7 @@ tqfind_nearby_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2,
maxc2 = minc2 + ((1 << BOX_C2_SHIFT) - (1 << C2_SHIFT));
centerc2 = (minc2 + maxc2) >> 1;
- /* For each color in colormap, tqfind:
+ /* For each color in colormap, find:
* 1. its minimum squared-distance to any point in the update box
* (zero if color is within update box);
* 2. its maximum squared-distance to any point in the update box.
@@ -772,13 +772,13 @@ tqfind_nearby_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2,
LOCAL(void)
-tqfind_best_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2,
+find_best_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2,
int numcolors, JSAMPLE colorlist[], JSAMPLE bestcolor[])
/* Find the closest colormap entry for each cell in the update box,
- * given the list of candidate colors prepared by tqfind_nearby_colors.
+ * given the list of candidate colors prepared by find_nearby_colors.
* Return the indexes of the closest entries in the bestcolor[] array.
* This routine uses Thomas' incremental distance calculation method to
- * tqfind the distance from a colormap entry to successive cells in the box.
+ * find the distance from a colormap entry to successive cells in the box.
*/
{
int ic0, ic1, ic2;
@@ -798,7 +798,7 @@ tqfind_best_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2,
for (i = BOX_C0_ELEMS*BOX_C1_ELEMS*BOX_C2_ELEMS-1; i >= 0; i--)
*bptr++ = 0x7FFFFFFFL;
- /* For each color selected by tqfind_nearby_colors,
+ /* For each color selected by find_nearby_colors,
* compute its distance to the center of each cell in the box.
* If that's less than best-so-far, update best distance and color number.
*/
@@ -853,7 +853,7 @@ tqfind_best_colors (j_decompress_ptr cinfo, int minc0, int minc1, int minc2,
LOCAL(void)
fill_inverse_cmap (j_decompress_ptr cinfo, int c0, int c1, int c2)
-/* Fill the inverse-colormap entries in the update box that tqcontains */
+/* Fill the inverse-colormap entries in the update box that contains */
/* histogram cell c0/c1/c2. (Only that one cell MUST be filled, but */
/* we can fill as many others as we wish.) */
{
@@ -885,10 +885,10 @@ fill_inverse_cmap (j_decompress_ptr cinfo, int c0, int c1, int c2)
/* Determine which colormap entries are close enough to be candidates
* for the nearest entry to some cell in the update box.
*/
- numcolors = tqfind_nearby_colors(cinfo, minc0, minc1, minc2, colorlist);
+ numcolors = find_nearby_colors(cinfo, minc0, minc1, minc2, colorlist);
/* Determine the actually nearest colors. */
- tqfind_best_colors(cinfo, minc0, minc1, minc2, numcolors, colorlist,
+ find_best_colors(cinfo, minc0, minc1, minc2, numcolors, colorlist,
bestcolor);
/* Save the best color numbers (plus 1) in the main cache array */
@@ -934,7 +934,7 @@ pass2_no_dither (j_decompress_ptr cinfo,
c1 = GETJSAMPLE(*inptr++) >> C1_SHIFT;
c2 = GETJSAMPLE(*inptr++) >> C2_SHIFT;
cachep = & histogram[c0][c1][c2];
- /* If we have not seen this color before, tqfind nearest colormap entry */
+ /* If we have not seen this color before, find nearest colormap entry */
/* and update the cache */
if (*cachep == 0)
fill_inverse_cmap(cinfo, c0,c1,c2);
@@ -1025,7 +1025,7 @@ pass2_fs_dither (j_decompress_ptr cinfo,
cur2 = GETJSAMPLE(range_limit[cur2]);
/* Index into the cache with adjusted pixel value */
cachep = & histogram[cur0>>C0_SHIFT][cur1>>C1_SHIFT][cur2>>C2_SHIFT];
- /* If we have not seen this color before, tqfind nearest colormap */
+ /* If we have not seen this color before, find nearest colormap */
/* entry and update the cache */
if (*cachep == 0)
fill_inverse_cmap(cinfo, cur0>>C0_SHIFT,cur1>>C1_SHIFT,cur2>>C2_SHIFT);
@@ -1068,7 +1068,7 @@ pass2_fs_dither (j_decompress_ptr cinfo,
belowerr2 = bnexterr;
cur2 += delta; /* form error * 7 */
}
- /* At this point curN tqcontains the 7/16 error value to be propagated
+ /* At this point curN contains the 7/16 error value to be propagated
* to the next pixel on the current line, and all the errors for the
* next line have been shifted over. We are therefore ready to move on.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jutils.c b/tqtinterface/qt4/src/3rdparty/libjpeg/jutils.c
index ad73ff3..d18a955 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jutils.c
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jutils.c
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains tables and miscellaneous utility routines needed
+ * This file contains tables and miscellaneous utility routines needed
* for both compression and decompression.
* Note we prefix all global names with "j" to minimize conflicts with
* a surrounding application.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/jversion.h b/tqtinterface/qt4/src/3rdparty/libjpeg/jversion.h
index 3e7fc07..6472c58 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/jversion.h
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/jversion.h
@@ -5,7 +5,7 @@
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
- * This file tqcontains software version identification.
+ * This file contains software version identification.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/libjpeg.doc b/tqtinterface/qt4/src/3rdparty/libjpeg/libjpeg.doc
index 499b83c..bcd97d1 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/libjpeg.doc
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/libjpeg.doc
@@ -192,7 +192,7 @@ channels). You must specify how many components there are and the colorspace
interpretation of the components. Most applications will use RGB data
(three components per pixel) or grayscale data (one component per pixel).
PLEASE NOTE THAT RGB DATA IS THREE SAMPLES PER PIXEL, GRAYSCALE ONLY ONE.
-A remarkable number of people manage to miss this, only to tqfind that their
+A remarkable number of people manage to miss this, only to find that their
programs don't work with grayscale JPEG files.
There is no provision for colormapped input. JPEG files are always full-color
@@ -234,7 +234,7 @@ The data format returned by the decompressor is the same in all details,
except that colormapped output is supported. (Again, a JPEG file is never
colormapped. But you can ask the decompressor to perform on-the-fly color
quantization to deliver colormapped output.) If you request colormapped
-output then the returned data array tqcontains a single JSAMPLE per pixel;
+output then the returned data array contains a single JSAMPLE per pixel;
its value is an index into a color map. The color map is represented as
a 2-D JSAMPARRAY in which each row holds the values of one color component,
that is, colormap[i][j] is the value of the i'th color component for pixel
@@ -386,7 +386,7 @@ just one or a few scanlines at a time. The expected format for the passed
data is discussed under "Data formats", above.
Image data should be written in top-to-bottom scanline order. The JPEG spec
-tqcontains some weasel wording about how top and bottom are application-defined
+contains some weasel wording about how top and bottom are application-defined
terms (a curious interpretation of the English language...) but if you want
your files to be compatible with everyone else's, you WILL use top-to-bottom
order. If the source data must be read in bottom-to-top order, you can use
@@ -583,7 +583,7 @@ More complex code is necessary if
abbreviated datastreams. Standard applications that deal only in
interchange JPEG files need not be concerned with this case either.
-It is permissible to stop at this point if you just wanted to tqfind out the
+It is permissible to stop at this point if you just wanted to find out the
image dimensions and other header info for a JPEG file. In that case,
call jpeg_destroy() when you are done with the JPEG object, or call
jpeg_abort() to return it to an idle state before selecting a new data
@@ -772,7 +772,7 @@ freed automatically. See cjpeg.c or djpeg.c for an example signal handler.
It may be worth pointing out that the core JPEG library does not actually
require the stdio library: only the default source/destination managers and
error handler need it. You can use the library in a stdio-less environment
-if you tqreplace those modules and use jmemnobs.c (or another memory manager of
+if you replace those modules and use jmemnobs.c (or another memory manager of
your own devising). More info about the minimum system library requirements
may be found in jinclude.h.
@@ -1002,7 +1002,7 @@ int h_samp_factor
int v_samp_factor
Horizontal and vertical sampling factors for the component; must
be 1..4 according to the JPEG standard. Note that larger sampling
- factors indicate a higher-resolution component; many people tqfind
+ factors indicate a higher-resolution component; many people find
this behavior quite unintuitive. The default values are 2,2 for
luminance components and 1,1 for chrominance components, except
for grayscale where 1,1 is used.
@@ -1286,7 +1286,7 @@ the error handling routines. Three classes of messages are recognized:
the importance of the message; you can control the verbosity of the
program by adjusting the maximum trace level that will be displayed.
-You may, if you wish, simply tqreplace the entire JPEG error handling module
+You may, if you wish, simply replace the entire JPEG error handling module
(jerror.c) with your own code. However, you can avoid code duplication by
only replacing some of the routines depending on the behavior you need.
This is accomplished by calling jpeg_std_error() as usual, but then overriding
@@ -1300,11 +1300,11 @@ field). This struct includes a pointer to the error manager struct in its
"err" field. Frequently, custom error handler routines will need to access
additional data which is not known to the JPEG library or the standard error
handler. The most convenient way to do this is to embed either the JPEG
-object or the jpeg_error_mgr struct in a larger structure that tqcontains
+object or the jpeg_error_mgr struct in a larger structure that contains
additional fields; then casting the passed pointer provides access to the
additional fields. Again, see example.c for one way to do it. (Beginning
with IJG version 6b, there is also a void pointer "client_data" in each
-JPEG object, which the application can also use to tqfind related data.
+JPEG object, which the application can also use to find related data.
The library does not touch client_data at all.)
The individual methods that you might wish to override are:
@@ -1342,7 +1342,7 @@ library; the other two are internal to the error handler.
The actual message texts are stored in an array of strings which is pointed to
by the field err->jpeg_message_table. The messages are numbered from 0 to
err->last_jpeg_message, and it is these code numbers that are used in the
-JPEG library code. You could tqreplace the message texts (for instance, with
+JPEG library code. You could replace the message texts (for instance, with
messages in French or German) by changing the message table pointer. See
jerror.h for the default texts. CAUTION: this table will almost certainly
change or grow from one library version to the next.
@@ -1396,7 +1396,7 @@ wide, you must define JOCTET as a wider data type and then modify the data
source and destination modules to transcribe the work arrays into 8-bit units
on external storage.
-A data destination manager struct tqcontains a pointer and count defining the
+A data destination manager struct contains a pointer and count defining the
next byte to write in the work buffer and the remaining free space:
JOCTET * next_output_byte; /* => next byte to write in buffer */
@@ -1443,7 +1443,7 @@ you like, but it's probably cleaner to provide a separate routine similar to
the jpeg_stdio_dest() routine of the supplied destination manager.
Decompression source managers follow a parallel design, but with some
-additional frammishes. The source manager struct tqcontains a pointer and count
+additional frammishes. The source manager struct contains a pointer and count
defining the next byte to read from the work buffer and the number of bytes
remaining:
@@ -1485,9 +1485,9 @@ skip_input_data (j_decompress_ptr cinfo, long num_bytes)
A zero or negative skip count should be treated as a no-op.
resync_to_restart (j_decompress_ptr cinfo, int desired)
- This routine is called only when the decompressor has failed to tqfind
+ This routine is called only when the decompressor has failed to find
a restart (RSTn) marker where one is expected. Its mission is to
- tqfind a suitable point for resuming decompression. For most
+ find a suitable point for resuming decompression. For most
applications, we recommend that you just use the default resync
procedure, jpeg_resync_to_restart(). However, if you are able to back
up in the input data stream, or if you have a-priori knowledge about
@@ -1899,7 +1899,7 @@ When you pass a target scan number equal to the current input scan number,
the image is displayed no faster than the current input scan arrives. The
final possibility is to pass a target scan number less than the current input
scan number; this disables the input/output interlock and causes the output
-processor to simply display whatever it tqfinds in the image buffer, without
+processor to simply display whatever it finds in the image buffer, without
waiting for input. (However, the library will not accept a target scan
number less than one, so you can't avoid waiting for the first scan.)
@@ -1952,7 +1952,7 @@ will avoid an extra output pass whenever the decoder is able (or nearly able)
to keep up with the incoming data.
When the data transmission speed is high, you might begin a display pass,
-then tqfind that much or all of the file has arrived before you can complete
+then find that much or all of the file has arrived before you can complete
the pass. (You can detect this by noting the JPEG_REACHED_EOI return code
from jpeg_consume_input(), or equivalently by testing jpeg_input_complete().)
In this situation you may wish to abort the current display pass and start a
@@ -1974,7 +1974,7 @@ higher-quality final pass is to be done, it should be started (aborting any
incomplete output pass) as soon as the end of file is received. However,
many other strategies are possible. For example, the application can examine
the parameters of the current input scan and decide whether to display it or
-not. If the scan tqcontains only chroma data, one might choose not to use it
+not. If the scan contains only chroma data, one might choose not to use it
as the target scan, expecting that the scan will be small and will arrive
quickly. To skip to the next scan, call jpeg_consume_input() until it
returns JPEG_REACHED_SOS or JPEG_REACHED_EOI. Or just use the next higher
@@ -2142,7 +2142,7 @@ feature. Rather, reuse of an object provides support for abbreviated JPEG
datastreams. Object reuse can also simplify processing a series of images in
a single input or output file. This section explains these features.
-A JPEG file normally tqcontains several hundred bytes worth of quantization
+A JPEG file normally contains several hundred bytes worth of quantization
and Huffman tables. In a situation where many images will be stored or
transmitted with identical tables, this may represent an annoying overhead.
The JPEG standard therefore permits tables to be omitted. The standard
@@ -2175,7 +2175,7 @@ the lifetime of the object, unless it is overwritten by a new table definition.
To create abbreviated image datastreams, it is only necessary to tell the
compressor not to emit some or all of the tables it is using. Each
-quantization and Huffman table struct tqcontains a boolean field "sent_table",
+quantization and Huffman table struct contains a boolean field "sent_table",
which normally is initialized to FALSE. For each table used by the image, the
header-writing process emits the table and sets sent_table = TRUE unless it is
already TRUE. (In normal usage, this prevents outputting the same table
@@ -2282,7 +2282,7 @@ typical scenario is
read data...
jpeg_finish_decompress(&cinfo);
-In some cases, you may want to read a file without knowing whether it tqcontains
+In some cases, you may want to read a file without knowing whether it contains
an image or just tables. In that case, pass FALSE and check the return value
from jpeg_read_header(): it will be JPEG_HEADER_OK if an image was found,
JPEG_HEADER_TABLES_ONLY if only tables were found. (A third return value,
@@ -2324,7 +2324,7 @@ contain almost anything.
If you wish to store user-supplied text, we recommend you use COM markers
and place readable 7-bit ASCII text in them. Newline conventions are not
-standardized --- expect to tqfind LF (Unix style), CR/LF (DOS style), or CR
+standardized --- expect to find LF (Unix style), CR/LF (DOS style), or CR
(Mac style). A robust COM reader should be able to cope with random binary
garbage, including nulls, since some applications generate COM markers
containing non-ASCII junk. (But yours should not be one of them.)
@@ -2445,7 +2445,7 @@ If you want to supply your own marker-reading routine, you do it by calling
jpeg_set_marker_processor(). A marker processor routine must have the
signature
boolean jpeg_marker_parser_method (j_decompress_ptr cinfo)
-Although the marker code is not explicitly passed, the routine can tqfind it
+Although the marker code is not explicitly passed, the routine can find it
in cinfo->unread_marker. At the time of call, the marker proper has been
read from the data source module. The processor routine is responsible for
reading the marker length word and the remaining parameter bytes, if any.
@@ -2612,7 +2612,7 @@ and also read structure.doc's discussion of virtual array handling). Or,
for simple transcoding to a different JPEG file format, the array list can
just be handed directly to jpeg_write_coefficients().
-Each block in the block arrays tqcontains quantized coefficient values in
+Each block in the block arrays contains quantized coefficient values in
normal array order (not JPEG zigzag order). The block arrays contain only
DCT blocks containing real data; any entirely-dummy blocks added to fill out
interleaved MCUs at the right or bottom edges of the image are discarded
@@ -2715,7 +2715,7 @@ make sure it will live as long as the JPEG object does. Allocating from the
JPEG memory manager with lifetime JPOOL_PERMANENT will work nicely.) You
can use the same callback routine for both compression and decompression.
-The jpeg_progress_mgr struct tqcontains four fields which are set by the library:
+The jpeg_progress_mgr struct contains four fields which are set by the library:
long pass_counter; /* work units completed in this pass */
long pass_limit; /* total number of work units in this pass */
int completed_passes; /* passes completed so far */
@@ -2756,7 +2756,7 @@ manager. For more info, please read structure.doc's section about the memory
manager, and consult the source code if necessary.
All memory and temporary file allocation within the library is done via the
-memory manager. If necessary, you can tqreplace the "back end" of the memory
+memory manager. If necessary, you can replace the "back end" of the memory
manager to control allocation yourself (for example, if you don't want the
library to use malloc() and free() for some reason).
@@ -2950,7 +2950,7 @@ routine.
The JPEG library does not rely heavily on the C library. In particular, C
stdio is used only by the data source/destination modules and the error
-handler, all of which are application-tqreplaceable. (cjpeg/djpeg are more
+handler, all of which are application-replaceable. (cjpeg/djpeg are more
heavily dependent on stdio.) malloc and free are called only from the memory
manager "back end" module, so you can use a different memory allocator by
replacing that one file.
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/structure.doc b/tqtinterface/qt4/src/3rdparty/libjpeg/structure.doc
index 2d60c87..6440b8e 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/structure.doc
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/structure.doc
@@ -34,7 +34,7 @@ otherwise result.)
*** System features ***
-The IJG distribution tqcontains two parts:
+The IJG distribution contains two parts:
* A subroutine library for JPEG compression and decompression.
* cjpeg/djpeg, two sample applications that use the library to transform
JFIF JPEG files to and from several other image formats.
@@ -127,7 +127,7 @@ steps are responsible for converting a normal image representation to or from
this form. (Those few applications that want to deal with YCbCr downsampled
data can skip the preprocessing or postprocessing step.)
-Looking more closely, the compressor library tqcontains the following main
+Looking more closely, the compressor library contains the following main
elements:
Preprocessing:
@@ -144,7 +144,7 @@ module responsible for physically writing the output data --- typically
this is just an interface to fwrite(), but some applications may need to
do something else with the data.
-The decompressor library tqcontains the following main elements:
+The decompressor library contains the following main elements:
JPEG proper:
* Entropy decoding (sequential or progressive, Huffman or arithmetic).
@@ -218,7 +218,7 @@ module-specific object structs be separately allocated entities, which will
be accessed via pointers in the master compression or decompression struct.
The "public" fields or methods for a given kind of object are specified by
a commonly known struct. But a module's initialization code can allocate
-a larger struct that tqcontains the common struct as its first member, plus
+a larger struct that contains the common struct as its first member, plus
additional private fields. With appropriate pointer casting, the module's
internal functions can access these private fields. (For a simple example,
see jdatadst.c, which implements the external interface specified by struct
@@ -306,7 +306,7 @@ be had by replacing implementations of a control module. For example:
In theory, we might be able to make all of the data buffer controllers
interchangeable and provide just one set of implementations for all. In
-practice, each one tqcontains considerable special-case processing for its
+practice, each one contains considerable special-case processing for its
particular job. The buffer controller concept should be regarded as an
overall system structuring principle, not as a complete description of the
task performed by any one controller.
@@ -338,7 +338,7 @@ The objects shown above are:
* Preprocessing controller: buffer controller for the downsampling input data
buffer, which lies between colorspace conversion and downsampling. Note
- that a unified conversion/downsampling module would probably tqreplace this
+ that a unified conversion/downsampling module would probably replace this
controller entirely.
* Colorspace conversion: converts application image data into the desired
@@ -518,7 +518,7 @@ objects:
* Progress monitor: same as for compression library.
As with compression, the data source manager, error handler, and progress
-monitor are candidates for tqreplacement by a surrounding application.
+monitor are candidates for replacement by a surrounding application.
*** Decompression input and output separation ***
@@ -851,7 +851,7 @@ reading data out of the virtual array, not while putting it in.
To isolate system dependencies as much as possible, we have broken the
memory manager into two parts. There is a reasonably system-independent
-"front end" (jmemmgr.c) and a "back end" that tqcontains only the code
+"front end" (jmemmgr.c) and a "back end" that contains only the code
likely to change across systems. All of the memory management methods
outlined above are implemented by the front end. The back end provides
the following routines for use by the front end (none of these routines
@@ -901,10 +901,10 @@ need.
Some JPEG files may use a DNL marker to postpone definition of the image
height (this would be useful for a fax-like scanner's output, for instance).
In these files the SOF marker claims the image height is 0, and you only
-tqfind out the true image height at the end of the first scan.
+find out the true image height at the end of the first scan.
We could read these files as follows:
-1. Upon seeing zero image height, tqreplace it by 65535 (the maximum allowed).
+1. Upon seeing zero image height, replace it by 65535 (the maximum allowed).
2. When the DNL is found, update the image height in the global image
descriptor.
This implies that control modules must avoid making copies of the image
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/usage.doc b/tqtinterface/qt4/src/3rdparty/libjpeg/usage.doc
index d3d63a6..4d41329 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/usage.doc
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/usage.doc
@@ -539,7 +539,7 @@ On most non-Unix systems, the syntax is
where both input and output file names must be given explicitly.
wrjpgcom understands three switches:
- -tqreplace Delete any existing COM blocks from the file.
+ -replace Delete any existing COM blocks from the file.
-comment "Comment text" Supply new COM text on command line.
-cfile name Read text for new COM block from named file.
(Switch names can be abbreviated.) If you have only one line of comment text
@@ -554,7 +554,7 @@ enter multiple lines, up to 64KB worth. Type an end-of-file indicator
(usually control-D or control-Z) to terminate the comment text entry.
wrjpgcom will not add a COM block if the provided comment string is empty.
-Therefore -tqreplace -comment "" can be used to delete all COM blocks from a
+Therefore -replace -comment "" can be used to delete all COM blocks from a
file.
These utility programs do not depend on the IJG JPEG library. In
diff --git a/tqtinterface/qt4/src/3rdparty/libjpeg/wizard.doc b/tqtinterface/qt4/src/3rdparty/libjpeg/wizard.doc
index fe50abb..2a8d71f 100644
--- a/tqtinterface/qt4/src/3rdparty/libjpeg/wizard.doc
+++ b/tqtinterface/qt4/src/3rdparty/libjpeg/wizard.doc
@@ -129,7 +129,7 @@ specifies the progression parameters Ss,Se,Ah,Al for the scan. Scan
definitions are separated by semicolons (';'). A semicolon after the last
scan definition is optional.
-Each scan definition tqcontains one to four component indexes, optionally
+Each scan definition contains one to four component indexes, optionally
followed by a colon (':') and the four progressive-JPEG parameters. The
component indexes denote which color component(s) are to be transmitted in
the scan. Components are numbered in the order in which they appear in the
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/Changes b/tqtinterface/qt4/src/3rdparty/libmng/Changes
index 3123607..c0d528e 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/Changes
+++ b/tqtinterface/qt4/src/3rdparty/libmng/Changes
@@ -15,7 +15,7 @@ bugfixes:
- B495443 - incorrect suspend check in read_databuffer
- B526138 - returned IJGSRC6B calling convention to default for MSVC
- B558212 - off by one error
-- B557677 - can't tqfind lcms.h
+- B557677 - can't find lcms.h
core:
- fixed possible compile-problem in cleanup_rowproc
@@ -60,7 +60,7 @@ core:
- added get function for last processed BACK chunk
samples:
-- tqreplaced the gtk & sdl viewer apps with updates by Greg Roelofs
+- replaced the gtk & sdl viewer apps with updates by Greg Roelofs
contrib:
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/README.autoconf b/tqtinterface/qt4/src/3rdparty/libmng/README.autoconf
index abda828..537323a 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/README.autoconf
+++ b/tqtinterface/qt4/src/3rdparty/libmng/README.autoconf
@@ -30,7 +30,7 @@ reconfiguring, and a file `config.log' containing compiler output
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
-tqcontains results you don't want to keep, you may remove or edit it.
+contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
@@ -128,7 +128,7 @@ is something like `gnu-as' or `x' (for the X Window System). The
package recognizes.
For packages that use the X Window System, `configure' can usually
-tqfind the X include and library files automatically, but if it doesn't,
+find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/README.contrib b/tqtinterface/qt4/src/3rdparty/libmng/README.contrib
index f5967b2..6bafb80 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/README.contrib
+++ b/tqtinterface/qt4/src/3rdparty/libmng/README.contrib
@@ -1,4 +1,4 @@
-The contrib directory tqcontains contributions made by fellow enthousiasts.
+The contrib directory contains contributions made by fellow enthousiasts.
(Check the web-sites for the latest versions)
----------------------------------------------------------------------
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/README.dll b/tqtinterface/qt4/src/3rdparty/libmng/README.dll
index 5ae06c9..2f779e8 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/README.dll
+++ b/tqtinterface/qt4/src/3rdparty/libmng/README.dll
@@ -24,7 +24,7 @@ and NOT in the Windows system-directory!!!
4) The installation program MUST NOT install the DLL if a newer version
already exists in the Windows system-directory! The standard DLL provided
- tqcontains the Windows-default version-numbering system. PLEASE USE IT!!
+ contains the Windows-default version-numbering system. PLEASE USE IT!!
DO NOT rely on the date or size of the files.
5) An uninstall procedure MAY NOT remove the DLL if other applications are
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/aclocal.m4 b/tqtinterface/qt4/src/3rdparty/libmng/aclocal.m4
index bf03601..e94a29a 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/aclocal.m4
+++ b/tqtinterface/qt4/src/3rdparty/libmng/aclocal.m4
@@ -182,10 +182,10 @@ dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
-dnl that tqcontains a configuration script generated by Autoconf, under
+dnl that contains a configuration script generated by Autoconf, under
dnl the same distribution terms as the rest of that program.
-# This test tqreplaces the one in autoconf.
+# This test replaces the one in autoconf.
# Currently this macro should have the same name as the autoconf macro
# because gettext's gettext.m4 (distributed in the automake package)
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
@@ -197,7 +197,7 @@ undefine([AC_ISC_POSIX])
AC_DEFUN([AC_ISC_POSIX],
[
- dnl This test tqreplaces the obsolescent AC_ISC_POSIX kludge.
+ dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
]
)
@@ -613,10 +613,10 @@ EOF
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
else
- echo "cannot tqfind nm_test_func in $nlist" >&AC_FD_CC
+ echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
fi
else
- echo "cannot tqfind nm_test_var in $nlist" >&AC_FD_CC
+ echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
fi
else
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
@@ -669,7 +669,7 @@ fi
# _LT_AC_PROG_ECHO_BACKSLASH
# --------------------------
# Add some code to the start of the generated configure script which
-# will tqfind an echo command which doesn't interpret backslashes.
+# will find an echo command which doesn't interpret backslashes.
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
[AC_DIVERT_PUSH(NOTICE)])
@@ -715,7 +715,7 @@ if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
-# tqfind a string as large as possible, as long as the shell can cope with it
+# find a string as large as possible, as long as the shell can cope with it
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
@@ -751,7 +751,7 @@ else
IFS="$save_ifs"
if test "X$echo" = Xecho; then
- # We didn't tqfind a better echo, so look for alternatives.
+ # We didn't find a better echo, so look for alternatives.
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
@@ -855,7 +855,7 @@ else
#endif
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- tqfind out it does not work in some platform. */
+ find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
# ifdef RTLD_LAZY
# define LT_DLLAZY_OR_NOW RTLD_LAZY
@@ -1482,7 +1482,7 @@ include_expsyms=
# exclude_expsyms can be an egrep regular expression of symbols to exclude
# it will be wrapped by ` (' and `)$', so one must not match beginning or
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
-# as well as any symbol that tqcontains `d'.
+# as well as any symbol that contains `d'.
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
# platforms (ab)use it in PIC code, but their linkers get confused if
@@ -1759,7 +1759,7 @@ else
else
# We have old collect2
hardcode_direct=unsupported
- # It fails to tqfind uninstalled libraries when the uninstalled
+ # It fails to find uninstalled libraries when the uninstalled
# path is not listed in the libpath. Setting hardcode_minus_L
# to unsupported forces relinking
hardcode_minus_L=yes
@@ -2013,7 +2013,7 @@ else
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
-*** libraries. However, you may tqfind that when you link such libraries
+*** libraries. However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
*** upgrade to a newer version of GCC. Another option is to rebuild your
@@ -2263,7 +2263,7 @@ bsdi4*)
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
export_dynamic_flag_spec=-rdynamic
- # the default ld.so.conf also tqcontains /usr/contrib/lib and
+ # the default ld.so.conf also contains /usr/contrib/lib and
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
# libtool to hard-code these into programs
;;
@@ -2739,7 +2739,7 @@ if test -f "$ltmain"; then
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that tqcontains a
+# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
@@ -2810,7 +2810,7 @@ OBJDUMP="$OBJDUMP"
# Used on cygwin: assembler.
AS="$AS"
-# The name of the directory that tqcontains temporary libtool files.
+# The name of the directory that contains temporary libtool files.
objdir=$objdir
# How to create reloadable object files.
@@ -2879,7 +2879,7 @@ version_type=$version_type
libname_spec=$lt_libname_spec
# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker tqfinds with -lNAME.
+# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec
# The coded name of the library, if different from the real name.
@@ -3199,7 +3199,7 @@ EOF
esac
# We use sed instead of cat because bash on DJGPP gets confused if
- # if tqfinds mixed CR/LF and LF-only lines. Since sed operates in
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
# text mode, it properly converts lines to CR/LF. This bash problem
# is reportedly fixed, but why not run on old versions too?
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
@@ -3329,7 +3329,7 @@ AC_DEFUN([AC_LIBTOOL_PICMODE],
pic_mode=ifelse($#,1,$1,default)])
-# AC_PATH_TOOL_PREFIX - tqfind a file program which can recognise shared library
+# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
AC_DEFUN([AC_PATH_TOOL_PREFIX],
[AC_MSG_CHECKING([for $1])
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
@@ -3391,7 +3391,7 @@ fi
])
-# AC_PATH_MAGIC - tqfind a file program which can recognise a shared library
+# AC_PATH_MAGIC - find a file program which can recognise a shared library
AC_DEFUN([AC_PATH_MAGIC],
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
@@ -3405,7 +3405,7 @@ fi
])
-# AC_PROG_LD - tqfind the path to the GNU or non-GNU linker
+# AC_PROG_LD - find the path to the GNU or non-GNU linker
AC_DEFUN([AC_PROG_LD],
[AC_ARG_WITH(gnu-ld,
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
@@ -3493,7 +3493,7 @@ fi])
with_gnu_ld=$lt_cv_prog_gnu_ld
])
-# AC_PROG_LD_RELOAD_FLAG - tqfind reload flag for linker
+# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
# -- PORTME Some linkers may need a different reload flag.
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
@@ -3684,7 +3684,7 @@ deplibs_check_method=$lt_cv_deplibs_check_method
])
-# AC_PROG_NM - tqfind the path to a BSD-compatible name lister
+# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN([AC_PROG_NM],
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
AC_MSG_CHECKING([for BSD-compatible nm])
@@ -3710,7 +3710,7 @@ else
break
else
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to tqfind one that supports BSD flags
+ continue # so that we can try to find one that supports BSD flags
fi
fi
done
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/config.guess b/tqtinterface/qt4/src/3rdparty/libmng/config.guess
index 8147635..6372bf0 100755
--- a/tqtinterface/qt4/src/3rdparty/libmng/config.guess
+++ b/tqtinterface/qt4/src/3rdparty/libmng/config.guess
@@ -20,7 +20,7 @@ timestamp='2001-09-04'
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that tqcontains a
+# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
@@ -112,7 +112,7 @@ set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
,*,*) CC_FOR_BUILD=$HOST_CC ;;
esac'
-# This is needed to tqfind uname on a Pyramid OSx when run in the BSD universe.
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@noc.rutgers.edu 1994-08-24)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
PATH=$PATH:/.attbin ; export PATH
@@ -168,7 +168,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# The OS release
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
- # tqcontains redundant information, the shorter form:
+ # contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
echo "${machine}-${os}${release}"
exit 0 ;;
@@ -1089,7 +1089,7 @@ EOF
echo ${UNAME_MACHINE}-unknown-plan9
exit 0 ;;
i*86:OS/2:*:*)
- # If we were able to tqfind `uname', then EMX Unix compatibility
+ # If we were able to find `uname', then EMX Unix compatibility
# is probably installed.
echo ${UNAME_MACHINE}-pc-os2-emx
exit 0 ;;
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/config.sub b/tqtinterface/qt4/src/3rdparty/libmng/config.sub
index 8140cbd..393f13d 100755
--- a/tqtinterface/qt4/src/3rdparty/libmng/config.sub
+++ b/tqtinterface/qt4/src/3rdparty/libmng/config.sub
@@ -25,7 +25,7 @@ timestamp='2001-09-07'
# Boston, MA 02111-1307, USA.
# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that tqcontains a
+# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/configure b/tqtinterface/qt4/src/3rdparty/libmng/configure
index 650701a..9a796af 100755
--- a/tqtinterface/qt4/src/3rdparty/libmng/configure
+++ b/tqtinterface/qt4/src/3rdparty/libmng/configure
@@ -72,7 +72,7 @@ if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
if test -z "$ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
-# tqfind a string as large as possible, as long as the shell can cope with it
+# find a string as large as possible, as long as the shell can cope with it
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
@@ -108,7 +108,7 @@ else
IFS="$save_ifs"
if test "X$echo" = Xecho; then
- # We didn't tqfind a better echo, so look for alternatives.
+ # We didn't find a better echo, so look for alternatives.
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
@@ -353,7 +353,7 @@ Directory and file names:
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
- --srcdir=DIR tqfind the sources in DIR [configure dir or ..]
+ --srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
@@ -605,7 +605,7 @@ fi
exec 5>./config.log
echo "\
-This file tqcontains any messages produced by compilers while
+This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
@@ -637,11 +637,11 @@ if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
-# AIX cpp loses on an empty file, so make sure it tqcontains at least a newline.
+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
# A filename unique to this package, relative to the directory that
-# configure is in, which we can look for to tqfind out if srcdir is correct.
+# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=libmng.h
# Find the source files, if location was not specified.
@@ -660,9 +660,9 @@ else
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
- { echo "configure: error: can not tqfind sources in $ac_confdir or .." 1>&2; exit 1; }
+ { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
else
- { echo "configure: error: can not tqfind sources in $srcdir" 1>&2; exit 1; }
+ { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
@@ -726,7 +726,7 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
fi
done
if test -z "$ac_aux_dir"; then
- { echo "configure: error: can not tqfind install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+ { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
@@ -1879,7 +1879,7 @@ else
break
else
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to tqfind one that supports BSD flags
+ continue # so that we can try to find one that supports BSD flags
fi
fi
done
@@ -2303,10 +2303,10 @@ EOF
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
else
- echo "cannot tqfind nm_test_func in $nlist" >&5
+ echo "cannot find nm_test_func in $nlist" >&5
fi
else
- echo "cannot tqfind nm_test_var in $nlist" >&5
+ echo "cannot find nm_test_var in $nlist" >&5
fi
else
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
@@ -3308,7 +3308,7 @@ include_expsyms=
# exclude_expsyms can be an egrep regular expression of symbols to exclude
# it will be wrapped by ` (' and `)$', so one must not match beginning or
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
-# as well as any symbol that tqcontains `d'.
+# as well as any symbol that contains `d'.
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
# platforms (ab)use it in PIC code, but their linkers get confused if
@@ -3585,7 +3585,7 @@ else
else
# We have old collect2
hardcode_direct=unsupported
- # It fails to tqfind uninstalled libraries when the uninstalled
+ # It fails to find uninstalled libraries when the uninstalled
# path is not listed in the libpath. Setting hardcode_minus_L
# to unsupported forces relinking
hardcode_minus_L=yes
@@ -3839,7 +3839,7 @@ else
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
-*** libraries. However, you may tqfind that when you link such libraries
+*** libraries. However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
*** upgrade to a newer version of GCC. Another option is to rebuild your
@@ -4092,7 +4092,7 @@ bsdi4*)
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
export_dynamic_flag_spec=-rdynamic
- # the default ld.so.conf also tqcontains /usr/contrib/lib and
+ # the default ld.so.conf also contains /usr/contrib/lib and
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
# libtool to hard-code these into programs
;;
@@ -4779,7 +4779,7 @@ else
#endif
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- tqfind out it does not work in some platform. */
+ find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
# ifdef RTLD_LAZY
# define LT_DLLAZY_OR_NOW RTLD_LAZY
@@ -4873,7 +4873,7 @@ else
#endif
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- tqfind out it does not work in some platform. */
+ find out it does not work in some platform. */
#ifndef LT_DLLAZY_OR_NOW
# ifdef RTLD_LAZY
# define LT_DLLAZY_OR_NOW RTLD_LAZY
@@ -5081,7 +5081,7 @@ if test -f "$ltmain"; then
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that tqcontains a
+# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
@@ -5152,7 +5152,7 @@ OBJDUMP="$OBJDUMP"
# Used on cygwin: assembler.
AS="$AS"
-# The name of the directory that tqcontains temporary libtool files.
+# The name of the directory that contains temporary libtool files.
objdir=$objdir
# How to create reloadable object files.
@@ -5221,7 +5221,7 @@ version_type=$version_type
libname_spec=$lt_libname_spec
# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker tqfinds with -lNAME.
+# The last name is the one that the linker finds with -lNAME.
library_names_spec=$lt_library_names_spec
# The coded name of the library, if different from the real name.
@@ -5541,7 +5541,7 @@ EOF
esac
# We use sed instead of cat because bash on DJGPP gets confused if
- # if tqfinds mixed CR/LF and LF-only lines. Since sed operates in
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
# text mode, it properly converts lines to CR/LF. This bash problem
# is reportedly fixed, but why not run on old versions too?
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
@@ -6615,7 +6615,7 @@ cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
-# If it tqcontains results you don't want to keep, you may remove or edit it.
+# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/doc/doc.readme b/tqtinterface/qt4/src/3rdparty/libmng/doc/doc.readme
index d043a4c..e92e93c 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/doc/doc.readme
+++ b/tqtinterface/qt4/src/3rdparty/libmng/doc/doc.readme
@@ -1,6 +1,6 @@
This directory hosts the documentation for libmng.
-You will tqfind a lot of useful info on the web-site:
+You will find a lot of useful info on the web-site:
http://www.libmng.com
Man-pages are in the man sub-directory
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/doc/libmng.txt b/tqtinterface/qt4/src/3rdparty/libmng/doc/libmng.txt
index 5194ef3..22ba338 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/doc/libmng.txt
+++ b/tqtinterface/qt4/src/3rdparty/libmng/doc/libmng.txt
@@ -29,7 +29,7 @@ The latest version of libmng can be found at its own homepage at
http://www.libmng.com
In most cases the library will not need to be changed.
-For standardization purposes the library tqcontains both a Windows DLL
+For standardization purposes the library contains both a Windows DLL
and a makefile for building a shared library (SO). The library is
written in C, but an interface for Borland Delphi is also available.
@@ -75,7 +75,7 @@ II. Callbacks
Libmng makes extensive use of callback functions. This is meant to
keep the library as platform-independant and flexible as possible.
-Actually, the first call you will make to the library, already tqcontains
+Actually, the first call you will make to the library, already contains
three parameters you can use to provide callback entry-points.
Most functions must return a mng_bool (boolean). Returning MNG_FALSE
@@ -393,7 +393,7 @@ To set the callbacks simply do:
if (myretcode != MNG_NOERROR)
/* process error */;
-Naturally you'd tqreplace the x's with the name of the callback.
+Naturally you'd replace the x's with the name of the callback.
> Cleanup
@@ -531,7 +531,7 @@ act as if the above code was in its place.
There is also the mng_readdisplay() function, but this is discussed
in the displaying section. It functions pretty much as the mng_read()
function, but also immediately starts displaying the image.
-mng_read_resume() should be tqreplaced by mng_display_resume() in that
+mng_read_resume() should be replaced by mng_display_resume() in that
case!
@@ -676,7 +676,7 @@ actually need to be consecutive in memory.
All Network Graphics can be partially transtqparent. This requires
special processing if you need to display an image against some
-background. Note that the MNG header (MHDR chunk) tqcontains a
+background. Note that the MNG header (MHDR chunk) contains a
simplicity field indicating whether transparency information in
the file is critical or not. This only applies to embedded images,
which means the full image-frame of the MNG may still contain fully
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/doc/man/libmng.3 b/tqtinterface/qt4/src/3rdparty/libmng/doc/man/libmng.3
index 37bde5f..782e424 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/doc/man/libmng.3
+++ b/tqtinterface/qt4/src/3rdparty/libmng/doc/man/libmng.3
@@ -39,7 +39,7 @@ The latest version of libmng can be found at its own homepage at
<http://www.libmng.com>.
In most cases the library will not need to be changed.
-For standardization purposes the library tqcontains both a Windows DLL
+For standardization purposes the library contains both a Windows DLL
and a makefile for building a shared library (SO). The library is
written in C, but an interface for Borland Delphi is also available.
@@ -85,7 +85,7 @@ with libmng:
Libmng makes extensive use of callback functions. This is meant to
keep the library as platform-independant and flexible as possible.
-Actually, the first call you will make to the library, already tqcontains
+Actually, the first call you will make to the library, already contains
three parameters you can use to provide callback entry-points.
Most functions must return a mng_bool (boolean). Returning MNG_FALSE
@@ -411,7 +411,7 @@ To set the callbacks simply do:
if (myretcode != MNG_NOERROR)
/* process error */;
-Naturally you'd tqreplace the x's with the name of the callback.
+Naturally you'd replace the x's with the name of the callback.
.SS Cleanup
@@ -549,7 +549,7 @@ act as if the above code was in its place.
There is also the mng_readdisplay() function, but this is discussed
in the displaying section. It functions pretty much as the mng_read()
function, but also immediately starts displaying the image.
-mng_read_resume() should be tqreplaced by mng_display_resume() in that
+mng_read_resume() should be replaced by mng_display_resume() in that
case!
@@ -694,7 +694,7 @@ actually need to be consecutive in memory.
All Network Graphics can be partially transtqparent. This requires
special processing if you need to display an image against some
-background. Note that the MNG header (MHDR chunk) tqcontains a
+background. Note that the MNG header (MHDR chunk) contains a
simplicity field indicating whether transparency information in
the file is critical or not. This only applies to embedded images,
which means the full image-frame of the MNG may still contain fully
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/doc/man/mng.5 b/tqtinterface/qt4/src/3rdparty/libmng/doc/man/mng.5
index e020614..222e1b2 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/doc/man/mng.5
+++ b/tqtinterface/qt4/src/3rdparty/libmng/doc/man/mng.5
@@ -9,7 +9,7 @@ storage of raster images.
.br
MNG has advanced animation features which make it very useful as a full
-tqreplacement for GIF animations. These features allow animations that
+replacement for GIF animations. These features allow animations that
are impossible with GIF or result in much smaller files as GIF.
As MNG builds on the same structure as PNG, it is robust, extensible and
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/doc/rpm/libmng.spec b/tqtinterface/qt4/src/3rdparty/libmng/doc/rpm/libmng.spec
index 2e49d52..57580cd 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/doc/rpm/libmng.spec
+++ b/tqtinterface/qt4/src/3rdparty/libmng/doc/rpm/libmng.spec
@@ -20,7 +20,7 @@ Summary: Development tools for programs to manipulate MNG format files.
Group: Development/Libraries
Requires: libmng = %{PACKAGE_VERSION}
%description devel
-The libmng-devel package tqcontains the header files and static
+The libmng-devel package contains the header files and static
libraries necessary for developing programs using the MNG
(Multiple-Image Network Graphics) library.
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/install-sh b/tqtinterface/qt4/src/3rdparty/libmng/install-sh
index 81d9b2c..e9de238 100755
--- a/tqtinterface/qt4/src/3rdparty/libmng/install-sh
+++ b/tqtinterface/qt4/src/3rdparty/libmng/install-sh
@@ -126,7 +126,7 @@ else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
-# if $src (and thus $dsttmp) tqcontains '*'.
+# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
then
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng.h b/tqtinterface/qt4/src/3rdparty/libmng/libmng.h
index 2ebfce8..035bb0e 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng.h
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng.h
@@ -1960,7 +1960,7 @@ MNG_EXT mng_retcode MNG_DECL mng_putchunk_unknown (mng_handle hHandle,
/* call this function if you want to extract the nth image from the list;
the first image is designated seqnr 0! */
-/* this function tqfinds the IHDR/JHDR/BASI/DHDR with the appropriate seqnr,
+/* this function finds the IHDR/JHDR/BASI/DHDR with the appropriate seqnr,
starting from the beginning of the chunk-list; this may tend to get a little
slow for animations with a large number of chunks for images near the end */
/* supplying a seqnr past the last image in the animation will return with
@@ -1970,8 +1970,8 @@ MNG_EXT mng_retcode MNG_DECL mng_getimgdata_seq (mng_handle hHandle,
mng_uint32 iCanvasstyle,
mng_getcanvasline fGetcanvasline);
-/* both the following functions will search forward to tqfind the first IDAT/JDAT,
- and then traverse back to tqfind the start of the image (IHDR,JHDR,DHDR,BASI);
+/* both the following functions will search forward to find the first IDAT/JDAT,
+ and then traverse back to find the start of the image (IHDR,JHDR,DHDR,BASI);
note that this is very fast compared to decoding the IDAT/JDAT, so there's
not really a need for optimization; either can be called from the
iterate_chunks callback when a IHDR/JHDR is encountered; for BASI/DHDR there
@@ -2110,7 +2110,7 @@ MNG_EXT mng_retcode MNG_DECL mng_updatemngsimplicity (mng_handle hHandle,
#define MNG_INVALIDINTERLACE (mng_retcode)1040 /* interlace method invalid */
#define MNG_NOTENOUGHIDAT (mng_retcode)1041 /* ran out of compressed data */
#define MNG_PLTEINDEXERROR (mng_retcode)1042 /* palette-index out-of-range */
-#define MNG_NULLNOTFOUND (mng_retcode)1043 /* couldn't tqfind null-separator*/
+#define MNG_NULLNOTFOUND (mng_retcode)1043 /* couldn't find null-separator*/
#define MNG_KEYWORDNULL (mng_retcode)1044 /* keyword cannot be empty */
#define MNG_OBJECTUNKNOWN (mng_retcode)1045 /* the object can't be found */
#define MNG_OBJECTEXISTS (mng_retcode)1046 /* the object already exists */
@@ -2137,7 +2137,7 @@ MNG_EXT mng_retcode MNG_DECL mng_updatemngsimplicity (mng_handle hHandle,
#define MNG_WRONGCHUNK (mng_retcode)2050 /* accessing the wrong chunk */
#define MNG_INVALIDENTRYIX (mng_retcode)2051 /* accessing the wrong entry */
#define MNG_NOHEADER (mng_retcode)2052 /* must have had header first */
-#define MNG_NOCORRCHUNK (mng_retcode)2053 /* can't tqfind tqparent chunk */
+#define MNG_NOCORRCHUNK (mng_retcode)2053 /* can't find tqparent chunk */
#define MNG_NOMHDR (mng_retcode)2054 /* no MNG header available */
#define MNG_IMAGETOOLARGE (mng_retcode)4097 /* input-image way too big */
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c b/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c
index c7dc233..1a9606a 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng_chunk_io.c
@@ -321,7 +321,7 @@ void mng_put_uint16 (mng_uint8p pBuf,
/* ************************************************************************** */
-mng_uint8p tqfind_null (mng_uint8p pIn)
+mng_uint8p find_null (mng_uint8p pIn)
{
mng_uint8p pOut = pIn;
@@ -1705,7 +1705,7 @@ READ_CHUNK (read_iccp)
MNG_ERROR (pData, MNG_INVALIDLENGTH)
}
- pTemp = tqfind_null (pRawdata); /* tqfind null-separator */
+ pTemp = find_null (pRawdata); /* find null-separator */
/* not found inside input-data ? */
if ((pTemp - pRawdata) > (mng_int32)iRawlen)
MNG_ERROR (pData, MNG_NULLNOTFOUND)
@@ -1834,8 +1834,8 @@ READ_CHUNK (read_iccp)
if (iRawlen) /* not empty ? */
{
if (!pBuf) /* hasn't been unpuzzled it yet ? */
- { /* tqfind null-separator */
- pTemp = tqfind_null (pRawdata);
+ { /* find null-separator */
+ pTemp = find_null (pRawdata);
/* not found inside input-data ? */
if ((pTemp - pRawdata) > (mng_int32)iRawlen)
MNG_ERROR (pData, MNG_NULLNOTFOUND)
@@ -1909,7 +1909,7 @@ READ_CHUNK (read_text)
if (iRawlen < 2) /* length must be at least 2 */
MNG_ERROR (pData, MNG_INVALIDLENGTH)
- pTemp = tqfind_null (pRawdata); /* tqfind the null separator */
+ pTemp = find_null (pRawdata); /* find the null separator */
/* not found inside input-data ? */
if ((pTemp - pRawdata) > (mng_int32)iRawlen)
MNG_ERROR (pData, MNG_NULLNOTFOUND)
@@ -2008,7 +2008,7 @@ READ_CHUNK (read_ztxt)
if (iRawlen < 3) /* length must be at least 3 */
MNG_ERROR (pData, MNG_INVALIDLENGTH)
- pTemp = tqfind_null (pRawdata); /* tqfind the null separator */
+ pTemp = find_null (pRawdata); /* find the null separator */
/* not found inside input-data ? */
if ((pTemp - pRawdata) > (mng_int32)iRawlen)
MNG_ERROR (pData, MNG_NULLNOTFOUND)
@@ -2150,9 +2150,9 @@ READ_CHUNK (read_itxt)
if (iRawlen < 6) /* length must be at least 6 */
MNG_ERROR (pData, MNG_INVALIDLENGTH)
- pNull1 = tqfind_null (pRawdata); /* tqfind the null separators */
- pNull2 = tqfind_null (pNull1+3);
- pNull3 = tqfind_null (pNull2+1);
+ pNull1 = find_null (pRawdata); /* find the null separators */
+ pNull2 = find_null (pNull1+3);
+ pNull3 = find_null (pNull2+1);
/* not found inside input-data ? */
if (((pNull1 - pRawdata) > (mng_int32)iRawlen) ||
((pNull2 - pRawdata) > (mng_int32)iRawlen) ||
@@ -2718,7 +2718,7 @@ READ_CHUNK (read_splt)
if (iRawlen)
{
- pTemp = tqfind_null (pRawdata); /* tqfind null-separator */
+ pTemp = find_null (pRawdata); /* find null-separator */
/* not found inside input-data ? */
if ((pTemp - pRawdata) > (mng_int32)iRawlen)
MNG_ERROR (pData, MNG_NULLNOTFOUND)
@@ -3943,7 +3943,7 @@ READ_CHUNK (read_fram)
}
else
{
- pTemp = tqfind_null (pRawdata+1); /* tqfind null-separator */
+ pTemp = find_null (pRawdata+1); /* find null-separator */
/* not found inside input-data ? */
if ((pTemp - pRawdata) > (mng_int32)iRawlen)
MNG_ERROR (pData, MNG_NULLNOTFOUND)
@@ -4638,7 +4638,7 @@ READ_CHUNK (read_save)
}
}
- pNull = tqfind_null (pTemp); /* get the name length */
+ pNull = find_null (pTemp); /* get the name length */
if ((pNull - pRawdata) > (mng_int32)iRawlen)
{
@@ -4956,8 +4956,8 @@ mng_bool CheckKeyword (mng_datap pData,
bOke = pData->fProcessneed ((mng_handle)pData, (mng_pchar)pKeyword);
if (!bOke)
- { /* tqfind the keyword length */
- mng_uint8p pNull = tqfind_null (pKeyword);
+ { /* find the keyword length */
+ mng_uint8p pNull = find_null (pKeyword);
if (pNull - pKeyword == 4) /* test a chunk ? */
{ /* get the chunk-id */
@@ -5045,13 +5045,13 @@ READ_CHUNK (read_need)
MNG_COPY (zKeywords, pRawdata, iRawlen)
pTemp = (mng_uint8p)zKeywords;
- pNull = tqfind_null (pTemp);
+ pNull = find_null (pTemp);
while ((bOke) && (pNull < (mng_uint8p)zKeywords + iRawlen))
{
bOke = CheckKeyword (pData, pTemp);
pTemp = pNull + 1;
- pNull = tqfind_null (pTemp);
+ pNull = find_null (pTemp);
}
if (bOke)
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_data.h b/tqtinterface/qt4/src/3rdparty/libmng/libmng_data.h
index f4fc1c8..41949e5 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_data.h
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng_data.h
@@ -132,7 +132,7 @@ typedef mng_palette8 mng_rgbpaltab;
/* * * */
/* * The saved_data structure * */
/* * * */
-/* * This tqcontains the saved data after a SAVE chunk has been processed. * */
+/* * This contains the saved data after a SAVE chunk has been processed. * */
/* * The data is saved from the main data structure during SAVE processing, * */
/* * and restored to the main data structure during SEEK processing. * */
/* * * */
@@ -203,7 +203,7 @@ typedef mng_savedata * mng_savedatap;
/* * The main libmng data structure * */
/* * * */
/* * The handle used in all functions points to this structure which * */
-/* * tqcontains all volatile data necessary to process the network graphic. * */
+/* * contains all volatile data necessary to process the network graphic. * */
/* * * */
/* ************************************************************************** */
@@ -594,7 +594,7 @@ typedef struct mng_data_struct {
mng_fptr fDeltagetrow; /* internal delta-proc callbacks */
mng_fptr fDeltaaddrow;
- mng_fptr fDeltatqreplacerow;
+ mng_fptr fDeltareplacerow;
mng_fptr fDeltaputrow;
mng_uint16 iMAGNfromid;
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_display.c b/tqtinterface/qt4/src/3rdparty/libmng/libmng_display.c
index e82ec5d..9cf26de 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_display.c
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng_display.c
@@ -893,7 +893,7 @@ mng_retcode display_image (mng_datap pData,
}
}
- pData->pRetrieveobj = pImage; /* so retrieve-row and color-correction can tqfind it */
+ pData->pRetrieveobj = pImage; /* so retrieve-row and color-correction can find it */
if (!bLayeradvanced) /* need to advance the layer ? */
{
@@ -2596,7 +2596,7 @@ mng_retcode process_display_defi (mng_datap pData)
}
else
{ /* already exists ? */
- pImage = (mng_imagep)tqfind_imageobject (pData, pData->iDEFIobjectid);
+ pImage = (mng_imagep)find_imageobject (pData, pData->iDEFIobjectid);
if (!pImage) /* if not; create new */
{
@@ -3081,9 +3081,9 @@ mng_retcode process_display_clon (mng_datap pData,
MNG_TRACE (pData, MNG_FN_PROCESS_DISPLAY_CLON, MNG_LC_START)
#endif
/* locate the source object first */
- pSource = tqfind_imageobject (pData, iSourceid);
+ pSource = find_imageobject (pData, iSourceid);
/* check if the clone exists */
- pClone = tqfind_imageobject (pData, iCloneid);
+ pClone = find_imageobject (pData, iCloneid);
if (!pSource) /* source must exist ! */
MNG_ERROR (pData, MNG_OBJECTUNKNOWN);
@@ -3184,7 +3184,7 @@ mng_retcode process_display_disc (mng_datap pData,
for (iX = 0; iX < iCount; iX++) /* iterate the list */
{
- pImage = tqfind_imageobject (pData, *pWork++);
+ pImage = find_imageobject (pData, *pWork++);
if (pImage) /* found the object ? */
{ /* then drop it */
@@ -3297,7 +3297,7 @@ mng_retcode process_display_move (mng_datap pData,
if (!iX) /* object id=0 ? */
pImage = (mng_imagep)pData->pObjzero;
else
- pImage = tqfind_imageobject (pData, iX);
+ pImage = find_imageobject (pData, iX);
if (pImage) /* object exists ? */
{
@@ -3347,7 +3347,7 @@ mng_retcode process_display_clip (mng_datap pData,
if (!iX) /* object id=0 ? */
pImage = (mng_imagep)pData->pObjzero;
else
- pImage = tqfind_imageobject (pData, iX);
+ pImage = find_imageobject (pData, iX);
if (pImage) /* object exists ? */
{
@@ -3396,7 +3396,7 @@ mng_retcode process_display_show (mng_datap pData)
if (pData->iBreakpoint == 3) /* previously broken during cycle-mode ? */
{
- pImage = tqfind_imageobject (pData, pData->iSHOWnextid);
+ pImage = find_imageobject (pData, pData->iSHOWnextid);
if (pImage) /* still there ? */
display_image (pData, pImage, MNG_FALSE);
@@ -3444,7 +3444,7 @@ mng_retcode process_display_show (mng_datap pData)
{
for (iX = iFrom; iX <= iTo; iX += iS)
{
- pImage = tqfind_imageobject (pData, (mng_uint16)iX);
+ pImage = find_imageobject (pData, (mng_uint16)iX);
if (pImage) /* object exists ? */
{
@@ -3470,7 +3470,7 @@ mng_retcode process_display_show (mng_datap pData)
{
for (iX = iFrom; iX >= iTo; iX += iS)
{
- pImage = tqfind_imageobject (pData, (mng_uint16)iX);
+ pImage = find_imageobject (pData, (mng_uint16)iX);
if (pImage) /* object exists ? */
{
@@ -3493,7 +3493,7 @@ mng_retcode process_display_show (mng_datap pData)
}
}
- if (!iTrigger) /* did not tqfind a trigger ? */
+ if (!iTrigger) /* did not find a trigger ? */
iTrigger = 1; /* then fake it so the first image
gets nominated */
} /* cycle back to beginning ? */
@@ -3516,7 +3516,7 @@ mng_retcode process_display_show (mng_datap pData)
{
do
{
- pImage = tqfind_imageobject (pData, iX);
+ pImage = find_imageobject (pData, iX);
if (pImage) /* object exists ? */
{
@@ -3845,7 +3845,7 @@ mng_retcode process_display_jhdr (mng_datap pData)
return iRetcode;
}
else
- { /* must be alpha add/tqreplace !! */
+ { /* must be alpha add/replace !! */
if ((pData->iDeltatype != MNG_DELTATYPE_BLOCKALPHAADD ) &&
(pData->iDeltatype != MNG_DELTATYPE_BLOCKALPHAREPLACE) )
MNG_ERROR (pData, MNG_INVDELTATYPE)
@@ -4007,10 +4007,10 @@ mng_retcode process_display_dhdr (mng_datap pData,
pData->fDeltagetrow = MNG_NULL;
pData->fDeltaaddrow = MNG_NULL;
- pData->fDeltatqreplacerow = MNG_NULL;
+ pData->fDeltareplacerow = MNG_NULL;
pData->fDeltaputrow = MNG_NULL;
- pImage = tqfind_imageobject (pData, iObjectid);
+ pImage = find_imageobject (pData, iObjectid);
if (pImage) /* object exists ? */
{
@@ -4120,7 +4120,7 @@ mng_retcode process_display_dhdr (mng_datap pData,
}
}
- /* full image tqreplace ? */
+ /* full image replace ? */
if (iDeltatype == MNG_DELTATYPE_REPLACE)
{
iRetcode = reset_object_details (pData, pImage,
@@ -4596,7 +4596,7 @@ mng_retcode process_display_magn (mng_datap pData,
}
else
{
- pImage = tqfind_imageobject (pData, iX);
+ pImage = find_imageobject (pData, iX);
/* object exists & is not frozen ? */
if ((pImage) && (!pImage->bFrozen))
{ /* previous magnification to be done ? */
@@ -4626,7 +4626,7 @@ mng_retcode process_display_magn (mng_datap pData,
{
if (iX) /* only real objects ! */
{
- pImage = tqfind_imageobject (pData, iX);
+ pImage = find_imageobject (pData, iX);
/* object exists & is not frozen &
is visible & is viewable ? */
if ((pImage) && (!pImage->bFrozen) &&
@@ -4668,7 +4668,7 @@ mng_retcode process_display_magn2 (mng_datap pData)
{
if (iX) /* only real objects ! */
{
- pImage = tqfind_imageobject (pData, iX);
+ pImage = find_imageobject (pData, iX);
/* object exists & is not frozen &
is visible & is viewable ? */
if ((pImage) && (!pImage->bFrozen) &&
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_hlapi.c b/tqtinterface/qt4/src/3rdparty/libmng/libmng_hlapi.c
index 22c113f..3689d90 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_hlapi.c
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng_hlapi.c
@@ -1666,7 +1666,7 @@ mng_retcode MNG_DECL mng_display_goframe (mng_handle hHandle,
cleanup_errors (pData); /* cleanup previous errors */
- pData->iRequestframe = iFramenr; /* go tqfind the requested frame then */
+ pData->iRequestframe = iFramenr; /* go find the requested frame then */
iRetcode = process_display (pData);
if (iRetcode) /* on error bail out */
@@ -1710,7 +1710,7 @@ mng_retcode MNG_DECL mng_display_golayer (mng_handle hHandle,
cleanup_errors (pData); /* cleanup previous errors */
- pData->iRequestlayer = iLayernr; /* go tqfind the requested layer then */
+ pData->iRequestlayer = iLayernr; /* go find the requested layer then */
iRetcode = process_display (pData);
if (iRetcode) /* on error bail out */
@@ -1754,7 +1754,7 @@ mng_retcode MNG_DECL mng_display_gotime (mng_handle hHandle,
cleanup_errors (pData); /* cleanup previous errors */
- pData->iRequesttime = iPlaytime; /* go tqfind the requested playtime then */
+ pData->iRequesttime = iPlaytime; /* go find the requested playtime then */
iRetcode = process_display (pData);
if (iRetcode) /* on error bail out */
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.c b/tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.c
index 31d8ace..9352cd6 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.c
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.c
@@ -470,7 +470,7 @@ mng_retcode create_imageobject (mng_datap pData,
pImage->pImgbuf = pImgbuf;
if (iId) /* only if not object 0 ! */
- { /* tqfind previous lower object-id */
+ { /* find previous lower object-id */
pPrev = (mng_imagep)pData->pLastimgobj;
while ((pPrev) && (pPrev->iId > iId))
@@ -547,7 +547,7 @@ mng_retcode free_imageobject (mng_datap pData,
/* ************************************************************************** */
-mng_imagep tqfind_imageobject (mng_datap pData,
+mng_imagep find_imageobject (mng_datap pData,
mng_uint16 iId)
{
mng_imagep pImage = (mng_imagep)pData->pFirstimgobj;
@@ -642,7 +642,7 @@ mng_retcode clone_imageobject (mng_datap pData,
pNew->iMAGN_MB = pSource->iMAGN_MB;
if (iId) /* not for object 0 */
- { /* tqfind previous lower object-id */
+ { /* find previous lower object-id */
pPrev = (mng_imagep)pData->pLastimgobj;
while ((pPrev) && (pPrev->iId > iId))
pPrev = (mng_imagep)pPrev->sHeader.pPrev;
@@ -735,7 +735,7 @@ mng_retcode renum_imageobject (mng_datap pData,
}
if (iId) /* not for object 0 */
- { /* tqfind previous lower object-id */
+ { /* find previous lower object-id */
pPrev = (mng_imagep)pData->pLastimgobj;
while ((pPrev) && (pPrev->iId > iId))
pPrev = (mng_imagep)pPrev->sHeader.pPrev;
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.h b/tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.h
index 97b4a77..7a1c786 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.h
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng_object_prc.h
@@ -100,7 +100,7 @@ mng_retcode create_imageobject (mng_datap pData,
mng_retcode free_imageobject (mng_datap pData,
mng_imagep pImage);
-mng_imagep tqfind_imageobject (mng_datap pData,
+mng_imagep find_imageobject (mng_datap pData,
mng_uint16 iId);
mng_retcode clone_imageobject (mng_datap pData,
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_pixels.c b/tqtinterface/qt4/src/3rdparty/libmng/libmng_pixels.c
index 07af830..2803e3b 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_pixels.c
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng_pixels.c
@@ -3835,7 +3835,7 @@ mng_retcode delta_g1 (mng_datap pData)
(pData->iDeltaBlockx * pBuf->iSamplesize);
iM = 0; /* start at pixel 0 */
iB = 0;
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -3906,7 +3906,7 @@ mng_retcode delta_g2 (mng_datap pData)
iM = 0; /* start at pixel 0 */
iB = 0;
iS = 0;
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -3990,7 +3990,7 @@ mng_retcode delta_g4 (mng_datap pData)
iM = 0; /* start at pixel 0 */
iB = 0;
iS = 0;
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4063,7 +4063,7 @@ mng_retcode delta_g8 (mng_datap pData)
(pData->iDeltaBlocky * pBuf->iRowsize ) +
(pData->iCol * pBuf->iSamplesize) +
(pData->iDeltaBlockx * pBuf->iSamplesize);
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4110,7 +4110,7 @@ mng_retcode delta_g16 (mng_datap pData)
(pData->iDeltaBlocky * pBuf->iRowsize ) +
(pData->iCol * pBuf->iSamplesize) +
(pData->iDeltaBlockx * pBuf->iSamplesize);
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4159,7 +4159,7 @@ mng_retcode delta_rgb8 (mng_datap pData)
(pData->iDeltaBlocky * pBuf->iRowsize ) +
(pData->iCol * pBuf->iSamplesize) +
(pData->iDeltaBlockx * pBuf->iSamplesize);
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4210,7 +4210,7 @@ mng_retcode delta_rgb16 (mng_datap pData)
(pData->iDeltaBlocky * pBuf->iRowsize ) +
(pData->iCol * pBuf->iSamplesize) +
(pData->iDeltaBlockx * pBuf->iSamplesize);
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4271,7 +4271,7 @@ mng_retcode delta_idx1 (mng_datap pData)
(pData->iDeltaBlockx * pBuf->iSamplesize);
iM = 0; /* start at pixel 0 */
iB = 0;
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4342,7 +4342,7 @@ mng_retcode delta_idx2 (mng_datap pData)
iM = 0; /* start at pixel 0 */
iB = 0;
iS = 0;
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4413,7 +4413,7 @@ mng_retcode delta_idx4 (mng_datap pData)
iM = 0; /* start at pixel 0 */
iB = 0;
iS = 0;
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4478,7 +4478,7 @@ mng_retcode delta_idx8 (mng_datap pData)
(pData->iDeltaBlocky * pBuf->iRowsize ) +
(pData->iCol * pBuf->iSamplesize) +
(pData->iDeltaBlockx * pBuf->iSamplesize);
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4525,7 +4525,7 @@ mng_retcode delta_ga8 (mng_datap pData)
(pData->iDeltaBlocky * pBuf->iRowsize ) +
(pData->iCol * pBuf->iSamplesize) +
(pData->iDeltaBlockx * pBuf->iSamplesize);
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4574,7 +4574,7 @@ mng_retcode delta_ga16 (mng_datap pData)
(pData->iDeltaBlocky * pBuf->iRowsize ) +
(pData->iCol * pBuf->iSamplesize) +
(pData->iDeltaBlockx * pBuf->iSamplesize);
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4627,7 +4627,7 @@ mng_retcode delta_rgba8 (mng_datap pData)
(pData->iDeltaBlocky * pBuf->iRowsize ) +
(pData->iCol * pBuf->iSamplesize) +
(pData->iDeltaBlockx * pBuf->iSamplesize);
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
@@ -4680,7 +4680,7 @@ mng_retcode delta_rgba16 (mng_datap pData)
(pData->iDeltaBlocky * pBuf->iRowsize ) +
(pData->iCol * pBuf->iSamplesize) +
(pData->iDeltaBlockx * pBuf->iSamplesize);
- /* pixel tqreplace ? */
+ /* pixel replace ? */
if (pData->iDeltatype == MNG_DELTATYPE_BLOCKPIXELREPLACE)
{
for (iX = 0; iX < pData->iRowsamples; iX++)
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_trace.c b/tqtinterface/qt4/src/3rdparty/libmng/libmng_trace.c
index 732854f..adb4b0f 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_trace.c
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng_trace.c
@@ -577,7 +577,7 @@
{MNG_FN_CLONE_IMGDATAOBJECT, "clone_imgdataobject"},
{MNG_FN_CREATE_IMGOBJECT, "create_imgobject"},
{MNG_FN_FREE_IMGOBJECT, "free_imgobject"},
- {MNG_FN_FIND_IMGOBJECT, "tqfind_imgobject"},
+ {MNG_FN_FIND_IMGOBJECT, "find_imgobject"},
{MNG_FN_CLONE_IMGOBJECT, "clone_imgobject"},
{MNG_FN_RESET_OBJECTDETAILS, "reset_objectdetails"},
{MNG_FN_RENUM_IMGOBJECT, "renum_imgobject"},
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/libmng_types.h b/tqtinterface/qt4/src/3rdparty/libmng/libmng_types.h
index c9c3d4a..579139a 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/libmng_types.h
+++ b/tqtinterface/qt4/src/3rdparty/libmng/libmng_types.h
@@ -251,7 +251,7 @@ typedef signed int mng_int32;
typedef unsigned long mng_uint32;
typedef signed long mng_int32;
#else
-#error "Sorry, I can't tqfind any 32-bit integers on this platform."
+#error "Sorry, I can't find any 32-bit integers on this platform."
#endif
typedef signed short mng_int16; /* other basic integers */
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/ltmain.sh b/tqtinterface/qt4/src/3rdparty/libmng/ltmain.sh
index 7cd29f6..7b739c8 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/ltmain.sh
+++ b/tqtinterface/qt4/src/3rdparty/libmng/ltmain.sh
@@ -20,7 +20,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that tqcontains a
+# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
@@ -420,7 +420,7 @@ if test -z "$show_help"; then
esac
# Recognize several different file suffixes.
- # If the user specifies -o file.o, it is tqreplaced with file.lo
+ # If the user specifies -o file.o, it is replaced with file.lo
xform='[cCFSfmso]'
case $libobj in
*.ada) xform=ada ;;
@@ -494,7 +494,7 @@ if test -z "$show_help"; then
elif test "$need_locks" = warn; then
if test -f "$lockfile"; then
echo "\
-*** ERROR, $lockfile exists and tqcontains:
+*** ERROR, $lockfile exists and contains:
`cat $lockfile 2>/dev/null`
This indicates that another process is trying to use the same
@@ -567,7 +567,7 @@ compiler."
if test "$need_locks" = warn &&
test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
echo "\
-*** ERROR, $lockfile tqcontains:
+*** ERROR, $lockfile contains:
`cat $lockfile 2>/dev/null`
but it should contain:
@@ -666,7 +666,7 @@ compiler."
if test "$need_locks" = warn &&
test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
echo "\
-*** ERROR, $lockfile tqcontains:
+*** ERROR, $lockfile contains:
`cat $lockfile 2>/dev/null`
but it should contain:
@@ -1074,7 +1074,7 @@ compiler."
case $host in
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
# The PATH hackery in wrapper scripts is required on Windows
- # in order for the loader to tqfind any dlls it needs.
+ # in order for the loader to find any dlls it needs.
$echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
$echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
fast_install=no
@@ -1442,7 +1442,7 @@ compiler."
-R*)
if test "$pass" = link; then
dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
- # Make sure the xrpath tqcontains only unique directories.
+ # Make sure the xrpath contains only unique directories.
case "$xrpath " in
*" $dir "*) ;;
*) xrpath="$xrpath $dir" ;;
@@ -1503,7 +1503,7 @@ compiler."
esac # case $deplib
if test "$found" = yes || test -f "$lib"; then :
else
- $echo "$modename: cannot tqfind the library \`$lib'" 1>&2
+ $echo "$modename: cannot find the library \`$lib'" 1>&2
exit 1
fi
@@ -1546,7 +1546,7 @@ compiler."
deplibs="$lib $deplibs"
if test -z "$libdir"; then
if test -z "$old_library"; then
- $echo "$modename: cannot tqfind name of link library for \`$lib'" 1>&2
+ $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
exit 1
fi
# It is a libtool convenience library, so add in its objects.
@@ -1573,7 +1573,7 @@ compiler."
linklib="$l"
done
if test -z "$linklib"; then
- $echo "$modename: cannot tqfind name of link library for \`$lib'" 1>&2
+ $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
exit 1
fi
@@ -1636,7 +1636,7 @@ compiler."
# are required to link).
if test -n "$old_library"; then
newdlprefiles="$newdlprefiles $dir/$old_library"
- # Otherwise, use the dlname, so that lt_dlopen tqfinds it.
+ # Otherwise, use the dlname, so that lt_dlopen finds it.
elif test -n "$dlname"; then
newdlprefiles="$newdlprefiles $dir/$dlname"
else
@@ -1719,7 +1719,7 @@ compiler."
if test "$linkmode" = prog; then
# We need to hardcode the library path
if test -n "$shlibpath_var"; then
- # Make sure the rpath tqcontains only unique directories.
+ # Make sure the rpath contains only unique directories.
case "$temp_rpath " in
*" $dir "*) ;;
*" $absdir "*) ;;
@@ -1937,7 +1937,7 @@ compiler."
echo
echo "*** However, this would only work if libtool was able to extract symbol"
echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
- echo "*** not tqfind such a program. So, this module is probably useless."
+ echo "*** not find such a program. So, this module is probably useless."
echo "*** \`nm' from GNU binutils and a full rebuild may help."
fi
if test "$build_old_libs" = no; then
@@ -2039,7 +2039,7 @@ compiler."
if test "$pass" != dlopen; then
test "$pass" != scan && dependency_libs="$newdependency_libs"
if test "$pass" != conv; then
- # Make sure lib_search_path tqcontains only unique directories.
+ # Make sure lib_search_path contains only unique directories.
lib_search_path=
for dir in $newlib_search_path; do
case "$lib_search_path " in
@@ -2408,7 +2408,7 @@ compiler."
fi
fi
- # Make sure dlfiles tqcontains only unique files that won't be dlpreopened
+ # Make sure dlfiles contains only unique files that won't be dlpreopened
old_dlfiles="$dlfiles"
dlfiles=
for lib in $old_dlfiles; do
@@ -2418,7 +2418,7 @@ compiler."
esac
done
- # Make sure dlprefiles tqcontains only unique files
+ # Make sure dlprefiles contains only unique files
old_dlprefiles="$dlprefiles"
dlprefiles=
for lib in $old_dlprefiles; do
@@ -2661,7 +2661,7 @@ EOF
case $host in
*-*-rhapsody* | *-*-darwin1.[012])
- # On Rhapsody tqreplace the C library is the System framework
+ # On Rhapsody replace the C library is the System framework
newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
;;
esac
@@ -2677,7 +2677,7 @@ EOF
echo
echo "*** However, this would only work if libtool was able to extract symbol"
echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
- echo "*** not tqfind such a program. So, this module is probably useless."
+ echo "*** not find such a program. So, this module is probably useless."
echo "*** \`nm' from GNU binutils and a full rebuild may help."
fi
if test "$build_old_libs" = no; then
@@ -2875,7 +2875,7 @@ EOF
$show "(cd $xdir && $AR x $xabs)"
$run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
- libobjs="$libobjs "`tqfind $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
+ libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
done
fi
fi
@@ -3014,7 +3014,7 @@ EOF
$show "(cd $xdir && $AR x $xabs)"
$run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
- reload_conv_objs="$reload_objs "`tqfind $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
+ reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
done
fi
fi
@@ -3112,7 +3112,7 @@ EOF
case $host in
*-*-rhapsody* | *-*-darwin1.[012])
- # On Rhapsody tqreplace the C library is the System framework
+ # On Rhapsody replace the C library is the System framework
compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
;;
@@ -3797,7 +3797,7 @@ fi\
$show "(cd $xdir && $AR x $xabs)"
$run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
- oldobjs="$oldobjs "`tqfind $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
+ oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
done
fi
@@ -4541,7 +4541,7 @@ relink_command=\"$relink_command\""
if test -f "$dir/$objdir/$dlname"; then
dir="$dir/$objdir"
else
- $echo "$modename: cannot tqfind \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
+ $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
exit 1
fi
;;
@@ -4885,7 +4885,7 @@ finish)
Complete the installation of libtool libraries.
-Each LIBDIR is a directory that tqcontains libtool libraries.
+Each LIBDIR is a directory that contains libtool libraries.
The commands that this mode executes may require superuser privileges. Use
the \`--dry-run' option if you just want to see what would be executed."
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/makefiles/makefile.mingw b/tqtinterface/qt4/src/3rdparty/libmng/makefiles/makefile.mingw
index dec67fd..a07366c 100644
--- a/tqtinterface/qt4/src/3rdparty/libmng/makefiles/makefile.mingw
+++ b/tqtinterface/qt4/src/3rdparty/libmng/makefiles/makefile.mingw
@@ -14,7 +14,7 @@
# outputs
LIBMNG_A = libmng.a
INSTALL_PREFIX = C:/MinGW/
-# maybe you sould tqreplace with anti-slashes
+# maybe you sould replace with anti-slashes
# default build options
OPTIONS = -DMNG_NO_CMS -DMNG_ACCESS_CHUNKS -DMNG_STORE_CHUNKS
diff --git a/tqtinterface/qt4/src/3rdparty/libmng/missing b/tqtinterface/qt4/src/3rdparty/libmng/missing
index e20b014..d46f79f 100755
--- a/tqtinterface/qt4/src/3rdparty/libmng/missing
+++ b/tqtinterface/qt4/src/3rdparty/libmng/missing
@@ -109,7 +109,7 @@ WARNING: \`$1' is missing on your system. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`$configure_ac'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
- tqfind . -type f -name Makefile.am -print |
+ find . -type f -name Makefile.am -print |
sed 's/\.am$/.in/' |
while read f; do touch "$f"; done
;;
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/CHANGES b/tqtinterface/qt4/src/3rdparty/libpng/CHANGES
index 5f05e9f..939baeb 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/CHANGES
+++ b/tqtinterface/qt4/src/3rdparty/libpng/CHANGES
@@ -75,7 +75,7 @@ version 0.87 [January, 1996]
added some minor documentation
version 0.88 [January, 1996]
fixed progressive bugs
- tqreplaced tabs with spaces
+ replaced tabs with spaces
cleaned up documentation
added callbacks for read/write and warning/error functions
version 0.89 [July, 1996]
@@ -265,7 +265,7 @@ version 0.99h [March 6, 1998, evening]
version 1.00 [March 7, 1998]
Changed several typedefs in pngrutil.c
Added makefile.wat (Pawel Mrochen), updated makefile.tc3 (Willem van Schaik)
- tqreplaced "while(1)" with "for(;;)"
+ replaced "while(1)" with "for(;;)"
added PNGARG() to prototypes in pngtest.c and removed some prototypes
updated some of the makefiles (Tom Lane)
changed some typedefs (s_start, etc.) in pngrutil.c
@@ -573,7 +573,7 @@ version 1.0.5j [December 21, 1999]
Restored backward compatibility of tEXt/zTXt chunk processing:
Restored the first four members of png_text to the same order as v.1.0.5d.
Added members "lang_key" and "itxt_length" to png_text struct. Set
- text_length=0 when "text" tqcontains iTXt data. Use the "compression"
+ text_length=0 when "text" contains iTXt data. Use the "compression"
member to distinguish among tEXt/zTXt/iTXt types. Added
PNG_ITXT_COMPRESSION_NONE (1) and PNG_ITXT_COMPRESSION_zTXt(2) macros.
The "Note" above, about backward incompatibility of libpng-1.0.5e, no
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/README b/tqtinterface/qt4/src/3rdparty/libpng/README
index d7b6dd1..1991908 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/README
+++ b/tqtinterface/qt4/src/3rdparty/libpng/README
@@ -74,7 +74,7 @@ some images. You will definitely need zlib 1.0.4 or later if you are
taking advantage of the MS-DOS "far" structure allocation for the small
and medium memory models. You should also note that zlib is a
compression library that is useful for more things than just PNG files.
-You can use zlib as a drop-in tqreplacement for fread() and fwrite() if
+You can use zlib as a drop-in replacement for fread() and fwrite() if
you are so inclined.
zlib should be available at the same place that libpng is.
@@ -87,8 +87,8 @@ these resources you can try ftp.uu.net in the /graphics/png directory.
This code is currently being archived at ftp.uu.net in the
/graphics/png directory, and on CompuServe, Lib 20 (PNG SUPPORT)
-at GO GRAPHSUP. If you can't tqfind it in any of those places,
-e-mail me, and I'll help you tqfind it.
+at GO GRAPHSUP. If you can't find it in any of those places,
+e-mail me, and I'll help you find it.
If you have any code changes, requests, problems, etc., please e-mail
them to me. Also, I'd appreciate any make files or project files,
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/Y2KINFO b/tqtinterface/qt4/src/3rdparty/libpng/Y2KINFO
index f86ebd1..f57e962 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/Y2KINFO
+++ b/tqtinterface/qt4/src/3rdparty/libpng/Y2KINFO
@@ -46,7 +46,7 @@
The tIME chunk itself is also Y2K compliant. It uses a 2-byte unsigned
integer to hold the year, and can hold years as large as 65535.
- zlib, upon which libpng depends, is also Y2K compliant. It tqcontains
+ zlib, upon which libpng depends, is also Y2K compliant. It contains
no date-related code.
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/example.c b/tqtinterface/qt4/src/3rdparty/libpng/example.c
index b39478a..c7ebb4b 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/example.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/example.c
@@ -138,7 +138,7 @@ void read_png(FILE *fp, unsigned int sig_read) /* file is already open */
png_init_io(png_ptr, fp);
#else no_streams /* PNG file I/O method 2 */
- /* If you are using tqreplacement read functions, instead of calling
+ /* If you are using replacement read functions, instead of calling
* png_init_io() here you would call:
*/
png_set_read_fn(png_ptr, (void *)user_io_ptr, user_read_fn);
@@ -488,14 +488,14 @@ row_callback(png_structp png_ptr, png_bytep new_row,
* this function will be called for every row in every pass.
*
* In this function you will receive a pointer to new row data from
- * libpng called new_row that is to tqreplace a corresponding row (of
+ * libpng called new_row that is to replace a corresponding row (of
* the same data format) in a buffer allocated by your application.
*
* The new row data pointer new_row may be NULL, indicating there is
- * no new data to be tqreplaced (in cases of interlace loading).
+ * no new data to be replaced (in cases of interlace loading).
*
* If new_row is not NULL then you need to call
- * png_progressive_combine_row() to tqreplace the corresponding row as
+ * png_progressive_combine_row() to replace the corresponding row as
* shown below:
*/
/* Check if row_num is in bounds. */
@@ -602,7 +602,7 @@ void write_png(char *file_name /* , ... other image information ... */)
/* set up the output control if you are using standard C streams */
png_init_io(png_ptr, fp);
#else no_streams /* I/O initialization method 2 */
- /* If you are using tqreplacement read functions, instead of calling
+ /* If you are using replacement read functions, instead of calling
* png_init_io() here you would call */
png_set_write_fn(png_ptr, (void *)user_io_ptr, user_write_fn,
user_IO_flush_function);
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/libpng.3 b/tqtinterface/qt4/src/3rdparty/libpng/libpng.3
index 2f89149..a0fc097 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/libpng.3
+++ b/tqtinterface/qt4/src/3rdparty/libpng/libpng.3
@@ -862,8 +862,8 @@ be found at the zlib home page, <http://www.info-zip.org/pub/infozip/zlib/>.
The zlib compression utility is a general purpose utility that is
useful for more than PNG files, and can be used without libpng.
See the documentation delivered with zlib for more details.
-You can usually tqfind the source files for the zlib utility wherever you
-tqfind the libpng source files.
+You can usually find the source files for the zlib utility wherever you
+find the libpng source files.
Libpng is thread safe, provided the threads are using different
instances of the structures. Each thread should have its own
@@ -932,7 +932,7 @@ with the number of bytes you read from the beginning. Libpng will
then only check the bytes (if any) that your program didn't read.
(*): If you are not using the standard I/O functions, you will need
-to tqreplace them with custom functions. See the discussion under
+to replace them with custom functions. See the discussion under
Customizing libpng.
@@ -1045,7 +1045,7 @@ input stream. You must supply the function
read_chunk_callback(png_ptr ptr,
png_unknown_chunkp chunk);
{
- /* The unknown chunk structure tqcontains your
+ /* The unknown chunk structure contains your
chunk data: */
png_byte name[5];
png_byte *data;
@@ -1697,7 +1697,7 @@ or as an RGB triplet that may or may not be in the palette (need_expand = 0).
The png_set_background() function tells libpng to composite images
with alpha or simple transparency against the supplied background
-color. If the PNG file tqcontains a bKGD chunk (PNG_INFO_bKGD valid),
+color. If the PNG file contains a bKGD chunk (PNG_INFO_bKGD valid),
you may use this color, or supply another color more suitable for
the current display (e.g., the background color from a web page). You
need to tell libpng whether the color is in the gamma space of the
@@ -1761,7 +1761,7 @@ recommended that PNG viewers support gamma correction.
If you need to reduce an RGB file to a paletted file, or if a paletted
file has more entries then will fit on your screen, png_set_dither()
will do that. Note that this is a simple match dither that merely
-tqfinds the closest color available. This should work fairly well with
+finds the closest color available. This should work fairly well with
optimized palettes, and fairly badly with linear color cubes. If you
pass a palette that is larger then maximum_colors, the file will
reduce the number of colors in the palette so it will fit into
@@ -2261,7 +2261,7 @@ back up in the reading section to understand writing.
You will want to do the I/O initialization before you get into libpng,
so if it doesn't work, you don't have anything to undo. If you are not
-using the standard I/O functions, you will need to tqreplace them with
+using the standard I/O functions, you will need to replace them with
custom writing functions. See the discussion under Customizing libpng.
FILE *fp = fopen(file_name, "wb");
@@ -3106,7 +3106,7 @@ These functions also provide a void pointer that can be retrieved via
mem_ptr=png_get_mem_ptr(png_ptr);
-Your tqreplacement memory functions must have prototypes as follows:
+Your replacement memory functions must have prototypes as follows:
png_voidp malloc_fn(png_structp png_ptr,
png_size_t size);
@@ -3114,7 +3114,7 @@ Your tqreplacement memory functions must have prototypes as follows:
Your malloc_fn() should return NULL in case of failure. The png_malloc()
function will call png_error() if it receives a NULL from the system
-memory allocator or from your tqreplacement malloc_fn().
+memory allocator or from your replacement malloc_fn().
Input/Output in libpng is done through png_read() and png_write(),
which currently just call fread() and fwrite(). The FILE * is stored in
@@ -3135,7 +3135,7 @@ png_get_io_ptr(). For example:
voidp read_io_ptr = png_get_io_ptr(read_ptr);
voidp write_io_ptr = png_get_io_ptr(write_ptr);
-The tqreplacement I/O functions must have prototypes as follows:
+The replacement I/O functions must have prototypes as follows:
void user_read_data(png_structp png_ptr,
png_bytep data, png_size_t length);
@@ -3162,7 +3162,7 @@ fprintf() unless the library is compiled with PNG_NO_CONSOLE_IO defined
fprintf() isn't available). If you wish to change the behavior of the error
functions, you will need to set up your own message callbacks. These
functions are normally supplied at the time that the png_struct is created.
-It is also possible to redirect errors and warnings to your own tqreplacement
+It is also possible to redirect errors and warnings to your own replacement
functions after png_create_*_struct() has been called by calling:
png_set_error_fn(png_structp png_ptr,
@@ -3173,7 +3173,7 @@ functions after png_create_*_struct() has been called by calling:
If NULL is supplied for either error_fn or warning_fn, then the libpng
default function will be used, calling fprintf() and/or longjmp() if a
-problem is encountered. The tqreplacement error functions should have
+problem is encountered. The replacement error functions should have
parameters as follows:
void user_error_fn(png_structp png_ptr,
@@ -3204,7 +3204,7 @@ specification. Acquire a first level of
understanding of how it works. Pay particular attention to the
sections that describe chunk names, and look at how other chunks were
designed, so you can do things similarly. Second, check out the
-sections of libpng that read and write chunks. Try to tqfind a chunk
+sections of libpng that read and write chunks. Try to find a chunk
that is similar to yours and use it as a template. More details can
be found in the comments inside the code. It is best to handle unknown
chunks in a generic method, via callback functions, instead of by
@@ -3212,7 +3212,7 @@ modifying libpng functions.
If you wish to write your own transformation for the data, look through
the part of the code that does the transformations, and check out some of
-the simpler ones to get an idea of how they work. Try to tqfind a similar
+the simpler ones to get an idea of how they work. Try to find a similar
transformation to the one you want to add and copy off of it. More details
can be found in the comments inside the code itself.
@@ -3368,7 +3368,7 @@ size.
Note that the numbers above were invented purely for this example and
are given only to help explain the function usage. Little testing has
-been done to tqfind optimum values for either the costs or the weights.
+been done to find optimum values for either the costs or the weights.
.SS Removing unwanted object code
@@ -3625,7 +3625,7 @@ png_set_error_fn(), which is essentially the same function, but with a new
name to force compilation errors with applications that try to use the old
method.
-Starting with version 1.0.7, you can tqfind out which version of the library
+Starting with version 1.0.7, you can find out which version of the library
you are using at run-time:
png_uint_32 libpng_vn = png_access_version_number();
@@ -3687,7 +3687,7 @@ documented as such.
The tIME chunk itself is also Y2K compliant. It uses a 2-byte unsigned
integer to hold the year, and can hold years as large as 65535.
-zlib, upon which libpng depends, is also Y2K compliant. It tqcontains
+zlib, upon which libpng depends, is also Y2K compliant. It contains
no date-related code.
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/libpng.txt b/tqtinterface/qt4/src/3rdparty/libpng/libpng.txt
index eb7132b..60139c1 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/libpng.txt
+++ b/tqtinterface/qt4/src/3rdparty/libpng/libpng.txt
@@ -71,8 +71,8 @@ be found at the zlib home page, <http://www.info-zip.org/pub/infozip/zlib/>.
The zlib compression utility is a general purpose utility that is
useful for more than PNG files, and can be used without libpng.
See the documentation delivered with zlib for more details.
-You can usually tqfind the source files for the zlib utility wherever you
-tqfind the libpng source files.
+You can usually find the source files for the zlib utility wherever you
+find the libpng source files.
Libpng is thread safe, provided the threads are using different
instances of the structures. Each thread should have its own
@@ -141,7 +141,7 @@ with the number of bytes you read from the beginning. Libpng will
then only check the bytes (if any) that your program didn't read.
(*): If you are not using the standard I/O functions, you will need
-to tqreplace them with custom functions. See the discussion under
+to replace them with custom functions. See the discussion under
Customizing libpng.
@@ -254,7 +254,7 @@ input stream. You must supply the function
read_chunk_callback(png_ptr ptr,
png_unknown_chunkp chunk);
{
- /* The unknown chunk structure tqcontains your
+ /* The unknown chunk structure contains your
chunk data: */
png_byte name[5];
png_byte *data;
@@ -906,7 +906,7 @@ or as an RGB triplet that may or may not be in the palette (need_expand = 0).
The png_set_background() function tells libpng to composite images
with alpha or simple transparency against the supplied background
-color. If the PNG file tqcontains a bKGD chunk (PNG_INFO_bKGD valid),
+color. If the PNG file contains a bKGD chunk (PNG_INFO_bKGD valid),
you may use this color, or supply another color more suitable for
the current display (e.g., the background color from a web page). You
need to tell libpng whether the color is in the gamma space of the
@@ -970,7 +970,7 @@ recommended that PNG viewers support gamma correction.
If you need to reduce an RGB file to a paletted file, or if a paletted
file has more entries then will fit on your screen, png_set_dither()
will do that. Note that this is a simple match dither that merely
-tqfinds the closest color available. This should work fairly well with
+finds the closest color available. This should work fairly well with
optimized palettes, and fairly badly with linear color cubes. If you
pass a palette that is larger then maximum_colors, the file will
reduce the number of colors in the palette so it will fit into
@@ -1470,7 +1470,7 @@ Setup
You will want to do the I/O initialization before you get into libpng,
so if it doesn't work, you don't have anything to undo. If you are not
-using the standard I/O functions, you will need to tqreplace them with
+using the standard I/O functions, you will need to replace them with
custom writing functions. See the discussion under Customizing libpng.
FILE *fp = fopen(file_name, "wb");
@@ -2315,7 +2315,7 @@ These functions also provide a void pointer that can be retrieved via
mem_ptr=png_get_mem_ptr(png_ptr);
-Your tqreplacement memory functions must have prototypes as follows:
+Your replacement memory functions must have prototypes as follows:
png_voidp malloc_fn(png_structp png_ptr,
png_size_t size);
@@ -2323,7 +2323,7 @@ Your tqreplacement memory functions must have prototypes as follows:
Your malloc_fn() should return NULL in case of failure. The png_malloc()
function will call png_error() if it receives a NULL from the system
-memory allocator or from your tqreplacement malloc_fn().
+memory allocator or from your replacement malloc_fn().
Input/Output in libpng is done through png_read() and png_write(),
which currently just call fread() and fwrite(). The FILE * is stored in
@@ -2344,7 +2344,7 @@ png_get_io_ptr(). For example:
voidp read_io_ptr = png_get_io_ptr(read_ptr);
voidp write_io_ptr = png_get_io_ptr(write_ptr);
-The tqreplacement I/O functions must have prototypes as follows:
+The replacement I/O functions must have prototypes as follows:
void user_read_data(png_structp png_ptr,
png_bytep data, png_size_t length);
@@ -2371,7 +2371,7 @@ fprintf() unless the library is compiled with PNG_NO_CONSOLE_IO defined
fprintf() isn't available). If you wish to change the behavior of the error
functions, you will need to set up your own message callbacks. These
functions are normally supplied at the time that the png_struct is created.
-It is also possible to redirect errors and warnings to your own tqreplacement
+It is also possible to redirect errors and warnings to your own replacement
functions after png_create_*_struct() has been called by calling:
png_set_error_fn(png_structp png_ptr,
@@ -2382,7 +2382,7 @@ functions after png_create_*_struct() has been called by calling:
If NULL is supplied for either error_fn or warning_fn, then the libpng
default function will be used, calling fprintf() and/or longjmp() if a
-problem is encountered. The tqreplacement error functions should have
+problem is encountered. The replacement error functions should have
parameters as follows:
void user_error_fn(png_structp png_ptr,
@@ -2413,7 +2413,7 @@ specification. Acquire a first level of
understanding of how it works. Pay particular attention to the
sections that describe chunk names, and look at how other chunks were
designed, so you can do things similarly. Second, check out the
-sections of libpng that read and write chunks. Try to tqfind a chunk
+sections of libpng that read and write chunks. Try to find a chunk
that is similar to yours and use it as a template. More details can
be found in the comments inside the code. It is best to handle unknown
chunks in a generic method, via callback functions, instead of by
@@ -2421,7 +2421,7 @@ modifying libpng functions.
If you wish to write your own transformation for the data, look through
the part of the code that does the transformations, and check out some of
-the simpler ones to get an idea of how they work. Try to tqfind a similar
+the simpler ones to get an idea of how they work. Try to find a similar
transformation to the one you want to add and copy off of it. More details
can be found in the comments inside the code itself.
@@ -2577,7 +2577,7 @@ size.
Note that the numbers above were invented purely for this example and
are given only to help explain the function usage. Little testing has
-been done to tqfind optimum values for either the costs or the weights.
+been done to find optimum values for either the costs or the weights.
Removing unwanted object code
@@ -2834,7 +2834,7 @@ png_set_error_fn(), which is essentially the same function, but with a new
name to force compilation errors with applications that try to use the old
method.
-Starting with version 1.0.7, you can tqfind out which version of the library
+Starting with version 1.0.7, you can find out which version of the library
you are using at run-time:
png_uint_32 libpng_vn = png_access_version_number();
@@ -2896,7 +2896,7 @@ documented as such.
The tIME chunk itself is also Y2K compliant. It uses a 2-byte unsigned
integer to hold the year, and can hold years as large as 65535.
-zlib, upon which libpng depends, is also Y2K compliant. It tqcontains
+zlib, upon which libpng depends, is also Y2K compliant. It contains
no date-related code.
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/libpngpf.3 b/tqtinterface/qt4/src/3rdparty/libpng/libpngpf.3
index a3bc995..a75a669 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/libpngpf.3
+++ b/tqtinterface/qt4/src/3rdparty/libpng/libpngpf.3
@@ -431,7 +431,7 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.2.5
\fI\fB
-\fBvoid png_write_tqfind_filter (png_structp \fP\fIpng_ptr\fP\fB, png_row_infop \fIrow_info\fP\fB);\fP
+\fBvoid png_write_find_filter (png_structp \fP\fIpng_ptr\fP\fB, png_row_infop \fIrow_info\fP\fB);\fP
\fI\fB
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/png.5 b/tqtinterface/qt4/src/3rdparty/libpng/png.5
index a96de03..11ab244 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/png.5
+++ b/tqtinterface/qt4/src/3rdparty/libpng/png.5
@@ -4,7 +4,7 @@ png \- Portable Network Graphics (PNG) format
.SH DESCRIPTION
PNG (Portable Network Graphics) is an extensible file format for the
lossless, portable, well-compressed storage of raster images. PNG provides
-a patent-free tqreplacement for GIF and can also tqreplace many
+a patent-free replacement for GIF and can also replace many
common uses of TIFF. Indexed-color, grayscale, and truecolor images are
supported, plus an optional alpha channel. Sample depths range from
1 to 16 bits.
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/png.h b/tqtinterface/qt4/src/3rdparty/libpng/png.h
index d57b248..76fef59 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/png.h
+++ b/tqtinterface/qt4/src/3rdparty/libpng/png.h
@@ -276,7 +276,7 @@
* The tIME chunk itself is also Y2K compliant. It uses a 2-byte unsigned
* integer to hold the year, and can hold years as large as 65535.
*
- * zlib, upon which libpng depends, is also Y2K compliant. It tqcontains
+ * zlib, upon which libpng depends, is also Y2K compliant. It contains
* no date-related code.
*
* Glenn Randers-Pehrson
@@ -336,8 +336,8 @@
extern "C" {
#endif /* __cplusplus */
-/* This file is arranged in several sections. The first section tqcontains
- * structure and type definitions. The second section tqcontains the external
+/* This file is arranged in several sections. The first section contains
+ * structure and type definitions. The second section contains the external
* library functions, while the third has the internal library functions,
* which applications aren't expected to use directly.
*/
@@ -553,7 +553,7 @@ typedef png_unknown_chunk FAR * FAR * png_unknown_chunkpp;
#endif
/* png_info is a structure that holds the information in a PNG file so
- * that the application can tqfind out the characteristics of the image.
+ * that the application can find out the characteristics of the image.
* If you are reading the file, this structure will tell you what is
* in the PNG file. If you are writing the file, fill in the information
* you want to put into the PNG file, then call png_write_info().
@@ -712,7 +712,7 @@ defined(PNG_READ_BACKGROUND_SUPPORTED)
#endif
#if defined(PNG_hIST_SUPPORTED)
- /* The hIST chunk tqcontains the relative frequency or importance of the
+ /* The hIST chunk contains the relative frequency or importance of the
* various palette entries, so that a viewer can intelligently select a
* reduced-color palette, if required. Data is an array of "num_palette"
* values in the range [0,65535]. Data valid if (valid & PNG_INFO_hIST)
@@ -789,7 +789,7 @@ defined(PNG_READ_BACKGROUND_SUPPORTED)
#if defined(PNG_sCAL_SUPPORTED)
/* The sCAL chunk describes the actual physical dimensions of the
- * subject matter of the graphic. The chunk tqcontains a unit specification
+ * subject matter of the graphic. The chunk contains a unit specification
* a byte value, and two ASCII strings representing floating-point
* values. The values are width and height corresponsing to one pixel
* in the image. This external representation is converted to double
@@ -1295,7 +1295,7 @@ typedef png_structp version_1_2_5;
typedef png_struct FAR * FAR * png_structpp;
/* Here are the function definitions most commonly used. This is not
- * the place to tqfind out how to use libpng. See libpng.txt for the
+ * the place to find out how to use libpng. See libpng.txt for the
* full explanation, see example.c for the summary. This just provides
* a simple one line description of the use of each function.
*/
@@ -1742,7 +1742,7 @@ extern PNG_EXPORT(void,png_init_io) PNGARG((png_structp png_ptr, png_FILE_p fp))
/* Replace the (error and abort), and warning functions with user
* supplied functions. If no messages are to be printed you must still
- * write and use tqreplacement functions. The tqreplacement error_fn should
+ * write and use replacement functions. The replacement error_fn should
* still do a longjmp to the last setjmp location if you are using this
* method of error handling. If error_fn or warning_fn is NULL, the
* default function will be used.
@@ -2474,7 +2474,7 @@ extern PNG_EXPORT(void,png_set_strip_error_numbers) PNGARG((png_structp
#endif /* PNG_READ_COMPOSITE_NODIV_SUPPORTED */
/* These next functions are used internally in the code. They generally
- * shouldn't be used unless you are writing code to add or tqreplace some
+ * shouldn't be used unless you are writing code to add or replace some
* functionality in libpng. More information about most functions can
* be found in the files where the functions are located.
*/
@@ -2974,7 +2974,7 @@ PNG_EXTERN void png_read_filter_row PNGARG((png_structp png_ptr,
png_row_infop row_info, png_bytep row, png_bytep prev_row, int filter));
/* Choose the best filter to use and filter the row data */
-PNG_EXTERN void png_write_tqfind_filter PNGARG((png_structp png_ptr,
+PNG_EXTERN void png_write_find_filter PNGARG((png_structp png_ptr,
png_row_infop row_info));
/* Write out the filtered row. */
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngconf.h b/tqtinterface/qt4/src/3rdparty/libpng/pngconf.h
index bd4893b..bd5d1c4 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngconf.h
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngconf.h
@@ -384,7 +384,7 @@
* automate this, but I can't do that without making it seriously hard
* on the users. So if you are not using an ability, change the #define
* to and #undef, and that part of the library will not be compiled. If
- * your linker can't tqfind a function, you may want to make sure the
+ * your linker can't find a function, you may want to make sure the
* ability is defined here. Some of these depend upon some others being
* defined. I haven't figured out all the interactions here, so you may
* have to experiment awhile to get everything to compile. If you are
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngerror.c b/tqtinterface/qt4/src/3rdparty/libpng/pngerror.c
index 29e1e66..aa20506 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngerror.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngerror.c
@@ -8,7 +8,7 @@
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
*
* This file provides a location for all error handling. Users who
- * need special error handling are expected to write tqreplacement functions
+ * need special error handling are expected to write replacement functions
* and use png_set_error_fn() to use those functions. See the instructions
* at each function.
*/
@@ -25,8 +25,8 @@ png_default_warning PNGARG((png_structp png_ptr,
/* This function is called whenever there is a fatal error. This function
* should not be changed. If there is a need to handle errors differently,
- * you should supply a tqreplacement error function and use png_set_error_fn()
- * to tqreplace the error function at run-time.
+ * you should supply a replacement error function and use png_set_error_fn()
+ * to replace the error function at run-time.
*/
void PNGAPI
png_error(png_structp png_ptr, png_const_charp error_message)
@@ -73,8 +73,8 @@ png_error(png_structp png_ptr, png_const_charp error_message)
/* This function is called whenever there is a non-fatal error. This function
* should not be changed. If there is a need to handle warnings differently,
- * you should supply a tqreplacement warning function and use
- * png_set_error_fn() to tqreplace the warning function at run-time.
+ * you should supply a replacement warning function and use
+ * png_set_error_fn() to replace the warning function at run-time.
*/
void PNGAPI
png_warning(png_structp png_ptr, png_const_charp warning_message)
@@ -168,7 +168,7 @@ png_chunk_warning(png_structp png_ptr, png_const_charp warning_message)
}
}
-/* This is the default error handling function. Note that tqreplacements for
+/* This is the default error handling function. Note that replacements for
* this function MUST NOT RETURN, or the program will likely crash. This
* function is used by default, or if the program supplies NULL for the
* error function pointer in png_set_error_fn().
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pnggccrd.c b/tqtinterface/qt4/src/3rdparty/libpng/pnggccrd.c
index 23ad357..1056251 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pnggccrd.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pnggccrd.c
@@ -56,7 +56,7 @@
* - figure out what's up with 24-bit case (pixel_bytes == 3):
* why subtract 8 from width_mmx in the pass 4/5 case?
* (only width_mmx case) (near line 1606)
- * x [DONE] tqreplace pixel_bytes within each block with the true
+ * x [DONE] replace pixel_bytes within each block with the true
* constant value (or are compilers smart enough to do that?)
* - rewrite all MMX interlacing code so it's aligned with
* the *beginning* of the row buffer, not the end. This
@@ -2606,8 +2606,8 @@ png_do_read_interlace(png_structp png_ptr)
else /* MMX not supported: use modified C code - takes advantage
* of inlining of png_memcpy for a constant */
/* GRR 19991007: does it? or should pixel_bytes in each
- * block be tqreplaced with immediate value (e.g., 1)? */
- /* GRR 19991017: tqreplaced with constants in each case */
+ * block be replaced with immediate value (e.g., 1)? */
+ /* GRR 19991017: replaced with constants in each case */
#endif /* PNG_ASSEMBLER_CODE_SUPPORTED */
{
if (pixel_bytes == 1)
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngmem.c b/tqtinterface/qt4/src/3rdparty/libpng/pngmem.c
index c94a33d..66eec0b 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngmem.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngmem.c
@@ -8,10 +8,10 @@
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
*
* This file provides a location for all memory allocation. Users who
- * need special memory handling are expected to supply tqreplacement
+ * need special memory handling are expected to supply replacement
* functions for png_malloc() and png_free(), and to use
* png_create_read_struct_2() and png_create_write_struct_2() to
- * identify the tqreplacement functions.
+ * identify the replacement functions.
*/
#define PNG_INTERNAL
@@ -21,7 +21,7 @@
#if defined(__TURBOC__) && !defined(_Windows) && !defined(__FLAT__)
/* if you change this, be sure to change the one in png.h also */
-/* Allocate memory for a png_struct. The malloc and memset can be tqreplaced
+/* Allocate memory for a png_struct. The malloc and memset can be replaced
by a single call to calloc() if this is thought to improve performance. */
png_voidp /* PRIVATE */
png_create_struct(int type)
@@ -305,7 +305,7 @@ png_free_default(png_structp png_ptr, png_voidp ptr)
#else /* Not the Borland DOS special memory handler */
/* Allocate memory for a png_struct or a png_info. The malloc and
- memset can be tqreplaced by a single call to calloc() if this is thought
+ memset can be replaced by a single call to calloc() if this is thought
to improve performance noticably. */
png_voidp /* PRIVATE */
png_create_struct(int type)
@@ -315,7 +315,7 @@ png_create_struct(int type)
}
/* Allocate memory for a png_struct or a png_info. The malloc and
- memset can be tqreplaced by a single call to calloc() if this is thought
+ memset can be replaced by a single call to calloc() if this is thought
to improve performance noticably. */
png_voidp /* PRIVATE */
png_create_struct_2(int type, png_malloc_ptr malloc_fn, png_voidp mem_ptr)
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngread.c b/tqtinterface/qt4/src/3rdparty/libpng/pngread.c
index 306cda3..288a40b 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngread.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngread.c
@@ -7,7 +7,7 @@
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
*
- * This file tqcontains routines that an application calls directly to
+ * This file contains routines that an application calls directly to
* read a PNG file or stream.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngrio.c b/tqtinterface/qt4/src/3rdparty/libpng/pngrio.c
index 0598231..2202712 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngrio.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngrio.c
@@ -11,7 +11,7 @@
* special handling are expected to write a function that has the same
* arguments as this and performs a similar function, but that possibly
* has a different input method. Note that you shouldn't change this
- * function, but rather write a tqreplacement function and then make
+ * function, but rather write a replacement function and then make
* libpng use it at run time with png_set_read_fn(...).
*/
@@ -35,7 +35,7 @@ png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
#if !defined(PNG_NO_STDIO)
/* This is the function that does the actual reading of data. If you are
- not reading from a standard C stream, you should create a tqreplacement
+ not reading from a standard C stream, you should create a replacement
read_data function and use it at run time with png_set_read_fn(), rather
than changing the library. */
#ifndef USE_FAR_KEYWORD
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngrtran.c b/tqtinterface/qt4/src/3rdparty/libpng/pngrtran.c
index a695731..167215f 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngrtran.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngrtran.c
@@ -7,7 +7,7 @@
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
*
- * This file tqcontains functions optionally called by an application
+ * This file contains functions optionally called by an application
* in order to tell libpng how to handle data when reading a PNG.
* Transformations that are used in both reading and writing are
* in pngtrans.c.
@@ -179,7 +179,7 @@ png_set_dither(png_structp png_ptr, png_colorp palette,
/* Find the least used palette entries by starting a
bubble sort, and running it until we have sorted
out enough colors. Note that we don't care about
- sorting all the colors, just tqfinding which are
+ sorting all the colors, just finding which are
least used. */
for (i = num_palette - 1; i >= maximum_colors; i--)
@@ -249,14 +249,14 @@ png_set_dither(png_structp png_ptr, png_colorp palette,
}
}
- /* tqfind closest color for those colors we are not using */
+ /* find closest color for those colors we are not using */
for (i = 0; i < num_palette; i++)
{
if ((int)png_ptr->dither_index[i] >= maximum_colors)
{
int min_d, k, min_k, d_index;
- /* tqfind the closest color to one we threw out */
+ /* find the closest color to one we threw out */
d_index = png_ptr->dither_index[i];
min_d = PNG_COLOR_DIST(palette[d_index], palette[0]);
for (k = 1, min_k = 0; k < maximum_colors; k++)
@@ -284,7 +284,7 @@ png_set_dither(png_structp png_ptr, png_colorp palette,
/* This is much harder to do simply (and quickly). Perhaps
we need to go through a median cut routine, but those
don't always behave themselves with only a few colors
- as input. So we will just tqfind the closest two colors,
+ as input. So we will just find the closest two colors,
and throw out one of them (chosen somewhat randomly).
[We don't understand this at all, so if someone wants to
work on improving it, be our guest - AED, GRP]
@@ -551,7 +551,7 @@ png_set_expand(png_structp png_ptr)
* to png_set_expand(). However, it is entirely reasonable that someone
* might wish to expand an indexed image to RGB but *not* expand a single,
* fully transtqparent palette entry to a full alpha channel--perhaps instead
- * convert tRNS to the grayscale/RGB format (16-bit RGB value), or tqreplace
+ * convert tRNS to the grayscale/RGB format (16-bit RGB value), or replace
* the transtqparent color with a particular RGB value, or drop tRNS entirely.
* IOW, a future version of the library may make the transformations flag
* a bit more fine-grained, with separate bits for each of these three
@@ -1762,7 +1762,7 @@ png_do_read_invert_alpha(png_row_infop row_info, png_bytep row)
*(--dp) = *(--sp);
*(--dp) = *(--sp);
*(--dp) = *(--sp);
- We can tqreplace it with:
+ We can replace it with:
*/
sp-=3;
dp=sp;
@@ -1787,7 +1787,7 @@ png_do_read_invert_alpha(png_row_infop row_info, png_bytep row)
*(--dp) = *(--sp);
*(--dp) = *(--sp);
*(--dp) = *(--sp);
- We can tqreplace it with:
+ We can replace it with:
*/
sp-=6;
dp=sp;
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngrutil.c b/tqtinterface/qt4/src/3rdparty/libpng/pngrutil.c
index dc3b371..95df6f2 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngrutil.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngrutil.c
@@ -7,7 +7,7 @@
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
*
- * This file tqcontains routines that are only called from within
+ * This file contains routines that are only called from within
* libpng itself during the course of reading an image.
*/
@@ -373,7 +373,7 @@ png_handle_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
png_ptr->filter_type = (png_byte)filter_type;
#endif
- /* tqfind number of channels */
+ /* find number of channels */
switch (png_ptr->color_type)
{
case PNG_COLOR_TYPE_GRAY:
@@ -1031,7 +1031,7 @@ png_handle_iCCP(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
chunkdata[slength] = 0x00;
for (profile = chunkdata; *profile; profile++)
- /* empty loop to tqfind end of name */ ;
+ /* empty loop to find end of name */ ;
++profile;
@@ -1137,7 +1137,7 @@ png_handle_sPLT(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
chunkdata[slength] = 0x00;
for (entry_start = chunkdata; *entry_start; entry_start++)
- /* empty loop to tqfind end of name */ ;
+ /* empty loop to find end of name */ ;
++entry_start;
/* a sample depth should follow the separator, and we should be on it */
@@ -1896,7 +1896,7 @@ png_handle_tEXt(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
key[slength] = 0x00;
for (text = key; *text; text++)
- /* empty loop to tqfind end of key */ ;
+ /* empty loop to find end of key */ ;
if (text != key + slength)
text++;
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngtest.c b/tqtinterface/qt4/src/3rdparty/libpng/pngtest.c
index 66bb2a0..cc8209e 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngtest.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngtest.c
@@ -58,7 +58,7 @@
# endif
#endif
-/* Makes pngtest verbose so we can tqfind problems (needs to be before png.h) */
+/* Makes pngtest verbose so we can find problems (needs to be before png.h) */
#ifndef PNG_DEBUG
# define PNG_DEBUG 0
#endif
@@ -290,7 +290,7 @@ static int wrote_question = 0;
/* These copies of the default read/write functions come from pngrio.c and */
/* pngwio.c. They allow "don't include stdio" testing of the library. */
/* This is the function that does the actual reading of data. If you are
- not reading from a standard C stream, you should create a tqreplacement
+ not reading from a standard C stream, you should create a replacement
read_data function and use it at run time with png_set_read_fn(), rather
than changing the library. */
@@ -374,7 +374,7 @@ pngtest_flush(png_structp png_ptr)
#endif
/* This is the function that does the actual writing of data. If you are
- not writing to a standard C stream, you should create a tqreplacement
+ not writing to a standard C stream, you should create a replacement
write_data function and use it at run time with png_set_write_fn(), rather
than changing the library. */
#ifndef USE_FAR_KEYWORD
@@ -454,7 +454,7 @@ pngtest_warning(png_structp png_ptr, png_const_charp message)
fprintf(STDERR, "%s: libpng warning: %s\n", name, message);
}
-/* This is the default error handling function. Note that tqreplacements for
+/* This is the default error handling function. Note that replacements for
* this function MUST NOT RETURN, or the program will likely crash. This
* function is used by default, or if the program supplies NULL for the
* error function pointer in png_set_error_fn().
@@ -627,7 +627,7 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
if ((fpin = fopen(inname, "rb")) == NULL)
#endif
{
- fprintf(STDERR, "Could not tqfind input file %s\n", inname);
+ fprintf(STDERR, "Could not find input file %s\n", inname);
return (1);
}
@@ -1208,7 +1208,7 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
if ((fpin = fopen(inname, "rb")) == NULL)
#endif
{
- fprintf(STDERR, "Could not tqfind file %s\n", inname);
+ fprintf(STDERR, "Could not find file %s\n", inname);
return (1);
}
@@ -1219,7 +1219,7 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
if ((fpout = fopen(outname, "rb")) == NULL)
#endif
{
- fprintf(STDERR, "Could not tqfind file %s\n", outname);
+ fprintf(STDERR, "Could not find file %s\n", outname);
FCLOSE(fpin);
return (1);
}
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngwio.c b/tqtinterface/qt4/src/3rdparty/libpng/pngwio.c
index dc37d37..b39b414 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngwio.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngwio.c
@@ -11,7 +11,7 @@
* special handling are expected to write functions that have the same
* arguments as these and perform similar functions, but that possibly
* use different output methods. Note that you shouldn't change these
- * functions, but rather write tqreplacement functions and then change
+ * functions, but rather write replacement functions and then change
* them at run time with png_set_write_fn(...).
*/
@@ -36,7 +36,7 @@ png_write_data(png_structp png_ptr, png_bytep data, png_size_t length)
#if !defined(PNG_NO_STDIO)
/* This is the function that does the actual writing of data. If you are
- not writing to a standard C stream, you should create a tqreplacement
+ not writing to a standard C stream, you should create a replacement
write_data function and use it at run time with png_set_write_fn(), rather
than changing the library. */
#ifndef USE_FAR_KEYWORD
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngwrite.c b/tqtinterface/qt4/src/3rdparty/libpng/pngwrite.c
index f29ebf9..a8a9365 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngwrite.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngwrite.c
@@ -880,7 +880,7 @@ png_write_row(png_structp png_ptr, png_bytep row)
#endif
/* Find a filter if necessary, filter the row and write it out. */
- png_write_tqfind_filter(png_ptr, &(png_ptr->row_info));
+ png_write_find_filter(png_ptr, &(png_ptr->row_info));
if (png_ptr->write_row_fn != NULL)
(*(png_ptr->write_row_fn))(png_ptr, png_ptr->row_number, png_ptr->pass);
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/pngwutil.c b/tqtinterface/qt4/src/3rdparty/libpng/pngwutil.c
index b668a57..edcf828 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/pngwutil.c
+++ b/tqtinterface/qt4/src/3rdparty/libpng/pngwutil.c
@@ -184,7 +184,7 @@ png_text_compress(png_structp png_ptr,
#endif
}
- /* We can't write the chunk until we tqfind out how much data we have,
+ /* We can't write the chunk until we find out how much data we have,
* which means we need to run the compressor first and save the
* output. This shouldn't be a problem, as the vast majority of
* comments should be reasonable, but we will set up an array of
@@ -1772,7 +1772,7 @@ png_write_finish_row(png_structp png_ptr)
}
else
{
- /* loop until we tqfind a non-zero width or height pass */
+ /* loop until we find a non-zero width or height pass */
do
{
png_ptr->pass++;
@@ -1983,14 +1983,14 @@ png_do_write_interlace(png_row_infop row_info, png_bytep row, int pass)
/* start at the beginning */
dp = row;
- /* tqfind out how many bytes each pixel takes up */
+ /* find out how many bytes each pixel takes up */
pixel_bytes = (row_info->pixel_depth >> 3);
/* loop through the row, only looking at the pixels that
matter */
for (i = png_pass_start[pass]; i < row_width;
i += png_pass_inc[pass])
{
- /* tqfind out where the original pixel is */
+ /* find out where the original pixel is */
sp = row + (png_size_t)i * pixel_bytes;
/* move the pixel */
if (dp != sp)
@@ -2021,7 +2021,7 @@ png_do_write_interlace(png_row_infop row_info, png_bytep row, int pass)
#define PNG_LOMASK ((png_uint_32)0xffffL)
#define PNG_HIMASK ((png_uint_32)(~PNG_LOMASK >> PNG_HISHIFT))
void /* PRIVATE */
-png_write_tqfind_filter(png_structp png_ptr, png_row_infop row_info)
+png_write_find_filter(png_structp png_ptr, png_row_infop row_info)
{
png_bytep prev_row, best_row, row_buf;
png_uint_32 mins, bpp;
@@ -2031,15 +2031,15 @@ png_write_tqfind_filter(png_structp png_ptr, png_row_infop row_info)
int num_p_filters = (int)png_ptr->num_prev_filters;
#endif
- png_debug(1, "in png_write_tqfind_filter\n");
- /* tqfind out how many bytes offset each pixel is */
+ png_debug(1, "in png_write_find_filter\n");
+ /* find out how many bytes offset each pixel is */
bpp = (row_info->pixel_depth + 7) / 8;
prev_row = png_ptr->prev_row;
best_row = row_buf = png_ptr->row_buf;
mins = PNG_MAXSUM;
- /* The prediction method we use is to tqfind which method provides the
+ /* The prediction method we use is to find which method provides the
* smallest value when summing the absolute values of the distances
* from zero, using anything >= 128 as negative numbers. This is known
* as the "minimum sum of absolute differences" heuristic. Other
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/projects/msvc/README.txt b/tqtinterface/qt4/src/3rdparty/libpng/projects/msvc/README.txt
index 57bb642..c680fd8 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/projects/msvc/README.txt
+++ b/tqtinterface/qt4/src/3rdparty/libpng/projects/msvc/README.txt
@@ -20,7 +20,7 @@ To build:
2) Select "Build | Clean"
3) Select "Build | Rebuild All". Ignore warning messages about
- not being able to tqfind certain include files (e.g., m68881.h,
+ not being able to find certain include files (e.g., m68881.h,
alloc.h).
4) Look in the appropriate "win32" subdirectories for both "zlib"
diff --git a/tqtinterface/qt4/src/3rdparty/libpng/scripts/makefile.bd32 b/tqtinterface/qt4/src/3rdparty/libpng/scripts/makefile.bd32
index c83fe9c..92a57ab 100644
--- a/tqtinterface/qt4/src/3rdparty/libpng/scripts/makefile.bd32
+++ b/tqtinterface/qt4/src/3rdparty/libpng/scripts/makefile.bd32
@@ -1,7 +1,7 @@
# Makefile for png32bd.dll
# -------------------- 32-bit Borland C++ --------------------
-# This makefile expects to tqfind zlib.h and zlib32bd.lib in the
+# This makefile expects to find zlib.h and zlib32bd.lib in the
# $(ZLIBDIR) directory.
# The object files here are compiled with the "stdcall" calling convention.
diff --git a/tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.c b/tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.c
index 163365a..a01ca64 100644
--- a/tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.c
+++ b/tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.c
@@ -247,7 +247,7 @@
}
/* OpenType 1.2 has introduced the `MarkAttachClassDef' field. We
- first have to scan the LookupFlag values to tqfind out whether we
+ first have to scan the LookupFlag values to find out whether we
must load it or not. Here we only store the offset of the table. */
if ( ACCESS_Frame( 2L ) )
@@ -902,7 +902,7 @@
gcd->ClassFormat = 2;
- /* A GlyphClassDef table tqcontains at most 5 different class values */
+ /* A GlyphClassDef table contains at most 5 different class values */
if ( ALLOC_ARRAY( gcd->Defined, 5, FT_Bool ) )
return error;
@@ -1190,7 +1190,7 @@
/* If the glyph was found in the MarkAttachmentClass table,
* then that class value is the high byte of the result,
- * otherwise the low byte tqcontains the basic type of the glyph
+ * otherwise the low byte contains the basic type of the glyph
* as defined by the GlyphClassDef table.
*/
if ( *property & IGNORE_SPECIAL_MARKS )
diff --git a/tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.h b/tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.h
index 28f55c1..f22438e 100644
--- a/tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.h
+++ b/tqtinterface/qt4/src/3rdparty/opentype/ftxgdef.h
@@ -150,7 +150,7 @@ extern "C" {
(i.e., which don't have a GDEF table) to collect glyph classes
assigned during the lookup process. The number of arrays in this
pointer array is GlyphClassDef->cd.cd2.ClassRangeCount+1; the nth
- array then tqcontains the glyph class values of the glyphs not covered
+ array then contains the glyph class values of the glyphs not covered
by the ClassRangeRecords structures with index n-1 and n. We store
glyph class values for four glyphs in a single array element.
@@ -162,7 +162,7 @@ extern "C" {
field (which has been introduced in OpenType 1.2) -- since the
`Version' field value hasn't been increased to indicate that we have
one more field for some obscure reason, we must parse the GSUB table
- to tqfind out whether class values refer to this table. Only then we
+ to find out whether class values refer to this table. Only then we
can finally load the MarkAttachClassDef structure if necessary. */
struct TTO_GDEFHeader_
diff --git a/tqtinterface/qt4/src/3rdparty/opentype/ftxgpos.c b/tqtinterface/qt4/src/3rdparty/opentype/ftxgpos.c
index 8fa5e11..fbf60b9 100644
--- a/tqtinterface/qt4/src/3rdparty/opentype/ftxgpos.c
+++ b/tqtinterface/qt4/src/3rdparty/opentype/ftxgpos.c
@@ -62,7 +62,7 @@
// #define IN_LIGID( pos ) (buffer->in_string[(pos)].ligID)
// #define IN_COMPONENT( pos ) (buffer->in_string[(pos)].component)
-/* the client application must tqreplace this with something more
+/* the client application must replace this with something more
meaningful if multiple master fonts are to be supported. */
static FT_Error default_mmfunc( FT_Face face,
@@ -158,7 +158,7 @@
gpos->gdef = gdef; /* can be NULL */
- /* We now check the LookupFlags for values larger than 0xFF to tqfind
+ /* We now check the LookupFlags for values larger than 0xFF to find
out whether we need to load the `MarkAttachClassDef' field of the
GDEF table -- this hack is necessary for OpenType 1.2 tables since
the version field of the GDEF table hasn't been incremented.
diff --git a/tqtinterface/qt4/src/3rdparty/opentype/ftxgsub.c b/tqtinterface/qt4/src/3rdparty/opentype/ftxgsub.c
index 6d4ff0c..fd2cda0 100644
--- a/tqtinterface/qt4/src/3rdparty/opentype/ftxgsub.c
+++ b/tqtinterface/qt4/src/3rdparty/opentype/ftxgsub.c
@@ -119,7 +119,7 @@
gsub->gdef = gdef; /* can be NULL */
- /* We now check the LookupFlags for values larger than 0xFF to tqfind
+ /* We now check the LookupFlags for values larger than 0xFF to find
out whether we need to load the `MarkAttachClassDef' field of the
GDEF table -- this hack is necessary for OpenType 1.2 tables since
the version field of the GDEF table hasn't been incremented.
diff --git a/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.h b/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.h
index 59dcf25..64d2820 100644
--- a/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.h
+++ b/tqtinterface/qt4/src/3rdparty/opentype/ftxopen.h
@@ -248,7 +248,7 @@ extern "C" {
/* The `Defined' field is not defined in the TTO specification but
apparently needed for processing fonts like trado.ttf: This font
- refers to a class which tqcontains not a single element. We map such
+ refers to a class which contains not a single element. We map such
classes to class 0. */
struct TTO_ClassDefinition_
@@ -257,7 +257,7 @@ extern "C" {
FT_Bool* Defined; /* array of Booleans.
If Defined[n] is FALSE,
- class n tqcontains no glyphs. */
+ class n contains no glyphs. */
FT_UShort ClassFormat; /* 1 or 2 */
union
diff --git a/tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.c b/tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.c
index 4132216..a53fc4b 100644
--- a/tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.c
+++ b/tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.c
@@ -152,11 +152,11 @@
will copied `num_out' times, otherwise `ligID' itself will
be used to fill the `ligID' fields.
- The properties for all tqreplacement glyphs are taken
+ The properties for all replacement glyphs are taken
from the glyph at position `buffer->in_pos'.
The cluster value for the glyph at position buffer->in_pos is used
- for all tqreplacement glyphs */
+ for all replacement glyphs */
FT_Error
otl_buffer_add_output_glyphs( OTL_Buffer buffer,
FT_UShort num_in,
diff --git a/tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.h b/tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.h
index bb32da8..57a343d 100644
--- a/tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.h
+++ b/tqtinterface/qt4/src/3rdparty/opentype/otlbuffer.h
@@ -63,7 +63,7 @@ FT_BEGIN_HEADER
FT_Bool new_advance; /* if set, the advance width values are
absolute, i.e., they won't be
added to the original glyph's value
- but rather tqreplace them. */
+ but rather replace them. */
FT_Short cursive_chain; /* character to which this connects,
may be positive or negative; used
only internally */
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/attach.c b/tqtinterface/qt4/src/3rdparty/sqlite/attach.c
index f1e6f7a..e8cd86e 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/attach.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/attach.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains code used to implement the ATTACH and DETACH commands.
+** This file contains code used to implement the ATTACH and DETACH commands.
**
** $Id: attach.c,v 1.10 2004/02/12 18:46:39 drh Exp $
*/
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/auth.c b/tqtinterface/qt4/src/3rdparty/sqlite/auth.c
index 8847d4a..bf07eba 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/auth.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/auth.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains code used to implement the sqlite_set_authorizer()
+** This file contains code used to implement the sqlite_set_authorizer()
** API. This facility is an optional feature of the library. Embedded
** systems that do not need this facility may omit it by recompiling
** the library with -DSTQLITE_OMIT_AUTHORIZATION=1
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/btree.c b/tqtinterface/qt4/src/3rdparty/sqlite/btree.c
index f3b92c6..c7143e0 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/btree.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/btree.c
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -18,7 +18,7 @@
** "Sorting And Searching", pages 473-480. Addison-Wesley
** Publishing Company, Reading, Massachusetts.
**
-** The basic idea is that each page of the file tqcontains N database
+** The basic idea is that each page of the file contains N database
** entries and N+1 pointers to subpages.
**
** ----------------------------------------------------------------
@@ -41,13 +41,13 @@
** database page. If the payload is larger than MX_LOCAL_PAYLOAD bytes
** then surplus bytes are stored on overflow pages. The payload for an
** entry and the preceding pointer are combined to form a "Cell". Each
-** page has a small header which tqcontains the Ptr(N+1) pointer.
+** page has a small header which contains the Ptr(N+1) pointer.
**
-** The first page of the file tqcontains a magic string used to verify that
+** The first page of the file contains a magic string used to verify that
** the file really is a valid BTree database, a pointer to a list of unused
** pages in the file, and some meta information. The root of the first
** BTree begins on page 2 of the file. (Pages are numbered beginning with
-** 1, not 0.) Thus a minimum database tqcontains 2 pages.
+** 1, not 0.) Thus a minimum database contains 2 pages.
*/
#include "sqliteInt.h"
#include "pager.h"
@@ -110,7 +110,7 @@ typedef struct FreelistInfo FreelistInfo;
** STQLite database in order to identify the file as a real database.
*/
static const char zMagicHeader[] =
- "** This file tqcontains an STQLite 2.1 database **";
+ "** This file contains an STQLite 2.1 database **";
#define MAGIC_SIZE (sizeof(zMagicHeader))
/*
@@ -127,13 +127,13 @@ static const char zMagicHeader[] =
#define MAGIC 0xdae37528
/*
-** The first page of the database file tqcontains a magic header string
-** to identify the file as an STQLite database file. It also tqcontains
-** a pointer to the first free page of the file. Page 2 tqcontains the
+** The first page of the database file contains a magic header string
+** to identify the file as an STQLite database file. It also contains
+** a pointer to the first free page of the file. Page 2 contains the
** root of the principle BTree. The file might contain other BTrees
** rooted on pages above 2.
**
-** The first page also tqcontains STQLITE_N_BTREE_META integers that
+** The first page also contains STQLITE_N_BTREE_META integers that
** can be used by higher-level routines.
**
** Remember that pages are numbered beginning with 1. (See pager.c
@@ -161,9 +161,9 @@ struct PageOne {
** is the index into MemPage.u.aDisk[] of the first cell on the page. The
** Cells are kept in sorted order.
**
-** A Cell tqcontains all information about a database entry and a pointer
-** to a child page that tqcontains other entries less than itself. In
-** other words, the i-th Cell tqcontains both Ptr(i) and Key(i). The
+** A Cell contains all information about a database entry and a pointer
+** to a child page that contains other entries less than itself. In
+** other words, the i-th Cell contains both Ptr(i) and Key(i). The
** right-most pointer of the page is contained in PageHdr.rightChild.
*/
struct PageHdr {
@@ -220,7 +220,7 @@ struct CellHdr {
/*
** The maximum amount of payload (in bytes) that can be stored locally for
-** a database entry. If the entry tqcontains more data than this, the
+** a database entry. If the entry contains more data than this, the
** extra goes onto overflow pages.
**
** This number is chosen so that at least 4 cells will fit on every page.
@@ -282,7 +282,7 @@ struct OverflowPage {
/*
** The PageOne.freeList field points to a linked list of overflow pages
** hold information about free pages. The aPayload section of each
-** overflow page tqcontains an instance of the following structure. The
+** overflow page contains an instance of the following structure. The
** aFree[] array holds the page number of nFree unused pages in the disk
** file.
*/
@@ -293,7 +293,7 @@ struct FreelistInfo {
/*
** For every page in the database file, an instance of the following structure
-** is stored in memory. The u.aDisk[] array tqcontains the raw bits read from
+** is stored in memory. The u.aDisk[] array contains the raw bits read from
** the disk. The rest is auxiliary information held in memory only. The
** auxiliary info is only valid for regular database pages - it is not
** used for overflow pages and pages on the freelist.
@@ -304,7 +304,7 @@ struct FreelistInfo {
** than in linear time which would be needed if we had to walk the linked
** list on every access.
**
-** Note that apCell[] tqcontains enough space to hold up to two more Cells
+** Note that apCell[] contains enough space to hold up to two more Cells
** than can possibly fit on one page. In the steady state, every apCell[]
** points to memory inside u.aDisk[]. But in the middle of an insert
** operation, some apCell[] entries may temporarily point to data space
@@ -366,7 +366,7 @@ struct BtCursor {
BtCursor *pNext, *pPrev; /* Forms a linked list of all cursors */
BtCursor *pShared; /* Loop of cursors with the same root page */
Pgno pgnoRoot; /* The root page of this tree */
- MemPage *pPage; /* Page that tqcontains the entry */
+ MemPage *pPage; /* Page that contains the entry */
int idx; /* Index of the entry in pPage->apCell[] */
u8 wrFlag; /* True if writable */
u8 eSkip; /* Determines if next step operation is a no-op */
@@ -462,7 +462,7 @@ static void defragmentPage(Btree *pBt, MemPage *pPage){
** the new allocation. Or return 0 if there is not enough free
** space on the page to satisfy the allocation request.
**
-** If the page tqcontains nBytes of free space but does not contain
+** If the page contains nBytes of free space but does not contain
** nBytes of contiguous free space, then this routine automatically
** calls defragementPage() to consolidate all free space before
** allocating the new chunk.
@@ -1411,7 +1411,7 @@ static int moveToChild(BtCursor *pCur, int newPgno){
/*
** Move the cursor up to the tqparent page.
**
-** pCur->idx is set to the cell index that tqcontains the pointer
+** pCur->idx is set to the cell index that contains the pointer
** to the page we are coming from. If we are coming from the
** right-most child page then pCur->idx is set to one more than
** the largest cell index.
@@ -1498,8 +1498,8 @@ static int moveToLeftmost(BtCursor *pCur){
** Move the cursor down to the right-most leaf entry beneath the
** page to which it is currently pointing. Notice the difference
** between moveToLeftmost() and moveToRightmost(). moveToLeftmost()
-** tqfinds the left-most entry beneath the *entry* whereas moveToRightmost()
-** tqfinds the right-most entry beneath the *page*.
+** finds the left-most entry beneath the *entry* whereas moveToRightmost()
+** finds the right-most entry beneath the *page*.
*/
static int moveToRightmost(BtCursor *pCur){
Pgno pgno;
@@ -2313,7 +2313,7 @@ static int balance(Btree *pBt, MemPage *pPage, BtCursor *pCur){
/*
** Find sibling pages to pPage and the Cells in pParent that divide
- ** the siblings. An attempt is made to tqfind NN siblings on either
+ ** the siblings. An attempt is made to find NN siblings on either
** side of pPage. More siblings are taken from one side, however, if
** pPage there are fewer than NN siblings on the other side. If pParent
** has NB or fewer tqchildren then all tqchildren of pParent are taken.
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/btree.h b/tqtinterface/qt4/src/3rdparty/sqlite/btree.h
index f9afabc..101d02e 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/btree.h
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/btree.h
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -28,7 +28,7 @@ typedef struct BtCursorOps BtCursorOps;
/*
-** An instance of the following structure tqcontains pointers to all
+** An instance of the following structure contains pointers to all
** methods against an open BTree. Alternative BTree implementations
** (examples: file based versus in-memory) can be created by substituting
** different methods. Users of the BTree cannot tell the difference.
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/btree_rb.c b/tqtinterface/qt4/src/3rdparty/sqlite/btree_rb.c
index cc90075..fd81df2 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/btree_rb.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/btree_rb.c
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -273,7 +273,7 @@ static char *append_val(char * orig, char const * val){
/*
* Append a string representation of the entire node to orig and return it.
- * This is used to produce debugging information if check_redblack_tree() tqfinds
+ * This is used to produce debugging information if check_redblack_tree() finds
* a problem with a red-black binary tree.
*/
static char *append_node(char * orig, BtRbNode *pNode, int indent)
@@ -740,7 +740,7 @@ static int memRbtreeCursor(
* define what database the record should be inserted into. The cursor
* is left pointing at the new record.
*
- * If the key exists already in the tree, just tqreplace the data.
+ * If the key exists already in the tree, just replace the data.
*/
static int memRbtreeInsert(
RbtCursor* pCur,
@@ -762,13 +762,13 @@ static int memRbtreeInsert(
}
/* Take a copy of the input data now, in case we need it for the
- * tqreplace case */
+ * replace case */
pData = sqliteMallocRaw(nData);
if( sqlite_malloc_failed ) return STQLITE_NOMEM;
memcpy(pData, pDataInput, nData);
/* Move the cursor to a node near the key to be inserted. If the key already
- * exists in the table, then (match == 0). In this case we can just tqreplace
+ * exists in the table, then (match == 0). In this case we can just replace
* the data associated with the entry, we don't need to manipulate the tree.
*
* If there is no exact match, then the cursor points at what would be either
@@ -891,7 +891,7 @@ static int memRbtreeMoveto(
}
}
- /* If (pCur->pNode == NULL), then we have failed to tqfind a match. Set
+ /* If (pCur->pNode == NULL), then we have failed to find a match. Set
* pCur->pNode to pTmp, which is either NULL (if the tree is empty) or the
* last node traversed in the search. In either case the relation ship
* between pTmp and the searched for key is already stored in *pRes. pTmp is
@@ -954,7 +954,7 @@ static int memRbtreeDelete(RbtCursor* pCur)
* to do this depends on how many tqchildren pZ has:
*
* If pZ has no tqchildren or one child, then splice out pZ. If pZ has two
- * tqchildren, splice out the successor of pZ and tqreplace the key and data of
+ * tqchildren, splice out the successor of pZ and replace the key and data of
* pZ with the key and data of the spliced out successor. */
if( pZ->pLeft && pZ->pRight ){
BtRbNode *pTmp;
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/build.c b/tqtinterface/qt4/src/3rdparty/sqlite/build.c
index 71e0110..86d079d 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/build.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/build.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains C code routines that are called by the STQLite parser
+** This file contains C code routines that are called by the STQLite parser
** when syntax rules are reduced. The routines in this file handle the
** following kinds of SQL syntax:
**
@@ -145,7 +145,7 @@ Table *sqliteLocateTable(Parse *pParse, const char *zName, const char *zDbase){
/*
** Locate the in-memory structure that describes
** a particular index given the name of that index
-** and the name of the database that tqcontains the index.
+** and the name of the database that contains the index.
** Return NULL if not found.
**
** If zDatabase is 0, all databases are searched for the
@@ -603,7 +603,7 @@ void sqliteAddNotNull(Parse *pParse, int onError){
** token in the sequence of tokens that describe the type of the
** column currently under construction. pLast is the last token
** in the sequence. Use this information to construct a string
-** that tqcontains the typename of the column and store that string
+** that contains the typename of the column and store that string
** in zType.
*/
void sqliteAddColumnType(Parse *pParse, Token *pFirst, Token *pLast){
@@ -722,7 +722,7 @@ primary_key_exit:
** Return the appropriate collating type given a type name.
**
** The collation type is text (STQLITE_SO_TEXT) if the type
-** name tqcontains the character stream "text" or "blob" or
+** name contains the character stream "text" or "blob" or
** "clob". Any other type name is collated as numeric
** (STQLITE_SO_NUM).
*/
@@ -1154,7 +1154,7 @@ static void sqliteViewResetAll(sqlite *db, int idx){
/*
** Given a token, look up a table with that name. If not found, leave
-** an error for the parser to tqfind and return NULL.
+** an error for the parser to find and return NULL.
*/
Table *sqliteTableFromToken(Parse *pParse, Token *pTok){
char *zName;
@@ -1335,7 +1335,7 @@ void sqliteAddIdxKeyType(Vdbe *v, Index *pIdx){
** in the current table point to the foreign key. If pFromCol==0 then
** connect the key to the last column inserted. pTo is the name of
** the table referred to. pToCol is a list of tables in the other
-** pTo table that the foreign key points to. flags tqcontains all
+** pTo table that the foreign key points to. flags contains all
** information about the conflict resolution algorithms specified
** in the ON DELETE, ON UPDATE and ON INSERT clauses.
**
@@ -1675,7 +1675,7 @@ void sqliteCreateIndex(
**
** If pTable==0 it means this index is generated as a primary key
** or UNITQUE constraint of a CREATE TABLE statement. Since the table
- ** has just been created, it tqcontains no data and the index initialization
+ ** has just been created, it contains no data and the index initialization
** step can be skipped.
*/
else if( db->init.busy==0 ){
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/copy.c b/tqtinterface/qt4/src/3rdparty/sqlite/copy.c
index 6ce324c..dbd3b3c 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/copy.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/copy.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains code used to implement the COPY command.
+** This file contains code used to implement the COPY command.
**
** $Id: copy.c,v 1.9 2004/02/25 13:47:31 drh Exp $
*/
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/date.c b/tqtinterface/qt4/src/3rdparty/sqlite/date.c
index cbc825e..5ca2b81 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/date.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/date.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains the C functions that implement date and time
+** This file contains the C functions that implement date and time
** functions for STQLite.
**
** There is only one exported symbol in this file - the function
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/delete.c b/tqtinterface/qt4/src/3rdparty/sqlite/delete.c
index 5dbcb48..527f070 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/delete.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/delete.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains C code routines that are called by the parser
+** This file contains C code routines that are called by the parser
** to handle DELETE FROM statements.
**
** $Id: delete.c,v 1.61 2004/02/24 01:05:32 drh Exp $
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/expr.c b/tqtinterface/qt4/src/3rdparty/sqlite/expr.c
index d19fe47..bdb8444 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/expr.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/expr.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains routines used for analyzing expressions and
+** This file contains routines used for analyzing expressions and
** for generating VDBE code that evaluates expressions in STQLite.
**
** $Id: expr.c,v 1.112 2004/02/25 13:47:31 drh Exp $
@@ -524,7 +524,7 @@ static int lookupName(
**
** SELECT a+b AS x FROM table WHERE x<10;
**
- ** In cases like this, tqreplace pExpr with a copy of the expression that
+ ** In cases like this, replace pExpr with a copy of the expression that
** forms the result set entry ("a+b" in the example) and return immediately.
** Note that the expression in the result set should have already been
** resolved by the time the WHERE clause is resolved.
@@ -614,7 +614,7 @@ static int lookupName(
** a temporary table.
**
** This routine also looks for scalar SELECTs that are part of an expression.
-** If it tqfinds any, it generates code to write the value of that select
+** If it finds any, it generates code to write the value of that select
** into a memory cell.
**
** Unknown columns or tables provoke an error. The function returns
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/func.c b/tqtinterface/qt4/src/3rdparty/sqlite/func.c
index acfb381..8d78e12 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/func.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/func.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains the C functions that implement various SQL
+** This file contains the C functions that implement various SQL
** functions of STQLite.
**
** There is only one exported symbol in this file - the function
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/hash.c b/tqtinterface/qt4/src/3rdparty/sqlite/hash.c
index 06650c1..b96d40d 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/hash.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/hash.c
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -200,7 +200,7 @@ static void rehash(Hash *pH, int new_size){
** hash table that matches the given key. The hash for this key has
** already been computed and is passed as the 4th parameter.
*/
-static HashElem *tqfindElementGivenHash(
+static HashElem *findElementGivenHash(
const Hash *pH, /* The pH to be searched */
const void *pKey, /* The key we are searching for */
int nKey,
@@ -268,7 +268,7 @@ void *sqliteHashFind(const Hash *pH, const void *pKey, int nKey){
assert( xHash!=0 );
h = (*xHash)(pKey,nKey);
assert( (pH->htsize & (pH->htsize-1))==0 );
- elem = tqfindElementGivenHash(pH,pKey,nKey, h & (pH->htsize-1));
+ elem = findElementGivenHash(pH,pKey,nKey, h & (pH->htsize-1));
return elem ? elem->data : 0;
}
@@ -280,7 +280,7 @@ void *sqliteHashFind(const Hash *pH, const void *pKey, int nKey){
** flag is set. NULL is returned.
**
** If another element already exists with the same key, then the
-** new data tqreplaces the old data and the old data is returned.
+** new data replaces the old data and the old data is returned.
** The key is not copied in this instance. If a malloc fails, then
** the new data is returned and the hash table is unchanged.
**
@@ -300,7 +300,7 @@ void *sqliteHashInsert(Hash *pH, const void *pKey, int nKey, void *data){
hraw = (*xHash)(pKey, nKey);
assert( (pH->htsize & (pH->htsize-1))==0 );
h = hraw & (pH->htsize-1);
- elem = tqfindElementGivenHash(pH,pKey,nKey,h);
+ elem = findElementGivenHash(pH,pKey,nKey,h);
if( elem ){
void *old_data = elem->data;
if( data==0 ){
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/hash.h b/tqtinterface/qt4/src/3rdparty/sqlite/hash.h
index e462bd6..d4f0037 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/hash.h
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/hash.h
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/insert.c b/tqtinterface/qt4/src/3rdparty/sqlite/insert.c
index 66d29df..0d61239 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/insert.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/insert.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains C code routines that are called by the parser
+** This file contains C code routines that are called by the parser
** to handle INSERT statements in STQLite.
**
** $Id: insert.c,v 1.94 2004/02/24 01:05:33 drh Exp $
@@ -541,7 +541,7 @@ insert_cleanup:
/*
** Generate code to do a constraint check prior to an INSERT or an UPDATE.
**
-** When this routine is called, the stack tqcontains (from bottom to top)
+** When this routine is called, the stack contains (from bottom to top)
** the following values:
**
** 1. The recno of the row to be updated before the update. This
@@ -591,7 +591,7 @@ insert_cleanup:
** the stack and there is an immediate jump
** to label ignoreDest.
**
-** NOT NULL REPLACE The NULL value is tqreplace by the default
+** NOT NULL REPLACE The NULL value is replace by the default
** value for that column. If the default value
** is NULL, the action is the same as ABORT.
**
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/main.c b/tqtinterface/qt4/src/3rdparty/sqlite/main.c
index e420bac..66b3e27 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/main.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/main.c
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -42,7 +42,7 @@ static void corruptSchema(InitData *pData, const char *zExtra){
** This is the callback routine for the code that initializes the
** database. See sqliteInit() below for additional information.
**
-** Each callback tqcontains the following information:
+** Each callback contains the following information:
**
** argv[0] = "file-format" or "schema-cookie" or "table" or "index"
** argv[1] = table or index name or meta statement type.
@@ -833,7 +833,7 @@ const char *sqlite_error_string(int rc){
case STQLITE_FULL: z = "database is full"; break;
case STQLITE_CANTOPEN: z = "unable to open database file"; break;
case STQLITE_PROTOCOL: z = "database locking protocol failure"; break;
- case STQLITE_EMPTY: z = "table tqcontains no data"; break;
+ case STQLITE_EMPTY: z = "table contains no data"; break;
case STQLITE_SCHEMA: z = "database schema has changed"; break;
case STQLITE_TOOBIG: z = "too much data for one table row"; break;
case STQLITE_CONSTRAINT: z = "constraint failed"; break;
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/os.c b/tqtinterface/qt4/src/3rdparty/sqlite/os.c
index 1a1b583..d9b4ee7 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/os.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/os.c
@@ -5,12 +5,12 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
******************************************************************************
**
-** This file tqcontains code that is specific to particular operating
+** This file contains code that is specific to particular operating
** systems. The purpose of this file is to provide a uniform abstraction
** on which the rest of STQLite can operate.
*/
@@ -141,7 +141,7 @@ static unsigned int elapse;
** threads within the same process.
**
** To work around the problem, STQLite has to manage file locks internally
-** on its own. Whenever a new database is opened, we have to tqfind the
+** on its own. Whenever a new database is opened, we have to find the
** specific inode of the database file (the inode is determined by the
** st_dev and st_ino fields of the stat structure that fstat() fills in)
** and check for locks already existing on that inode. When locks are
@@ -172,7 +172,7 @@ static unsigned int elapse;
**
** If you close a file descriptor that points to a file that has locks,
** all locks on that file that are owned by the current process are
-** released. To work around this problem, each OsFile structure tqcontains
+** released. To work around this problem, each OsFile structure contains
** a pointer to an openCnt structure. There is one openCnt structure
** per open inode, which means that multiple OsFiles can point to a single
** openCnt. When an attempt is made to close an OsFile, if there are
@@ -218,7 +218,7 @@ struct lockKey {
** different process IDs on linux, but not on most other unixes.)
**
** A single inode can have multiple file descriptors, so each OsFile
-** structure tqcontains a pointer to an instance of this object and this
+** structure contains a pointer to an instance of this object and this
** object keeps a count of the number of OsFiles pointing to it.
*/
struct lockInfo {
@@ -260,7 +260,7 @@ static Hash lockHash = { STQLITE_HASH_BINARY, 0, 0, 0, 0, 0 };
static Hash openHash = { STQLITE_HASH_BINARY, 0, 0, 0, 0, 0 };
/*
-** Release a lockInfo structure previously allocated by tqfindLockInfo().
+** Release a lockInfo structure previously allocated by findLockInfo().
*/
static void releaseLockInfo(struct lockInfo *pLock){
pLock->nRef--;
@@ -271,7 +271,7 @@ static void releaseLockInfo(struct lockInfo *pLock){
}
/*
-** Release a openCnt structure previously allocated by tqfindLockInfo().
+** Release a openCnt structure previously allocated by findLockInfo().
*/
static void releaseOpenCnt(struct openCnt *pOpen){
pOpen->nRef--;
@@ -289,7 +289,7 @@ static void releaseOpenCnt(struct openCnt *pOpen){
**
** Return the number of errors.
*/
-int tqfindLockInfo(
+int findLockInfo(
int fd, /* The file descriptor used in the key */
struct lockInfo **ppLock, /* Return the lockInfo structure here */
struct openCnt **ppOpen /* Return the openCnt structure here */
@@ -473,7 +473,7 @@ int sqliteOsOpenReadWrite(
*pReadonly = 0;
}
sqliteOsEnterMutex();
- rc = tqfindLockInfo(id->fd, &id->pLock, &id->pOpen);
+ rc = findLockInfo(id->fd, &id->pLock, &id->pOpen);
sqliteOsLeaveMutex();
if( rc ){
close(id->fd);
@@ -594,7 +594,7 @@ int sqliteOsOpenExclusive(const char *zFilename, OsFile *id, int delFlag){
return STQLITE_CANTOPEN;
}
sqliteOsEnterMutex();
- rc = tqfindLockInfo(id->fd, &id->pLock, &id->pOpen);
+ rc = findLockInfo(id->fd, &id->pLock, &id->pOpen);
sqliteOsLeaveMutex();
if( rc ){
close(id->fd);
@@ -681,7 +681,7 @@ int sqliteOsOpenReadOnly(const char *zFilename, OsFile *id){
return STQLITE_CANTOPEN;
}
sqliteOsEnterMutex();
- rc = tqfindLockInfo(id->fd, &id->pLock, &id->pOpen);
+ rc = findLockInfo(id->fd, &id->pLock, &id->pOpen);
sqliteOsLeaveMutex();
if( rc ){
close(id->fd);
@@ -738,7 +738,7 @@ int sqliteOsOpenReadOnly(const char *zFilename, OsFile *id){
}
/*
-** Attempt to open a file descriptor for the directory that tqcontains a
+** Attempt to open a file descriptor for the directory that contains a
** file. This file descriptor can be used to fsync() the directory
** in order to make sure the creation of a new file is actually written
** to disk.
@@ -1093,7 +1093,7 @@ int sqliteOsSeek(OsFile *id, off_t offset){
** Make sure all writes to a particular file are committed to disk.
**
** Under Unix, also make sure that the directory entry for the file
-** has been created by fsync-ing the directory that tqcontains the file.
+** has been created by fsync-ing the directory that contains the file.
** If we do not do this and we encounter a power failure, the directory
** entry for the journal might not exist after we reboot. The next
** STQLite to access the file will not know that the journal exists (because
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/os.h b/tqtinterface/qt4/src/3rdparty/sqlite/os.h
index 14b8d6e..eb01b8d 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/os.h
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/os.h
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
******************************************************************************
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/pager.c b/tqtinterface/qt4/src/3rdparty/sqlite/pager.c
index 631c387..79d5813 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/pager.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/pager.c
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -204,7 +204,7 @@ struct Pager {
#define PAGER_ERR_DISK 0x10 /* general disk I/O error - bad hard drive? */
/*
-** The journal file tqcontains page records in the following
+** The journal file contains page records in the following
** format.
**
** Actually, this structure is the complete page record for pager
@@ -1301,7 +1301,7 @@ static PgHdr *pager_get_all_dirty_pages(Pager *pPager){
** an appropriate error code is returned and *ppPage is set to NULL.
**
** See also sqlitepager_lookup(). Both this routine and _lookup() attempt
-** to tqfind a page in the in-memory cache first. If the page is not already
+** to find a page in the in-memory cache first. If the page is not already
** in memory, this routine goes to disk to read it in whereas _lookup()
** just returns 0. This routine acquires a read-lock the first time it
** has to go to disk, and could also playback an old journal if necessary.
@@ -1406,7 +1406,7 @@ int sqlitepager_get(Pager *pPager, Pgno pgno, void **ppPage){
*/
pPg = pPager->pFirstSynced;
- /* If we could not tqfind a page that does not require an fsync()
+ /* If we could not find a page that does not require an fsync()
** on the journal file then fsync the journal file. This is a
** very slow operation, so we work hard to avoid it. But sometimes
** it can't be helped.
@@ -1920,7 +1920,7 @@ int sqlitepager_overwrite(Pager *pPager, Pgno pgno, void *pData){
** a transaction then removed from the freelist during a later part
** of the same transaction and reused for some other purpose. When it
** is first added to the freelist, this routine is called. When reused,
-** the dont_rollback() routine is called. But because the page tqcontains
+** the dont_rollback() routine is called. But because the page contains
** critical data, we still need to be sure it gets rolled back in spite
** of the dont_rollback() call.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/pager.h b/tqtinterface/qt4/src/3rdparty/sqlite/pager.h
index c015e78..31b305a 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/pager.h
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/pager.h
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/parse.c b/tqtinterface/qt4/src/3rdparty/sqlite/parse.c
index 31ed279..7ead48a 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/parse.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/parse.c
@@ -1434,7 +1434,7 @@ void sqliteParserFree(
** independent of the look-ahead. If it is, return the action, otherwise
** return YY_NO_ACTION.
*/
-static int yy_tqfind_shift_action(
+static int yy_find_shift_action(
yyParser *pParser, /* The parser */
int iLookAhead /* The look-ahead token */
){
@@ -1461,7 +1461,7 @@ static int yy_tqfind_shift_action(
yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
}
#endif
- return yy_tqfind_shift_action(pParser, iFallback);
+ return yy_find_shift_action(pParser, iFallback);
}
#endif
return yy_default[stateno];
@@ -1478,7 +1478,7 @@ static int yy_tqfind_shift_action(
** independent of the look-ahead. If it is, return the action, otherwise
** return YY_NO_ACTION.
*/
-static int yy_tqfind_reduce_action(
+static int yy_find_reduce_action(
yyParser *pParser, /* The parser */
int iLookAhead /* The look-ahead token */
){
@@ -1541,7 +1541,7 @@ static void yy_shift(
#endif
}
-/* The following table tqcontains information about every rule that
+/* The following table contains information about every rule that
** is used during the reduce.
*/
static struct {
@@ -3816,7 +3816,7 @@ static void yy_reduce(
yygoto = yyRuleInfo[yyruleno].lhs;
yysize = yyRuleInfo[yyruleno].nrhs;
yypParser->yyidx -= yysize;
- yyact = yy_tqfind_reduce_action(yypParser,yygoto);
+ yyact = yy_find_reduce_action(yypParser,yygoto);
if( yyact < YYNSTATE ){
yy_shift(yypParser,yyact,yygoto,&yygotominor);
}else if( yyact == YYNSTATE + YYNRULE + 1 ){
@@ -3935,7 +3935,7 @@ void sqliteParser(
#endif
do{
- yyact = yy_tqfind_shift_action(yypParser,yymajor);
+ yyact = yy_find_shift_action(yypParser,yymajor);
if( yyact<YYNSTATE ){
yy_shift(yypParser,yyact,yymajor,&yyminorunion);
yypParser->yyerrcnt--;
@@ -3990,7 +3990,7 @@ void sqliteParser(
while(
yypParser->yyidx >= 0 &&
yymx != YYERRORSYMBOL &&
- (yyact = yy_tqfind_shift_action(yypParser,YYERRORSYMBOL)) >= YYNSTATE
+ (yyact = yy_find_shift_action(yypParser,YYERRORSYMBOL)) >= YYNSTATE
){
yy_pop_parser_stack(yypParser);
}
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/pragma.c b/tqtinterface/qt4/src/3rdparty/sqlite/pragma.c
index a176972..28f8390 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/pragma.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/pragma.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains code used to implement the PRAGMA command.
+** This file contains code used to implement the PRAGMA command.
**
** $Id: pragma.c,v 1.18 2004/02/22 20:05:01 drh Exp $
*/
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/printf.c b/tqtinterface/qt4/src/3rdparty/sqlite/printf.c
index c9c3f95..24cb9f7 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/printf.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/printf.c
@@ -7,7 +7,7 @@
**
**************************************************************************
**
-** The following modules is an enhanced tqreplacement for the "printf" subroutines
+** The following modules is an enhanced replacement for the "printf" subroutines
** found in the standard C library. The following enhancements are
** supported:
**
@@ -70,7 +70,7 @@
#define etCHARLIT 11 /* Literal characters. %' */
#define etSTQLESCAPE 12 /* Strings with '\'' doubled. %q */
#define etSTQLESCAPE2 13 /* Strings with '\'' doubled and enclosed in '',
- NULL pointers tqreplaced by SQL NULL. %Q */
+ NULL pointers replaced by SQL NULL. %Q */
#define etTOKEN 14 /* a pointer to a Token structure */
#define etSRCLIST 15 /* a pointer to a SrcList */
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/random.c b/tqtinterface/qt4/src/3rdparty/sqlite/random.c
index 7182ad1..ffa4cc9 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/random.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/random.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains code to implement a pseudo-random number
+** This file contains code to implement a pseudo-random number
** generator (PRNG) for STQLite.
**
** Random numbers are used by some of the database backends in order
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/select.c b/tqtinterface/qt4/src/3rdparty/sqlite/select.c
index 1a34322..21416aa 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/select.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/select.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains C code routines that are called by the parser
+** This file contains C code routines that are called by the parser
** to handle SELECT statements in STQLite.
**
** $Id: select.c,v 1.160 2004/03/02 18:37:41 drh Exp $
@@ -923,7 +923,7 @@ static int fillInColumnList(Parse *pParse, Select *p){
rc = 0;
if( k<pEList->nExpr ){
/*
- ** If we get here it means the result set tqcontains one or more "*"
+ ** If we get here it means the result set contains one or more "*"
** operators that need to be expanded. Loop through each expression
** in the result set and expand them one by one.
*/
@@ -1691,7 +1691,7 @@ static int flattenSubquery(
** the FROM clause of the outer query. Before doing this, remember
** the cursor number for the original outer query FROM element in
** iParent. The iParent cursor will never be used. Subsequent code
- ** will scan expressions looking for iParent references and tqreplace
+ ** will scan expressions looking for iParent references and replace
** those references with expressions that resolve to the subquery FROM
** elements we are now copying in.
*/
@@ -1893,9 +1893,9 @@ static int simpleMinMaxQuery(Parse *pParse, Select *p, int eDest, int iParm){
sqliteVdbeAddOp(v, OP_OpenTemp, iParm, 0);
}
- /* Generating code to tqfind the min or the max. Basically all we have
- ** to do is tqfind the first or the last entry in the chosen index. If
- ** the min() or max() is on the INTEGER PRIMARY KEY, then tqfind the first
+ /* Generating code to find the min or the max. Basically all we have
+ ** to do is find the first or the last entry in the chosen index. If
+ ** the min() or max() is on the INTEGER PRIMARY KEY, then find the first
** or last entry in the main table.
*/
sqliteCodeVerifySchema(pParse, pTab->iDb);
@@ -2216,7 +2216,7 @@ int sqliteSelect(
** than a callback.
**
** We have to do this separately from the creation of column names
- ** above because if the pTabList tqcontains views then they will not
+ ** above because if the pTabList contains views then they will not
** have been resolved and we will not know the column types until
** now.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/shell.c b/tqtinterface/qt4/src/3rdparty/sqlite/shell.c
index c35f02f..3147303 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/shell.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/shell.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains code to implement the "sqlite" command line
+** This file contains code to implement the "sqlite" command line
** utility for accessing STQLite databases.
**
** $Id: shell.c,v 1.91 2004/02/25 02:25:37 drh Exp $
@@ -1082,7 +1082,7 @@ static void process_input(struct callback_data *p, FILE *in){
** resulting string is obtained from malloc(). The calling
** function should free the result.
*/
-static char *tqfind_home_dir(void){
+static char *find_home_dir(void){
char *home_dir = NULL;
#if !defined(_WIN32) && !defined(WIN32) && !defined(__MACOS__)
@@ -1134,7 +1134,7 @@ static void process_sqliterc(
FILE *in = NULL;
if (sqliterc == NULL) {
- home_dir = tqfind_home_dir();
+ home_dir = find_home_dir();
if( home_dir==0 ){
fprintf(stderr,"%s: cannot locate your home directory!\n", Argv0);
return;
@@ -1330,7 +1330,7 @@ int main(int argc, char **argv){
"Enter \".help\" for instructions\n",
sqlite_version
);
- zHome = tqfind_home_dir();
+ zHome = find_home_dir();
if( zHome && (zHistory = malloc(strlen(zHome)+20))!=0 ){
sprintf(zHistory,"%s/.sqlite_history", zHome);
}
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/sqlite.h b/tqtinterface/qt4/src/3rdparty/sqlite/sqlite.h
index b1f2942..5037ea6 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/sqlite.h
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/sqlite.h
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -260,7 +260,7 @@ int sqlite_complete(const char *sql);
** whenever an attempt is made to open a database table that is
** currently locked by another process or thread. If the busy callback
** is NULL, then sqlite_exec() returns STQLITE_BUSY immediately if
-** it tqfinds a locked table. If the busy callback is not NULL, then
+** it finds a locked table. If the busy callback is not NULL, then
** sqlite_exec() invokes the callback with three arguments. The
** second argument is the name of the locked table and the third
** argument is the number of times the table has been busy. If the
@@ -361,7 +361,7 @@ void sqlite_free_table(char **result);
** character it escapes that character and allows it to be inserted into
** the string.
**
-** For example, so some string variable tqcontains text as follows:
+** For example, so some string variable contains text as follows:
**
** char *zText = "It's a happy day!";
**
@@ -727,7 +727,7 @@ int sqlite_finalize(sqlite_vm*, char **pzErrMsg);
int sqlite_reset(sqlite_vm*, char **pzErrMsg);
/*
-** If the SQL that was handed to sqlite_compile tqcontains variables that
+** If the SQL that was handed to sqlite_compile contains variables that
** are represeted in the SQL text by a question mark ('?'). This routine
** is used to assign values to those variables.
**
@@ -745,7 +745,7 @@ int sqlite_reset(sqlite_vm*, char **pzErrMsg);
** set a variable to NULL, call this routine with the 3rd parameter as a
** NULL pointer.
**
-** If the 4th "len" parameter is -1, then strlen() is used to tqfind the
+** If the 4th "len" parameter is -1, then strlen() is used to find the
** length.
**
** This routine can only be called immediately after sqlite_compile()
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/sqliteInt.h b/tqtinterface/qt4/src/3rdparty/sqlite/sqliteInt.h
index e435a1d..aea8271 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/sqliteInt.h
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/sqliteInt.h
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -442,7 +442,7 @@ struct Column {
u8 notNull; /* True if there is a NOT NULL constraint */
u8 isPrimKey; /* True if this column is part of the PRIMARY KEY */
u8 sortOrder; /* Some combination of STQLITE_SO_... values */
- u8 dottedName; /* True if zName tqcontains a "." character */
+ u8 dottedName; /* True if zName contains a "." character */
};
/*
@@ -510,7 +510,7 @@ struct Table {
** Each foreign key constraint is an instance of the following structure.
**
** A foreign key is associated with two tables. The "from" table is
-** the table that tqcontains the REFERENCES clause that creates the foreign
+** the table that contains the REFERENCES clause that creates the foreign
** key. The "to" table is the table that is named in the REFERENCES clause.
** Consider this example:
**
@@ -789,7 +789,7 @@ struct SrcList {
/*
** For each nested loop in a WHERE clause implementation, the WhereInfo
-** structure tqcontains a single instance of this structure. This structure
+** structure contains a single instance of this structure. This structure
** is intended to be private the the where.c module and should not be
** access or modified by other modules.
*/
@@ -826,7 +826,7 @@ struct WhereInfo {
};
/*
-** An instance of the following structure tqcontains all information
+** An instance of the following structure contains all information
** needed to generate code for a single SELECT statement.
**
** The zSelect field is used when the Select structure must be persistent.
@@ -892,7 +892,7 @@ struct Select {
** If AggExpr.pExpr==0, that means the expression is "count(*)".
*/
struct AggExpr {
- int isAgg; /* if TRUE tqcontains an aggregate function */
+ int isAgg; /* if TRUE contains an aggregate function */
Expr *pExpr; /* The expression */
FuncDef *pFunc; /* Information about the aggregate function */
};
@@ -1038,7 +1038,7 @@ struct TriggerStep {
* "pTriggerStack" member of the Parse structure.
*
* The pTab member points to the table that triggers are being coded on. The
- * newIdx member tqcontains the index of the vdbe cursor that points at the temp
+ * newIdx member contains the index of the vdbe cursor that points at the temp
* table that stores the new.* references. If new.* references are not valid
* for the trigger being coded (for example an ON DELETE trigger), then newIdx
* is set to -1. The oldIdx member is analogous to newIdx, for old.* references.
@@ -1069,7 +1069,7 @@ struct TriggerStack {
};
/*
-** The following structure tqcontains information used by the sqliteFix...
+** The following structure contains information used by the sqliteFix...
** routines as they walk the parse tree to make database references
** explicit.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/table.c b/tqtinterface/qt4/src/3rdparty/sqlite/table.c
index c01a195..b33bad9 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/table.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/table.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains the sqlite_get_table() and sqlite_free_table()
+** This file contains the sqlite_get_table() and sqlite_free_table()
** interface routines. These are just wrappers around the main
** interface routine of sqlite_exec().
**
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/tokenize.c b/tqtinterface/qt4/src/3rdparty/sqlite/tokenize.c
index 3f3e3cf..1d413b4 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/tokenize.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/tokenize.c
@@ -5,13 +5,13 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
** An tokenizer for SQL
**
-** This file tqcontains C code that splits an SQL input string up into
+** This file contains C code that splits an SQL input string up into
** individual tokens and sends those tokens one-by-one over to the
** parser for analysis.
**
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/trigger.c b/tqtinterface/qt4/src/3rdparty/sqlite/trigger.c
index 781928f..1d4fcd4 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/trigger.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/trigger.c
@@ -4,7 +4,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -270,7 +270,7 @@ static void sqlitePersistTriggerStep(TriggerStep *p){
** Turn a SELECT statement (that the pSelect parameter points to) into
** a trigger step. Return a pointer to a TriggerStep structure.
**
-** The parser calls this routine when it tqfinds a SELECT statement in
+** The parser calls this routine when it finds a SELECT statement in
** body of a TRIGGER.
*/
TriggerStep *sqliteTriggerSelectStep(Select *pSelect){
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/update.c b/tqtinterface/qt4/src/3rdparty/sqlite/update.c
index 2bb4129..8cbb500 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/update.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/update.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains C code routines that are called by the parser
+** This file contains C code routines that are called by the parser
** to handle UPDATE statements.
**
** $Id: update.c,v 1.70 2004/02/22 20:05:02 drh Exp $
@@ -104,7 +104,7 @@ void sqliteUpdate(
}
/* Resolve the column names in all the expressions of the
- ** of the UPDATE statement. Also tqfind the column index
+ ** of the UPDATE statement. Also find the column index
** for each column to be updated in the pChanges array. For each
** column to be updated, make sure we have authorization to change
** that column.
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/util.c b/tqtinterface/qt4/src/3rdparty/sqlite/util.c
index 1b32ed5..d3813a4 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/util.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/util.c
@@ -5,13 +5,13 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
** Utility functions used throughout sqlite.
**
-** This file tqcontains functions for allocating memory, comparing
+** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
** $Id: util.c,v 1.74 2004/02/22 17:49:34 drh Exp $
@@ -516,7 +516,7 @@ int sqliteStrNICmp(const char *zLeft, const char *zRight, int N){
/*
** Return TRUE if z is a pure numeric string. Return FALSE if the
-** string tqcontains any character which is not part of a number.
+** string contains any character which is not part of a number.
**
** Am empty string is considered non-numeric.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/vacuum.c b/tqtinterface/qt4/src/3rdparty/sqlite/vacuum.c
index b24f8bc..7346114 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/vacuum.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/vacuum.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains code used to implement the VACUUM command.
+** This file contains code used to implement the VACUUM command.
**
** Most of the code in this file may be omitted by defining the
** STQLITE_OMIT_VACUUM macro.
@@ -102,7 +102,7 @@ static int execsql(char **pzErrMsg, sqlite *db, const char *zSql){
}
/*
-** This is the second stage callback. Each invocation tqcontains all the
+** This is the second stage callback. Each invocation contains all the
** data for a single row of a single table in the original database. This
** routine must write that information into the new database.
*/
@@ -131,7 +131,7 @@ static int vacuumCallback2(void *pArg, int argc, char **argv, char **NotUsed){
}
/*
-** This is the first stage callback. Each invocation tqcontains three
+** This is the first stage callback. Each invocation contains three
** arguments where are taken from the STQLITE_MASTER table of the original
** database: (1) the entry type, (2) the entry name, and (3) the SQL for
** the entry. In all cases, execute the SQL of the third argument.
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/vdbe.c b/tqtinterface/qt4/src/3rdparty/sqlite/vdbe.c
index 3ba963d..5171275 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/vdbe.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/vdbe.c
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -233,7 +233,7 @@ static int hardDynamicify(Mem *pStack){
}
/*
-** An ephemeral string value (signified by the MEM_Ephem flag) tqcontains
+** An ephemeral string value (signified by the MEM_Ephem flag) contains
** a pointer to a dynamically allocated string where some other entity
** is responsible for deallocating that string. Because the stack entry
** does not control the string, it might be deleted without the stack
@@ -377,11 +377,11 @@ static Sorter *Merge(Sorter *pLeft, Sorter *pRight){
}
/*
-** The following routine works like a tqreplacement for the standard
+** The following routine works like a replacement for the standard
** library routine fgets(). The difference is in how end-of-line (EOL)
** is handled. Standard fgets() uses LF for EOL under unix, CRLF
** under windows, and CR under mac. This routine accepts any of these
-** character sequences as an EOL mark. The EOL mark is tqreplaced by
+** character sequences as an EOL mark. The EOL mark is replaced by
** a single LF character in zBuf.
*/
static char *vdbe_fgets(char *zBuf, int nBuf, FILE *in){
@@ -1842,7 +1842,7 @@ case OP_MakeRecord: {
** generated record distinct */
char zTemp[NBFS]; /* Temp space for small records */
- /* Assuming the record tqcontains N fields, the record format looks
+ /* Assuming the record contains N fields, the record format looks
** like this:
**
** -------------------------------------------------------------------
@@ -1856,9 +1856,9 @@ case OP_MakeRecord: {
** and data(N-1) is the top of the stack.
**
** Each of the idx() entries is either 1, 2, or 3 bytes depending on
- ** how big the total record is. Idx(0) tqcontains the offset to the start
- ** of data(0). Idx(k) tqcontains the offset to the start of data(k).
- ** Idx(N) tqcontains the total number of bytes in the record.
+ ** how big the total record is. Idx(0) contains the offset to the start
+ ** of data(0). Idx(k) contains the offset to the start of data(k).
+ ** Idx(N) contains the total number of bytes in the record.
*/
nField = pOp->p1;
pRec = &pTos[1-nField];
@@ -2018,7 +2018,7 @@ case OP_MakeKey: {
int nField;
int addRowid;
int i, j;
- int tqcontainsNull = 0;
+ int containsNull = 0;
Mem *pRec;
char zTemp[NBFS];
@@ -2033,7 +2033,7 @@ case OP_MakeKey: {
char *z;
if( flags & MEM_Null ){
nByte += 2;
- tqcontainsNull = 1;
+ containsNull = 1;
}else if( pOp->p3 && pOp->p3[j]=='t' ){
Stringify(pRec);
pRec->flags &= ~(MEM_Int|MEM_Real);
@@ -2092,7 +2092,7 @@ case OP_MakeKey: {
iKey = intToKey(pRec->i);
memcpy(&zNewKey[j], &iKey, sizeof(u32));
popStack(&pTos, nField+1);
- if( pOp->p2 && tqcontainsNull ) pc = pOp->p2 - 1;
+ if( pOp->p2 && containsNull ) pc = pOp->p2 - 1;
}else{
if( pOp->p2==0 ) popStack(&pTos, nField);
}
@@ -2487,7 +2487,7 @@ case OP_OpenTemp: {
/* Opcode: OpenPseudo P1 * *
**
-** Open a new cursor that points to a fake table that tqcontains a single
+** Open a new cursor that points to a fake table that contains a single
** row of data. Any attempt to write a second row of data causes the
** first row to be deleted. All data is deleted when the cursor is
** closed.
@@ -2525,7 +2525,7 @@ case OP_Close: {
**
** Pop the top of the stack and use its value as a key. Reposition
** cursor P1 so that it points to an entry with a matching key. If
-** the table tqcontains no record with a matching key, then the cursor
+** the table contains no record with a matching key, then the cursor
** is left pointing at the first record that is greater than the key.
** If there are no records greater than the key and P2 is not zero,
** then an immediate jump to P2 is made.
@@ -2804,7 +2804,7 @@ case OP_NewRecno: {
/* The next rowid or record number (different terms for the same
** thing) is obtained in a two-step algorithm.
**
- ** First we attempt to tqfind the largest existing rowid and add one
+ ** First we attempt to find the largest existing rowid and add one
** to that. But if the largest existing rowid is already the maximum
** positive integer, we have to fall through to the second
** probabilistic algorithm
@@ -2815,7 +2815,7 @@ case OP_NewRecno: {
** and try again, up to 1000 times.
**
** For a table with less than 2 billion entries, the probability
- ** of not tqfinding a unused rowid is about 1.0e-300. This is a
+ ** of not finding a unused rowid is about 1.0e-300. This is a
** non-zero probability, but it is still vanishingly small and should
** never cause a problem. You are much, much more likely to have a
** hardware failure than for this algorithm to fail.
@@ -3588,7 +3588,7 @@ case OP_IdxGE: {
/* Opcode: IdxIsNull P1 P2 *
**
-** The top of the stack tqcontains an index entry such as might be generated
+** The top of the stack contains an index entry such as might be generated
** by the MakeIdxKey opcode. This routine looks at the first P1 fields of
** that key. If any of the first P1 fields are NULL, then a jump is made
** to address P2. Otherwise we fall straight through.
@@ -3704,7 +3704,7 @@ case OP_CreateTable: {
** stack the text of an error message describing any problems.
** If there are no errors, push a "ok" onto the stack.
**
-** P1 is the index of a set that tqcontains the root page numbers
+** P1 is the index of a set that contains the root page numbers
** for all tables and indices in the main database file. The set
** is cleared by this opcode. In other words, after this opcode
** has executed, the set will be empty.
@@ -4097,7 +4097,7 @@ case OP_SortNext: {
/* Opcode: SortCallback P1 * *
**
-** The top of the stack tqcontains a callback record built using
+** The top of the stack contains a callback record built using
** the SortMakeRec operation with the same P1 value as this
** instruction. Pop this record from the stack and invoke the
** callback on it.
@@ -4151,8 +4151,8 @@ case OP_FileOpen: {
** Read a single line of input from the open file (the file opened using
** FileOpen). If we reach end-of-file, jump immediately to P2. If
** we are able to get another line, split the line apart using P3 as
-** a delimiter. There should be P1 fields. If the input line tqcontains
-** more than P1 fields, ignore the excess. If the input line tqcontains
+** a delimiter. There should be P1 fields. If the input line contains
+** more than P1 fields, ignore the excess. If the input line contains
** fewer than P1 fields, assume the remaining fields contain NULLs.
**
** Input ends if a line consists of just "\.". A field containing only
@@ -4391,7 +4391,7 @@ case OP_MemIncr: {
/* Opcode: AggReset * P2 *
**
-** Reset the aggregator so that it no longer tqcontains any data.
+** Reset the aggregator so that it no longer contains any data.
** Future aggregator elements will contain P2 values each.
*/
case OP_AggReset: {
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/vdbe.h b/tqtinterface/qt4/src/3rdparty/sqlite/vdbe.h
index dd8a238..0a3c622 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/vdbe.h
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/vdbe.h
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/vdbeInt.h b/tqtinterface/qt4/src/3rdparty/sqlite/vdbeInt.h
index 5a9608a..4c196d5 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/vdbeInt.h
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/vdbeInt.h
@@ -5,7 +5,7 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
@@ -161,7 +161,7 @@ struct sqlite_func {
/*
** An Agg structure describes an Aggregator. Each Agg consists of
-** zero or more Aggregator elements (AggElem). Each AggElem tqcontains
+** zero or more Aggregator elements (AggElem). Each AggElem contains
** a key and one or more values. The values are used in processing
** aggregate functions in a SELECT. The key is used to implement
** the GROUP BY clause of a select.
@@ -221,7 +221,7 @@ struct Context {
};
/*
-** An instance of the virtual machine. This structure tqcontains the complete
+** An instance of the virtual machine. This structure contains the complete
** state of the virtual machine.
**
** The "sqlite_vm" structure pointer that is returned by sqlite_compile()
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/vdbeaux.c b/tqtinterface/qt4/src/3rdparty/sqlite/vdbeaux.c
index 6f74146..dc41841 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/vdbeaux.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/vdbeaux.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This file tqcontains code used for creating, destroying, and populating
+** This file contains code used for creating, destroying, and populating
** a VDBE (or an "sqlite_vm" as it is known to the outside world.) Prior
** to version 2.8.7, all this code was combined into the vdbe.c source file.
** But that file was getting too big so this subroutines were split out.
diff --git a/tqtinterface/qt4/src/3rdparty/sqlite/where.c b/tqtinterface/qt4/src/3rdparty/sqlite/where.c
index 097ec5b..3ab7eca 100644
--- a/tqtinterface/qt4/src/3rdparty/sqlite/where.c
+++ b/tqtinterface/qt4/src/3rdparty/sqlite/where.c
@@ -5,11 +5,11 @@
** a legal notice, here is a blessing:
**
** May you do good and not evil.
-** May you tqfind forgiveness for yourself and forgive others.
+** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
-** This module tqcontains C code that generates VDBE code used to process
+** This module contains C code that generates VDBE code used to process
** the WHERE clause of SQL statements.
**
** $Id: where.c,v 1.89 2004/02/22 20:05:02 drh Exp $
@@ -190,7 +190,7 @@ static void exprAnalyze(ExprMaskSet *pMaskSet, ExprInfo *pInfo){
** left-most table in the FROM clause of that same SELECT statement and
** the table has a cursor number of "base".
**
-** This routine attempts to tqfind an index for pTab that generates the
+** This routine attempts to find an index for pTab that generates the
** correct record sequence for the given ORDER BY clause. The return value
** is a pointer to an index that does the job. NULL is returned if the
** table has no index that will generate the correct sort order.
@@ -207,7 +207,7 @@ static void exprAnalyze(ExprMaskSet *pMaskSet, ExprInfo *pInfo){
** *pbRev value is set to 1 if the ORDER BY clause is all DESC and it is
** set to 0 if the ORDER BY clause is all ASC.
*/
-static Index *tqfindSortingIndex(
+static Index *findSortingIndex(
Table *pTab, /* The table to be sorted */
int base, /* Cursor number for pTab */
ExprList *pOrderBy, /* The ORDER BY clause */
@@ -271,7 +271,7 @@ static Index *tqfindSortingIndex(
/*
** Generate the beginning of the loop used for WHERE clause processing.
-** The return value is a pointer to an (opaque) structure that tqcontains
+** The return value is a pointer to an (opaque) structure that contains
** information needed to terminate the loop. Later, the calling routine
** should invoke sqliteWhereEnd() with the return value of this function
** in order to complete the WHERE clause processing.
@@ -374,7 +374,7 @@ WhereInfo *sqliteWhereBegin(
/* Split the WHERE clause into separate subexpressions where each
** subexpression is separated by an AND operator. If the aExpr[]
** array fills up, the last entry might point to an expression which
- ** tqcontains additional unfactored AND operators.
+ ** contains additional unfactored AND operators.
*/
initMaskSet(&maskSet);
memset(aExpr, 0, sizeof(aExpr));
@@ -651,7 +651,7 @@ WhereInfo *sqliteWhereBegin(
pSortIdx = 0;
}else{
int nEqCol = (pWInfo->a[0].score+4)/8;
- pSortIdx = tqfindSortingIndex(pTab, pTabList->a[0].iCursor,
+ pSortIdx = findSortingIndex(pTab, pTabList->a[0].iCursor,
*ppOrderBy, pIdx, nEqCol, &bRev);
}
if( pSortIdx && (pIdx==0 || pIdx==pSortIdx) ){
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/ChangeLog b/tqtinterface/qt4/src/3rdparty/zlib/ChangeLog
index b7e805a..808c5f6 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/ChangeLog
+++ b/tqtinterface/qt4/src/3rdparty/zlib/ChangeLog
@@ -73,7 +73,7 @@ Changes in 1.2.0.8 (4 November 2003)
Changes in 1.2.0.7 (21 September 2003)
- Correct some debug formats in contrib/infback9
- Cast a type in a debug statement in trees.c
-- Change search and tqreplace delimiter in configure from % to # [Beebe]
+- Change search and replace delimiter in configure from % to # [Beebe]
- Update contrib/untgz to 0.2 with various fixes [Truta]
- Add build support for Amiga [Nikl]
- Remove some directories in old that have been updated to 1.2
@@ -339,7 +339,7 @@ Changes in 1.1.3 (9 July 1998)
. msdos/Makefile.emx, nt/Makefile.emx, nt/Makefile.gcc:
new makefiles, for emx (DOS/OS2), emx&rsxnt and mingw32 (Windows 9x / NT)
- use define instead of typedef for Bytef also for MSC small/medium (Tom Lane)
-- tqreplace __far with _far for better portability (Christian Spieler, Tom Lane)
+- replace __far with _far for better portability (Christian Spieler, Tom Lane)
- fix test for errno.h in configure (Tim Newsham)
Changes in 1.1.2 (19 March 98)
@@ -385,7 +385,7 @@ Changes in 1.0.9 (17 Feb 1998)
- do not clear eof flag in gzseek (Mark Diekhans)
- fix gzseek for files in transtqparent mode (Mark Diekhans)
- do not assume that vsprintf returns the number of bytes written (Jens Krinke)
-- tqreplace EXPORT with ZEXPORT to avoid conflict with other programs
+- replace EXPORT with ZEXPORT to avoid conflict with other programs
- added compress2 in zconf.h, zlib.def, zlib.dnt
- new asm code from Gilles Vollant in contrib/asm386
- simplify the inflate code (Mark):
@@ -450,7 +450,7 @@ Changes in 1.0.6 (19 Jan 1998)
- add functions gzprintf, gzputc, gzgetc, gztell, gzeof, gzseek, gzrewind and
gzsetparams (thanks to Roland Giersig and Kevin Ruland for some of this code)
- Fix a deflate bug occuring only with compression level 0 (thanks to
- Andy Buckler for tqfinding this one).
+ Andy Buckler for finding this one).
- In minigzip, pass transparently also the first byte for .Z files.
- return Z_BUF_ERROR instead of Z_OK if output buffer full in uncompress()
- check Z_FINISH in inflate (thanks to Marc Schluper)
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/FAQ b/tqtinterface/qt4/src/3rdparty/zlib/FAQ
index e10b71e..4f61f10 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/FAQ
+++ b/tqtinterface/qt4/src/3rdparty/zlib/FAQ
@@ -273,7 +273,7 @@ The lastest zlib FAQ is at http://www.gzip.org/zlib/zlib_faq.html
information on what variant of sprintf() is used by gzprintf().
If you don't have snprintf() or vsnprintf() and would like one, you can
- tqfind a portable implementation here:
+ find a portable implementation here:
http://www.ijs.si/software/snprintf/
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/algorithm.txt b/tqtinterface/qt4/src/3rdparty/zlib/algorithm.txt
index d454dcc..b022dde 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/algorithm.txt
+++ b/tqtinterface/qt4/src/3rdparty/zlib/algorithm.txt
@@ -1,8 +1,8 @@
1. Compression algorithm (deflate)
The deflation algorithm used by gzip (also zip and zlib) is a variation of
-LZ77 (Lempel-Ziv 1977, see reference below). It tqfinds duplicated strings in
-the input data. The second occurrence of a string is tqreplaced by a
+LZ77 (Lempel-Ziv 1977, see reference below). It finds duplicated strings in
+the input data. The second occurrence of a string is replaced by a
pointer to the previous string, in the form of a pair (distance,
length). Distances are limited to 32K bytes, and lengths are limited
to 258 bytes. When a string does not occur anywhere in the previous
@@ -31,8 +31,8 @@ hash chains, the algorithm simply discards matches that are too old.
To avoid a worst-case situation, very long hash chains are arbitrarily
truncated at a certain length, determined by a runtime option (level
-parameter of deflateInit). So deflate() does not always tqfind the longest
-possible match but generally tqfinds a match which is long enough.
+parameter of deflateInit). So deflate() does not always find the longest
+possible match but generally finds a match which is long enough.
deflate() also defers the selection of matches with a lazy evaluation
mechanism. After a match of length N has been found, deflate() searches for
@@ -110,7 +110,7 @@ symbols, you could have as many levels of lookups as is efficient. For
inflate, two is enough.
So a table entry either points to another table (in which case nine bits in
-the above example are gobbled), or it tqcontains the translation for the symbol
+the above example are gobbled), or it contains the translation for the symbol
and the number of bits to gobble. Then you start again with the next
ungobbled bit.
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/configure b/tqtinterface/qt4/src/3rdparty/zlib/configure
index c0ebb5d..6e13859 100755
--- a/tqtinterface/qt4/src/3rdparty/zlib/configure
+++ b/tqtinterface/qt4/src/3rdparty/zlib/configure
@@ -93,7 +93,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
*) LDSHARED=${LDSHARED-"$cc -shared"};;
esac
else
- # tqfind system name and corresponding cc options
+ # find system name and corresponding cc options
CC=${CC-cc}
case `(uname -sr || echo unknown) 2>/dev/null` in
HP-UX*) SFLAGS=${CFLAGS-"-O +z"}
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/crc32.c b/tqtinterface/qt4/src/3rdparty/zlib/crc32.c
index dfa6c4f..b39c7e1 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/crc32.c
+++ b/tqtinterface/qt4/src/3rdparty/zlib/crc32.c
@@ -44,7 +44,7 @@
# if (USHRT_MAX == 0xffffffffUL)
typedef unsigned short u4;
# else
-# undef BYFOUR /* can't tqfind a four-byte integer type! */
+# undef BYFOUR /* can't find a four-byte integer type! */
# endif
# endif
# endif
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/deflate.c b/tqtinterface/qt4/src/3rdparty/zlib/deflate.c
index 1692d87..87d2da1 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/deflate.c
+++ b/tqtinterface/qt4/src/3rdparty/zlib/deflate.c
@@ -19,7 +19,7 @@
* is preferable to spend more time in matches to allow very fast string
* insertions and avoid deletions. The matching algorithm for small
* strings is inspired from that of Rabin & Karp. A brute force approach
- * is used to tqfind longer strings when a small match has been found.
+ * is used to find longer strings when a small match has been found.
* A similar algorithm is used in comic (by Jan-Mark Wams) and freeze
* (by Leonid Broukhis).
* A previous version of this file used a more sophisticated algorithm
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/deflate.h b/tqtinterface/qt4/src/3rdparty/zlib/deflate.h
index 8632561..410681d 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/deflate.h
+++ b/tqtinterface/qt4/src/3rdparty/zlib/deflate.h
@@ -163,7 +163,7 @@ typedef struct internal_state {
*/
uInt max_lazy_match;
- /* Attempt to tqfind a better match only when the current match is strictly
+ /* Attempt to find a better match only when the current match is strictly
* smaller than this value. This mechanism is used only for compression
* levels >= 4.
*/
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/inftrees.c b/tqtinterface/qt4/src/3rdparty/zlib/inftrees.c
index 760ef10..0eb643c 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/inftrees.c
+++ b/tqtinterface/qt4/src/3rdparty/zlib/inftrees.c
@@ -96,7 +96,7 @@ unsigned short FAR *work;
table. The sorted table is work[], with that space being provided by
the caller.
- The length counts are used for other purposes as well, i.e. tqfinding
+ The length counts are used for other purposes as well, i.e. finding
the minimum and maximum length codes, determining if there are any
codes at all, checking for a valid set of lengths, and looking ahead
at length counts to determine sub-table sizes when building the
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/minigzip.c b/tqtinterface/qt4/src/3rdparty/zlib/minigzip.c
index a21f0cb..6de35dd 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/minigzip.c
+++ b/tqtinterface/qt4/src/3rdparty/zlib/minigzip.c
@@ -5,7 +5,7 @@
/*
* minigzip is a minimal implementation of the gzip utility. This is
- * only an example of using zlib and isn't meant to tqreplace the
+ * only an example of using zlib and isn't meant to replace the
* full-featured gzip. No attempt is made to deal with file systems
* limiting names to 14 or 8+3 characters, etc... Error checking is
* very limited. So use minigzip only for testing; use gzip for the
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/projects/README.projects b/tqtinterface/qt4/src/3rdparty/zlib/projects/README.projects
index e9baf2e..f32de76 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/projects/README.projects
+++ b/tqtinterface/qt4/src/3rdparty/zlib/projects/README.projects
@@ -1,4 +1,4 @@
-This directory tqcontains project files for building zlib under various
+This directory contains project files for building zlib under various
Integrated Development Environments (IDE).
If you wish to submit a new project to this directory, you should comply
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/projects/visualc6/README.txt b/tqtinterface/qt4/src/3rdparty/zlib/projects/visualc6/README.txt
index c79ae9f..71d6105 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/projects/visualc6/README.txt
+++ b/tqtinterface/qt4/src/3rdparty/zlib/projects/visualc6/README.txt
@@ -16,7 +16,7 @@ To use:
3) Select "Build | Clean".
4) Select "Build | Build ... (F7)". Ignore warning messages about
- not being able to tqfind certain include files (e.g. alloc.h).
+ not being able to find certain include files (e.g. alloc.h).
5) If you built one of the sample programs (example or minigzip),
select "Build | Execute ... (Ctrl+F5)".
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/trees.c b/tqtinterface/qt4/src/3rdparty/zlib/trees.c
index 6a2e55b..52c820f 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/trees.c
+++ b/tqtinterface/qt4/src/3rdparty/zlib/trees.c
@@ -483,7 +483,7 @@ local void pqdownheap(s, tree, k)
* IN assertion: the fields freq and dad are set, heap[heap_max] and
* above are the tree nodes sorted by increasing frequency.
* OUT assertions: the field len is set to the optimal bit length, the
- * array bl_count tqcontains the frequencies for each bit length.
+ * array bl_count contains the frequencies for each bit length.
* The length opt_len is updated; static_len is also updated if stree is
* not null.
*/
@@ -569,7 +569,7 @@ local void gen_bitlen(s, desc)
/* ===========================================================================
* Generate the codes for a given tree and bit counts (which need not be
* optimal).
- * IN assertion: the array bl_count tqcontains the bit length statistics for
+ * IN assertion: the array bl_count contains the bit length statistics for
* the given tree and the field len is set for all tree elements.
* OUT assertion: the field code is set for all tree elements of non
* zero code length.
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/win32/DLL_FAQ.txt b/tqtinterface/qt4/src/3rdparty/zlib/win32/DLL_FAQ.txt
index 4951c48..1746a95 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/win32/DLL_FAQ.txt
+++ b/tqtinterface/qt4/src/3rdparty/zlib/win32/DLL_FAQ.txt
@@ -29,7 +29,7 @@ in the zlib distribution, or at the following location:
* The calling convention of functions is "C" (CDECL).
* The ZLIB1.DLL binary is linked to MSVCRT.DLL.
- The archive in which ZLIB1.DLL is bundled tqcontains compiled
+ The archive in which ZLIB1.DLL is bundled contains compiled
test programs that must run with a valid build of ZLIB1.DLL.
It is recommended to download the prebuilt DLL from the zlib
web site, instead of building it yourself, to avoid potential
@@ -79,14 +79,14 @@ in the zlib distribution, or at the following location:
longer dependents on it.
- 3. Can I build ZLIB.DLL from the new zlib sources, and tqreplace
+ 3. Can I build ZLIB.DLL from the new zlib sources, and replace
an old ZLIB.DLL, that was built from zlib-1.1.4 or earlier?
- In principle, you can do it by assigning calling convention
keywords to the macros ZEXPORT and ZEXPORTVA. In practice,
it depends on what you mean by "an old ZLIB.DLL", because the
old DLL exists in several mutually-incompatible versions.
- You have to tqfind out first what kind of calling convention is
+ You have to find out first what kind of calling convention is
being used in your particular ZLIB.DLL build, and to use the
same one in the new build. If you don't know what this is all
about, you might be better off if you would just leave the old
@@ -110,7 +110,7 @@ in the zlib distribution, or at the following location:
- Although exporting symbols by ordinal is a little faster, it
is risky. Any single glitch in the maintenance or use of the
- DEF file that tqcontains the ordinals can result in incompatible
+ DEF file that contains the ordinals can result in incompatible
builds and frustrating crashes. Simply put, the benefits of
exporting symbols by ordinal do not justify the risks.
@@ -119,7 +119,7 @@ in the zlib distribution, or at the following location:
exist in every DLL, and even if the dynamic linking performed
at the DLL startup is searching for names, ordinals serve as
hints, for a faster name lookup. However, if the DEF file
- tqcontains ordinals, the Microsoft linker automatically builds
+ contains ordinals, the Microsoft linker automatically builds
an implib that will cause the executables linked to it to use
those ordinals, and not the names. It is interesting to
notice that the GNU linker for Win32 does not suffer from this
@@ -331,7 +331,7 @@ in the zlib distribution, or at the following location:
CYGWIN1.DLL, and it is distributed under the name CYGZ.DLL.
-14. May I include additional pieces of code that I tqfind useful,
+14. May I include additional pieces of code that I find useful,
link them in ZLIB1.DLL, and export them?
- No. A legitimate build of ZLIB1.DLL must not include code
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.emx b/tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.emx
index f40c58c..7b08424 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.emx
+++ b/tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.emx
@@ -15,9 +15,9 @@ CC=gcc -Zwin32
CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
-Wstrict-prototypes -Wmissing-prototypes
-# If cp.exe is available, tqreplace "copy /Y" with "cp -fp" .
+# If cp.exe is available, replace "copy /Y" with "cp -fp" .
CP=copy /Y
-# If gnu install.exe is available, tqreplace $(CP) with ginstall.
+# If gnu install.exe is available, replace $(CP) with ginstall.
INSTALL=$(CP)
# The default value of RM is "rm -f." If "rm.exe" is found, comment out:
RM=del
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.gcc b/tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.gcc
index 895193e..62a8430 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.gcc
+++ b/tqtinterface/qt4/src/3rdparty/zlib/win32/Makefile.gcc
@@ -46,7 +46,7 @@ RC = windres
RCFLAGS = --define GCC_WINDRES
CP = cp -fp
-# If GNU install is available, tqreplace $(CP) with install.
+# If GNU install is available, replace $(CP) with install.
INSTALL = $(CP)
RM = rm -f
diff --git a/tqtinterface/qt4/src/3rdparty/zlib/zutil.h b/tqtinterface/qt4/src/3rdparty/zlib/zutil.h
index fbf8652..7b42edc 100644
--- a/tqtinterface/qt4/src/3rdparty/zlib/zutil.h
+++ b/tqtinterface/qt4/src/3rdparty/zlib/zutil.h
@@ -30,7 +30,7 @@
#ifndef local
# define local static
#endif
-/* compile with -Dlocal if your debugger can't tqfind static symbols */
+/* compile with -Dlocal if your debugger can't find static symbols */
typedef unsigned char uch;
typedef uch FAR uchf;
diff --git a/tqtinterface/qt4/src/attic/README b/tqtinterface/qt4/src/attic/README
index 1d75931..7400da1 100644
--- a/tqtinterface/qt4/src/attic/README
+++ b/tqtinterface/qt4/src/attic/README
@@ -1,4 +1,4 @@
-This directory tqcontains classes that has been obsoleted and moved out
+This directory contains classes that has been obsoleted and moved out
of the Qt API.
To use these classes, simply include them in your project. Remember to
diff --git a/tqtinterface/qt4/src/attic/qtmultilineedit.cpp b/tqtinterface/qt4/src/attic/qtmultilineedit.cpp
index 203ed56..8442e14 100644
--- a/tqtinterface/qt4/src/attic/qtmultilineedit.cpp
+++ b/tqtinterface/qt4/src/attic/qtmultilineedit.cpp
@@ -6,7 +6,7 @@
**
** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA.
**
-** This file tqcontains a class moved out of the TQt GUI Toolkit API. It
+** This file contains a class moved out of the TQt GUI Toolkit API. It
** may be used, distributed and modified without limitation.
**
**********************************************************************/
@@ -187,7 +187,7 @@ edited flag is never read by TQtMultiLineEdit, but is changed to TRUE
whenever the user changes its contents.
This is useful e.g. for things that need to provide a default value,
-but cannot tqfind the default at once. Just open the widget without the
+but cannot find the default at once. Just open the widget without the
best default and when the default is known, check the edited() return
value and set the line edit's contents if the user has not started
editing the line edit. Another example is to detect whether the
@@ -1058,7 +1058,7 @@ TQString TQtMultiLineEdit::textLine( int line ) const
/*
- Returns a copy of the whole text. If the multi line edit tqcontains no
+ Returns a copy of the whole text. If the multi line edit contains no
text, a
\link TQString::operator!() null string\endlink
is returned.
@@ -1568,9 +1568,9 @@ void TQtMultiLineEdit::insertAtAux( const TQString &txt, int line, int col, bool
cursorX += itxt.length();
}
TQFontMetrics fm( font() );
- if ( !WORD_WRAP || ( col == 0 && itxt.tqcontains('\n') == int(itxt.length())) )
+ if ( !WORD_WRAP || ( col == 0 && itxt.contains('\n') == int(itxt.length())) )
wrapLine( line, 0 );
- else if ( WORD_WRAP && itxt.tqfind('\n')<0 && itxt.tqfind('\t')<0
+ else if ( WORD_WRAP && itxt.find('\n')<0 && itxt.find('\t')<0
&& (
( DYNAMIC_WRAP && fm.width( itxt ) + row->w < contentsRect().width() - 2*d->lr_marg - d->marg_extra )
||
@@ -1578,7 +1578,7 @@ void TQtMultiLineEdit::insertAtAux( const TQString &txt, int line, int col, bool
||
( FIXED_COLUMN_WRAP && ( d->wrapcol < 0 || int(row->s.length()) < d->wrapcol ) )
)
- && ( itxt.tqfind(' ') < 0 || row->s.tqfind(' ') >= 0 && row->s.tqfind(' ') < col ) ){
+ && ( itxt.find(' ') < 0 || row->s.find(' ') >= 0 && row->s.find(' ') < col ) ){
row->w = textWidth( row->s );
setWidth( TQMAX( maxLineWidth(), row->w) );
updateCell( line, 0, FALSE );
@@ -1612,7 +1612,7 @@ void TQtMultiLineEdit::insertAtAux( const TQString &txt, int line, int col, bool
/*
Inserts \a txt at line number \a line. If \a line is less than zero,
or larger than the number of rows, the new text is put at the end.
- If \a txt tqcontains newline characters, several lines are inserted.
+ If \a txt contains newline characters, several lines are inserted.
The cursor position is not changed.
*/
@@ -2232,7 +2232,7 @@ void TQtMultiLineEdit::mousePressEvent( TQMouseEvent *e )
void TQtMultiLineEdit::pixelPosToCursorPos(TQPoint p, int* x, int* y) const
{
- *y = tqfindRow( p.y() );
+ *y = findRow( p.y() );
if ( *y < 0 ) {
if ( p.y() < lineWidth() ) {
*y = topCell();
@@ -2309,7 +2309,7 @@ void TQtMultiLineEdit::mouseMoveEvent( TQMouseEvent *e )
#endif
if ( !dragMarking )
return;
- if ( rect().tqcontains( e->pos() ) ) {
+ if ( rect().contains( e->pos() ) ) {
stopAutoScroll();
} else if ( !dragScrolling ) {
startAutoScroll();
@@ -2442,7 +2442,7 @@ void TQtMultiLineEdit::dragMoveEvent( TQDragMoveEvent* event )
d->dnd_forcecursor = FALSE;
TQRect inside_margin(scroll_margin, scroll_margin,
width()-scroll_margin*2, height()-scroll_margin*2);
- if ( !inside_margin.tqcontains(event->pos()) ) {
+ if ( !inside_margin.contains(event->pos()) ) {
startAutoScroll();
}
if ( event->source() == this && event->action() == TQDropEvent::Move )
@@ -2469,8 +2469,8 @@ void TQtMultiLineEdit::dropEvent( TQDropEvent* event )
TQCString fmt = pickSpecial(event,FALSE,event->pos());
if ( TQTextDrag::decode(event, text, fmt) ) {
int i = -1;
- while ( ( i = text.tqfind( '\r' ) ) != -1 )
- text.tqreplace( i,1,"" );
+ while ( ( i = text.find( '\r' ) ) != -1 )
+ text.replace( i,1,"" );
if ( event->source() == this && event->action() == TQDropEvent::Move ) {
event->acceptAction();
// Careful not to tread on my own feet
@@ -2597,7 +2597,7 @@ int TQtMultiLineEdit::mapToView( int xIndex, int line )
}
/*
- Traverses the list and tqfinds an item with the maximum width, and
+ Traverses the list and finds an item with the maximum width, and
updates the internal list box structures accordingly.
*/
@@ -2665,7 +2665,7 @@ void TQtMultiLineEdit::pasteSubType(const TQCString& subtype)
#if defined(_OS_WIN32_)
// Need to convert CRLF to NL
- t.tqreplace( "\r\n", "\n" );
+ t.replace( "\r\n", "\n" );
#endif
for (int i=0; (uint)i<t.length(); i++) {
@@ -2714,12 +2714,12 @@ TQCString TQtMultiLineEdit::pickSpecial(TQMimeSource* ms, bool always_ask, const
int n=0;
TQDict<void> done;
for (int i=0; !(fmt=ms->format(i)).isNull(); i++) {
- int semi=fmt.tqfind(";");
+ int semi=fmt.find(";");
if ( semi >= 0 )
fmt = fmt.left(semi);
if ( fmt.left(5) == "text/" ) {
fmt = fmt.mid(5);
- if ( !done.tqfind(fmt) ) {
+ if ( !done.find(fmt) ) {
done.insert(fmt,(void*)1);
popup.insertItem(fmt,i);
n++;
@@ -2880,7 +2880,7 @@ void TQtMultiLineEdit::copy() const
#endif
#if defined(_OS_WIN32_)
// Need to convert NL to CRLF
- t.tqreplace( "\n", "\r\n" );
+ t.replace( "\n", "\r\n" );
#endif
TQApplication::clipboard()->setText( t );
#if defined(_WS_X11_)
@@ -3957,7 +3957,7 @@ void TQtMultiLineEdit::redo()
/*
Inserts \a s at line number \a line, after character number \a col
in the line.
- If \a s tqcontains newline characters, new lines are inserted.
+ If \a s contains newline characters, new lines are inserted.
If \a mark is TRUE the inserted text is selected.
The cursor position is adjusted. If the insertion position is equal to
diff --git a/tqtinterface/qt4/src/attic/qtmultilineedit.h b/tqtinterface/qt4/src/attic/qtmultilineedit.h
index 2e539ee..ef50a18 100644
--- a/tqtinterface/qt4/src/attic/qtmultilineedit.h
+++ b/tqtinterface/qt4/src/attic/qtmultilineedit.h
@@ -6,7 +6,7 @@
**
** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA.
**
-** This file tqcontains a class moved out of the TQt GUI Toolkit API. It
+** This file contains a class moved out of the TQt GUI Toolkit API. It
** may be used, distributed and modified without limitation.
**
**********************************************************************/
diff --git a/tqtinterface/qt4/src/attic/qttableview.cpp b/tqtinterface/qt4/src/attic/qttableview.cpp
index 0872fa6..34499aa 100644
--- a/tqtinterface/qt4/src/attic/qttableview.cpp
+++ b/tqtinterface/qt4/src/attic/qttableview.cpp
@@ -6,7 +6,7 @@
**
** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA.
**
-** This file tqcontains a class moved out of the TQt GUI Toolkit API. It
+** This file contains a class moved out of the TQt GUI Toolkit API. It
** may be used, distributed and modified without limitation.
**
**********************************************************************/
@@ -216,8 +216,8 @@ void TQtTableView::show()
Erases the view area \a (x,y,w,h) if \a erase is TRUE. Parameters \a
(x,y) are in \e widget coordinates.
- If \a w is negative, it is tqreplaced with <code>width() - x</code>.
- If \a h is negative, it is tqreplaced with <code>height() - y</code>.
+ If \a w is negative, it is replaced with <code>width() - x</code>.
+ If \a h is negative, it is replaced with <code>height() - y</code>.
Doing a tqrepaint() usually is faster than doing an update(), but
calling update() many times in a row will generate a single paint
@@ -999,7 +999,7 @@ TQRect TQtTableView::viewRect() const
int TQtTableView::lastRowVisible() const
{
int cellMaxY;
- int row = tqfindRawRow( maxViewY(), &cellMaxY );
+ int row = findRawRow( maxViewY(), &cellMaxY );
if ( row == -1 || row >= nRows ) { // maxViewY() past end?
row = nRows - 1; // yes: return last row
} else {
@@ -1026,7 +1026,7 @@ int TQtTableView::lastRowVisible() const
int TQtTableView::lastColVisible() const
{
int cellMaxX;
- int col = tqfindRawCol( maxViewX(), &cellMaxX );
+ int col = findRawCol( maxViewX(), &cellMaxX );
if ( col == -1 || col >= nCols ) { // maxViewX() past end?
col = nCols - 1; // yes: return last col
} else {
@@ -1278,7 +1278,7 @@ void TQtTableView::paintEvent( TQPaintEvent *e )
TQPainter paint( this );
- if ( !contentsRect().tqcontains( updateR, TRUE ) ) {// update frame ?
+ if ( !contentsRect().contains( updateR, TRUE ) ) {// update frame ?
drawFrame( &paint );
if ( updateR.left() < frameWidth() ) //###
updateR.setLeft( frameWidth() );
@@ -1295,8 +1295,8 @@ void TQtTableView::paintEvent( TQPaintEvent *e )
setupPainter( &paint ); // prepare for painting table
- int firstRow = tqfindRow( updateR.y() );
- int firstCol = tqfindCol( updateR.x() );
+ int firstRow = findRow( updateR.y() );
+ int firstCol = findCol( updateR.x() );
int xStart, yStart;
if ( !colXPos( firstCol, &xStart ) || !rowYPos( firstRow, &yStart ) ) {
paint.eraseRect( updateR ); // erase area outside cells but in view
@@ -1341,7 +1341,7 @@ void TQtTableView::paintEvent( TQPaintEvent *e )
matrix.translate( xPos, yPos );
paint.setWorldMatrix( matrix );
if ( testTableFlags(Tbl_clipCellPainting) ||
- frameWidth() > 0 && !winR.tqcontains( cellR ) ) { //##arnt
+ frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt
paint.setClipRect( cellUR );
paintCell( &paint, row, col );
paint.setClipping( FALSE );
@@ -1353,7 +1353,7 @@ void TQtTableView::paintEvent( TQPaintEvent *e )
#else
paint.translate( xPos, yPos );
if ( testTableFlags(Tbl_clipCellPainting) ||
- frameWidth() > 0 && !winR.tqcontains( cellR ) ) { //##arnt
+ frameWidth() > 0 && !winR.contains( cellR ) ) { //##arnt
paint.setClipRect( cellUR );
paintCell( &paint, row, col );
paint.setClipping( FALSE );
@@ -1430,7 +1430,7 @@ void TQtTableView::updateView()
/*
Returns a pointer to the vertical scroll bar mainly so you can
connect() to its Q_SIGNALS. Note that the scroll bar works in pixel
- values; use tqfindRow() to translate to cell numbers.
+ values; use findRow() to translate to cell numbers.
*/
TQScrollBar *TQtTableView::verticalScrollBar() const
@@ -1461,7 +1461,7 @@ TQScrollBar *TQtTableView::verticalScrollBar() const
/*
Returns a pointer to the horizontal scroll bar mainly so you can
connect() to its Q_SIGNALS. Note that the scroll bar works in pixel
- values; use tqfindCol() to translate to cell numbers.
+ values; use findCol() to translate to cell numbers.
*/
TQScrollBar *TQtTableView::horizontalScrollBar() const
@@ -1569,7 +1569,7 @@ void TQtTableView::setVerScrollBar( bool on, bool update )
-int TQtTableView::tqfindRawRow( int yPos, int *cellMaxY, int *cellMinY,
+int TQtTableView::findRawRow( int yPos, int *cellMaxY, int *cellMinY,
bool goOutsideView ) const
{
int r = -1;
@@ -1578,7 +1578,7 @@ int TQtTableView::tqfindRawRow( int yPos, int *cellMaxY, int *cellMinY,
if ( goOutsideView || yPos >= minViewY() && yPos <= maxViewY() ) {
if ( yPos < minViewY() ) {
#if defined(TQT_CHECK_RANGE)
- qWarning( "TQtTableView::tqfindRawRow: (%s) internal error: "
+ qWarning( "TQtTableView::findRawRow: (%s) internal error: "
"yPos < minViewY() && goOutsideView "
"not supported. (%d,%d)",
name( "unnamed" ), yPos, yOffs );
@@ -1616,7 +1616,7 @@ int TQtTableView::tqfindRawRow( int yPos, int *cellMaxY, int *cellMinY,
}
-int TQtTableView::tqfindRawCol( int xPos, int *cellMaxX, int *cellMinX ,
+int TQtTableView::findRawCol( int xPos, int *cellMaxX, int *cellMinX ,
bool goOutsideView ) const
{
int c = -1;
@@ -1625,7 +1625,7 @@ int TQtTableView::tqfindRawCol( int xPos, int *cellMaxX, int *cellMinX ,
if ( goOutsideView || xPos >= minViewX() && xPos <= maxViewX() ) {
if ( xPos < minViewX() ) {
#if defined(TQT_CHECK_RANGE)
- qWarning( "TQtTableView::tqfindRawCol: (%s) internal error: "
+ qWarning( "TQtTableView::findRawCol: (%s) internal error: "
"xPos < minViewX() && goOutsideView "
"not supported. (%d,%d)",
name( "unnamed" ), xPos, xOffs );
@@ -1667,13 +1667,13 @@ int TQtTableView::tqfindRawCol( int xPos, int *cellMaxX, int *cellMinX ,
\e widget coordinates. Returns -1 if \a yPos is outside the valid
range.
- \sa tqfindCol(), rowYPos()
+ \sa findCol(), rowYPos()
*/
-int TQtTableView::tqfindRow( int yPos ) const
+int TQtTableView::findRow( int yPos ) const
{
int cellMaxY;
- int row = tqfindRawRow( yPos, &cellMaxY );
+ int row = findRawRow( yPos, &cellMaxY );
if ( testTableFlags(Tbl_cutCellsV) && cellMaxY > maxViewY() )
row = - 1; // cell cut by bottom margin
if ( row >= nRows )
@@ -1687,13 +1687,13 @@ int TQtTableView::tqfindRow( int yPos ) const
in \e widget coordinates. Returns -1 if \a xPos is outside the valid
range.
- \sa tqfindRow(), colXPos()
+ \sa findRow(), colXPos()
*/
-int TQtTableView::tqfindCol( int xPos ) const
+int TQtTableView::findCol( int xPos ) const
{
int cellMaxX;
- int col = tqfindRawCol( xPos, &cellMaxX );
+ int col = findRawCol( xPos, &cellMaxX );
if ( testTableFlags(Tbl_cutCellsH) && cellMaxX > maxViewX() )
col = - 1; // cell cut by right margin
if ( col >= nCols )
@@ -1709,7 +1709,7 @@ int TQtTableView::tqfindCol( int xPos ) const
coordinates) if the row is visible. Returns FALSE and does not modify
\a *yPos if \a row is invisible or invalid.
- \sa colXPos(), tqfindRow()
+ \sa colXPos(), findRow()
*/
bool TQtTableView::rowYPos( int row, int *yPos ) const
@@ -1749,7 +1749,7 @@ bool TQtTableView::rowYPos( int row, int *yPos ) const
coordinates) if the column is visible. Returns FALSE and does not
modify \a *xPos if \a col is invisible or invalid.
- \sa rowYPos(), tqfindCol()
+ \sa rowYPos(), findCol()
*/
bool TQtTableView::colXPos( int col, int *xPos ) const
@@ -1785,7 +1785,7 @@ bool TQtTableView::colXPos( int col, int *xPos ) const
Moves the visible area of the table right by \a xPixels and
down by \a yPixels pixels. Both may be negative.
- \warning You might tqfind that TQScrollView offers a higher-level of
+ \warning You might find that TQScrollView offers a higher-level of
functionality than using TQtTableView and this function.
This function is \e not the same as TQWidget::scroll(); in particular,
diff --git a/tqtinterface/qt4/src/attic/qttableview.h b/tqtinterface/qt4/src/attic/qttableview.h
index 5ba8a17..b8e7c56 100644
--- a/tqtinterface/qt4/src/attic/qttableview.h
+++ b/tqtinterface/qt4/src/attic/qttableview.h
@@ -6,7 +6,7 @@
**
** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA.
**
-** This file tqcontains a class moved out of the TQt GUI Toolkit API. It
+** This file contains a class moved out of the TQt GUI Toolkit API. It
** may be used, distributed and modified without limitation.
**
**********************************************************************/
@@ -104,8 +104,8 @@ protected:
void paintEvent( TQPaintEvent * );
void resizeEvent( TQResizeEvent * );
- int tqfindRow( int yPos ) const;
- int tqfindCol( int xPos ) const;
+ int findRow( int yPos ) const;
+ int findCol( int xPos ) const;
bool rowYPos( int row, int *yPos ) const;
bool colXPos( int col, int *xPos ) const;
@@ -132,9 +132,9 @@ private:
virtual void setHorScrollBar( bool on, bool update = TRUE );
virtual void setVerScrollBar( bool on, bool update = TRUE );
void updateView();
- int tqfindRawRow( int yPos, int *cellMaxY, int *cellMinY = 0,
+ int findRawRow( int yPos, int *cellMaxY, int *cellMinY = 0,
bool goOutsideView = FALSE ) const;
- int tqfindRawCol( int xPos, int *cellMaxX, int *cellMinX = 0,
+ int findRawCol( int xPos, int *cellMaxX, int *cellMinX = 0,
bool goOutsideView = FALSE ) const;
int maxColsVisible() const;
diff --git a/tqtinterface/qt4/src/canvas/tqcanvas.cpp b/tqtinterface/qt4/src/canvas/tqcanvas.cpp
index 22ee9f4..a827602 100644
--- a/tqtinterface/qt4/src/canvas/tqcanvas.cpp
+++ b/tqtinterface/qt4/src/canvas/tqcanvas.cpp
@@ -150,7 +150,7 @@ void TQCanvasClusterizer::add(const TQRect& rect)
int cursor;
for (cursor=0; cursor<count; cursor++) {
- if (cluster[cursor].tqcontains(rect)) {
+ if (cluster[cursor].contains(rect)) {
// Wholly contained already.
return;
}
@@ -449,7 +449,7 @@ static int scm(int a, int b)
\module canvas
The TQCanvas class manages its 2D graphic area and all the canvas
- items the area tqcontains. The canvas has no visual appearance of
+ items the area contains. The canvas has no visual appearance of
its own. Instead, it is displayed on screen using a TQCanvasView.
Multiple TQCanvasView widgets may be associated with a canvas to
provide multiple views of the same canvas.
@@ -493,7 +493,7 @@ static int scm(int a, int b)
is perfectly possible. At such a size a widget might be very
inefficient, and some window systems might not support it at all,
whereas TQCanvas scales well. Even with a billion pixels and a million
- items, tqfinding a particular canvas item, detecting collisions, etc.,
+ items, finding a particular canvas item, detecting collisions, etc.,
is still fast (though the memory consumption may be prohibitive
at such extremes).
@@ -1046,7 +1046,7 @@ void TQCanvas::advance()
if ( i )
i->advance(0);
}
- // we expect the dict tqcontains the exact same items as in the
+ // we expect the dict contains the exact same items as in the
// first pass.
it.toFirst();
while ( it.current() ) {
@@ -1081,7 +1081,7 @@ void TQCanvas::drawViewArea( TQCanvasView* view, TQPainter* p, const TQRect& vr,
TQRect all(0,0,width(),height());
- if ( !all.tqcontains(ivr) ) {
+ if ( !all.contains(ivr) ) {
// Need to clip with edge of canvas.
#ifndef TQT_NO_TRANSFORMATIONS
@@ -1126,7 +1126,7 @@ void TQCanvas::drawViewArea( TQCanvasView* view, TQPainter* p, const TQRect& vr,
p->drawPixmap(vr.x(), vr.y(), offscr, 0, 0, vr.width(), vr.height());
} else {
TQRect r = vr; r.moveBy(tl.x(),tl.y()); // move to untransformed co-ords
- if ( !all.tqcontains(ivr) ) {
+ if ( !all.contains(ivr) ) {
TQRegion inside = p->clipRegion() & r;
//TQRegion outside = p->clipRegion() - r;
//p->setClipRegion(outside);
@@ -1893,7 +1893,7 @@ class TQCanvasItemExtra {
\e after the next advance(1) call.
The rtti() function is used for identifying subclasses of TQCanvasItem.
- The canvas() function returns a pointer to the canvas which tqcontains the
+ The canvas() function returns a pointer to the canvas which contains the
canvas item.
TQCanvasItem provides the show() and isVisible() functions like those in
@@ -2722,8 +2722,8 @@ TQCanvasItemList TQCanvas::collisions(const TQPointArray& chunklist,
for (TQCanvasItemList::ConstIterator it=l->begin(); it!=l->end(); ++it) {
TQCanvasItem *g=*it;
if ( g != item ) {
- if ( !seen.tqfind(g) ) {
- seen.tqreplace(g,(void*)1);
+ if ( !seen.find(g) ) {
+ seen.replace(g,(void*)1);
if ( !exact || item->collidesWith(g) )
result.append(g);
}
@@ -3056,7 +3056,7 @@ TQCanvasPixmapArray::TQCanvasPixmapArray(TQValueList<TQPixmap> list, TQPointArra
}
/*!
- Destroys the pixmap array and all the pixmaps it tqcontains.
+ Destroys the pixmap array and all the pixmaps it contains.
*/
TQCanvasPixmapArray::~TQCanvasPixmapArray()
{
@@ -3107,13 +3107,13 @@ bool TQCanvasPixmapArray::readPixmaps( const TQString& filenamepattern,
If count() is 1 \a filename must specify a real filename to read
the tqmask from. If count() is greater than 1, the \a filename must
- contain a "%1" that will get tqreplaced by the number of the tqmask to
+ contain a "%1" that will get replaced by the number of the tqmask to
be loaded, just like TQCanvasPixmapArray::readPixmaps().
All collision masks must be 1-bit images or this function call
will fail.
- If the file isn't readable, tqcontains the wrong number of images,
+ If the file isn't readable, contains the wrong number of images,
or there is some other error, this function will return FALSE, and
the array will be flagged as invalid; otherwise this function
returns TRUE.
@@ -3510,7 +3510,7 @@ void TQCanvasSprite::draw(TQPainter& painter)
Example:
- The following code tqfinds the part of the canvas that is visible in
+ The following code finds the part of the canvas that is visible in
this view, i.e. the bounding rectangle of the view in canvas coordinates.
\code
diff --git a/tqtinterface/qt4/src/codecs/tqbig5codec.cpp b/tqtinterface/qt4/src/codecs/tqbig5codec.cpp
index bdab025..be0d14c 100644
--- a/tqtinterface/qt4/src/codecs/tqbig5codec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqbig5codec.cpp
@@ -112,7 +112,7 @@ int qt_UnicodeToBig5hkscs(uint wc, uchar *r);
#define IsSecondByteRange2(c) (InRange((c), 0xA1, 0xFE))
#define IsSecondByte(c) (IsSecondByteRange1(c) || IsSecondByteRange2(c))
-#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::tqreplacement)
+#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::replacement)
struct B5Map {
ushort x;
@@ -569,7 +569,7 @@ public:
nbuf = 1;
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
break;
case 1:
@@ -581,11 +581,11 @@ public:
result += TQValidChar(u);
else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
break;
@@ -655,19 +655,19 @@ TQString TQBig5Codec::toUnicode(const char* chars, int len) const
if ( qt_Big5ToUnicode( (const uchar*)(chars + i - 1), &u ) == 2 )
result += TQValidChar(u);
else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
i--;
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
// Bad String
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
}
return result;
@@ -855,7 +855,7 @@ public:
nbuf = 1;
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
break;
case 1:
@@ -867,11 +867,11 @@ public:
result += TQValidChar(u);
else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
break;
@@ -938,19 +938,19 @@ TQString TQBig5hkscsCodec::toUnicode(const char* chars, int len) const
if ( qt_Big5hkscsToUnicode( (const uchar*)(chars + i - 1), &u ) == 2 )
result += TQValidChar(u);
else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
i--;
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
// Bad String
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
}
return result;
diff --git a/tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp b/tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp
index 416ad78..f758586 100644
--- a/tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp
@@ -125,7 +125,7 @@ static const uchar Ss3 = 0x8f; // Single Shift 3
#define IsKana(c) (((c) >= 0xa1) && ((c) <= 0xdf))
#define IsEucChar(c) (((c) >= 0xa1) && ((c) <= 0xfe))
-#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::tqreplacement)
+#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::replacement)
/*!
Constructs a TQEucJpCodec.
@@ -230,7 +230,7 @@ TQString TQEucJpCodec::toUnicode(const char* chars, int len) const
result += TQValidChar(u);
} else {
i--;
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
}
} else if ( ch == Ss3 ) {
@@ -245,17 +245,17 @@ TQString TQEucJpCodec::toUnicode(const char* chars, int len) const
result += TQValidChar(u);
} else {
i--;
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
i--;
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else if ( IsEucChar(ch) ) {
// JIS X 0208
@@ -266,14 +266,14 @@ TQString TQEucJpCodec::toUnicode(const char* chars, int len) const
result += TQValidChar(u);
} else {
i--;
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
}
return result;
@@ -424,7 +424,7 @@ public:
nbuf = 1;
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
break;
case 1:
@@ -434,7 +434,7 @@ public:
uint u = conv->jisx0201ToUnicode(ch);
result += TQValidChar(u);
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
} else if ( buf[0] == Ss3 ) {
@@ -444,7 +444,7 @@ public:
nbuf = 2;
} else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
nbuf = 0;
}
} else {
@@ -454,7 +454,7 @@ public:
result += TQValidChar(u);
} else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
}
@@ -465,7 +465,7 @@ public:
uint u = conv->jisx0212ToUnicode(buf[1] & 0x7f, ch & 0x7f);
result += TQValidChar(u);
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
}
diff --git a/tqtinterface/qt4/src/codecs/tqeuckrcodec.cpp b/tqtinterface/qt4/src/codecs/tqeuckrcodec.cpp
index 67ac98e..7ae89eb 100644
--- a/tqtinterface/qt4/src/codecs/tqeuckrcodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqeuckrcodec.cpp
@@ -101,7 +101,7 @@ unsigned int qt_Ksc5601ToUnicode(unsigned int code);
unsigned int qt_UnicodeToKsc5601(unsigned int tqunicode);
#define IsEucChar(c) (((c) >= 0xa1) && ((c) <= 0xfe))
-#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::tqreplacement)
+#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::replacement)
/*!
\reimp
@@ -174,14 +174,14 @@ TQString TQEucKrCodec::toUnicode(const char* chars, int len) const
result += TQValidChar(u);
} else {
i--;
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
}
return result;
@@ -304,7 +304,7 @@ public:
nbuf = 1;
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
break;
case 1:
@@ -314,7 +314,7 @@ public:
result += TQValidChar(u);
} else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
break;
diff --git a/tqtinterface/qt4/src/codecs/tqgb18030codec.cpp b/tqtinterface/qt4/src/codecs/tqgb18030codec.cpp
index 4abf8f4..257b631 100644
--- a/tqtinterface/qt4/src/codecs/tqgb18030codec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqgb18030codec.cpp
@@ -133,7 +133,7 @@
#define Is3rdByte(c) (InRange((c), 0x81, 0xFE))
#define Is4thByte(c) (InRange((c), 0x30, 0x39))
-#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::tqreplacement)
+#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::replacement)
/* User-defined areas: UDA 1: 0xAAA1 - 0xAFFE (564/0)
UDA 2: 0xF8A1 - 0xFEFE (658/0)
@@ -257,12 +257,12 @@ TQString TQGb18030Codec::toUnicode(const char* chars, int len) const
}
i += clen;
} else if (i < len) {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
i++;
}
} else {
// Invalid or undefined
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
i++;
}
}
@@ -365,7 +365,7 @@ public:
nbuf = 1;
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
break;
case 1:
@@ -377,7 +377,7 @@ public:
if (clen == 2) {
result += TQValidChar(u);
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
} else if ( Is2ndByteIn4Bytes(ch) ) {
@@ -385,7 +385,7 @@ public:
nbuf = 2;
} else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
nbuf = 0;
}
break;
@@ -395,7 +395,7 @@ public:
buf[2] = ch;
nbuf = 3;
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
nbuf = 0;
}
break;
@@ -417,10 +417,10 @@ public:
result += TQChar(low);
}
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
break;
@@ -540,7 +540,7 @@ public:
nbuf = 1;
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
break;
case 1:
@@ -552,12 +552,12 @@ public:
if (clen == 2) {
result += TQValidChar(u);
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
} else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
nbuf = 0;
}
break;
@@ -627,15 +627,15 @@ TQString TQGbkCodec::toUnicode(const char* chars, int len) const
result += TQValidChar(u);
i += 2;
} else if (clen == 4) {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
i += 4;
} else if (i < len) {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
i++;
}
} else {
// Invalid or undefined
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
i++;
}
}
@@ -739,7 +739,7 @@ public:
nbuf = 1;
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
break;
case 1:
@@ -751,12 +751,12 @@ public:
if (clen == 2) {
result += TQValidChar(u);
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
} else {
// Error
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
nbuf = 0;
}
break;
@@ -828,15 +828,15 @@ TQString TQGb2312Codec::toUnicode(const char* chars, int len) const
if ( clen == 2 && IsByteInGb2312(ch) && IsByteInGb2312((uchar)(chars[i+1])) )
result += TQValidChar(u);
else
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
i += clen;
} else if (i < len) {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
i++;
}
} else {
// Invalid or undefined
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
i++;
}
}
@@ -9204,22 +9204,22 @@ static uint qt_Gb18030ToUnicode(const uchar *gbstr, int& len) {
} else {
/* undefined or reserved area */
len = 1;
- uni = TQChar::tqreplacement.tqunicode();
+ uni = TQChar::replacement.tqunicode();
}
}
else {
len = 1;
- uni = TQChar::tqreplacement.tqunicode();
+ uni = TQChar::replacement.tqunicode();
}
}
else {
len = 1;
- uni = TQChar::tqreplacement.tqunicode();
+ uni = TQChar::replacement.tqunicode();
}
}
else {
len = 1;
- uni = TQChar::tqreplacement.tqunicode();
+ uni = TQChar::replacement.tqunicode();
}
return uni;
}
diff --git a/tqtinterface/qt4/src/codecs/tqisciicodec.cpp b/tqtinterface/qt4/src/codecs/tqisciicodec.cpp
index e6063b4..b9f414b 100644
--- a/tqtinterface/qt4/src/codecs/tqisciicodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqisciicodec.cpp
@@ -1,7 +1,7 @@
#include "tqisciicodec_p.h"
#ifndef TQT_NO_CODECS
-#define TQValidChar(u) ((u) ? TQChar((u)) : TQChar::tqreplacement)
+#define TQValidChar(u) ((u) ? TQChar((u)) : TQChar::replacement)
/*!
\class TQIsciiCodec
diff --git a/tqtinterface/qt4/src/codecs/tqjiscodec.cpp b/tqtinterface/qt4/src/codecs/tqjiscodec.cpp
index ebebca2..c8cccbb 100644
--- a/tqtinterface/qt4/src/codecs/tqjiscodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqjiscodec.cpp
@@ -148,7 +148,7 @@ static const uchar Overline = 0x7e;
#define IsKana(c) (((c) >= 0xa1) && ((c) <= 0xdf))
#define IsJisChar(c) (((c) >= 0x21) && ((c) <= 0x7e))
-#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::tqreplacement)
+#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::replacement)
enum Iso2022State{ Ascii, MinState = Ascii,
JISX0201_Latin, JISX0201_Kana,
@@ -362,7 +362,7 @@ TQString TQJisCodec::toUnicode(const char* chars, int len) const
}
break;
default:
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
break;
}
}
@@ -668,7 +668,7 @@ public:
buf[nbuf++] = ch;
break;
default:
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
break;
}
break;
@@ -684,7 +684,7 @@ public:
result += TQValidChar(u);
break;
default:
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
break;
}
nbuf = 0;
diff --git a/tqtinterface/qt4/src/codecs/tqjpunicode.cpp b/tqtinterface/qt4/src/codecs/tqjpunicode.cpp
index d0ced80..9d0e875 100644
--- a/tqtinterface/qt4/src/codecs/tqjpunicode.cpp
+++ b/tqtinterface/qt4/src/codecs/tqjpunicode.cpp
@@ -769,7 +769,7 @@ TQJpUnicodeConv *TQJpUnicodeConv::newConverter(int rule)
if ( rule == Default && (e=getenv("UNICODEMAP_JP")) != 0 ) {
TQCString env( e );
for (int i = 0; i < (int)env.length(); ) {
- int j = env.tqfind(',', i);
+ int j = env.find(',', i);
TQCString s;
if (j < 0) {
s = env.mid(i).stripWhiteSpace();
diff --git a/tqtinterface/qt4/src/codecs/tqrtlcodec.cpp b/tqtinterface/qt4/src/codecs/tqrtlcodec.cpp
index 56bf40d..a5640aa 100644
--- a/tqtinterface/qt4/src/codecs/tqrtlcodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqrtlcodec.cpp
@@ -291,9 +291,9 @@ static TQString reverseLine(const TQString &str, unsigned int from, unsigned int
* "SHALOM my friend" or "my friend SHALOM", depending on the basic direction
* one assumes for the text.
*
- * So this function uses some heuristics to tqfind the right answer...
+ * So this function uses some heuristics to find the right answer...
*/
-static TQChar::Direction tqfindBasicDirection(TQString str)
+static TQChar::Direction findBasicDirection(TQString str)
{
unsigned int pos;
unsigned int len = str.length();
@@ -421,7 +421,7 @@ const char* TQHebrewCodec::mimeName() const
static TQString visualOrder(TQString logical, TQChar::Direction basicDir)
{
- logical.tqreplace(TQChar('\n'), TQChar(0x2028));
+ logical.replace(TQChar('\n'), TQChar(0x2028));
#ifdef USE_QT4
// [FIXME]
@@ -471,8 +471,8 @@ static TQString visualOrder(TQString logical, TQChar::Direction basicDir)
}
visual += sub;
}
- // tqreplace Unicode newline back with \n to compare.
- visual.tqreplace(TQChar(0x2028), TQChar('\n'));
+ // replace Unicode newline back with \n to compare.
+ visual.replace(TQChar(0x2028), TQChar('\n'));
if (l != levels) {
delete [] levels;
delete [] visualOrder;
@@ -542,7 +542,7 @@ TQString TQHebrewCodec::toUnicode(const char* chars, int len ) const
// do transformation from visual byte ordering to logical byte
// ordering
if( basicDir == TQChar::DirON )
- basicDir = tqfindBasicDirection(r);
+ basicDir = findBasicDirection(r);
return visualOrder(r, basicDir);
}
diff --git a/tqtinterface/qt4/src/codecs/tqsjiscodec.cpp b/tqtinterface/qt4/src/codecs/tqsjiscodec.cpp
index 000898d..5b907d6 100644
--- a/tqtinterface/qt4/src/codecs/tqsjiscodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqsjiscodec.cpp
@@ -102,7 +102,7 @@ static const uchar Esc = 0x1b;
#define IsSjisChar2(c) (((c) >= 0x40) && ((c) != 0x7f) && ((c) <= 0xfc))
#define IsUserDefinedChar1(c) (((c) >= 0xf0) && ((c) <= 0xfc))
-#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::tqreplacement)
+#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::replacement)
/*!
Creates a Shift-JIS codec. Note that this is done automatically by
@@ -207,20 +207,20 @@ TQString TQSjisCodec::toUnicode(const char* chars, int len) const
} else if ((u = conv->cp932ToUnicode(ch, c2))) {
result += TQValidChar(u);
} else if ( IsUserDefinedChar1(ch) ) {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
} else {
u = conv->sjisToUnicode(ch, c2);
result += TQValidChar(u);
}
} else {
i--;
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
} else {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
}
return result;
@@ -343,7 +343,7 @@ public:
nbuf = 1;
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
break;
case 1:
@@ -354,14 +354,14 @@ public:
} else if ((u = conv->cp932ToUnicode(buf[0], ch))) {
result += TQValidChar(u);
} else if ( IsUserDefinedChar1(buf[0]) ) {
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
} else {
u = conv->sjisToUnicode(buf[0], ch);
result += TQValidChar(u);
}
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
nbuf = 0;
break;
diff --git a/tqtinterface/qt4/src/codecs/tqtextcodec.cpp b/tqtinterface/qt4/src/codecs/tqtextcodec.cpp
index 7458db6..8784e4d 100644
--- a/tqtinterface/qt4/src/codecs/tqtextcodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqtextcodec.cpp
@@ -320,7 +320,7 @@ TQString TQTextStatelessDecoder::toUnicode(const char* chars, int len)
recently created TQTextCodec objects take precedence over earlier
ones.
- You may tqfind it more convenient to make your codec class available
+ You may find it more convenient to make your codec class available
as a plugin; see the \link plugins-howto.html plugin
documentation\endlink for more details.
@@ -872,7 +872,7 @@ TQTextCodec* TQTextCodec::codecForName( const char* name, int accuracy )
often use most of the available character sequences, and so only
by linguistic analysis could a true match be made.
- \a chars tqcontains the string to check, and \a len tqcontains the
+ \a chars contains the string to check, and \a len contains the
number of characters in the string to use.
\sa heuristicContentMatch()
@@ -944,7 +944,7 @@ const char* TQTextCodec::mimeName() const
the first \a len bytes of \a chars and returns a value indicating
how likely it is that the string is a prefix of text encoded in
the encoding of the subclass. A negative return value indicates
- that the text is detectably not in the encoding (e.g. it tqcontains
+ that the text is detectably not in the encoding (e.g. it contains
characters undefined in the encoding). A return value of 0
indicates that the text should be decoded with this codec rather
than as ASCII, but there is no particular evidence. The value
@@ -1064,7 +1064,7 @@ TQCString TQTextCodec::fromUnicode(const TQString& uc) const
/*!
\overload
- \a a tqcontains the source characters; \a len tqcontains the number of
+ \a a contains the source characters; \a len contains the number of
characters in \a a to use.
*/
TQString TQTextCodec::toUnicode(const TQByteArray& a, int len) const
@@ -1077,7 +1077,7 @@ TQString TQTextCodec::toUnicode(const TQByteArray& a, int len) const
/*!
\overload
- \a a tqcontains the source characters.
+ \a a contains the source characters.
*/
TQString TQTextCodec::toUnicode(const TQByteArray& a) const
{
@@ -1088,7 +1088,7 @@ TQString TQTextCodec::toUnicode(const TQByteArray& a) const
/*!
\overload
- \a a tqcontains the source characters; \a len tqcontains the number of
+ \a a contains the source characters; \a len contains the number of
characters in \a a to use.
*/
TQString TQTextCodec::toUnicode(const TQCString& a, int len) const
@@ -1101,7 +1101,7 @@ TQString TQTextCodec::toUnicode(const TQCString& a, int len) const
/*!
\overload
- \a a tqcontains the source characters.
+ \a a contains the source characters.
*/
TQString TQTextCodec::toUnicode(const TQCString& a) const
{
@@ -1112,7 +1112,7 @@ TQString TQTextCodec::toUnicode(const TQCString& a) const
/*!
\overload
- \a chars tqcontains the source characters.
+ \a chars contains the source characters.
*/
TQString TQTextCodec::toUnicode(const char* chars) const
{
@@ -1149,7 +1149,7 @@ bool TQTextCodec::canEncode( TQChar ch ) const
/*!
\overload
- \a s tqcontains the string being tested for encode-ability.
+ \a s contains the string being tested for encode-ability.
*/
bool TQTextCodec::canEncode( const TQString& s ) const
{
@@ -2657,7 +2657,7 @@ TQString TQLatin15Codec::toUnicode(const char* chars, int len) const
}
static inline unsigned char
-latin15CharFromUnicode( unsigned short uc, bool tqreplacement = TRUE )
+latin15CharFromUnicode( unsigned short uc, bool replacement = TRUE )
{
uchar c;
if ( uc < 0x0100 ) {
@@ -2671,7 +2671,7 @@ latin15CharFromUnicode( unsigned short uc, bool tqreplacement = TRUE )
case 0xbc:
case 0xbd:
case 0xbe:
- c = tqreplacement ? '?' : 0;
+ c = replacement ? '?' : 0;
break;
default:
c = (unsigned char) uc;
@@ -2707,10 +2707,10 @@ latin15CharFromUnicode( unsigned short uc, bool tqreplacement = TRUE )
c = 0xbe;
break;
default:
- c = tqreplacement ? '?' : 0;
+ c = replacement ? '?' : 0;
}
} else {
- c = tqreplacement ? '?' : 0;
+ c = replacement ? '?' : 0;
}
}
return c;
@@ -2818,20 +2818,20 @@ static void setupLocaleMapper()
}
// Now try these in order:
- // 1. CODESET from ctype if it tqcontains a .CODESET part (e.g. en_US.ISO8859-15)
- // 2. CODESET from lang if it tqcontains a .CODESET part
+ // 1. CODESET from ctype if it contains a .CODESET part (e.g. en_US.ISO8859-15)
+ // 2. CODESET from lang if it contains a .CODESET part
// 3. ctype (maybe the locale is named "ISO-8859-1" or something)
// 4. locale (ditto)
// 5. check for "@euro"
// 6. guess locale from ctype unless ctype is "C"
// 7. guess locale from lang
- // 1. CODESET from ctype if it tqcontains a .CODESET part (e.g. en_US.ISO8859-15)
+ // 1. CODESET from ctype if it contains a .CODESET part (e.g. en_US.ISO8859-15)
char * codeset = ctype ? strchr( ctype, '.' ) : 0;
if ( codeset && *codeset == '.' )
localeMapper = checkForCodec( codeset + 1 );
- // 2. CODESET from lang if it tqcontains a .CODESET part
+ // 2. CODESET from lang if it contains a .CODESET part
codeset = lang ? strchr( lang, '.' ) : 0;
if ( !localeMapper && codeset && *codeset == '.' )
localeMapper = checkForCodec( codeset + 1 );
diff --git a/tqtinterface/qt4/src/codecs/tqtsciicodec.cpp b/tqtinterface/qt4/src/codecs/tqtsciicodec.cpp
index e35758b..b9b3dc8 100644
--- a/tqtinterface/qt4/src/codecs/tqtsciicodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqtsciicodec.cpp
@@ -100,7 +100,7 @@ static unsigned char qt_UnicodeToTSCII(ushort u1, ushort u2, ushort u3);
static unsigned int qt_TSCIIToUnicode(unsigned int code, uint *s);
#define IsTSCIIChar(c) (((c) >= 0x80) && ((c) <= 0xfd))
-#define TQValidChar(u) ((u) ? TQChar((u)) : TQChar::tqreplacement)
+#define TQValidChar(u) ((u) ? TQChar((u)) : TQChar::replacement)
/*! \reimp */
int TQTsciiCodec::mibEnum() const
@@ -162,7 +162,7 @@ TQString TQTsciiCodec::toUnicode(const char* chars, int len) const
}
} else {
// Invalid
- result += TQChar::tqreplacement;
+ result += TQChar::replacement;
}
}
diff --git a/tqtinterface/qt4/src/codecs/tqutfcodec.cpp b/tqtinterface/qt4/src/codecs/tqutfcodec.cpp
index 3a80d31..c0f4fac 100644
--- a/tqtinterface/qt4/src/codecs/tqutfcodec.cpp
+++ b/tqtinterface/qt4/src/codecs/tqutfcodec.cpp
@@ -188,7 +188,7 @@ public:
*qch++ = TQChar(low);
headerDone = TRUE;
} else if ((uc < min_uc) || (uc >= 0xd800 && uc <= 0xdfff) || (uc >= 0xfffe)) {
- *qch++ = TQChar::tqreplacement;
+ *qch++ = TQChar::replacement;
} else {
if (headerDone || TQChar(uc) != TQChar::byteOrderMark)
*qch++ = uc;
@@ -198,7 +198,7 @@ public:
} else {
// error
i = error;
- *qch++ = TQChar::tqreplacement;
+ *qch++ = TQChar::replacement;
need = 0;
}
} else {
@@ -222,7 +222,7 @@ public:
min_uc = 0x10000;
} else {
// error
- *qch++ = TQChar::tqreplacement;
+ *qch++ = TQChar::replacement;
}
}
}
diff --git a/tqtinterface/qt4/src/dialogs/tqdialog.cpp b/tqtinterface/qt4/src/dialogs/tqdialog.cpp
index 58093f1..31341ca 100644
--- a/tqtinterface/qt4/src/dialogs/tqdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqdialog.cpp
@@ -114,7 +114,7 @@
A <b>modeless</b> dialog is a dialog that operates
independently of other windows in the same application. Find and
- tqreplace dialogs in word-processors are often modeless to allow the
+ replace dialogs in word-processors are often modeless to allow the
user to interact with both the application's main window and with
the dialog.
diff --git a/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp b/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp
index 8a86b71..86c50dc 100644
--- a/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp
@@ -242,7 +242,7 @@ bool TQErrorMessage::nextPending()
while ( !pending->isEmpty() ) {
TQString p = *pending->begin();
pending->remove( pending->begin() );
- if ( !p.isEmpty() && !doNotShow->tqfind( p ) ) {
+ if ( !p.isEmpty() && !doNotShow->find( p ) ) {
errors->setText( p );
return TRUE;
}
@@ -260,7 +260,7 @@ bool TQErrorMessage::nextPending()
void TQErrorMessage::message( const TQString & m )
{
- if ( doNotShow->tqfind( m ) )
+ if ( doNotShow->find( m ) )
return;
pending->append( m );
if ( !isVisible() && nextPending() )
diff --git a/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp b/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp
index 928c7a6..424ac7e 100644
--- a/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp
@@ -1089,7 +1089,7 @@ public:
return TQString::null;
for ( int i = 0; i < len ;++i ) {
uchar inCh = (uchar)cName[ i ];
- if ( inCh >= 128 || sChars.tqcontains(inCh) )
+ if ( inCh >= 128 || sChars.contains(inCh) )
{
newStr += TQChar( '%' );
ushort c = inCh / 16;
@@ -1311,7 +1311,7 @@ void TQFileListBox::viewportMouseMoveEvent( TQMouseEvent *e )
TQListBoxItem *item = dragItem;
dragItem = 0;
if ( item ) {
- if ( !tqitemRect( item ).tqcontains( e->pos() ) )
+ if ( !tqitemRect( item ).contains( e->pos() ) )
return;
TQUriDrag* drag = new TQUriDrag( viewport() );
TQStringList files;
@@ -1439,7 +1439,7 @@ void TQFileListBox::viewportDropEvent( TQDropEvent *e )
TQString name = (currDropItem ? TQFileDialogPrivate::encodeFileName(currDropItem->text()) : TQString("."));
TQUrlInfo info(filedialog->d->url, name);
for ( i = 0; i < lst.count(); ++i ) {
- int slash = lst[i].tqfindRev('/');
+ int slash = lst[i].findRev('/');
TQString filename = lst[i].right(lst[i].length() - slash - 1);
exists = exists || TQFileDialogPrivate::fileExists( dest, filename);
}
@@ -1454,7 +1454,7 @@ void TQFileListBox::viewportDropEvent( TQDropEvent *e )
bool TQFileListBox::acceptDrop( const TQPoint &pnt, TQWidget *source )
{
TQListBoxItem *item = itemAt( pnt );
- if ( !item || (item && !tqitemRect( item ).tqcontains( pnt )) ) {
+ if ( !item || (item && !tqitemRect( item ).contains( pnt )) ) {
if ( source == viewport() && startDragDir == filedialog->dirPath() )
return FALSE;
return TRUE;
@@ -1462,7 +1462,7 @@ bool TQFileListBox::acceptDrop( const TQPoint &pnt, TQWidget *source )
TQUrlInfo fi( filedialog->d->url, item->text() );
- if ( fi.isDir() && tqitemRect( item ).tqcontains( pnt ) )
+ if ( fi.isDir() && tqitemRect( item ).contains( pnt ) )
return TRUE;
return FALSE;
}
@@ -1476,7 +1476,7 @@ void TQFileListBox::setCurrentDropItem( const TQPoint &pnt )
item = itemAt( pnt );
if ( item && !TQUrlInfo( filedialog->d->url, item->text() ).isDir() )
item = 0;
- if ( item && !tqitemRect( item ).tqcontains( pnt ) )
+ if ( item && !tqitemRect( item ).contains( pnt ) )
item = 0;
currDropItem = item;
@@ -1858,7 +1858,7 @@ void TQFileDialogTQFileListView::viewportDropEvent( TQDropEvent *e )
TQString name = (currDropItem ? TQFileDialogPrivate::encodeFileName(currDropItem->text(0)) : TQString("."));
TQUrlInfo info(filedialog->d->url, name);
for (uint i = 0; i < l.count(); ++i) {
- int slash = l[i].tqfindRev('/');
+ int slash = l[i].findRev('/');
TQString filename = l[i].right(l[i].length() - slash - 1);
exists = exists || TQFileDialogPrivate::fileExists(dest, filename);
}
@@ -1873,7 +1873,7 @@ void TQFileDialogTQFileListView::viewportDropEvent( TQDropEvent *e )
bool TQFileDialogTQFileListView::acceptDrop( const TQPoint &pnt, TQWidget *source )
{
TQListViewItem *item = itemAt( pnt );
- if ( !item || (item && !tqitemRect( item ).tqcontains( pnt )) ) {
+ if ( !item || (item && !tqitemRect( item ).contains( pnt )) ) {
if ( source == viewport() && startDragDir == filedialog->dirPath() )
return FALSE;
return TRUE;
@@ -1881,7 +1881,7 @@ bool TQFileDialogTQFileListView::acceptDrop( const TQPoint &pnt, TQWidget *sourc
TQUrlInfo fi( filedialog->d->url, item->text( 0 ) );
- if ( fi.isDir() && tqitemRect( item ).tqcontains( pnt ) )
+ if ( fi.isDir() && tqitemRect( item ).contains( pnt ) )
return TRUE;
return FALSE;
}
@@ -1896,7 +1896,7 @@ void TQFileDialogTQFileListView::setCurrentDropItem( const TQPoint &pnt )
if ( item && !TQUrlInfo( filedialog->d->url, item->text( 0 ) ).isDir() )
item = 0;
- if ( item && !tqitemRect( item ).tqcontains( pnt ) )
+ if ( item && !tqitemRect( item ).contains( pnt ) )
item = 0;
currDropItem = item;
@@ -1994,7 +1994,7 @@ void TQFileDialogTQFileListView::contentsMoved( int, int )
TQFileDialogPrivate::File::~File()
{
- if ( d->pendingItems.tqfindRef( this ) )
+ if ( d->pendingItems.findRef( this ) )
d->pendingItems.removeRef( this );
}
@@ -2152,12 +2152,12 @@ static TQStringList makeFiltersList( const TQString &filter )
if ( filter.isEmpty() )
return TQStringList();
- int i = filter.tqfind( ";;", 0 );
+ int i = filter.find( ";;", 0 );
TQString sep( ";;" );
if ( i == -1 ) {
- if ( filter.tqfind( "\n", 0 ) != -1 ) {
+ if ( filter.find( "\n", 0 ) != -1 ) {
sep = "\n";
- i = filter.tqfind( sep, 0 );
+ i = filter.find( sep, 0 );
}
}
@@ -2435,10 +2435,10 @@ TQFileDialog::TQFileDialog( const TQString& dirName, const TQString & filter,
if ( !filter.isEmpty() ) {
setFilters( filter );
if ( !dirName.isEmpty() ) {
- int dotpos = dirName.tqfind( TQChar('.'), 0, FALSE );
+ int dotpos = dirName.find( TQChar('.'), 0, FALSE );
if ( dotpos != -1 ) {
for ( int b=0 ; b<d->types->count() ; b++ ) {
- if ( d->types->text(b).tqcontains( dirName.right( dirName.length() - dotpos ) ) ) {
+ if ( d->types->text(b).contains( dirName.right( dirName.length() - dotpos ) ) ) {
d->types->setCurrentItem( b );
setFilter( d->types->text( b ) );
return;
@@ -2580,7 +2580,7 @@ void TQFileDialog::init()
}
if ( !!TQDir::homeDirPath() ) {
- if ( !d->paths->listBox()->tqfindItem( TQDir::homeDirPath() ) )
+ if ( !d->paths->listBox()->findItem( TQDir::homeDirPath() ) )
d->paths->insertItem( *openFolderIcon, TQDir::homeDirPath() );
}
@@ -2883,7 +2883,7 @@ void TQFileDialog::changeMode( int id )
if ( !d->infoPreview && !d->contentsPreview )
return;
- TQButton *btn = (TQButton*)d->modeButtons->tqfind( id );
+ TQButton *btn = (TQButton*)d->modeButtons->find( id );
if ( !btn )
return;
@@ -2935,7 +2935,7 @@ TQFileDialog::~TQFileDialog()
\brief the name of the selected file
- If a file was selected selectedFile tqcontains the file's name including
+ If a file was selected selectedFile contains the file's name including
its absolute path; otherwise selectedFile is empty.
\sa TQString::isEmpty(), selectedFiles, selectedFilter
@@ -2995,7 +2995,7 @@ void TQFileDialog::setSelectedFilter( int n )
/*!
Sets the current filter selected in the file dialog to the first
- one that tqcontains the text \a tqmask.
+ one that contains the text \a tqmask.
*/
void TQFileDialog::setSelectedFilter( const TQString& tqmask )
@@ -3003,7 +3003,7 @@ void TQFileDialog::setSelectedFilter( const TQString& tqmask )
int n;
for ( n = 0; n < d->types->count(); n++ ) {
- if ( d->types->text( n ).tqcontains( tqmask, FALSE ) ) {
+ if ( d->types->text( n ).contains( tqmask, FALSE ) ) {
d->types->setCurrentItem( n );
TQString f = tqmask;
TQRegExp r( TQString::tqfromLatin1(qt_file_dialog_filter_reg_exp) );
@@ -3022,7 +3022,7 @@ void TQFileDialog::setSelectedFilter( const TQString& tqmask )
\brief the list of selected files
- If one or more files are selected, selectedFiles tqcontains their
+ If one or more files are selected, selectedFiles contains their
names including their absolute paths. If no files are selected or
the mode isn't ExistingFiles selectedFiles is an empty list.
@@ -3050,12 +3050,12 @@ TQStringList TQFileDialog::selectedFiles() const
if ( mode() == ExistingFiles ) {
TQStringList selectedLst;
TQString selectedFiles = nameEdit->text();
- if (selectedFiles.tqfindRev('\"') == -1) {
+ if (selectedFiles.findRev('\"') == -1) {
//probably because Enter was pressed on the nameEdit, so we have one file
//not in "" but raw
selectedLst.append(selectedFiles);
} else {
- selectedFiles.truncate( selectedFiles.tqfindRev( '\"' ) );
+ selectedFiles.truncate( selectedFiles.findRev( '\"' ) );
selectedLst = selectedLst.split( TQString("\" "), selectedFiles );
}
for ( TQStringList::Iterator it = selectedLst.begin(); it != selectedLst.end(); ++it ) {
@@ -3144,7 +3144,7 @@ TQString TQFileDialog::dirPath() const
Sets the filter used in the file dialog to \a newFilter.
- If \a newFilter tqcontains a pair of parentheses containing one or more
+ If \a newFilter contains a pair of parentheses containing one or more
of <em><b>anything*something</b></em> separated by spaces or by
semi-colons then only the text contained in the parentheses is used as
the filter. This means that these calls are all equivalent:
@@ -3673,7 +3673,7 @@ void TQFileDialog::okClicked()
}
#endif
- if ( fn.tqcontains("*") ) {
+ if ( fn.contains("*") ) {
addFilter( fn );
nameEdit->blockSignals( TRUE );
nameEdit->setText( TQString::tqfromLatin1("") );
@@ -3737,7 +3737,7 @@ void TQFileDialog::okClicked()
// If selection is valid, return it, else try
// using selection as a directory to change to.
- if ( !d->currentFileName.isNull() && !d->currentFileName.tqcontains( "*" ) ) {
+ if ( !d->currentFileName.isNull() && !d->currentFileName.contains( "*" ) ) {
emit fileSelected( selectedFile() );
accept();
} else {
@@ -3761,8 +3761,8 @@ void TQFileDialog::okClicked()
trySetSelection( TRUE, d->url, TRUE );
d->checkForFilter = FALSE;
} else {
- if ( !nameEdit->text().tqcontains( "/" ) &&
- !nameEdit->text().tqcontains( "\\" )
+ if ( !nameEdit->text().contains( "/" ) &&
+ !nameEdit->text().contains( "\\" )
#if defined(TQ_OS_WIN32)
&& nameEdit->text()[ 1 ] != ':'
#endif
@@ -3823,9 +3823,9 @@ bool TQFileDialog::trySetSelection( bool isDir, const TQUrlOperator &u, bool upd
{
if ( !isDir && !u.path().isEmpty() && u.path().right( 1 ) == "/" )
isDir = TRUE;
- if ( u.fileName().tqcontains( "*") && d->checkForFilter ) {
+ if ( u.fileName().contains( "*") && d->checkForFilter ) {
TQString fn( u.fileName() );
- if ( fn.tqcontains( "*" ) ) {
+ if ( fn.contains( "*" ) ) {
addFilter( fn );
d->currentFileName = TQString::null;
d->url.setFileName( TQString::null );
@@ -4411,11 +4411,11 @@ void TQFileDialog::newFolderClicked()
TQStringList lst;
TQListViewItemIterator it( files );
for ( ; it.current(); ++it )
- if ( it.current()->text( 0 ).tqcontains( tr( "New Folder" ) ) )
+ if ( it.current()->text( 0 ).contains( tr( "New Folder" ) ) )
lst.append( it.current()->text( 0 ) );
if ( !lst.count() == 0 )
- while ( lst.tqcontains( foldername ) )
+ while ( lst.contains( foldername ) )
foldername = tr( "New Folder %1" ).arg( ++i );
d->url.mkdir( foldername );
@@ -5220,7 +5220,7 @@ const TQPixmap * TQWindowsIconProvider::pixmap( const TQFileInfo &fi )
if ( fi.isDir() ) {
return &defaultFolder;
} else if ( ext != ".EXE" ) {
- it = cache.tqfind( key );
+ it = cache.find( key );
if ( it != cache.end() )
return &( *it );
@@ -5266,7 +5266,7 @@ const TQPixmap * TQWindowsIconProvider::pixmap( const TQFileInfo &fi )
if (lst.count() >= 2) { // don't just assume that lst has two entries
TQString filepath = lst[ 0 ].stripWhiteSpace();
if ( !filepath.isEmpty() ) {
- if ( filepath.tqfind("%1") != -1 ) {
+ if ( filepath.find("%1") != -1 ) {
filepath = filepath.arg( fi.filePath() );
if ( ext == ".DLL" ) {
pix = defaultFile;
@@ -5739,7 +5739,7 @@ static bool isRoot( const TQUrl &u )
{
#if defined(TQ_OS_MAC9)
TQString p = TQDir::convertSeparators(u.path());
- if(p.tqcontains(':') == 1)
+ if(p.contains(':') == 1)
return TRUE;
#elif defined(TQ_OS_UNIX)
if ( u.path() == "/" )
@@ -5750,7 +5750,7 @@ static bool isRoot( const TQUrl &u )
p.right( 2 ) == ":/" )
return TRUE;
if ( p[ 0 ] == '/' && p[ 1 ] == '/' ) {
- int slashes = p.tqcontains( '/' );
+ int slashes = p.contains( '/' );
if ( slashes <= 3 )
return TRUE;
if ( slashes == 4 && p[ (int)p.length() - 1 ] == '/' )
@@ -6043,7 +6043,7 @@ void TQFileDialog::itemChanged( TQNetworkOperation *op )
TQUrlInfo *i = 0;
TQListViewItemIterator it1( files );
bool ok1 = FALSE, ok2 = FALSE;
- // first check whether the new file tqreplaces an existing file.
+ // first check whether the new file replaces an existing file.
for ( i = d->sortedList.first(); it1.current(); ++it1, i = d->sortedList.next() ) {
if ( ( (TQFileDialogPrivate::File*)it1.current() )->info.name() == op->arg( 1 ) ) {
delete ( (TQFileDialogPrivate::File*)it1.current() )->i;
diff --git a/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp b/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp
index fbccfa8..5a10f04 100644
--- a/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp
@@ -523,7 +523,7 @@ void TQFontDialog::updateFamilies()
d->fdb.tqfamilies(TQFont::UnknownScript);
TQStringList::ConstIterator it = l.begin(), end = l.end();
for (; it != end; ++it) {
- if (! familyNames.tqcontains(*it))
+ if (! familyNames.contains(*it))
familyNames << *it;
}
}
@@ -625,12 +625,12 @@ void TQFontDialog::updateStyles()
}
}
if (!found && first) {
- if (cstyle.tqcontains("Italic")) {
- cstyle.tqreplace("Italic", "Oblique");
+ if (cstyle.contains("Italic")) {
+ cstyle.replace("Italic", "Oblique");
first = FALSE;
goto redo;
- } else if (cstyle.tqcontains("Oblique")) {
- cstyle.tqreplace("Oblique", "Italic");
+ } else if (cstyle.contains("Oblique")) {
+ cstyle.replace("Oblique", "Italic");
first = FALSE;
goto redo;
}
diff --git a/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp b/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
index 79f6bfc..878a618 100644
--- a/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
@@ -1167,12 +1167,12 @@ static char * qtlogo_xpm[] = {
Examples:
- If a program is unable to tqfind a supporting file, but can do perfectly
+ If a program is unable to find a supporting file, but can do perfectly
well without it:
\code
TQMessageBox::information( this, "Application name",
- "Unable to tqfind the user preferences file.\n"
+ "Unable to find the user preferences file.\n"
"The factory default will be used instead." );
\endcode
@@ -1224,7 +1224,7 @@ static char * qtlogo_xpm[] = {
recommend using the application name as the window's caption.
Below are more examples of how to use the static member functions.
- After these examples you will tqfind an overview of the non-static
+ After these examples you will find an overview of the non-static
member functions.
Exiting a program is part of its normal operation. If there is
@@ -1233,7 +1233,7 @@ static char * qtlogo_xpm[] = {
\code
switch( TQMessageBox::information( this, "Application name here",
- "The document tqcontains unsaved changes\n"
+ "The document contains unsaved changes\n"
"Do you want to save the changes before exiting?",
"&Save", "&Discard", "Cancel",
0, // Enter == button 0
diff --git a/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp b/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp
index eb4a794..d4f2472 100644
--- a/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp
@@ -170,7 +170,7 @@ public:
: TQListViewItem( printers, name, host, comment ), ali( aliases ) { }
bool samePrinter( const TQString& name ) {
- return text( 0 ) == name || ali.tqfind( name ) != ali.end();
+ return text( 0 ) == name || ali.find( name ) != ali.end();
}
TQStringList ali;
@@ -199,13 +199,13 @@ static void parsePrinterDesc( TQString printerDesc, TQListView * printers )
return;
printerDesc = printerDesc.simplifyWhiteSpace();
- int i = printerDesc.tqfind( ':' );
+ int i = printerDesc.find( ':' );
TQString printerName, printerComment, printerHost;
TQStringList aliases;
if ( i >= 0 ) {
// have ':' want '|'
- int j = printerDesc.tqfind( '|' );
+ int j = printerDesc.find( '|' );
if ( j > 0 && j < i ) {
printerName = printerDesc.left( j );
aliases = TQStringList::split( '|',
@@ -217,11 +217,11 @@ static void parsePrinterDesc( TQString printerDesc, TQListView * printers )
printerName = printerDesc.left( i );
}
// look for lprng pseudo all printers entry
- i = printerDesc.tqfind( TQRegExp(TQString::tqfromLatin1(": *all *=")) );
+ i = printerDesc.find( TQRegExp(TQString::tqfromLatin1(": *all *=")) );
if ( i >= 0 )
printerName = "";
// look for signs of this being a remote printer
- i = printerDesc.tqfind( TQRegExp(TQString::tqfromLatin1(": *rm *=")) );
+ i = printerDesc.find( TQRegExp(TQString::tqfromLatin1(": *rm *=")) );
if ( i >= 0 ) {
// point k at the end of remote host name
while ( printerDesc[i] != '=' )
@@ -382,17 +382,17 @@ static char * parsePrintersConf( TQListView * printers, bool *found = 0 )
} else {
printerDesc += TQString::fromLocal8Bit(line);
printerDesc = printerDesc.simplifyWhiteSpace();
- int i = printerDesc.tqfind( ':' );
+ int i = printerDesc.find( ':' );
TQString printerName, printerHost, printerComment;
TQStringList aliases;
if ( i >= 0 ) {
// have : want |
- int j = printerDesc.tqfind( '|', 0 );
+ int j = printerDesc.find( '|', 0 );
if ( j >= i )
j = -1;
printerName = printerDesc.mid( 0, j < 0 ? i : j );
if ( printerName == TQString::tqfromLatin1("_default") ) {
- i = printerDesc.tqfind(
+ i = printerDesc.find(
TQRegExp( TQString::tqfromLatin1(": *use *=") ) );
while ( printerDesc[i] != '=' )
i++;
@@ -421,7 +421,7 @@ static char * parsePrintersConf( TQListView * printers, bool *found = 0 )
.arg( aliases.join(", ") );
}
// look for signs of this being a remote printer
- i = printerDesc.tqfind(
+ i = printerDesc.find(
TQRegExp( TQString::tqfromLatin1(": *bsdaddr *=") ) );
if ( i >= 0 ) {
// point k at the end of remote host name
@@ -635,7 +635,7 @@ static void parseEtcLpMember( TQListView * printers )
++it;
// I haven't found any real documentation, so I'm guessing that
// since lpstat uses /etc/lp/member rather than one of the
- // other directories, it's the one to use. I did not tqfind a
+ // other directories, it's the one to use. I did not find a
// decent way to locate aliases and remote printers.
if ( printer->isFile() )
perhapsAddPrinter( printers, printer->fileName(),
@@ -698,11 +698,11 @@ static void parseSpoolInterface( TQListView * printers )
configFile.close();
printerType = printerType.stripWhiteSpace();
- if ( printerType.tqfind("postscript", 0, FALSE) < 0 )
+ if ( printerType.find("postscript", 0, FALSE) < 0 )
continue;
int ii = 0;
- while ( (ii = namePrinter.tqfind('"', ii)) >= 0 )
+ while ( (ii = namePrinter.find('"', ii)) >= 0 )
namePrinter.remove( ii, 1 );
if ( hostName.isEmpty() || hostPrinter.isEmpty() ) {
@@ -751,7 +751,7 @@ static void parseQconfig( TQListView * printers )
bool indented = line[0].isSpace();
line = line.simplifyWhiteSpace();
- int i = line.tqfind('=');
+ int i = line.find('=');
if ( indented && i != -1 ) { // line in stanza
TQString variable = TQT_TQSTRING(line.left( i )).simplifyWhiteSpace();
TQString value=TQT_TQSTRING(line.mid( i+1, line.length() )).simplifyWhiteSpace();
@@ -764,7 +764,7 @@ static void parseQconfig( TQListView * printers )
} else if ( line[0] == '*' ) { // comment
// nothing to do
} else if ( ts.atEnd() || // end of file, or beginning of new stanza
- ( !indented && line.tqfind( newStanza ) != -1 ) ) {
+ ( !indented && line.find( newStanza ) != -1 ) ) {
if ( up && stanzaName.length() > 0 && stanzaName.length() < 21 ) {
if ( remoteHost.length() ) // remote printer
perhapsAddPrinter( printers, stanzaName, remoteHost,
@@ -1087,7 +1087,7 @@ TQGroupBox * TQPrintDialog::setupDestination()
}
}
- // all printers hopefully known. try to tqfind a good default
+ // all printers hopefully known. try to find a good default
TQString dollarPrinter;
{
const char * t = getenv( "PRINTER" );
diff --git a/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp b/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp
index dc670a9..66b9a64 100644
--- a/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp
@@ -402,7 +402,7 @@ void TQTabDialog::showTab( int i )
the label is shown on-screen and may vary according to language and
other factors.
- If the tab's \a label tqcontains an ampersand, the letter following
+ If the tab's \a label contains an ampersand, the letter following
the ampersand is used as an accelerator for the tab, e.g. if the
label is "Bro&wse" then Alt+W becomes an accelerator which will
move the focus to this tab.
@@ -458,7 +458,7 @@ void TQTabDialog::addTab( TQWidget * child, TQTab* tab )
the label is shown on-screen and may vary according to language and
other factors.
- If the tab's \a label tqcontains an ampersand, the letter following
+ If the tab's \a label contains an ampersand, the letter following
the ampersand is used as an accelerator for the tab, e.g. if the
label is "Bro&wse" then Alt+W becomes an accelerator which will
move the focus to this tab.
diff --git a/tqtinterface/qt4/src/dialogs/tqwizard.cpp b/tqtinterface/qt4/src/dialogs/tqwizard.cpp
index c14b2cb..93c3173 100644
--- a/tqtinterface/qt4/src/dialogs/tqwizard.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqwizard.cpp
@@ -67,7 +67,7 @@
A wizard is a special type of input dialog that consists of a
sequence of dialog pages. A wizard's purpose is to walk the user
through a process step by step. Wizards are useful for complex or
- infrequently occurring tasks that people may tqfind difficult to
+ infrequently occurring tasks that people may find difficult to
learn or do.
TQWizard provides page titles and displays Next, Back, Finish,
@@ -318,7 +318,7 @@ void TQWizard::insertPage( TQWidget * page, const TQString & title, int index )
\fn void TQWizard::selected(const TQString&)
This signal is emitted when the current page changes. The
- parameter tqcontains the title of the selected page.
+ parameter contains the title of the selected page.
*/
@@ -377,7 +377,7 @@ int TQWizard::indexOf( TQWidget* page ) const
TQWizardPrivate::Page * p = d->page( page );
if ( !p ) return -1;
- return d->pages.tqfind( p );
+ return d->pages.find( p );
}
/*!
diff --git a/tqtinterface/qt4/src/embedded/qt_embedded.pri b/tqtinterface/qt4/src/embedded/qt_embedded.pri
index 5bdbdef..88646d7 100644
--- a/tqtinterface/qt4/src/embedded/qt_embedded.pri
+++ b/tqtinterface/qt4/src/embedded/qt_embedded.pri
@@ -33,31 +33,31 @@ embedded {
}
else:DEFINES += TQT_NO_QWS_LINUXFB
- tqcontains( gfx-drivers, qvfb ) {
+ contains( gfx-drivers, qvfb ) {
HEADERS += $$EMBEDDED_H/tqgfxvfb_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxvfb_qws.cpp
}
else:DEFINES += TQT_NO_QWS_VFB
- tqcontains( gfx-drivers, vnc ) {
+ contains( gfx-drivers, vnc ) {
HEADERS += $$EMBEDDED_H/tqgfxvnc_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxvnc_qws.cpp
}
else:DEFINES += TQT_NO_QWS_VNC
- !tqcontains( DEFINES, TQT_NO_QWS_LINUXFB):tqcontains( gfx-drivers, vga16 ) {
+ !contains( DEFINES, TQT_NO_QWS_LINUXFB):contains( gfx-drivers, vga16 ) {
HEADERS += $$EMBEDDED_H/tqgfxvga16_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxvga16_qws.cpp
}
else:DEFINES += TQT_NO_QWS_VGA16
- tqcontains( gfx-drivers, transformed ) {
+ contains( gfx-drivers, transformed ) {
HEADERS += $$EMBEDDED_H/tqgfxtransformed_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxtransformed_qws.cpp
}
else:DEFINES += TQT_NO_QWS_TRANSFORMED
- tqcontains( gfx-drivers, snap ) {
+ contains( gfx-drivers, snap ) {
exists( $(SCITECH)/include/snap/graphics.h) {
HEADERS += $$EMBEDDED_H/tqgfxsnap_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxsnap_qws.cpp
@@ -73,34 +73,34 @@ embedded {
}
else:DEFINES += TQT_NO_QWS_SNAP
- tqcontains( gfx-drivers, mach64 ) {
+ contains( gfx-drivers, mach64 ) {
HEADERS += $$EMBEDDED_H/tqgfxmach64_qws.h \
$$EMBEDDED_H/tqgfxmach64defs_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxmach64_qws.cpp
}
else:DEFINES += TQT_NO_QWS_MACH64
- tqcontains( gfx-drivers, voodoo ) {
+ contains( gfx-drivers, voodoo ) {
HEADERS += $$EMBEDDED_H/tqgfxvoodoo_qws.h \
$$EMBEDDED_H/tqgfxvoodoodefs_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxvoodoo_qws.cpp
}
else:DEFINES += TQT_NO_QWS_VOODOO3
- tqcontains( gfx-drivers, matrox ) {
+ contains( gfx-drivers, matrox ) {
HEADERS += $$EMBEDDED_H/tqgfxmatrox_qws.h \
$$EMBEDDED_H/tqgfxmatroxdefs_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxmatrox_qws.cpp
}
else:DEFINES += TQT_NO_QWS_MATROX
- tqcontains( gfx-drivers, shadowfb ) {
+ contains( gfx-drivers, shadowfb ) {
HEADERS += $$EMBEDDED_H/tqgfxshadow_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxshadow_qws.cpp
}
else:DEFINES += TQT_NO_QWS_SHADOWFB
- tqcontains( gfx-drivers, repeater ) {
+ contains( gfx-drivers, repeater ) {
HEADERS += $$EMBEDDED_H/tqgfxrepeater_qws.h
SOURCES += $$EMBEDDED_CPP/tqgfxrepeater_qws.cpp
}
@@ -110,46 +110,46 @@ embedded {
# Keyboard drivers
#
- tqcontains( kbd-drivers, sl5000 ) {
+ contains( kbd-drivers, sl5000 ) {
HEADERS +=$$EMBEDDED_H/tqkbdsl5000_qws.h
SOURCES +=$$EMBEDDED_CPP/tqkbdsl5000_qws.cpp
- !tqcontains( kbd-drivers, tty ) {
+ !contains( kbd-drivers, tty ) {
kbd-drivers += tty
}
}
else:DEFINES += TQT_NO_QWS_KBD_SL5000
- tqcontains( kbd-drivers, tty ) {
+ contains( kbd-drivers, tty ) {
HEADERS +=$$EMBEDDED_H/tqkbdtty_qws.h
SOURCES +=$$EMBEDDED_CPP/tqkbdtty_qws.cpp
- !tqcontains( kbd-drivers, pc101 ) {
+ !contains( kbd-drivers, pc101 ) {
kbd-drivers += pc101
}
}
else:DEFINES += TQT_NO_QWS_KBD_TTY
- tqcontains( kbd-drivers, usb ) {
+ contains( kbd-drivers, usb ) {
HEADERS +=$$EMBEDDED_H/tqkbdusb_qws.h
SOURCES +=$$EMBEDDED_CPP/tqkbdusb_qws.cpp
- !tqcontains( kbd-drivers, pc101 ) {
+ !contains( kbd-drivers, pc101 ) {
kbd-drivers += pc101
}
}
else:DEFINES += TQT_NO_QWS_KBD_USB
- tqcontains( kbd-drivers, pc101 ) {
+ contains( kbd-drivers, pc101 ) {
HEADERS +=$$EMBEDDED_H/tqkbdpc101_qws.h
SOURCES +=$$EMBEDDED_CPP/tqkbdpc101_qws.cpp
}
else:DEFINES += TQT_NO_QWS_KBD_PC101
- tqcontains( kbd-drivers, yopy ) {
+ contains( kbd-drivers, yopy ) {
HEADERS +=$$EMBEDDED_H/tqkbdyopy_qws.h
SOURCES +=$$EMBEDDED_CPP/tqkbdyopy_qws.cpp
}
else:DEFINES += TQT_NO_QWS_KBD_YOPY
- tqcontains( kbd-drivers, vr41xx ) {
+ contains( kbd-drivers, vr41xx ) {
HEADERS +=$$EMBEDDED_H/tqkbdvr41xx_qws.h
SOURCES +=$$EMBEDDED_CPP/tqkbdvr41xx_qws.cpp
}
@@ -159,31 +159,31 @@ embedded {
# Mouse drivers
#
- tqcontains( mouse-drivers, pc ) {
+ contains( mouse-drivers, pc ) {
HEADERS +=$$EMBEDDED_H/tqmousepc_qws.h
SOURCES +=$$EMBEDDED_CPP/tqmousepc_qws.cpp
}
else:DEFINES += TQT_NO_QWS_MOUSE_PC
- tqcontains( mouse-drivers, bus ) {
+ contains( mouse-drivers, bus ) {
HEADERS +=$$EMBEDDED_H/tqmousebus_qws.h
SOURCES +=$$EMBEDDED_CPP/tqmousebus_qws.cpp
}
else:DEFINES += TQT_NO_QWS_MOUSE_BUS
- tqcontains( mouse-drivers, linuxtp ) {
+ contains( mouse-drivers, linuxtp ) {
HEADERS +=$$EMBEDDED_H/tqmouselinuxtp_qws.h
SOURCES +=$$EMBEDDED_CPP/tqmouselinuxtp_qws.cpp
}
else:DEFINES += TQT_NO_QWS_MOUSE_LINUXTP
- tqcontains( mouse-drivers, vr41xx ) {
+ contains( mouse-drivers, vr41xx ) {
HEADERS +=$$EMBEDDED_H/tqmousevr41xx_qws.h
SOURCES +=$$EMBEDDED_CPP/tqmousevr41xx_qws.cpp
}
else:DEFINES += TQT_NO_QWS_MOUSE_VR41
- tqcontains( mouse-drivers, yopy ) {
+ contains( mouse-drivers, yopy ) {
HEADERS +=$$EMBEDDED_H/tqmouseyopy_qws.h
SOURCES +=$$EMBEDDED_CPP/tqmouseyopy_qws.cpp
}
diff --git a/tqtinterface/qt4/src/iconview/tqiconview.cpp b/tqtinterface/qt4/src/iconview/tqiconview.cpp
index c1705c7..d1e1e14 100644
--- a/tqtinterface/qt4/src/iconview/tqiconview.cpp
+++ b/tqtinterface/qt4/src/iconview/tqiconview.cpp
@@ -287,8 +287,8 @@ public:
public:
- /* tqfinds the containers that intersect with \a searchRect in the direction \a dir relative to \a relativeTo */
- TQPtrList<ItemContainer>* tqfindContainers(
+ /* finds the containers that intersect with \a searchRect in the direction \a dir relative to \a relativeTo */
+ TQPtrList<ItemContainer>* findContainers(
TQIconView:: Direction dir,
const TQPoint &relativeTo,
const TQRect &searchRect ) const;
@@ -296,7 +296,7 @@ public:
};
-TQPtrList<TQIconViewPrivate::ItemContainer>* TQIconViewPrivate::tqfindContainers(
+TQPtrList<TQIconViewPrivate::ItemContainer>* TQIconViewPrivate::findContainers(
TQIconView:: Direction dir,
const TQPoint &relativeTo,
const TQRect &searchRect ) const
@@ -398,7 +398,7 @@ void TQIconViewToolTip::maybeTip( const TQPoint &pos )
if ( !parentWidget() || !view || view->wordWrapIconText() || !view->showToolTips() )
return;
- TQIconViewItem *item = view->tqfindItem( view->viewportToContents( pos ) );
+ TQIconViewItem *item = view->findItem( view->viewportToContents( pos ) );
if ( !item || item->tmpText == item->itemText )
return;
@@ -808,7 +808,7 @@ void TQIconDragData::setTextRect( const TQRect &r )
\ingroup advanced
\module iconview
- A TQIconViewItem tqcontains an icon, a string and optionally a sort
+ A TQIconViewItem contains an icon, a string and optionally a sort
key, and can display itself in a TQIconView.
The class is designed to be very similar to TQListView and TQListBox
in use, both via instantiation and subclassing.
@@ -854,7 +854,7 @@ void TQIconDragData::setTextRect( const TQRect &r )
Items may be repositioned with move() and moveBy(). An item's
tqgeometry is available from rect(), x(), y(), width(), height(),
size(), pos(), textRect() and pixmapRect(). You can also test
- against the position of a point with tqcontains() and intersects().
+ against the position of a point with contains() and intersects().
To remove an item from an icon view, just delete the item. The
TQIconViewItem destructor removes it cleanly from its icon view.
@@ -1424,7 +1424,7 @@ TQIconViewItem *TQIconViewItem::prevItem() const
Returns a pointer to the next item, or 0 if this is the last item
in the icon view.
- To tqfind the first item use TQIconView::firstItem().
+ To find the first item use TQIconView::firstItem().
Example:
\code
@@ -1734,11 +1734,11 @@ TQRect TQIconViewItem::pixmapRect( bool relative ) const
}
/*!
- Returns TRUE if the item tqcontains the point \a pnt (in contents
+ Returns TRUE if the item contains the point \a pnt (in contents
coordinates); otherwise returns FALSE.
*/
-bool TQIconViewItem::tqcontains( const TQPoint& pnt ) const
+bool TQIconViewItem::contains( const TQPoint& pnt ) const
{
TQRect textArea = textRect( FALSE );
TQRect pixmapArea = pixmapRect( FALSE );
@@ -1746,7 +1746,7 @@ bool TQIconViewItem::tqcontains( const TQPoint& pnt ) const
textArea.setTop( pixmapArea.bottom() );
else
textArea.setLeft( pixmapArea.right() );
- return textArea.tqcontains( pnt ) || pixmapArea.tqcontains( pnt );
+ return textArea.contains( pnt ) || pixmapArea.contains( pnt );
}
/*!
@@ -2147,7 +2147,7 @@ void TQIconViewItem::paintFocus( TQPainter *p, const TQColorGroup & )
This function is called when something is dropped on the item. \a
e provides all the information about the drop. If the drag object
- of the drop was a TQIconDrag, \a lst tqcontains the list of the
+ of the drop was a TQIconDrag, \a lst contains the list of the
dropped items. You can get the data by calling
TQIconDragItem::data() on each item. If the \a lst is empty, i.e.
the drag was not a TQIconDrag, you must decode the data in \a e and
@@ -2309,7 +2309,7 @@ void TQIconViewItem::checkRect()
selected. Items can be renamed in-place. TQIconView also supports
\link #draganddrop drag and drop\endlink.
- Each item tqcontains a label string, a pixmap or picture (the icon
+ Each item contains a label string, a pixmap or picture (the icon
itself) and optionally a sort key. The sort key is used for
sorting the items and defaults to the label string. The label
string can be displayed below or to the right of the icon (see \l
@@ -2388,8 +2388,8 @@ void TQIconViewItem::checkRect()
do_something( item );
\endcode
TQIconView also provides currentItem(). You can search for an item
- using tqfindItem() (searching by position or for label text) and
- with tqfindFirstVisibleItem() and tqfindLastVisibleItem(). The number
+ using findItem() (searching by position or for label text) and
+ with findFirstVisibleItem() and findLastVisibleItem(). The number
of items is returned by count(). An item can be removed from an
icon view using takeItem(); to delete an item use \c delete. All
the items can be deleted with clear().
@@ -2471,7 +2471,7 @@ void TQIconViewItem::checkRect()
connect to the dropped() signal and reimplement
TQIconViewItem::acceptDrop() and TQIconViewItem::dropped(). If you've
used a TQIconDrag (or a subclass of it) the second argument to the
- dropped signal tqcontains a TQValueList of TQIconDragItems -- you can
+ dropped signal contains a TQValueList of TQIconDragItems -- you can
access their data by calling TQIconDragItem::data() on each one.
For an example implementation of complex drag-and-drop look at the
@@ -2560,7 +2560,7 @@ void TQIconViewItem::checkRect()
(but not on any icon) which the icon view itself can't handle.
\a e provides all the information about the drop. If the drag
- object of the drop was a TQIconDrag, \a lst tqcontains the list of
+ object of the drop was a TQIconDrag, \a lst contains the list of
the dropped items. You can get the data using
TQIconDragItem::data() on each item. If the \a lst is empty, i.e.
the drag was not a TQIconDrag, you have to decode the data in \a e
@@ -3351,7 +3351,7 @@ void TQIconView::doAutoScroll()
alreadyIntersected = TRUE;
TQIconViewItem *item = c->items.first();
for ( ; item; item = c->items.next() ) {
- if ( d->selectedItems.tqfind( item ) )
+ if ( d->selectedItems.find( item ) )
continue;
if ( !item->intersects( nr ) ) {
if ( item->isSelected() ) {
@@ -3453,14 +3453,14 @@ void TQIconView::doAutoScroll()
emit selectionChanged( d->currentItem );
}
- if ( !TQRect( 50, 50, viewport()->width()-100, viewport()->height()-100 ).tqcontains( vp ) &&
+ if ( !TQRect( 50, 50, viewport()->width()-100, viewport()->height()-100 ).contains( vp ) &&
!d->scrollTimer ) {
d->scrollTimer = new TQTimer( this );
connect( d->scrollTimer, TQT_SIGNAL( timeout() ),
this, TQT_SLOT( doAutoScroll() ) );
d->scrollTimer->start( 100, FALSE );
- } else if ( TQRect( 50, 50, viewport()->width()-100, viewport()->height()-100 ).tqcontains( vp ) &&
+ } else if ( TQRect( 50, 50, viewport()->width()-100, viewport()->height()-100 ).contains( vp ) &&
d->scrollTimer ) {
disconnect( d->scrollTimer, TQT_SIGNAL( timeout() ),
this, TQT_SLOT( doAutoScroll() ) );
@@ -3739,22 +3739,22 @@ TQIconView::SelectionMode TQIconView::selectionMode() const
}
/*!
- Returns a pointer to the item that tqcontains point \a pos, which is
- given in contents coordinates, or 0 if no item tqcontains point \a
+ Returns a pointer to the item that contains point \a pos, which is
+ given in contents coordinates, or 0 if no item contains point \a
pos.
*/
-TQIconViewItem *TQIconView::tqfindItem( const TQPoint &pos ) const
+TQIconViewItem *TQIconView::findItem( const TQPoint &pos ) const
{
if ( !d->firstItem )
return 0;
TQIconViewPrivate::ItemContainer *c = d->lastContainer;
for ( ; c; c = c->p ) {
- if ( c->rect.tqcontains( pos ) ) {
+ if ( c->rect.contains( pos ) ) {
TQIconViewItem *item = c->items.last();
for ( ; item; item = c->items.prev() )
- if ( item->tqcontains( pos ) )
+ if ( item->contains( pos ) )
return item;
}
}
@@ -3771,7 +3771,7 @@ TQIconViewItem *TQIconView::tqfindItem( const TQPoint &pos ) const
{TQt::StringComparisonMode}.)
*/
-TQIconViewItem *TQIconView::tqfindItem( const TQString &text, TQt::ComparisonFlags compare ) const
+TQIconViewItem *TQIconView::findItem( const TQString &text, TQt::ComparisonFlags compare ) const
{
if ( !d->firstItem )
return 0;
@@ -3792,7 +3792,7 @@ TQIconViewItem *TQIconView::tqfindItem( const TQString &text, TQt::ComparisonFla
TQIconViewItem *beginsWithItem = 0;
TQIconViewItem *endsWithItem = 0;
- TQIconViewItem *tqcontainsItem = 0;
+ TQIconViewItem *containsItem = 0;
if ( item ) {
for ( ; item; item = item->next ) {
@@ -3804,11 +3804,11 @@ TQIconViewItem *TQIconView::tqfindItem( const TQString &text, TQt::ComparisonFla
if ( compare & TQt::ExactMatch && itmtxt == comtxt )
return item;
if ( compare & TQt::BeginsWith && !beginsWithItem && itmtxt.startsWith( comtxt ) )
- beginsWithItem = tqcontainsItem = item;
+ beginsWithItem = containsItem = item;
if ( compare & TQt::EndsWith && !endsWithItem && itmtxt.endsWith( comtxt ) )
- endsWithItem = tqcontainsItem = item;
- if ( compare & TQt::Contains && !tqcontainsItem && itmtxt.tqcontains( comtxt ) )
- tqcontainsItem = item;
+ endsWithItem = containsItem = item;
+ if ( compare & TQt::Contains && !containsItem && itmtxt.contains( comtxt ) )
+ containsItem = item;
}
if ( d->currentItem && d->firstItem ) {
@@ -3822,11 +3822,11 @@ TQIconViewItem *TQIconView::tqfindItem( const TQString &text, TQt::ComparisonFla
if ( compare & TQt::ExactMatch && itmtxt == comtxt )
return item;
if ( compare & TQt::BeginsWith && !beginsWithItem && itmtxt.startsWith( comtxt ) )
- beginsWithItem = tqcontainsItem = item;
+ beginsWithItem = containsItem = item;
if ( compare & TQt::EndsWith && !endsWithItem && itmtxt.endsWith( comtxt ) )
- endsWithItem = tqcontainsItem = item;
- if ( compare & TQt::Contains && !tqcontainsItem && itmtxt.tqcontains( comtxt ) )
- tqcontainsItem = item;
+ endsWithItem = containsItem = item;
+ if ( compare & TQt::Contains && !containsItem && itmtxt.contains( comtxt ) )
+ containsItem = item;
}
}
}
@@ -3836,8 +3836,8 @@ TQIconViewItem *TQIconView::tqfindItem( const TQString &text, TQt::ComparisonFla
return beginsWithItem;
else if ( endsWithItem )
return endsWithItem;
- else if ( tqcontainsItem )
- return tqcontainsItem;
+ else if ( containsItem )
+ return containsItem;
return 0;
}
@@ -3993,15 +3993,15 @@ void TQIconView::ensureItemVisible( TQIconViewItem *item )
returns a pointer to that item. \a r is given in content
coordinates. Returns 0 if no item overlaps \a r.
- If you want to tqfind all items that touch \a r, you will need to
+ If you want to find all items that touch \a r, you will need to
use this function and nextItem() in a loop ending at
- tqfindLastVisibleItem() and test TQIconViewItem::rect() for each of
+ findLastVisibleItem() and test TQIconViewItem::rect() for each of
these items.
- \sa tqfindLastVisibleItem() TQIconViewItem::rect()
+ \sa findLastVisibleItem() TQIconViewItem::rect()
*/
-TQIconViewItem* TQIconView::tqfindFirstVisibleItem( const TQRect &r ) const
+TQIconViewItem* TQIconView::findFirstVisibleItem( const TQRect &r ) const
{
TQIconViewPrivate::ItemContainer *c = d->firstContainer;
TQIconViewItem *i = 0;
@@ -4039,10 +4039,10 @@ TQIconViewItem* TQIconView::tqfindFirstVisibleItem( const TQRect &r ) const
returns a pointer to that item. \a r is given in content
coordinates. Returns 0 if no item overlaps \a r.
- \sa tqfindFirstVisibleItem()
+ \sa findFirstVisibleItem()
*/
-TQIconViewItem* TQIconView::tqfindLastVisibleItem( const TQRect &r ) const
+TQIconViewItem* TQIconView::findLastVisibleItem( const TQRect &r ) const
{
TQIconViewPrivate::ItemContainer *c = d->firstContainer;
TQIconViewItem *i = 0;
@@ -4486,7 +4486,7 @@ void TQIconView::contentsMousePressEventEx( TQMouseEvent *e )
}
d->dragStartPos = e->pos();
- TQIconViewItem *item = tqfindItem( e->pos() );
+ TQIconViewItem *item = findItem( e->pos() );
d->pressedItem = item;
if ( item )
@@ -4509,7 +4509,7 @@ void TQIconView::contentsMousePressEventEx( TQMouseEvent *e )
if ( e->button() == Qt::LeftButton && !( e->state() & ShiftButton ) &&
!( e->state() & ControlButton ) && item && item->isSelected() &&
- item->textRect( FALSE ).tqcontains( e->pos() ) ) {
+ item->textRect( FALSE ).contains( e->pos() ) ) {
if ( !item->renameEnabled() ) {
d->mousePressed = TRUE;
@@ -4641,7 +4641,7 @@ void TQIconView::contentsContextMenuEvent( TQContextMenuEvent *e )
emit contextMenuRequested( item, viewport()->mapToGlobal( contentsToViewport( r.center() ) ) );
} else {
d->mousePressed = FALSE;
- TQIconViewItem *item = tqfindItem( e->pos() );
+ TQIconViewItem *item = findItem( e->pos() );
emit contextMenuRequested( item, e->globalPos() );
}
}
@@ -4652,7 +4652,7 @@ void TQIconView::contentsContextMenuEvent( TQContextMenuEvent *e )
void TQIconView::contentsMouseReleaseEvent( TQMouseEvent *e )
{
- TQIconViewItem *item = tqfindItem( e->pos() );
+ TQIconViewItem *item = findItem( e->pos() );
d->selectedItems.clear();
bool emitClicked = TRUE;
@@ -4714,7 +4714,7 @@ void TQIconView::contentsMouseReleaseEvent( TQMouseEvent *e )
void TQIconView::contentsMouseMoveEvent( TQMouseEvent *e )
{
- TQIconViewItem *item = tqfindItem( e->pos() );
+ TQIconViewItem *item = findItem( e->pos() );
if ( d->highlightedItem != item ) {
if ( item )
emit onItem( item );
@@ -4755,7 +4755,7 @@ void TQIconView::contentsMouseMoveEvent( TQMouseEvent *e )
void TQIconView::contentsMouseDoubleClickEvent( TQMouseEvent *e )
{
- TQIconViewItem *item = tqfindItem( e->pos() );
+ TQIconViewItem *item = findItem( e->pos() );
if ( item ) {
selectAll( FALSE );
item->setSelected( TRUE, TRUE );
@@ -4800,16 +4800,16 @@ void TQIconView::contentsDragMoveEvent( TQDragMoveEvent *e )
TQIconViewItem *old = d->tmpCurrentItem;
d->tmpCurrentItem = 0;
- TQIconViewItem *item = tqfindItem( e->pos() );
+ TQIconViewItem *item = findItem( e->pos() );
if ( item ) {
if ( old &&
- old->rect().tqcontains(d->oldDragPos) &&
- !old->rect().tqcontains(e->pos()) ) {
+ old->rect().contains(d->oldDragPos) &&
+ !old->rect().contains(e->pos()) ) {
old->dragLeft();
repaintItem( old );
}
- if ( !item->rect().tqcontains(d->oldDragPos) )
+ if ( !item->rect().contains(d->oldDragPos) )
item->dragEntered();
if (item->acceptDrop(e) || (item->isSelected() && e->source() == viewport())) {
d->oldDragAcceptAction = TRUE;
@@ -4872,7 +4872,7 @@ void TQIconView::contentsDropEvent( TQDropEvent *e )
if ( d->tmpCurrentItem )
repaintItem( d->tmpCurrentItem );
- TQIconViewItem *i = tqfindItem( e->pos() );
+ TQIconViewItem *i = findItem( e->pos() );
if ((!i || i->isSelected()) && e->source() == viewport() && d->currentItem && !d->cleared) {
if ( !d->rearrangeEnabled )
@@ -5024,13 +5024,13 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
} else {
if ( d->arrangement == LeftToRight ) {
// we use pixmap so the items textlength are ignored
- // tqfind topmost, leftmost item
+ // find topmost, leftmost item
if ( i->pixmapRect( FALSE ).y() < item->pixmapRect( FALSE ).y() ||
( i->pixmapRect( FALSE ).y() == item->pixmapRect( FALSE ).y() &&
i->pixmapRect( FALSE ).x() < item->pixmapRect( FALSE ).x() ) )
item = i;
} else {
- // tqfind leftmost, topmost item
+ // find leftmost, topmost item
if ( i->pixmapRect( FALSE ).x() < item->pixmapRect( FALSE ).x() ||
( i->pixmapRect( FALSE ).x() == item->pixmapRect( FALSE ).x() &&
i->pixmapRect( FALSE ).y() < item->pixmapRect( FALSE ).y() ) )
@@ -5067,13 +5067,13 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
item = i;
} else {
if ( d->arrangement == LeftToRight ) {
- // tqfind bottommost, rightmost item
+ // find bottommost, rightmost item
if ( i->pixmapRect( FALSE ).bottom() > item->pixmapRect( FALSE ).bottom() ||
( i->pixmapRect( FALSE ).bottom() == item->pixmapRect( FALSE ).bottom() &&
i->pixmapRect( FALSE ).right() > item->pixmapRect( FALSE ).right() ) )
item = i;
} else {
- // tqfind rightmost, bottommost item
+ // find rightmost, bottommost item
if ( i->pixmapRect( FALSE ).right() > item->pixmapRect( FALSE ).right() ||
( i->pixmapRect( FALSE ).right() == item->pixmapRect( FALSE ).right() &&
i->pixmapRect( FALSE ).bottom() > item->pixmapRect( FALSE ).bottom() ) )
@@ -5100,12 +5100,12 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
Direction dir = DirRight;
TQRect r( 0, d->currentItem->y(), contentsWidth(), d->currentItem->height() );
- item = tqfindItem( dir, d->currentItem->rect().center(), r );
+ item = findItem( dir, d->currentItem->rect().center(), r );
// search the row below from the right
while ( !item && r.y() < contentsHeight() ) {
r.moveBy(0, d->currentItem->height() );
- item = tqfindItem( dir, TQPoint( 0, r.center().y() ), r );
+ item = findItem( dir, TQPoint( 0, r.center().y() ), r );
}
if ( item ) {
@@ -5122,12 +5122,12 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
Direction dir = DirLeft;
TQRect r( 0, d->currentItem->y(), contentsWidth(), d->currentItem->height() );
- item = tqfindItem( dir, d->currentItem->rect().center(), r );
+ item = findItem( dir, d->currentItem->rect().center(), r );
// search the row above from the left
while ( !item && r.y() >= 0 ) {
r.moveBy(0, - d->currentItem->height() );
- item = tqfindItem( dir, TQPoint( contentsWidth(), r.center().y() ), r );
+ item = findItem( dir, TQPoint( contentsWidth(), r.center().y() ), r );
}
if ( item ) {
@@ -5155,12 +5155,12 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
Direction dir = DirDown;
TQRect r( d->currentItem->x(), 0, d->currentItem->width(), contentsHeight() );
- item = tqfindItem( dir, d->currentItem->rect().center(), r );
+ item = findItem( dir, d->currentItem->rect().center(), r );
- // tqfinding the closest item below and to the right
+ // finding the closest item below and to the right
while ( !item && r.x() < contentsWidth() ) {
r.moveBy( r.width() , 0 );
- item = tqfindItem( dir, TQPoint( r.center().x(), 0 ), r );
+ item = findItem( dir, TQPoint( r.center().x(), 0 ), r );
}
@@ -5176,12 +5176,12 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
Direction dir = DirUp;
TQRect r( d->currentItem->x(), 0, d->currentItem->width(), contentsHeight() );
- item = tqfindItem( dir, d->currentItem->rect().center(), r );
+ item = findItem( dir, d->currentItem->rect().center(), r );
- // tqfinding the closest item above and to the left
+ // finding the closest item above and to the left
while ( !item && r.x() >= 0 ) {
r.moveBy(- r.width(), 0 );
- item = tqfindItem( dir, TQPoint(r.center().x(), contentsHeight() ), r );
+ item = findItem( dir, TQPoint(r.center().x(), contentsHeight() ), r );
}
TQIconViewItem *i = d->currentItem;
@@ -5198,13 +5198,13 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
else
r = TQRect( d->currentItem->x() + visibleWidth(), 0, visibleWidth(), contentsHeight() );
TQIconViewItem *item = d->currentItem;
- TQIconViewItem *ni = tqfindFirstVisibleItem( r );
+ TQIconViewItem *ni = findFirstVisibleItem( r );
if ( !ni ) {
if ( d->arrangement == LeftToRight )
r = TQRect( 0, d->currentItem->y() + d->currentItem->height(), contentsWidth(), contentsHeight() );
else
r = TQRect( d->currentItem->x() + d->currentItem->width(), 0, contentsWidth(), contentsHeight() );
- ni = tqfindLastVisibleItem( r );
+ ni = findLastVisibleItem( r );
}
if ( ni ) {
setCurrentItem( ni );
@@ -5220,13 +5220,13 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
else
r = TQRect( d->currentItem->x() - visibleWidth(), 0, visibleWidth(), contentsHeight() );
TQIconViewItem *item = d->currentItem;
- TQIconViewItem *ni = tqfindFirstVisibleItem( r );
+ TQIconViewItem *ni = findFirstVisibleItem( r );
if ( !ni ) {
if ( d->arrangement == LeftToRight )
r = TQRect( 0, 0, contentsWidth(), d->currentItem->y() );
else
r = TQRect( 0, 0, d->currentItem->x(), contentsHeight() );
- ni = tqfindFirstVisibleItem( r );
+ ni = findFirstVisibleItem( r );
}
if ( ni ) {
setCurrentItem( ni );
@@ -5244,18 +5244,18 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
i = i->next;
if ( !i )
i = d->firstItem;
- i = tqfindItemByName( i );
+ i = findItemByName( i );
} else {
d->inputTimer->stop();
d->currInputString += e->text();
- i = tqfindItemByName( i );
+ i = findItemByName( i );
if ( !i ) {
d->currInputString = e->text();
if (d->currentItem && d->currentItem->next)
i = d->currentItem->next;
else
i = d->firstItem;
- i = tqfindItemByName(i);
+ i = findItemByName(i);
}
}
if ( i ) {
@@ -5308,7 +5308,7 @@ void TQIconView::keyPressEvent( TQKeyEvent *e )
The function choses the closest item with its center in the searchRect.
*/
-TQIconViewItem* TQIconView::tqfindItem( Direction dir,
+TQIconViewItem* TQIconView::findItem( Direction dir,
const TQPoint &relativeTo,
const TQRect &searchRect ) const
{
@@ -5318,14 +5318,14 @@ TQIconViewItem* TQIconView::tqfindItem( Direction dir,
// gets list of containers with potential items
TQPtrList<TQIconViewPrivate::ItemContainer>* cList =
- d->tqfindContainers( dir, relativeTo, searchRect);
+ d->findContainers( dir, relativeTo, searchRect);
cList->first();
while ( cList->current() && !centerMatch ) {
TQPtrList<TQIconViewItem> &list = (cList->current())->items;
for ( item = list.first(); item; item = list.next() ) {
if ( neighbourItem( dir, relativeTo, item ) &&
- searchRect.tqcontains( item->rect().center() ) &&
+ searchRect.contains( item->rect().center() ) &&
item != currentItem() ) {
int ml = (relativeTo - item->rect().center()).manhattanLength();
if ( centerMatch ) {
@@ -5622,7 +5622,7 @@ void TQIconView::emitRenamed( TQIconViewItem *item )
/*!
If a drag enters the icon view the tqshapes of the objects which the
- drag tqcontains are drawn, usnig \a pos as origin.
+ drag contains are drawn, usnig \a pos as origin.
*/
void TQIconView::drawDragShapes( const TQPoint &pos )
@@ -5767,7 +5767,7 @@ TQSize TQIconView::tqminimumSizeHint() const
with \a text.
*/
-TQIconViewItem* TQIconView::tqfindItemByName( TQIconViewItem *start )
+TQIconViewItem* TQIconView::findItemByName( TQIconViewItem *start )
{
if ( !start )
return 0;
@@ -6001,7 +6001,7 @@ int TQIconView::calcGridNum( int w, int x ) const
/*!
\internal
- Returns the first item of the row which tqcontains \a item.
+ Returns the first item of the row which contains \a item.
*/
TQIconViewItem *TQIconView::rowBegin( TQIconViewItem * ) const
@@ -6162,10 +6162,10 @@ void TQIconView::updateItemContainer( TQIconViewItem *item )
}
const TQRect irect = item->rect();
- bool tqcontains = FALSE;
+ bool contains = FALSE;
for (;;) {
if ( c->rect.intersects( irect ) ) {
- tqcontains = c->rect.tqcontains( irect );
+ contains = c->rect.contains( irect );
break;
}
@@ -6187,7 +6187,7 @@ void TQIconView::updateItemContainer( TQIconViewItem *item )
c->items.append( item );
item->d->container1 = c;
- if ( !tqcontains ) {
+ if ( !contains ) {
c = c->n;
if ( !c ) {
appendItemContainer();
@@ -6209,7 +6209,7 @@ void TQIconView::updateItemContainer( TQIconViewItem *item )
void TQIconView::appendItemContainer()
{
TQSize s;
- // #### We have to tqfind out which value is best here
+ // #### We have to find out which value is best here
if ( d->arrangement == LeftToRight )
s = TQSize( INT_MAX - 1, RECT_EXTENSION );
else
@@ -6251,7 +6251,7 @@ void TQIconView::rebuildContainers()
c = d->lastContainer;
while ( item ) {
if (item->isVisible()) {
- if ( c->rect.tqcontains( item->rect() ) ) {
+ if ( c->rect.contains( item->rect() ) ) {
item->d->container1 = c;
item->d->container2 = 0;
c->items.append( item );
@@ -6350,7 +6350,7 @@ void TQIconView::handleItemChange( TQIconViewItem *old, bool shift,
}
- // tqfinding the rectangles
+ // finding the rectangles
TQRect topRect, bottomRect, midRect;
if ( !spanning ) {
midRect = from->rect().unite( to->rect() );
@@ -6378,7 +6378,7 @@ void TQIconView::handleItemChange( TQIconViewItem *old, bool shift,
}
}
- // tqfinding contained items and selecting them
+ // finding contained items and selecting them
TQIconViewItem *item = 0;
bool changed = FALSE;
bool midValid = midRect.isValid();
@@ -6388,11 +6388,11 @@ void TQIconView::handleItemChange( TQIconViewItem *old, bool shift,
for ( item = d->firstItem; item; item = item->next ) {
bool contained = FALSE;
TQPoint itemCenter = item->rect().center();
- if ( midValid && midRect.tqcontains( itemCenter ) )
+ if ( midValid && midRect.contains( itemCenter ) )
contained = TRUE;
- if ( !contained && topValid && topRect.tqcontains( itemCenter ) )
+ if ( !contained && topValid && topRect.contains( itemCenter ) )
contained = TRUE;
- if ( !contained && bottomValid && bottomRect.tqcontains( itemCenter ) )
+ if ( !contained && bottomValid && bottomRect.contains( itemCenter ) )
contained = TRUE;
if ( contained ) {
@@ -6442,7 +6442,7 @@ void TQIconView::handleItemChange( TQIconViewItem *old, bool shift,
TQBitmap TQIconView::tqmask( TQPixmap *pix ) const
{
TQPixmap m;
- if ( d->maskCache.tqfind( TQT_TQSTRING(TQString::number( pix->serialNumber() )), m ) )
+ if ( d->maskCache.find( TQT_TQSTRING(TQString::number( pix->serialNumber() )), m ) )
return TQBitmap(m);
m = pix->createHeuristicMask();
d->maskCache.insert( TQString::number( pix->serialNumber() ), m );
diff --git a/tqtinterface/qt4/src/iconview/tqiconview.h b/tqtinterface/qt4/src/iconview/tqiconview.h
index 3bbb6f8..2ef7472 100644
--- a/tqtinterface/qt4/src/iconview/tqiconview.h
+++ b/tqtinterface/qt4/src/iconview/tqiconview.h
@@ -189,7 +189,7 @@ public:
TQPoint pos() const;
TQRect textRect( bool relative = TRUE ) const;
TQRect pixmapRect( bool relative = TRUE ) const;
- bool tqcontains( const TQPoint& pnt ) const;
+ bool contains( const TQPoint& pnt ) const;
bool intersects( const TQRect& r ) const;
virtual bool acceptDrop( const TQMimeSource *mime ) const;
@@ -340,8 +340,8 @@ public:
virtual void setSelectionMode( SelectionMode m );
SelectionMode selectionMode() const;
- TQIconViewItem *tqfindItem( const TQPoint &pos ) const;
- TQIconViewItem *tqfindItem( const TQString &text, TQt::ComparisonFlags compare = TQt::BeginsWith ) const;
+ TQIconViewItem *findItem( const TQPoint &pos ) const;
+ TQIconViewItem *findItem( const TQString &text, TQt::ComparisonFlags compare = TQt::BeginsWith ) const;
virtual void selectAll( bool select );
virtual void clearSelection();
virtual void invertSelection();
@@ -350,8 +350,8 @@ public:
void repaintSelectedItems();
void ensureItemVisible( TQIconViewItem *item );
- TQIconViewItem* tqfindFirstVisibleItem( const TQRect &r ) const;
- TQIconViewItem* tqfindLastVisibleItem( const TQRect &r ) const;
+ TQIconViewItem* findFirstVisibleItem( const TQRect &r ) const;
+ TQIconViewItem* findLastVisibleItem( const TQRect &r ) const;
virtual void clear();
@@ -483,7 +483,7 @@ private:
virtual void initDragEnter( TQDropEvent *e );
#endif
void drawContents( TQPainter* );
- TQIconViewItem* tqfindItemByName( TQIconViewItem *start );
+ TQIconViewItem* findItemByName( TQIconViewItem *start );
void handleItemChange( TQIconViewItem *old, bool shift,
bool control, bool homeend = FALSE);
@@ -498,7 +498,7 @@ private:
DirLeft,
DirRight
};
- TQIconViewItem* tqfindItem( Direction dir,
+ TQIconViewItem* findItem( Direction dir,
const TQPoint &relativeTo,
const TQRect &searchRect ) const;
bool neighbourItem( Direction dir,
diff --git a/tqtinterface/qt4/src/kernel/qpsprinter.ps b/tqtinterface/qt4/src/kernel/qpsprinter.ps
index b38868f..9ea2dc0 100644
--- a/tqtinterface/qt4/src/kernel/qpsprinter.ps
+++ b/tqtinterface/qt4/src/kernel/qpsprinter.ps
@@ -634,10 +634,10 @@
%% Font handling
% the next three commands are for defining fonts. The first one
-% tries to tqfind the most suitable printer font out of a fontlist.
+% tries to find the most suitable printer font out of a fontlist.
% if encoding is false the default one will be used.
/MF { % newname encoding fontlist
- % this function tries to tqfind a suitable postscript font.
+ % this function tries to find a suitable postscript font.
% We try quite hard not to get courier for a
% proportional font. The following takes an array of fonts.
% The algorithm will take the first font that
@@ -650,7 +650,7 @@
true exch true exch % push a dummy on the stack,
{ % so the loop over the array will leave a font in any case when exiting.
exch pop exch pop % (dummy | oldfont) (dummy | fontdict) fontarray
- dup 0 get dup tqfindfont % get the fontname from the array and load it
+ dup 0 get dup findfont % get the fontname from the array and load it
dup /FontName get % see if the font exists
3 -1 roll eq { % see if fontname and the one provided are equal
exit
@@ -671,7 +671,7 @@
1 index /FID ne % don't copy FID, as it's not allowed in PS Level 1
{def}{pop pop}ifelse
} forall
- /Encoding fencoding def % tqreplace encoding
+ /Encoding fencoding def % replace encoding
currentdict
end
} ifelse
@@ -680,7 +680,7 @@
% an embedded font. This is used for the base fonts of the composite font used later on.
/MFEmb { % newname encoding fontname
- tqfindfont dup length dict
+ findfont dup length dict
begin
{
1 index /FID ne
@@ -696,7 +696,7 @@
%
% newname pointsize fontmame DF -
/DF {
- tqfindfont
+ findfont
% get the fontsize on top of the stack and define font matrix
/fs 3 -1 roll d [ fs 0 0 fs -1 mul 0 0 ]
makefont
diff --git a/tqtinterface/qt4/src/kernel/tqabstractlayout.cpp b/tqtinterface/qt4/src/kernel/tqabstractlayout.cpp
index 4c15ee2..6954cb3 100644
--- a/tqtinterface/qt4/src/kernel/tqabstractlayout.cpp
+++ b/tqtinterface/qt4/src/kernel/tqabstractlayout.cpp
@@ -201,7 +201,7 @@ static int menuBarHeightForWidth( TQMenuBar *menubar, int w )
\fn virtual bool TQLayoutItem::isEmpty() const
Implemented in subclasses to return whether this item is empty,
- i.e. whether it tqcontains any widgets.
+ i.e. whether it contains any widgets.
*/
/*!
@@ -696,7 +696,7 @@ TQSize TQWidgetItem::tqsizeHint() const
}
/*!
- Returns TRUE because a spacer item never tqcontains widgets.
+ Returns TRUE because a spacer item never contains widgets.
*/
bool TQSpacerItem::isEmpty() const
{
@@ -1413,9 +1413,9 @@ bool TQLayout::activate()
prefer when being laid out. Only \link #interesting one of the
constructors\endlink is of interest in most applications.
- TQSizePolicy tqcontains two independent SizeType objects; one describes
+ TQSizePolicy contains two independent SizeType objects; one describes
the widgets's horizontal size policy, and the other describes its
- vertical size policy. It also tqcontains a flag to indicate whether the
+ vertical size policy. It also contains a flag to indicate whether the
height and width of its preferred size are related.
The horizontal and vertical \l{SizeType}s are set in the usual constructor
diff --git a/tqtinterface/qt4/src/kernel/tqaccel.cpp b/tqtinterface/qt4/src/kernel/tqaccel.cpp
index fd47345..96a3470 100644
--- a/tqtinterface/qt4/src/kernel/tqaccel.cpp
+++ b/tqtinterface/qt4/src/kernel/tqaccel.cpp
@@ -82,7 +82,7 @@ using namespace Qt;
Example:
\snippet doc/src/snippets/code/src_qt3support_other_q3accel.cpp 0
- A TQAccel tqcontains a list of accelerator items that can be
+ A TQAccel contains a list of accelerator items that can be
manipulated using insertItem(), removeItem(), clear(), key() and
findKey().
@@ -915,7 +915,7 @@ QString TQAccel::keyToString(QKeySequence k)
if \a s is not recognized.
This function is typically used with \link TQT_BASE_OBJECT_NAME::tr() tr
- \endlink(), so that accelerator keys can be tqreplaced in
+ \endlink(), so that accelerator keys can be replaced in
translations:
\snippet doc/src/snippets/code/src_qt3support_other_q3accel.cpp 5
@@ -1065,9 +1065,9 @@ QT_END_NAMESPACE
fileMenu->insertItem( "Undo", tqparent, TQT_SLOT(undo()), CTRL+Key_Z );
\endcode
- A TQAccel tqcontains a list of accelerator items that can be
+ A TQAccel contains a list of accelerator items that can be
manipulated using insertItem(), removeItem(), clear(), key() and
- tqfindKey().
+ findKey().
Each accelerator item consists of an identifier and a \l
TQKeySequence. A single key sequence consists of a keyboard code
@@ -1536,7 +1536,7 @@ TQAccelPrivate::~TQAccelPrivate()
TQAccelManager::self()->unregisterAccel( this );
}
-static TQAccelItem *tqfind_id( TQAccelList &list, int id )
+static TQAccelItem *find_id( TQAccelList &list, int id )
{
register TQAccelItem *item = list.first();
while ( item && item->id != id )
@@ -1544,7 +1544,7 @@ static TQAccelItem *tqfind_id( TQAccelList &list, int id )
return item;
}
-static TQAccelItem *tqfind_key( TQAccelList &list, const TQKeySequence &key )
+static TQAccelItem *find_key( TQAccelList &list, const TQKeySequence &key )
{
register TQAccelItem *item = list.first();
while ( item && !( item->key == key ) )
@@ -1676,7 +1676,7 @@ uint TQAccel::count() const
static int get_seq_id()
{
- static int seq_no = -2; // -1 is used as return value in tqfindKey()
+ static int seq_no = -2; // -1 is used as return value in findKey()
return seq_no--;
}
@@ -1713,7 +1713,7 @@ int TQAccel::insertItem( const TQKeySequence& key, int id )
void TQAccel::removeItem( int id )
{
- if ( tqfind_id( d->aitems, id) )
+ if ( find_id( d->aitems, id) )
d->aitems.remove();
}
@@ -1735,7 +1735,7 @@ void TQAccel::clear()
TQKeySequence TQAccel::key( int id )
{
- TQAccelItem *item = tqfind_id( d->aitems, id);
+ TQAccelItem *item = find_id( d->aitems, id);
return item ? item->key : TQKeySequence( 0 );
}
@@ -1745,9 +1745,9 @@ TQKeySequence TQAccel::key( int id )
\a key, or -1 if the item cannot be found.
*/
-int TQAccel::tqfindKey( const TQKeySequence& key ) const
+int TQAccel::findKey( const TQKeySequence& key ) const
{
- TQAccelItem *item = tqfind_key( d->aitems, key );
+ TQAccelItem *item = find_key( d->aitems, key );
return item ? item->id : -1;
}
@@ -1761,7 +1761,7 @@ int TQAccel::tqfindKey( const TQKeySequence& key ) const
bool TQAccel::isItemEnabled( int id ) const
{
- TQAccelItem *item = tqfind_id( d->aitems, id);
+ TQAccelItem *item = find_id( d->aitems, id);
return item ? item->enabled : FALSE;
}
@@ -1777,7 +1777,7 @@ bool TQAccel::isItemEnabled( int id ) const
void TQAccel::setItemEnabled( int id, bool enable )
{
- TQAccelItem *item = tqfind_id( d->aitems, id);
+ TQAccelItem *item = find_id( d->aitems, id);
if ( item )
item->enabled = enable;
}
@@ -1805,7 +1805,7 @@ void TQAccel::setItemEnabled( int id, bool enable )
bool TQAccel::connectItem( int id, const TQT_BASE_OBJECT_NAME *receiver, const char *member )
{
- TQAccelItem *item = tqfind_id( d->aitems, id);
+ TQAccelItem *item = find_id( d->aitems, id);
if ( item ) {
if ( !item->signal ) {
item->signal = new TQSignal;
@@ -1826,7 +1826,7 @@ bool TQAccel::connectItem( int id, const TQT_BASE_OBJECT_NAME *receiver, const c
bool TQAccel::disconnectItem( int id, const TQT_BASE_OBJECT_NAME *receiver,
const char *member )
{
- TQAccelItem *item = tqfind_id( d->aitems, id);
+ TQAccelItem *item = find_id( d->aitems, id);
if ( item && item->signal )
return item->signal->disconnect( receiver, member );
return FALSE;
@@ -1877,7 +1877,7 @@ TQKeySequence TQAccel::shortcutKey( const TQString &str )
int p = 0;
while ( p >= 0 ) {
- p = str.tqfind( '&', p ) + 1;
+ p = str.find( '&', p ) + 1;
if ( p <= 0 || p >= (int)str.length() )
return 0;
if ( str[p] != '&' ) {
@@ -1919,7 +1919,7 @@ TQString TQAccel::keyToString( TQKeySequence k )
if \a s is not recognized.
This function is typically used with \link TQObject::tr() tr
- \endlink(), so that accelerator keys can be tqreplaced in
+ \endlink(), so that accelerator keys can be replaced in
translations:
\code
@@ -1960,7 +1960,7 @@ TQKeySequence TQAccel::stringToKey( const TQString & s )
void TQAccel::setWhatsThis( int id, const TQString& text )
{
- TQAccelItem *item = tqfind_id( d->aitems, id);
+ TQAccelItem *item = find_id( d->aitems, id);
if ( item )
item->whatsthis = text;
}
@@ -1974,7 +1974,7 @@ void TQAccel::setWhatsThis( int id, const TQString& text )
TQString TQAccel::whatsThis( int id ) const
{
- TQAccelItem *item = tqfind_id( d->aitems, id);
+ TQAccelItem *item = find_id( d->aitems, id);
return item? item->whatsthis : TQString::null;
}
@@ -2083,7 +2083,7 @@ documentation for details.
The \link http://www.amazon.com/exec/obidos/ASIN/0735605661/trolltech/t
Microsoft book \endlink has ISBN 0735605661. The corresponding Open Group
-book is very hard to tqfind, rather expensive and we cannot recommend
+book is very hard to find, rather expensive and we cannot recommend
it. However, if you really want it, OGPubs@opengroup.org might be able
to help. Ask them for ISBN 1859121047.
diff --git a/tqtinterface/qt4/src/kernel/tqaccel.h b/tqtinterface/qt4/src/kernel/tqaccel.h
index d60a3b8..1726aca 100644
--- a/tqtinterface/qt4/src/kernel/tqaccel.h
+++ b/tqtinterface/qt4/src/kernel/tqaccel.h
@@ -188,7 +188,7 @@ public:
void clear();
TQKeySequence key( int id );
- int tqfindKey( const TQKeySequence& key ) const;
+ int findKey( const TQKeySequence& key ) const;
bool isItemEnabled( int id ) const;
void setItemEnabled( int id, bool enable );
diff --git a/tqtinterface/qt4/src/kernel/tqaccessible.cpp b/tqtinterface/qt4/src/kernel/tqaccessible.cpp
index ba19cf7..8d7e588 100644
--- a/tqtinterface/qt4/src/kernel/tqaccessible.cpp
+++ b/tqtinterface/qt4/src/kernel/tqaccessible.cpp
@@ -360,9 +360,9 @@ void AccessibleCache::removeObject(TQObject *object)
no accessibility implementation for \a object exists.
The function uses the \link TQObject::className() classname
- \endlink of \a object to tqfind a suitable implementation. If no
+ \endlink of \a object to find a suitable implementation. If no
implementation for the object's class is available the function
- tries to tqfind an implementation for the object's tqparent class.
+ tries to find an implementation for the object's tqparent class.
This function is called to answer an accessibility client's
request for object information. You should never need to call this
@@ -375,7 +375,7 @@ TQRESULT TQAccessible::queryAccessibleInterface( TQObject *object, TQAccessibleI
return TQE_INVALIDARG;
if ( qAccessibleInterface ) {
- *iface = qAccessibleInterface->tqfind( object );
+ *iface = qAccessibleInterface->find( object );
if ( *iface ) {
(*iface)->addRef();
return TQS_OK;
@@ -477,7 +477,7 @@ bool TQAccessible::isActive()
/*!
\fn int TQAccessibleInterface::controlAt( int x, int y ) const
- Returns the ID of the child that tqcontains the screen coordinates
+ Returns the ID of the child that contains the screen coordinates
(\a x, \a y). This function returns 0 if the point is positioned
on the object itself. If the tested point is outside the
boundaries of the object this function returns -1.
@@ -518,7 +518,7 @@ bool TQAccessible::isActive()
control, or the string property of the object itself if \a control
is 0.
- The \e Name is a string used by clients to identify, tqfind or
+ The \e Name is a string used by clients to identify, find or
announce an accessible object for the user. All objects must have
a name that is unique within their container.
diff --git a/tqtinterface/qt4/src/kernel/tqapplication.cpp b/tqtinterface/qt4/src/kernel/tqapplication.cpp
index 74d2f08..0e3b55c 100644
--- a/tqtinterface/qt4/src/kernel/tqapplication.cpp
+++ b/tqtinterface/qt4/src/kernel/tqapplication.cpp
@@ -725,7 +725,7 @@ void TQApplication::commitData( TQSessionManager& sm )
} else {
w = list->next();
}
- while ( w && done.tqcontainsRef( w ) )
+ while ( w && done.containsRef( w ) )
w = list->next();
}
delete list;
@@ -954,14 +954,14 @@ TQPalette TQApplication::tqpalette( const TQWidget* w ) {
}
#ifndef TQT_NO_CURSOR
-//void TQApplication::setOverrideCursor( const QCursor &cur, bool tqreplace=FALSE ) {
-// TQ_UNUSED(tqreplace);
+//void TQApplication::setOverrideCursor( const QCursor &cur, bool replace=FALSE ) {
+// TQ_UNUSED(replace);
// QApplication::setOverrideCursor( cur );
// }
-void TQApplication::setOverrideCursor( const QCursor &cur, bool tqreplace ) {
- TQ_UNUSED(tqreplace);
- printf("[FIXME] TQApplication::setOverrideCursor( const QCursor &cur, bool tqreplace=FALSE ) unimplemented\n\r");
+void TQApplication::setOverrideCursor( const QCursor &cur, bool replace ) {
+ TQ_UNUSED(replace);
+ printf("[FIXME] TQApplication::setOverrideCursor( const QCursor &cur, bool replace=FALSE ) unimplemented\n\r");
}
#endif
@@ -1033,7 +1033,7 @@ void TQApplication::aboutTQt()
\ingroup application
\mainclass
- It tqcontains the main event loop, where all events from the window
+ It contains the main event loop, where all events from the window
system and other sources are processed and dispatched. It also
handles the application's initialization and finalization, and
provides session management. It also handles most system-wide and
@@ -1095,7 +1095,7 @@ void TQApplication::aboutTQt()
\endlist
The <a href="simple-application.html">Application walk-through
- example</a> tqcontains a typical complete main() that does the usual
+ example</a> contains a typical complete main() that does the usual
things with TQApplication.
Since the TQApplication object does so much initialization, it
@@ -1554,7 +1554,7 @@ void TQApplication::process_cmdline( int* argcptr, char ** argv )
TQCString s;
if ( arg == "-qdevel" || arg == "-qdebug") {
// obsolete argument
- } else if ( arg.tqfind( "-style=", 0, FALSE ) != -1 ) {
+ } else if ( arg.find( "-style=", 0, FALSE ) != -1 ) {
s = arg.right( arg.length() - 7 );
} else if ( qstrcmp(arg,"-style") == 0 && i < argc-1 ) {
s = argv[++i];
@@ -1564,7 +1564,7 @@ void TQApplication::process_cmdline( int* argcptr, char ** argv )
TQCString s = argv[++i];
if ( !s.isEmpty() ) {
session_id = TQString::tqfromLatin1( s );
- int p = session_id.tqfind( '_' );
+ int p = session_id.find( '_' );
if ( p >= 0 ) {
if ( !session_key )
session_key = new TQString;
@@ -1613,7 +1613,7 @@ void TQApplication::process_cmdline( int* argcptr, char ** argv )
Note that \a argc and \a argv might be changed. TQt removes command
line arguments that it recognizes. The modified \a argc and \a argv
can also be accessed later with \c tqApp->argc() and \c tqApp->argv().
- The documentation for argv() tqcontains a detailed description of how
+ The documentation for argv() contains a detailed description of how
to process command line arguments.
TQt debugging options (not available if TQt was compiled with the
@@ -2132,7 +2132,7 @@ TQApplication::~TQApplication()
\endcode
If you run \c{showargs -display unix:0 -font 9x15bold hello world}
- under X11, the list box tqcontains the three strings "showargs",
+ under X11, the list box contains the three strings "showargs",
"hello" and "world".
TQt provides a global pointer, \c tqApp, that points to the
@@ -2519,7 +2519,7 @@ static TQString resolveSymlinks( const TQString& path, int depth = 0 )
linkTarget = fileInfo.readLink();
break;
}
- } while ( (slashPos = part.tqfindRev('/')) != -1 );
+ } while ( (slashPos = part.findRev('/')) != -1 );
if ( foundLink ) {
TQString path2;
@@ -2529,7 +2529,7 @@ static TQString resolveSymlinks( const TQString& path, int depth = 0 )
path2 += "/" + path.right( path.length() - slashPos - 1 );
} else {
TQString relPath;
- relPath = part.left( part.tqfindRev('/') + 1 ) + linkTarget;
+ relPath = part.left( part.findRev('/') + 1 ) + linkTarget;
if ( slashPos < (int) path.length() ) {
if ( !linkTarget.endsWith( "/" ) )
relPath += "/";
@@ -2546,7 +2546,7 @@ static TQString resolveSymlinks( const TQString& path, int depth = 0 )
#endif // TQ_WS_WIN
/*!
- Returns the directory that tqcontains the application executable.
+ Returns the directory that contains the application executable.
For example, if you have installed TQt in the \c{C:\Trolltech\TQt}
directory, and you run the \c{demo} example, this function will
@@ -2556,7 +2556,7 @@ static TQString resolveSymlinks( const TQString& path, int depth = 0 )
executable, which may be inside of an application bundle (if the
application is bundled).
- \warning On Unix, this function assumes that argv[0] tqcontains the file
+ \warning On Unix, this function assumes that argv[0] contains the file
name of the executable (which it normally does). It also assumes that
the current directory hasn't been changed by the application.
@@ -2574,7 +2574,7 @@ TQString TQApplication::applicationDirPath()
directory, and you run the \c{demo} example, this function will
return "C:/Trolltech/TQt/examples/demo/demo.exe".
- \warning On Unix, this function assumes that argv[0] tqcontains the file
+ \warning On Unix, this function assumes that argv[0] contains the file
name of the executable (which it normally does). It also assumes that
the current directory hasn't been changed by the application.
@@ -2607,9 +2607,9 @@ TQString TQApplication::applicationFilePath()
file path.
*/
absPath = argv0;
- } else if ( argv0.tqfind('/') != -1 ) {
+ } else if ( argv0.find('/') != -1 ) {
/*
- If argv0 tqcontains one or more slashes, it is a file path
+ If argv0 contains one or more slashes, it is a file path
relative to the current directory.
*/
absPath = TQDir::current().absFilePath( argv0 );
@@ -2675,7 +2675,7 @@ TQStringList TQApplication::libraryPaths()
TQString installPathPlugins = TQString::fromLocal8Bit(qInstallPathPlugins());
if ( TQFile::exists(installPathPlugins) ) {
#ifdef TQ_WS_WIN
- installPathPlugins.tqreplace('\\', '/');
+ installPathPlugins.replace('\\', '/');
#endif
app_libpaths->append(installPathPlugins);
}
@@ -2686,11 +2686,11 @@ TQStringList TQApplication::libraryPaths()
#ifdef TQ_WS_WIN
else {
app_location = TQString(tqAppFileName());
- app_location.tqreplace('\\', '/');
+ app_location.replace('\\', '/');
}
#endif
if (!app_location.isEmpty()) {
- app_location.truncate( app_location.tqfindRev( '/' ) );
+ app_location.truncate( app_location.findRev( '/' ) );
if ( app_location != qInstallPathPlugins() && TQFile::exists( app_location ) )
app_libpaths->append( app_location );
}
@@ -2731,7 +2731,7 @@ void TQApplication::addLibraryPath( const TQString &path )
// make sure that library paths is initialized
libraryPaths();
- if ( !app_libpaths->tqcontains( path ) )
+ if ( !app_libpaths->contains( path ) )
app_libpaths->prepend( path );
}
@@ -2749,7 +2749,7 @@ void TQApplication::removeLibraryPath( const TQString &path )
// make sure that library paths is initialized
libraryPaths();
- if ( app_libpaths->tqcontains( path ) )
+ if ( app_libpaths->contains( path ) )
app_libpaths->remove( path );
}
#endif //TQT_NO_COMPONENT
@@ -2782,7 +2782,7 @@ TQPalette TQApplication::palette(const TQWidget* w)
}
if ( w && app_palettes ) {
- TQPalette* wp = app_palettes->tqfind( w->className() );
+ TQPalette* wp = app_palettes->find( w->className() );
if ( wp )
return *wp;
TQAsciiDictIterator<TQPalette> it( *app_palettes );
@@ -2841,7 +2841,7 @@ void TQApplication::setPalette( const TQPalette &palette, bool informWidgets,
TQ_CHECK_PTR( app_palettes );
app_palettes->setAutoDelete( TRUE );
}
- oldpal = app_palettes->tqfind( className );
+ oldpal = app_palettes->find( className );
app_palettes->insert( className, new TQPalette( pal ) );
}
if ( informWidgets && is_app_running && !is_app_closing ) {
@@ -2870,7 +2870,7 @@ void TQApplication::setPalette( const TQPalette &palette, bool informWidgets,
TQFont TQApplication::font( const TQWidget *w )
{
if ( w && app_fonts ) {
- TQFont* wf = app_fonts->tqfind( w->className() );
+ TQFont* wf = app_fonts->find( w->className() );
if ( wf )
return *wf;
TQAsciiDictIterator<TQFont> it( *app_fonts );
@@ -4005,7 +4005,7 @@ TQString TQApplication::translate( const char * context, const char * sourceText
TQString result;
for ( it = translators->begin(); it != translators->end(); ++it ) {
mf = *it;
- result = mf->tqfindMessage( context, sourceText, comment ).translation();
+ result = mf->findMessage( context, sourceText, comment ).translation();
if ( !result.isNull() )
return result;
}
@@ -4920,7 +4920,7 @@ void TQApplication::commitData( TQSessionManager& sm )
} else {
w = list->next();
}
- while ( w && done.tqcontainsRef( w ) )
+ while ( w && done.containsRef( w ) )
w = list->next();
}
delete list;
@@ -5009,7 +5009,7 @@ void TQApplication::setStartDragDistance( int l )
For example, if the mouse position of the click is stored in \c
startPos and the current position (e.g. in the mouse move event) is
- \c currPos, you can tqfind out if a drag should be started with code
+ \c currPos, you can find out if a drag should be started with code
like this:
\code
if ( ( startPos - currPos ).manhattanLength() >
diff --git a/tqtinterface/qt4/src/kernel/tqapplication.h b/tqtinterface/qt4/src/kernel/tqapplication.h
index e5e2ea9..1c16117 100644
--- a/tqtinterface/qt4/src/kernel/tqapplication.h
+++ b/tqtinterface/qt4/src/kernel/tqapplication.h
@@ -142,8 +142,8 @@ public:
static void sendPostedEvents();
#ifndef TQT_NO_CURSOR
-// static void setOverrideCursor( const QCursor &cur, bool tqreplace=FALSE );
- static void setOverrideCursor( const QCursor &cur, bool tqreplace=FALSE );
+// static void setOverrideCursor( const QCursor &cur, bool replace=FALSE );
+ static void setOverrideCursor( const QCursor &cur, bool replace=FALSE );
#endif
static void setReverseLayout(bool b);
@@ -298,7 +298,7 @@ public:
static void setColorSpec( int );
#ifndef TQT_NO_CURSOR
static TQCursor *overrideCursor();
- static void setOverrideCursor( const TQCursor &, bool tqreplace=FALSE );
+ static void setOverrideCursor( const TQCursor &, bool replace=FALSE );
static void restoreOverrideCursor();
#endif
static bool hasGlobalMouseTracking();
@@ -518,8 +518,8 @@ private:
void process_cmdline( int* argcptr, char ** argv );
bool internalNotify( TQObject *, TQEvent * );
#if defined(TQ_WS_TQWS)
- static TQWidget *tqfindChildWidget( const TQWidget *p, const TQPoint &pos );
- static TQWidget *tqfindWidget( const TQObjectList&, const TQPoint &, bool rec );
+ static TQWidget *findChildWidget( const TQWidget *p, const TQPoint &pos );
+ static TQWidget *findWidget( const TQObjectList&, const TQPoint &, bool rec );
#endif
#if defined(TQ_WS_MAC)
diff --git a/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp b/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp
index aaa9faf..64a2704 100644
--- a/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqapplication_x11.cpp
@@ -513,12 +513,12 @@ void qt_deferred_map_take( TQWidget* w )
deferred_map_list->remove( w );
}
}
-bool qt_deferred_map_tqcontains( TQWidget* w )
+bool qt_deferred_map_contains( TQWidget* w )
{
if (!deferred_map_list)
return FALSE;
else
- return deferred_map_list->tqcontains( w );
+ return deferred_map_list->contains( w );
}
/*****************************************************************************
@@ -902,7 +902,7 @@ void qt_get_net_virtual_roots()
TQApplication::colorSpec() is TQApplication::ManyColor.
*/
-static Visual *tqfind_truecolor_visual( Display *dpy, int scr, int *depth, int *ncols )
+static Visual *find_truecolor_visual( Display *dpy, int scr, int *depth, int *ncols )
{
XVisualInfo *vi, rvi;
int best=0, n, i;
@@ -1028,7 +1028,7 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
int resl = res.length();
while (l < resl) {
- r = res.tqfind( '\n', l );
+ r = res.find( '\n', l );
if ( r < 0 )
r = resl;
while ( isspace((uchar) res[l]) )
@@ -1041,20 +1041,20 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
// OPTIMIZED, since we only want "*[fbgs].."
TQCString item = res.mid( l, r - l ).simplifyWhiteSpace();
- int i = item.tqfind( ":" );
+ int i = item.find( ":" );
key = item.left( i ).stripWhiteSpace().mid(1).lower();
value = item.right( item.length() - i - 1 ).stripWhiteSpace();
mine = TRUE;
} else if ( res[l] == appName[0] || (appClass && res[l] == appClass[0]) ) {
if (res.mid(l,apnl) == apn && (res[l+apnl] == '.' || res[l+apnl] == '*')) {
TQCString item = res.mid( l, r - l ).simplifyWhiteSpace();
- int i = item.tqfind( ":" );
+ int i = item.find( ":" );
key = item.left( i ).stripWhiteSpace().mid(apnl+1).lower();
value = item.right( item.length() - i - 1 ).stripWhiteSpace();
mine = TRUE;
} else if (res.mid(l,apcl) == apc && (res[l+apcl] == '.' || res[l+apcl] == '*')) {
TQCString item = res.mid( l, r - l ).simplifyWhiteSpace();
- int i = item.tqfind( ":" );
+ int i = item.find( ":" );
key = item.left( i ).stripWhiteSpace().mid(apcl+1).lower();
value = item.right( item.length() - i - 1 ).stripWhiteSpace();
mine = TRUE;
@@ -1063,7 +1063,7 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
if ( mine ) {
if ( !font && key == "systemfont")
- sysFont = value.left( value.tqfindRev(':') ).copy();
+ sysFont = value.left( value.findRev(':') ).copy();
if ( !font && key == "font")
resFont = value.copy();
else if ( !fg && key == "foreground" )
@@ -1175,13 +1175,13 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
if ( !resEF.isEmpty() ) {
TQStringList effects = TQStringList::split(" ",resEF);
- TQApplication::setEffectEnabled( Qt::UI_General, effects.tqcontains("general") );
- TQApplication::setEffectEnabled( Qt::UI_AnimateMenu, effects.tqcontains("animatemenu") );
- TQApplication::setEffectEnabled( Qt::UI_FadeMenu, effects.tqcontains("fademenu") );
- TQApplication::setEffectEnabled( Qt::UI_AnimateCombo, effects.tqcontains("animatecombo") );
- TQApplication::setEffectEnabled( Qt::UI_AnimateTooltip, effects.tqcontains("animatetooltip") );
- TQApplication::setEffectEnabled( Qt::UI_FadeTooltip, effects.tqcontains("fadetooltip") );
- TQApplication::setEffectEnabled( Qt::UI_AnimateToolBox, effects.tqcontains("animatetoolbox") );
+ TQApplication::setEffectEnabled( Qt::UI_General, effects.contains("general") );
+ TQApplication::setEffectEnabled( Qt::UI_AnimateMenu, effects.contains("animatemenu") );
+ TQApplication::setEffectEnabled( Qt::UI_FadeMenu, effects.contains("fademenu") );
+ TQApplication::setEffectEnabled( Qt::UI_AnimateCombo, effects.contains("animatecombo") );
+ TQApplication::setEffectEnabled( Qt::UI_AnimateTooltip, effects.contains("animatetooltip") );
+ TQApplication::setEffectEnabled( Qt::UI_FadeTooltip, effects.contains("fadetooltip") );
+ TQApplication::setEffectEnabled( Qt::UI_AnimateToolBox, effects.contains("animatetoolbox") );
}
}
@@ -1551,7 +1551,7 @@ void qt_init_internal( int *argcptr, char **argv,
int screen;
TQString serverVendor( ServerVendor( QX11Info::display()) );
- if (serverVendor.tqcontains("XFree86") && VendorRelease(QX11Info::display()) < 40300000)
+ if (serverVendor.contains("XFree86") && VendorRelease(QX11Info::display()) < 40300000)
qt_hebrew_keyboard_hack = TRUE;
for ( screen = 0; screen < appScreenCount; ++screen ) {
@@ -1590,10 +1590,10 @@ void qt_init_internal( int *argcptr, char **argv,
if ( qt_visual_option == TrueColor ||
TQApplication::colorSpec() == TQApplication::ManyColor ) {
- // tqfind custom visual
+ // find custom visual
int d, c;
- vis = tqfind_truecolor_visual( QX11Info::display(), screen, &d, &c );
+ vis = find_truecolor_visual( QX11Info::display(), screen, &d, &c );
TQPaintDevice::x_appdepth_arr[ screen ] = d;
TQPaintDevice::x_appcells_arr[ screen ] = c;
@@ -1638,7 +1638,7 @@ void qt_init_internal( int *argcptr, char **argv,
TQPaintDevice::x_appcolormap_arr[ screen ] = 0;
- if ( ! serverVendor.tqcontains( "Hewlett-Packard" ) ) {
+ if ( ! serverVendor.contains( "Hewlett-Packard" ) ) {
// on HPUX 10.20 local displays, the RGB_DEFAULT_MAP colormap
// doesn't give us correct colors. Why this happens, I have
// no clue, so we disable this for HPUX
@@ -1831,7 +1831,7 @@ void qt_init_internal( int *argcptr, char **argv,
// #endif // TQT_NO_XFTFREETYPE
// look at the modifier mapping, and get the correct masks for alt/meta
- // tqfind the alt/meta masks
+ // find the alt/meta masks
XModifierKeymap *map = XGetModifierMapping(QX11Info::display());
if (map) {
int i, maskIndex = 0, mapIndex = 0;
@@ -2729,7 +2729,7 @@ void qt_enter_modal( TQWidget *widget )
TQApplication::sendEvent(widget->parentWidget(), &e);
}
- qt_dispatchEnterLeave( 0, TQWidget::tqfind((WId)curWin) );
+ qt_dispatchEnterLeave( 0, TQWidget::find((WId)curWin) );
qt_modal_stack->insert( 0, widget );
app_do_modal = TRUE;
curWin = 0;
@@ -2745,7 +2745,7 @@ void qt_leave_modal( TQWidget *widget )
qt_modal_stack = 0;
TQPoint p( TQCursor::pos() );
TQWidget* w = TQApplication::widgetAt( p.x(), p.y(), TRUE );
- qt_dispatchEnterLeave( w, TQWidget::tqfind( curWin ) ); // send synthetic enter event
+ qt_dispatchEnterLeave( w, TQWidget::find( curWin ) ); // send synthetic enter event
curWin = w? w->winId() : 0;
}
}
@@ -3094,12 +3094,12 @@ void qt_deferred_map_take( TQWidget* w )
deferred_map_list->remove( w );
}
}
-bool qt_deferred_map_tqcontains( TQWidget* w )
+bool qt_deferred_map_contains( TQWidget* w )
{
if (!deferred_map_list)
return FALSE;
else
- return deferred_map_list->tqcontains( w );
+ return deferred_map_list->contains( w );
}
@@ -3644,13 +3644,13 @@ bool TQApplication::x11_apply_settings()
TQStringList effects = settings.readListEntry("/qt/GUIEffects");
- TQApplication::setEffectEnabled( TQt::UI_General, effects.tqcontains("general") );
- TQApplication::setEffectEnabled( TQt::UI_AnimateMenu, effects.tqcontains("animatemenu") );
- TQApplication::setEffectEnabled( TQt::UI_FadeMenu, effects.tqcontains("fademenu") );
- TQApplication::setEffectEnabled( TQt::UI_AnimateCombo, effects.tqcontains("animatecombo") );
- TQApplication::setEffectEnabled( TQt::UI_AnimateTooltip, effects.tqcontains("animatetooltip") );
- TQApplication::setEffectEnabled( TQt::UI_FadeTooltip, effects.tqcontains("fadetooltip") );
- TQApplication::setEffectEnabled( TQt::UI_AnimateToolBox, effects.tqcontains("animatetoolbox") );
+ TQApplication::setEffectEnabled( TQt::UI_General, effects.contains("general") );
+ TQApplication::setEffectEnabled( TQt::UI_AnimateMenu, effects.contains("animatemenu") );
+ TQApplication::setEffectEnabled( TQt::UI_FadeMenu, effects.contains("fademenu") );
+ TQApplication::setEffectEnabled( TQt::UI_AnimateCombo, effects.contains("animatecombo") );
+ TQApplication::setEffectEnabled( TQt::UI_AnimateTooltip, effects.contains("animatetooltip") );
+ TQApplication::setEffectEnabled( TQt::UI_FadeTooltip, effects.contains("fadetooltip") );
+ TQApplication::setEffectEnabled( TQt::UI_AnimateToolBox, effects.contains("animatetoolbox") );
TQStringList fontsubs =
settings.entryList("/qt/Font Substitutions");
@@ -3809,7 +3809,7 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
int resl = res.length();
while (l < resl) {
- r = res.tqfind( '\n', l );
+ r = res.find( '\n', l );
if ( r < 0 )
r = resl;
while ( isspace((uchar) res[l]) )
@@ -3822,20 +3822,20 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
// OPTIMIZED, since we only want "*[fbgs].."
TQCString item = res.mid( l, r - l ).simplifyWhiteSpace();
- int i = item.tqfind( ":" );
+ int i = item.find( ":" );
key = item.left( i ).stripWhiteSpace().mid(1).lower();
value = item.right( item.length() - i - 1 ).stripWhiteSpace();
mine = TRUE;
} else if ( res[l] == appName[0] || (appClass && res[l] == appClass[0]) ) {
if (res.mid(l,apnl) == apn && (res[l+apnl] == '.' || res[l+apnl] == '*')) {
TQCString item = res.mid( l, r - l ).simplifyWhiteSpace();
- int i = item.tqfind( ":" );
+ int i = item.find( ":" );
key = item.left( i ).stripWhiteSpace().mid(apnl+1).lower();
value = item.right( item.length() - i - 1 ).stripWhiteSpace();
mine = TRUE;
} else if (res.mid(l,apcl) == apc && (res[l+apcl] == '.' || res[l+apcl] == '*')) {
TQCString item = res.mid( l, r - l ).simplifyWhiteSpace();
- int i = item.tqfind( ":" );
+ int i = item.find( ":" );
key = item.left( i ).stripWhiteSpace().mid(apcl+1).lower();
value = item.right( item.length() - i - 1 ).stripWhiteSpace();
mine = TRUE;
@@ -3844,7 +3844,7 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
if ( mine ) {
if ( !font && key == "systemfont")
- sysFont = value.left( value.tqfindRev(':') ).copy();
+ sysFont = value.left( value.findRev(':') ).copy();
if ( !font && key == "font")
resFont = value.copy();
else if ( !fg && key == "foreground" )
@@ -3955,13 +3955,13 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
if ( !resEF.isEmpty() ) {
TQStringList effects = TQStringList::split(" ",resEF);
- TQApplication::setEffectEnabled( TQt::UI_General, effects.tqcontains("general") );
- TQApplication::setEffectEnabled( TQt::UI_AnimateMenu, effects.tqcontains("animatemenu") );
- TQApplication::setEffectEnabled( TQt::UI_FadeMenu, effects.tqcontains("fademenu") );
- TQApplication::setEffectEnabled( TQt::UI_AnimateCombo, effects.tqcontains("animatecombo") );
- TQApplication::setEffectEnabled( TQt::UI_AnimateTooltip, effects.tqcontains("animatetooltip") );
- TQApplication::setEffectEnabled( TQt::UI_FadeTooltip, effects.tqcontains("fadetooltip") );
- TQApplication::setEffectEnabled( TQt::UI_AnimateToolBox, effects.tqcontains("animatetoolbox") );
+ TQApplication::setEffectEnabled( TQt::UI_General, effects.contains("general") );
+ TQApplication::setEffectEnabled( TQt::UI_AnimateMenu, effects.contains("animatemenu") );
+ TQApplication::setEffectEnabled( TQt::UI_FadeMenu, effects.contains("fademenu") );
+ TQApplication::setEffectEnabled( TQt::UI_AnimateCombo, effects.contains("animatecombo") );
+ TQApplication::setEffectEnabled( TQt::UI_AnimateTooltip, effects.contains("animatetooltip") );
+ TQApplication::setEffectEnabled( TQt::UI_FadeTooltip, effects.contains("fadetooltip") );
+ TQApplication::setEffectEnabled( TQt::UI_AnimateToolBox, effects.contains("animatetoolbox") );
}
}
@@ -4160,7 +4160,7 @@ static void qt_check_focus_model()
TQApplication::colorSpec() is TQApplication::ManyColor.
*/
-static Visual *tqfind_truecolor_visual( Display *dpy, int scr, int *depth, int *ncols )
+static Visual *find_truecolor_visual( Display *dpy, int scr, int *depth, int *ncols )
{
XVisualInfo *vi, rvi;
int best=0, n, i;
@@ -4405,7 +4405,7 @@ void qt_init_internal( int *argcptr, char **argv,
int screen;
TQString serverVendor( ServerVendor( appDpy) );
- if (serverVendor.tqcontains("XFree86") && VendorRelease(appDpy) < 40300000)
+ if (serverVendor.contains("XFree86") && VendorRelease(appDpy) < 40300000)
qt_hebrew_keyboard_hack = TRUE;
for ( screen = 0; screen < appScreenCount; ++screen ) {
@@ -4444,10 +4444,10 @@ void qt_init_internal( int *argcptr, char **argv,
if ( qt_visual_option == TrueColor ||
TQApplication::colorSpec() == TQApplication::ManyColor ) {
- // tqfind custom visual
+ // find custom visual
int d, c;
- vis = tqfind_truecolor_visual( appDpy, screen, &d, &c );
+ vis = find_truecolor_visual( appDpy, screen, &d, &c );
TQPaintDevice::x_appdepth_arr[ screen ] = d;
TQPaintDevice::x_appcells_arr[ screen ] = c;
@@ -4492,7 +4492,7 @@ void qt_init_internal( int *argcptr, char **argv,
TQPaintDevice::x_appcolormap_arr[ screen ] = 0;
- if ( ! serverVendor.tqcontains( "Hewlett-Packard" ) ) {
+ if ( ! serverVendor.contains( "Hewlett-Packard" ) ) {
// on HPUX 10.20 local displays, the RGB_DEFAULT_MAP colormap
// doesn't give us correct colors. Why this happens, I have
// no clue, so we disable this for HPUX
@@ -4665,7 +4665,7 @@ void qt_init_internal( int *argcptr, char **argv,
#endif // TQT_NO_XFTFREETYPE
// look at the modifier mapping, and get the correct masks for alt/meta
- // tqfind the alt/meta masks
+ // find the alt/meta masks
XModifierKeymap *map = XGetModifierMapping(appDpy);
if (map) {
int i, maskIndex = 0, mapIndex = 0;
@@ -5382,8 +5382,8 @@ static TQCursorList *cursorStack = 0;
corresponding restoreOverrideCursor(), otherwise the stack will
never be emptied.
- If \a tqreplace is TRUE, the new cursor will tqreplace the last
- override cursor (the stack keeps its depth). If \a tqreplace is
+ If \a replace is TRUE, the new cursor will replace the last
+ override cursor (the stack keeps its depth). If \a replace is
FALSE, the new stack is pushed onto the top of the stack.
Example:
@@ -5396,7 +5396,7 @@ static TQCursorList *cursorStack = 0;
\sa overrideCursor(), restoreOverrideCursor(), TQWidget::setCursor()
*/
-void TQApplication::setOverrideCursor( const TQCursor &cursor, bool tqreplace )
+void TQApplication::setOverrideCursor( const TQCursor &cursor, bool replace )
{
if ( !cursorStack ) {
cursorStack = new TQCursorList;
@@ -5405,7 +5405,7 @@ void TQApplication::setOverrideCursor( const TQCursor &cursor, bool tqreplace )
}
app_cursor = new TQCursor( cursor );
TQ_CHECK_PTR( app_cursor );
- if ( tqreplace )
+ if ( replace )
cursorStack->removeLast();
cursorStack->append( app_cursor );
@@ -5522,10 +5522,10 @@ void TQApplication::setGlobalMouseTracking( bool enable )
/*****************************************************************************
- Routines to tqfind a TQt widget from a screen position
+ Routines to find a TQt widget from a screen position
*****************************************************************************/
-Window qt_x11_tqfindClientWindow( Window win, Atom property, bool leaf )
+Window qt_x11_findClientWindow( Window win, Atom property, bool leaf )
{
Atom type = None;
int format, i;
@@ -5546,7 +5546,7 @@ Window qt_x11_tqfindClientWindow( Window win, Atom property, bool leaf )
return 0;
}
for ( i=ntqchildren-1; !target && i >= 0; i-- )
- target = qt_x11_tqfindClientWindow( tqchildren[i], property, leaf );
+ target = qt_x11_findClientWindow( tqchildren[i], property, leaf );
if ( tqchildren )
XFree( (char *)tqchildren );
return target;
@@ -5581,14 +5581,14 @@ TQWidget *TQApplication::widgetAt( int x, int y, bool child )
if ( !target || target == TQPaintDevice::x11AppRootWindow(screen) )
return 0;
TQWidget *w, *c;
- w = TQWidget::tqfind( (WId)target );
+ w = TQWidget::find( (WId)target );
if ( !w ) {
qt_ignore_badwindow();
- target = qt_x11_tqfindClientWindow( target, qt_wm_state, TRUE );
+ target = qt_x11_findClientWindow( target, qt_wm_state, TRUE );
if (qt_badwindow() )
return 0;
- w = TQWidget::tqfind( (WId)target );
+ w = TQWidget::find( (WId)target );
#if 0
if ( !w ) {
// Perhaps the widgets at (x,y) is inside a foreign application?
@@ -5734,7 +5734,7 @@ void qPRCleanup( TQWidget *widget )
static TQETWidget *qPRFindWidget( Window oldwin )
{
- return wPRmapper ? (TQETWidget*)wPRmapper->tqfind((long)oldwin) : 0;
+ return wPRmapper ? (TQETWidget*)wPRmapper->find((long)oldwin) : 0;
}
/*!
@@ -5854,7 +5854,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
break;
}
- TQETWidget *widget = (TQETWidget*)TQWidget::tqfind( (WId)event->xany.window );
+ TQETWidget *widget = (TQETWidget*)TQWidget::find( (WId)event->xany.window );
if ( wPRmapper ) { // just did a widget reparent?
if ( widget == 0 ) { // not in std widget mapper
@@ -6165,7 +6165,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
if ( qt_focus_model == FocusModel_PointerRoot ) // PointerRoot mode
setActiveWindow( widget );
}
- qt_dispatchEnterLeave( widget, TQWidget::tqfind( curWin ) );
+ qt_dispatchEnterLeave( widget, TQWidget::find( curWin ) );
curWin = widget->winId();
widget->translateMouseEvent( event ); //we don't get MotionNotify, emulate it
}
@@ -6185,7 +6185,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
XEvent ev;
while ( XCheckMaskEvent( widget->x11Display(), EnterWindowMask | LeaveWindowMask , &ev )
&& !qt_x11EventFilter( &ev )) {
- TQWidget* event_widget = TQWidget::tqfind( ev.xcrossing.window );
+ TQWidget* event_widget = TQWidget::find( ev.xcrossing.window );
if( event_widget && event_widget->x11Event( &ev ) )
break;
if ( ev.type == LeaveNotify && ev.xcrossing.mode == NotifyNormal ){
@@ -6254,7 +6254,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
if ( event->xreparent.tqparent == TQPaintDevice::x11AppRootWindow() ) {
if ( widget->isTopLevel() ) {
widget->topData()->parentWinId = event->xreparent.tqparent;
- if ( qt_deferred_map_tqcontains( widget ) ) {
+ if ( qt_deferred_map_contains( widget ) ) {
qt_deferred_map_take( widget );
XMapWindow( appDpy, widget->winId() );
}
@@ -6269,7 +6269,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
if ( qt_focus_model != FocusModel_Unknown ) {
// toplevel reparented...
- TQWidget *newtqparent = TQWidget::tqfind( event->xreparent.tqparent );
+ TQWidget *newtqparent = TQWidget::find( event->xreparent.tqparent );
if ( ! newtqparent || newtqparent->isDesktop() ) {
// we dont' know about the new tqparent (or we've been
// reparented to root), perhaps a window manager
@@ -6380,7 +6380,7 @@ void qt_enter_modal( TQWidget *widget )
TQApplication::sendEvent(widget->parentWidget(), &e);
}
- qt_dispatchEnterLeave( 0, TQWidget::tqfind((WId)curWin) );
+ qt_dispatchEnterLeave( 0, TQWidget::find((WId)curWin) );
qt_modal_stack->insert( 0, widget );
app_do_modal = TRUE;
curWin = 0;
@@ -6396,7 +6396,7 @@ void qt_leave_modal( TQWidget *widget )
qt_modal_stack = 0;
TQPoint p( TQCursor::pos() );
TQWidget* w = TQApplication::widgetAt( p.x(), p.y(), TRUE );
- qt_dispatchEnterLeave( w, TQWidget::tqfind( curWin ) ); // send synthetic enter event
+ qt_dispatchEnterLeave( w, TQWidget::find( curWin ) ); // send synthetic enter event
curWin = w? w->winId() : 0;
}
}
@@ -6518,7 +6518,7 @@ void TQApplication::closePopup( TQWidget *popup )
popupWidgets = 0;
if ( !qt_nograb() && popupGrabOk ) { // grabbing not disabled
if ( mouseButtonState != 0
- || popup->tqgeometry(). tqcontains(TQPoint(mouseGlobalXPos, mouseGlobalYPos) ) )
+ || popup->tqgeometry(). contains(TQPoint(mouseGlobalXPos, mouseGlobalYPos) ) )
{ // mouse release event or inside
XAllowEvents( popup->x11Display(), AsyncPointer,
CurrentTime );
@@ -6794,7 +6794,7 @@ bool TQETWidget::translateMouseEvent( const XEvent *event )
if ( tqApp->inPopupMode() ) { // in popup mode
TQWidget *popup = tqApp->activePopupWidget();
if ( popup != this ) {
- if ( testWFlags(WType_Popup) && rect().tqcontains(pos) )
+ if ( testWFlags(WType_Popup) && rect().contains(pos) )
popup = this;
else // send to last popup
pos = popup->mapFromGlobal( globalPos );
@@ -6866,7 +6866,7 @@ bool TQETWidget::translateMouseEvent( const XEvent *event )
XAllowEvents( dpy, SyncPointer, CurrentTime );
} else {
if ( type != TQEvent::MouseButtonRelease && state != 0 &&
- TQWidget::tqfind((WId)mouseActWindow) ) {
+ TQWidget::find((WId)mouseActWindow) ) {
manualGrab = TRUE; // need to manually grab
XGrabPointer( dpy, mouseActWindow, False,
(uint)(ButtonPressMask | ButtonReleaseMask |
@@ -7214,7 +7214,7 @@ bool TQETWidget::translatePropertyEvent(const XEvent *event)
topData()->parentWinId = 0;
// map the window if we were waiting for a transition to
// withdrawn
- if ( qt_deferred_map_tqcontains( this ) ) {
+ if ( qt_deferred_map_contains( this ) ) {
qt_deferred_map_take( this );
XMapWindow( appDpy, winId() );
}
@@ -7243,7 +7243,7 @@ bool TQETWidget::translatePropertyEvent(const XEvent *event)
topData()->parentWinId = 0;
// map the window if we were waiting for a
// transition to withdrawn
- if ( qt_deferred_map_tqcontains( this ) ) {
+ if ( qt_deferred_map_contains( this ) ) {
qt_deferred_map_take( this );
XMapWindow( appDpy, winId() );
}
@@ -7765,7 +7765,7 @@ bool TQETWidget::translateKeyEventInternal( const XEvent *event, int& count,
qt_ximComposingKeycode = 0;
}
if ( key )
- keyDict->tqreplace( keycode, (void*)key );
+ keyDict->replace( keycode, (void*)key );
// all keysyms smaller than that are actally keys that can be mapped
// to tqunicode chars
if ( count == 0 && key < 0xff00 ) {
@@ -7820,15 +7820,15 @@ bool TQETWidget::translateKeyEventInternal( const XEvent *event, int& count,
ascii = chars[0];
// +256 so we can store all eight-bit codes, including ascii 0,
// and independent of whether char is signed or not.
- textDict->tqreplace( keycode, (void*)(long)(256+ascii) );
+ textDict->replace( keycode, (void*)(long)(256+ascii) );
}
tlw = 0;
} else {
- key = (int)(long)keyDict->tqfind( keycode );
+ key = (int)(long)keyDict->find( keycode );
if ( key )
if( !willRepeat && statefulTranslation ) // Take out key of dictionary only if this call.
keyDict->take( keycode );
- long s = (long)textDict->tqfind( keycode );
+ long s = (long)textDict->find( keycode );
if ( s ) {
if( statefulTranslation )
textDict->take( keycode );
diff --git a/tqtinterface/qt4/src/kernel/tqasyncimageio.cpp b/tqtinterface/qt4/src/kernel/tqasyncimageio.cpp
index 508002f..8c6ba74 100644
--- a/tqtinterface/qt4/src/kernel/tqasyncimageio.cpp
+++ b/tqtinterface/qt4/src/kernel/tqasyncimageio.cpp
@@ -452,7 +452,7 @@ TQImageFormatType* TQImageDecoder::format( const char* name )
}
/*!
- Call this function to tqfind the name of the format of the given
+ Call this function to find the name of the format of the given
header. The returned string is statically allocated. The function
will look at the first \a length characters in the \a buffer.
@@ -506,7 +506,7 @@ TQStrList TQImageDecoder::inputFormats()
f;
f = TQImageDecoderPrivate::factories->next())
{
- if ( !result.tqcontains( f->formatName() ) ) {
+ if ( !result.contains( f->formatName() ) ) {
result.inSort( f->formatName() );
}
}
diff --git a/tqtinterface/qt4/src/kernel/tqclipboard.cpp b/tqtinterface/qt4/src/kernel/tqclipboard.cpp
index 9c7a318..4c2b341 100644
--- a/tqtinterface/qt4/src/kernel/tqclipboard.cpp
+++ b/tqtinterface/qt4/src/kernel/tqclipboard.cpp
@@ -257,7 +257,7 @@ void TQClipboard::setData(QMimeSource *source, Mode mode)
// Copy text from the clipboard (paste)
TQString text = cb->text(TQClipboard::Clipboard);
if ( !text.isNull() )
- qDebug( "The clipboard tqcontains: " + text );
+ qDebug( "The clipboard contains: " + text );
// Copy text into the clipboard
cb->setText( "This text can be pasted by other programs",
@@ -507,7 +507,7 @@ void TQClipboard::setText( const TQString &text )
/*!
Returns the clipboard image, or returns a null image if the
- clipboard does not contain an image or if it tqcontains an image in
+ clipboard does not contain an image or if it contains an image in
an unsupported image format.
The \a mode argument is used to control which part of the system
diff --git a/tqtinterface/qt4/src/kernel/tqclipboard_x11.cpp b/tqtinterface/qt4/src/kernel/tqclipboard_x11.cpp
index 9fd90e4..b1f76c0 100644
--- a/tqtinterface/qt4/src/kernel/tqclipboard_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqclipboard_x11.cpp
@@ -668,7 +668,7 @@ static int incr_timer_id = 0;
static int qt_xclb_transation_event_handler(XEvent *event)
{
- TransactionMap::Iterator it = transactions->tqfind(event->xany.window);
+ TransactionMap::Iterator it = transactions->find(event->xany.window);
if (it != transactions->end()) {
if ((*it)->x11Event(event) != 0)
return 1;
diff --git a/tqtinterface/qt4/src/kernel/tqcolor.cpp b/tqtinterface/qt4/src/kernel/tqcolor.cpp
index f245773..f6fcce6 100644
--- a/tqtinterface/qt4/src/kernel/tqcolor.cpp
+++ b/tqtinterface/qt4/src/kernel/tqcolor.cpp
@@ -761,7 +761,7 @@ void TQColor::hsv( int *h, int *s, int *v ) const
max = b;
whatmax = 2;
}
- uint min = r; // tqfind minimum value
+ uint min = r; // find minimum value
if ( (uint)g < min ) min = g;
if ( (uint)b < min ) min = b;
int delta = max-min;
diff --git a/tqtinterface/qt4/src/kernel/tqcolor_x11.cpp b/tqtinterface/qt4/src/kernel/tqcolor_x11.cpp
index 909ecbb..ed3a764 100644
--- a/tqtinterface/qt4/src/kernel/tqcolor_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqcolor_x11.cpp
@@ -306,7 +306,7 @@ int TQColor::numBitPlanes()
Finds the nearest color.
*/
-static int tqfind_nearest_color( int r, int g, int b, int* mindist_out,
+static int find_nearest_color( int r, int g, int b, int* mindist_out,
TQColorScreenData *sd )
{
int mincol = -1;
@@ -356,7 +356,7 @@ uint TQColor::alloc( int screen )
d.d32.pix = pix;
return pix;
}
- TQColorData *c = sd->colorDict->tqfind( (long)(d.argb) );
+ TQColorData *c = sd->colorDict->find( (long)(d.argb) );
if ( c ) { // found color in dictionary
pix = c->pix;
if ( screen == TQPaintDevice::x11AppScreen() ) {
@@ -382,7 +382,7 @@ uint TQColor::alloc( int screen )
do {
// This loop is run until we manage to either allocate or
- // tqfind an approximate color, it stops after a few iterations.
+ // find an approximate color, it stops after a few iterations.
try_again = FALSE;
@@ -408,7 +408,7 @@ uint TQColor::alloc( int screen )
sd->g_cells );
}
int mindist;
- i = tqfind_nearest_color( r, g, b, &mindist, sd );
+ i = find_nearest_color( r, g, b, &mindist, sd );
if ( mindist != 0 && !try_alloc ) {
// Not an exact match with an existing color
@@ -550,7 +550,7 @@ uint TQColor::alloc()
/*****************************************************************************
The color dictionary speeds up color allocation significantly for X11.
When there are no more colors, TQColor::alloc() will set the colors_avail
- flag to FALSE and try to tqfind the nearest color.
+ flag to FALSE and try to find the nearest color.
NOTE: From deep within the event loop, the colors_avail flag is reset to
TRUE (calls the function qt_reset_color_avail()), because some other
application might free its colors, thereby making them available for
@@ -627,7 +627,7 @@ void qt_reset_color_avail()
Finds the nearest color.
*/
-static int tqfind_nearest_color( int r, int g, int b, int* mindist_out,
+static int find_nearest_color( int r, int g, int b, int* mindist_out,
TQColorScreenData *sd )
{
int mincol = -1;
@@ -910,7 +910,7 @@ uint TQColor::alloc( int screen )
d.d32.pix = pix;
return pix;
}
- TQColorData *c = sd->colorDict->tqfind( (long)(d.argb) );
+ TQColorData *c = sd->colorDict->find( (long)(d.argb) );
if ( c ) { // found color in dictionary
pix = c->pix;
if ( screen == TQPaintDevice::x11AppScreen() ) {
@@ -936,7 +936,7 @@ uint TQColor::alloc( int screen )
do {
// This loop is run until we manage to either allocate or
- // tqfind an approximate color, it stops after a few iterations.
+ // find an approximate color, it stops after a few iterations.
try_again = FALSE;
@@ -962,7 +962,7 @@ uint TQColor::alloc( int screen )
sd->g_cells );
}
int mindist;
- i = tqfind_nearest_color( r, g, b, &mindist, sd );
+ i = find_nearest_color( r, g, b, &mindist, sd );
if ( mindist != 0 && !try_alloc ) {
// Not an exact match with an existing color
diff --git a/tqtinterface/qt4/src/kernel/tqcursor.h b/tqtinterface/qt4/src/kernel/tqcursor.h
index 9aa6437..1c1d4c1 100644
--- a/tqtinterface/qt4/src/kernel/tqcursor.h
+++ b/tqtinterface/qt4/src/kernel/tqcursor.h
@@ -148,7 +148,7 @@ private:
int hotX, int hotY );
void update() const;
TQCursorData *data;
- TQCursor *tqfind_cur(int);
+ TQCursor *find_cur(int);
#if defined(TQ_WS_MAC)
friend void qt_mac_set_cursor(const TQCursor *c, const Point *p);
#endif
diff --git a/tqtinterface/qt4/src/kernel/tqcursor_x11.cpp b/tqtinterface/qt4/src/kernel/tqcursor_x11.cpp
index 36f2504..aac3336 100644
--- a/tqtinterface/qt4/src/kernel/tqcursor_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqcursor_x11.cpp
@@ -302,7 +302,7 @@ TQT_STATIC_CONST_IMPL TQCursor & TQt::whatsThisCursor = cursorTable[15];
TQT_STATIC_CONST_IMPL TQCursor & TQt::busyCursor = cursorTable[16];
-TQCursor *TQCursor::tqfind_cur( int tqshape ) // tqfind predefined cursor
+TQCursor *TQCursor::find_cur( int tqshape ) // find predefined cursor
{
return (uint)tqshape <= LastCursor ? &cursorTable[tqshape] : 0;
}
@@ -379,7 +379,7 @@ TQCursor::TQCursor( int tqshape )
{
if ( !initialized )
initialize();
- TQCursor *c = tqfind_cur( tqshape );
+ TQCursor *c = find_cur( tqshape );
if ( !c ) // not found
c = &cursorTable[arrowCursorIdx]; // then use arrowCursor
c->data->ref();
@@ -504,7 +504,7 @@ void TQCursor::setShape( int tqshape )
{
if ( !initialized )
initialize();
- TQCursor *c = tqfind_cur( tqshape ); // tqfind one of the global ones
+ TQCursor *c = find_cur( tqshape ); // find one of the global ones
if ( !c ) // not found
c = &cursorTable[arrowCursorIdx]; // then use arrowCursor
c->data->ref();
diff --git a/tqtinterface/qt4/src/kernel/tqdesktopwidget_x11.cpp b/tqtinterface/qt4/src/kernel/tqdesktopwidget_x11.cpp
index 84da179..8235e81 100644
--- a/tqtinterface/qt4/src/kernel/tqdesktopwidget_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqdesktopwidget_x11.cpp
@@ -345,7 +345,7 @@ int TQDesktopWidget::screenNumber( TQWidget *widget ) const
int TQDesktopWidget::screenNumber( const TQPoint &point ) const
{
for ( int i = 0; i < d->screenCount; ++i ) {
- if ( d->rects[i].tqcontains( point ) )
+ if ( d->rects[i].contains( point ) )
return i;
}
return -1;
diff --git a/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp b/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp
index 56d00d4..471df70 100644
--- a/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp
@@ -81,7 +81,7 @@ extern void qt_leave_modal( TQWidget *widget );
}
#endif
-extern Window qt_x11_tqfindClientWindow( Window, Atom, bool );
+extern Window qt_x11_findClientWindow( Window, Atom, bool );
extern Atom qt_wm_state;
// this stuff is copied from qclb_x11.cpp
@@ -404,7 +404,7 @@ const char* qt_xdnd_atom_to_str( Atom a )
qt_xdnd_drag_types->setAutoDelete( TRUE );
}
TQCString* result;
- if ( !(result=qt_xdnd_drag_types->tqfind( a )) ) {
+ if ( !(result=qt_xdnd_drag_types->find( a )) ) {
const char* mimeType = XGetAtomName( TQPaintDevice::x11AppDisplay(), a );
if ( !mimeType )
return 0; // only happens on protocol error
@@ -425,7 +425,7 @@ Atom* qt_xdnd_str_to_atom( const char *mimeType )
}
Atom * result;
- if ( (result = qt_xdnd_atom_numbers->tqfind( mimeType )) )
+ if ( (result = qt_xdnd_atom_numbers->find( mimeType )) )
return result;
result = new Atom;
@@ -489,7 +489,7 @@ void qt_xdnd_cleanup()
}
-static TQWidget * tqfind_child( TQWidget * tlw, TQPoint & p )
+static TQWidget * find_child( TQWidget * tlw, TQPoint & p )
{
TQWidget * w = tlw;
@@ -608,7 +608,7 @@ void qt_handle_xdnd_position( TQWidget *w, const XEvent * xe, bool passive )
const unsigned long *l = (const unsigned long *)xe->xclient.data.l;
TQPoint p( (l[2] & 0xffff0000) >> 16, l[2] & 0x0000ffff );
- TQWidget * c = tqfind_child( w, p ); // changes p to to c-local coordinates
+ TQWidget * c = find_child( w, p ); // changes p to to c-local coordinates
if (!passive && checkEmbedded(c, xe))
return;
@@ -728,7 +728,7 @@ void qt_handle_xdnd_position( TQWidget *w, const XEvent * xe, bool passive )
// reset
qt_xdnd_target_current_time = CurrentTime;
- TQWidget * source = TQWidget::tqfind( qt_xdnd_dragsource_xid );
+ TQWidget * source = TQWidget::find( qt_xdnd_dragsource_xid );
if ( source && source->isDesktop() && !source->acceptDrops() )
source = 0;
@@ -811,7 +811,7 @@ void qt_xdnd_send_leave()
leave.data.l[3] = 0; // w, h
leave.data.l[4] = 0; // just null
- TQWidget * w = TQWidget::tqfind( qt_xdnd_current_proxy_target );
+ TQWidget * w = TQWidget::find( qt_xdnd_current_proxy_target );
if ( w && w->isDesktop() && !w->acceptDrops() )
w = 0;
@@ -1164,7 +1164,7 @@ void TQDragManager::cancel( bool deleteSource )
}
static
-Window tqfindRealWindow( const TQPoint & pos, Window w, int md )
+Window findRealWindow( const TQPoint & pos, Window w, int md )
{
if ( qt_xdnd_deco && w == qt_xdnd_deco->winId() )
return 0;
@@ -1198,14 +1198,14 @@ Window tqfindRealWindow( const TQPoint & pos, Window w, int md )
if ( XQueryTree( TQPaintDevice::x11AppDisplay(), w, &r, &p, &c, &nc ) ) {
r=0;
for (uint i=nc; !r && i--; ) {
- r = tqfindRealWindow( pos-TQPoint(attr.x,attr.y),
+ r = findRealWindow( pos-TQPoint(attr.x,attr.y),
c[i], md-1 );
}
XFree(c);
if ( r )
return r;
- // We didn't tqfind a client window! Just use the
+ // We didn't find a client window! Just use the
// innermost window.
}
@@ -1282,7 +1282,7 @@ void TQDragManager::move( const TQPoint & globalPos )
if (type)
break;
- // tqfind child at the coordinates
+ // find child at the coordinates
if (!XTranslateCoordinates( TQPaintDevice::x11AppDisplay(), src, src,
lx, ly, &lx2, &ly2, &target)) {
target = 0;
@@ -1290,13 +1290,13 @@ void TQDragManager::move( const TQPoint & globalPos )
}
}
if ( qt_xdnd_deco && (!target || target == qt_xdnd_deco->winId()) ) {
- target = tqfindRealWindow(globalPos,rootwin,6);
+ target = findRealWindow(globalPos,rootwin,6);
}
}
TQWidget* w;
if ( target ) {
- w = TQWidget::tqfind( (WId)target );
+ w = TQWidget::find( (WId)target );
if ( w && w->isDesktop() && !w->acceptDrops() )
w = 0;
} else {
@@ -1442,7 +1442,7 @@ void TQDragManager::drop()
drop.data.l[3] = 0;
drop.data.l[4] = 0;
- TQWidget * w = TQWidget::tqfind( qt_xdnd_current_proxy_target );
+ TQWidget * w = TQWidget::find( qt_xdnd_current_proxy_target );
if ( w && w->isDesktop() && !w->acceptDrops() )
w = 0;
@@ -1567,7 +1567,7 @@ static TQByteArray qt_xdnd_obtain_data( const char *format )
TQWidget* w;
if ( qt_xdnd_dragsource_xid && qt_xdnd_source_object &&
- (w=TQWidget::tqfind( qt_xdnd_dragsource_xid ))
+ (w=TQWidget::find( qt_xdnd_dragsource_xid ))
&& (!w->isDesktop() || w->acceptDrops()) )
{
TQDragObject * o = qt_xdnd_source_object;
@@ -1583,8 +1583,8 @@ static TQByteArray qt_xdnd_obtain_data( const char *format )
if ( !qt_xdnd_target_data )
qt_xdnd_target_data = new TQIntDict<TQByteArray>( 17 );
- if ( qt_xdnd_target_data->tqfind( (int)*a ) ) {
- result = *(qt_xdnd_target_data->tqfind( (int)*a ));
+ if ( qt_xdnd_target_data->find( (int)*a ) ) {
+ result = *(qt_xdnd_target_data->find( (int)*a ));
} else {
if ( XGetSelectionOwner( TQPaintDevice::x11AppDisplay(),
qt_xdnd_selection ) == None )
diff --git a/tqtinterface/qt4/src/kernel/tqdragobject.cpp b/tqtinterface/qt4/src/kernel/tqdragobject.cpp
index 5a4d2fe..579eab8 100644
--- a/tqtinterface/qt4/src/kernel/tqdragobject.cpp
+++ b/tqtinterface/qt4/src/kernel/tqdragobject.cpp
@@ -2034,7 +2034,7 @@ TQPixmap *TQDragObject::cursor( DragMode m ) const
copy of the dragged data (but see target()); otherwise returns
FALSE.
- If the drag tqcontains \e references to information (e.g. file names
+ If the drag contains \e references to information (e.g. file names
in a TQUriDrag are references) then the return value should always
be ignored, as the target is expected to manipulate the
referred-to content directly. On X11 the return value should
@@ -2174,7 +2174,7 @@ static
void stripws(TQCString& s)
{
int f;
- while ( (f=s.tqfind(' ')) >= 0 )
+ while ( (f=s.find(' ')) >= 0 )
s.remove(f,1);
}
@@ -2324,13 +2324,13 @@ const char * TQTextDrag::format(int i) const
return d->fmt[i];
}
-TQTextCodec* qt_tqfindcharset(const TQCString& mimetype)
+TQTextCodec* qt_findcharset(const TQCString& mimetype)
{
- int i=mimetype.tqfind("charset=");
+ int i=mimetype.find("charset=");
if ( i >= 0 ) {
TQCString cs = mimetype.mid(i+8);
stripws(cs);
- i = cs.tqfind(';');
+ i = cs.find(';');
if ( i >= 0 )
cs = cs.left(i);
// win98 often has charset=utf16, and we need to get the correct codec for
@@ -2361,13 +2361,13 @@ static TQTextCodec *codecForHTML(const TQCString &ba)
mib = 106; // utf-8
} else {
pos = 0;
- while ((pos = ba.tqfind("<meta http-equiv=", pos, FALSE)) != -1) {
- int end = ba.tqfind('>', pos+1);
+ while ((pos = ba.find("<meta http-equiv=", pos, FALSE)) != -1) {
+ int end = ba.find('>', pos+1);
if (end == -1)
break;
- pos = ba.tqfind("charset=", pos, FALSE) + (int)strlen("charset=");
+ pos = ba.find("charset=", pos, FALSE) + (int)strlen("charset=");
if (pos != -1 && pos < end) {
- int pos2 = ba.tqfind('\"', pos+1);
+ int pos2 = ba.find('\"', pos+1);
TQCString cs = ba.mid(pos, pos2-pos);
c = TQTextCodec::codecForName(cs);
if (c)
@@ -2383,7 +2383,7 @@ static TQTextCodec *codecForHTML(const TQCString &ba)
}
static
-TQTextCodec* tqfindcodec(const TQMimeSource* e)
+TQTextCodec* findcodec(const TQMimeSource* e)
{
TQTextCodec* r = 0;
const char* f;
@@ -2393,7 +2393,7 @@ TQTextCodec* tqfindcodec(const TQMimeSource* e)
if (html)
r = codecForHTML(TQCString(e->tqencodedData(f)));
if (!r)
- r = qt_tqfindcharset(TQCString(f).lower());
+ r = qt_findcharset(TQCString(f).lower());
if (r)
return r;
}
@@ -2411,15 +2411,15 @@ TQByteArray TQTextDrag::tqencodedData(const char* mime) const
if ( 0==qstrnicmp(mime,"text/",5) ) {
TQCString m(mime);
m = m.lower();
- TQTextCodec *codec = qt_tqfindcharset(m);
+ TQTextCodec *codec = qt_findcharset(m);
if ( !codec )
return r;
TQString text( d->txt );
#if defined(TQ_WS_WIN)
- int index = text.tqfind( TQString::tqfromLatin1("\r\n"), 0 );
+ int index = text.find( TQString::tqfromLatin1("\r\n"), 0 );
while ( index != -1 ) {
- text.tqreplace( index, 2, TQChar('\n') );
- index = text.tqfind( "\r\n", index );
+ text.replace( index, 2, TQChar('\n') );
+ index = text.find( "\r\n", index );
}
#endif
r = codec->fromUnicode(text);
@@ -2448,7 +2448,7 @@ bool TQTextDrag::canDecode( const TQMimeSource* e )
const char* f;
for (int i=0; (f=e->format(i)); i++) {
if ( 0==qstrnicmp(f,"text/",5) ) {
- return tqfindcodec(e) != 0;
+ return findcodec(e) != 0;
}
}
return 0;
@@ -2490,7 +2490,7 @@ bool TQTextDrag::decode( const TQMimeSource* e, TQString& str, TQCString& subtyp
if ( 0==qstrnicmp(mime,"text/",5) ) {
TQCString m(mime);
m = m.lower();
- int semi = m.tqfind(';');
+ int semi = m.find(';');
if ( semi < 0 )
semi = m.length();
TQCString foundst = m.mid(5,semi-5);
@@ -2503,7 +2503,7 @@ bool TQTextDrag::decode( const TQMimeSource* e, TQString& str, TQCString& subtyp
codec = codecForHTML(TQCString(bytes.data(), bytes.size()));
}
if (!codec)
- codec = qt_tqfindcharset(m);
+ codec = qt_findcharset(m);
if ( codec ) {
TQByteArray payload;
@@ -2847,7 +2847,7 @@ void TQStoredDrag::setEncodedData( const TQByteArray & tqencodedData )
}
/*!
- Returns the stored data. \a m tqcontains the data's format.
+ Returns the stored data. \a m contains the data's format.
\sa setEncodedData()
*/
@@ -3095,7 +3095,7 @@ TQCString TQUriDrag::localFileToUri(const TQString& filename)
// Slosh -> Slash
int slosh;
- while ( (slosh=r.tqfind('\\')) >= 0 ) {
+ while ( (slosh=r.find('\\')) >= 0 ) {
r[slosh] = '/';
}
@@ -3165,7 +3165,7 @@ TQString TQUriDrag::uriToLocalFile(const char* uri)
return file;
if (0==qstrnicmp(uri,"file:/",6)) // It is a local file uri
uri += 6;
- else if (TQString(uri).tqfind(":/") != -1) // It is a different scheme uri
+ else if (TQString(uri).find(":/") != -1) // It is a different scheme uri
return file;
bool local = uri[0] != '/' || ( uri[0] != '\0' && uri[1] == '/' );
diff --git a/tqtinterface/qt4/src/kernel/tqdrawutil.cpp b/tqtinterface/qt4/src/kernel/tqdrawutil.cpp
index 6ce07d5..07e2bb4 100644
--- a/tqtinterface/qt4/src/kernel/tqdrawutil.cpp
+++ b/tqtinterface/qt4/src/kernel/tqdrawutil.cpp
@@ -633,7 +633,7 @@ void qDrawItem( TQPainter *p, TQt::GUIStyle gs,
} else { // color pixmap, no tqmask
TQString k;
k.sprintf( "$qt-drawitem-%x", pm.serialNumber() );
- TQPixmap *tqmask = TQPixmapCache::tqfind(k);
+ TQPixmap *tqmask = TQPixmapCache::find(k);
bool del=FALSE;
if ( !tqmask ) {
tqmask = new TQPixmap( pm.createHeuristicMask() );
diff --git a/tqtinterface/qt4/src/kernel/tqevent.cpp b/tqtinterface/qt4/src/kernel/tqevent.cpp
index 59a6ca7..6b9f90b 100644
--- a/tqtinterface/qt4/src/kernel/tqevent.cpp
+++ b/tqtinterface/qt4/src/kernel/tqevent.cpp
@@ -100,7 +100,7 @@ TQt::ButtonState TQContextMenuEvent::state() const {
TQt-defined events types, the value should be at least as large as
the value of the "User" entry in the TQEvent::Type enum.
- TQCustomEvent tqcontains a generic void* data member that may be used
+ TQCustomEvent contains a generic void* data member that may be used
for transferring event-specific data to the receiver. Note that
since events are normally delivered asynchronously, the data
pointer, if used, must remain valid until the event has been
@@ -207,7 +207,7 @@ TQCustomEvent::TQCustomEvent( int type )
TQWidget::mouseMoveEvent(). TQObject::installEventFilter() allows an
object to intercept events destined for another object.
- The basic TQEvent tqcontains only an event type parameter.
+ The basic TQEvent contains only an event type parameter.
Subclasses of TQEvent contain additional parameters that describe
the particular event.
@@ -350,7 +350,7 @@ TQCustomEvent::TQCustomEvent( int type )
/*!
\class TQTimerEvent tqevent.h
- \brief The TQTimerEvent class tqcontains parameters that describe a
+ \brief The TQTimerEvent class contains parameters that describe a
timer event.
\ingroup events
@@ -387,7 +387,7 @@ TQCustomEvent::TQCustomEvent( int type )
\class TQMouseEvent tqevent.h
\ingroup events
- \brief The TQMouseEvent class tqcontains parameters that describe a mouse event.
+ \brief The TQMouseEvent class contains parameters that describe a mouse event.
Mouse events occur when a mouse button is pressed or released
inside a widget or when the mouse cursor is moved.
@@ -400,7 +400,7 @@ TQCustomEvent::TQCustomEvent( int type )
inside a widget; the widget will continue to receive mouse events
until the last mouse button is released.
- A mouse event tqcontains a special accept flag that indicates
+ A mouse event contains a special accept flag that indicates
whether the receiver wants the event. You should call
TQMouseEvent::ignore() if the mouse event is not handled by your
widget. A mouse event is propagated up the tqparent widget chain
@@ -620,7 +620,7 @@ TQt::ButtonState TQMouseEvent::stateAfter() const
/*!
\class TQWheelEvent tqevent.h
- \brief The TQWheelEvent class tqcontains parameters that describe a wheel event.
+ \brief The TQWheelEvent class contains parameters that describe a wheel event.
\ingroup events
@@ -629,7 +629,7 @@ TQt::ButtonState TQMouseEvent::stateAfter() const
distance is provided by delta(). The functions pos() and globalPos() return
the mouse pointer location at the time of the event.
- A wheel event tqcontains a special accept flag that indicates
+ A wheel event contains a special accept flag that indicates
whether the receiver wants the event. You should call
TQWheelEvent::accept() if you handle the wheel event; otherwise it
will be sent to the tqparent widget.
@@ -656,7 +656,7 @@ TQt::ButtonState TQMouseEvent::stateAfter() const
The globalPos() is initialized to TQCursor::pos(), i.e. \a pos,
which is usually (but not always) right. Use the other constructor
if you need to specify the global position explicitly. \a delta
- tqcontains the rotation distance, \a state holds the keyboard
+ contains the rotation distance, \a state holds the keyboard
modifier flags at the time of the event and \a orient holds the
wheel's orientation.
@@ -674,7 +674,7 @@ TQWheelEvent::TQWheelEvent( const TQPoint &pos, int delta, int state, Orientatio
\fn TQWheelEvent::TQWheelEvent( const TQPoint &pos, const TQPoint& globalPos, int delta, int state, Orientation orient = Vertical )
Constructs a wheel event object. The position when the event
- occurred is given in \a pos and \a globalPos. \a delta tqcontains
+ occurred is given in \a pos and \a globalPos. \a delta contains
the rotation distance, \a state holds the keyboard modifier flags
at the time of the event and \a orient holds the wheel's
orientation.
@@ -820,14 +820,14 @@ TQWheelEvent::TQWheelEvent( const TQPoint &pos, int delta, int state, Orientatio
/*!
\class TQKeyEvent tqevent.h
- \brief The TQKeyEvent class tqcontains describes a key event.
+ \brief The TQKeyEvent class contains describes a key event.
\ingroup events
Key events occur when a key is pressed or released when a widget
has keyboard input focus.
- A key event tqcontains a special accept flag that indicates whether the
+ A key event contains a special accept flag that indicates whether the
receiver wants the key event. You should call TQKeyEvent::ignore() if the
key press or release event is not handled by your widget. A key event is
propagated up the tqparent widget chain until a widget accepts it with
@@ -1292,7 +1292,7 @@ TQt::ButtonState TQKeyEvent::stateAfter() const
/*!
\class TQFocusEvent tqevent.h
- \brief The TQFocusEvent class tqcontains event parameters for widget focus
+ \brief The TQFocusEvent class contains event parameters for widget focus
events.
\ingroup events
@@ -1396,7 +1396,7 @@ void TQFocusEvent::resetReason()
/*!
\class TQPaintEvent tqevent.h
- \brief The TQPaintEvent class tqcontains event parameters for paint events.
+ \brief The TQPaintEvent class contains event parameters for paint events.
\ingroup events
@@ -1404,7 +1404,7 @@ void TQFocusEvent::resetReason()
for instance when part of a widget is exposed because a covering
widget is moved.
- The event tqcontains a region() that needs to be updated, and a
+ The event contains a region() that needs to be updated, and a
rect() that is the bounding rectangle of that region. Both are
provided because many widgets can't make much use of region(), and
rect() can be much faster than region().boundingRect(). Painting
@@ -1468,7 +1468,7 @@ void TQFocusEvent::resetReason()
/*!
\class TQMoveEvent tqevent.h
- \brief The TQMoveEvent class tqcontains event parameters for move events.
+ \brief The TQMoveEvent class contains event parameters for move events.
\ingroup events
@@ -1503,7 +1503,7 @@ void TQFocusEvent::resetReason()
/*!
\class TQResizeEvent tqevent.h
- \brief The TQResizeEvent class tqcontains event parameters for resize events.
+ \brief The TQResizeEvent class contains event parameters for resize events.
\ingroup events
@@ -1537,7 +1537,7 @@ void TQFocusEvent::resetReason()
/*!
\class TQCloseEvent tqevent.h
- \brief The TQCloseEvent class tqcontains parameters that describe a close event.
+ \brief The TQCloseEvent class contains parameters that describe a close event.
\ingroup events
@@ -1694,7 +1694,7 @@ void TQFocusEvent::resetReason()
/*!
\class TQContextMenuEvent tqevent.h
- \brief The TQContextMenuEvent class tqcontains parameters that describe a context menu event.
+ \brief The TQContextMenuEvent class contains parameters that describe a context menu event.
\ingroup events
@@ -1963,7 +1963,7 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
commonly used visual cue is to use a dotted underline.
After the user has selected the final string, an IMEndEvent will
- be sent to the widget. The event tqcontains the final string the
+ be sent to the widget. The event contains the final string the
user selected, and could be empty if they canceled the
composition. This string should be accepted as the final text the
user entered, and the intermediate composition string should be
@@ -1980,7 +1980,7 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
Constructs a new TQIMEvent with the accept flag set to FALSE. \a
type can be one of TQEvent::IMStartEvent, TQEvent::IMComposeEvent
- or TQEvent::IMEndEvent. \a text tqcontains the current compostion
+ or TQEvent::IMEndEvent. \a text contains the current compostion
string and \a cursorPosition the current position of the cursor
inside \a text.
*/
@@ -1989,7 +1989,7 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
\fn const TQString &TQIMEvent::text() const
Returns the composition text. This is a null string for an
- IMStartEvent, and tqcontains the final accepted string (which may be
+ IMStartEvent, and contains the final accepted string (which may be
empty) in the IMEndEvent.
*/
@@ -2045,7 +2045,7 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
/*!
\class TQTabletEvent tqevent.h
- \brief The TQTabletEvent class tqcontains parameters that describe a Tablet
+ \brief The TQTabletEvent class contains parameters that describe a Tablet
event.
\ingroup events
@@ -2060,7 +2060,7 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
you to get the pressure(), the xTilt() and yTilt(), as well as the
type of tqdevice being used with tqdevice() (see \l{TabletDevice}).
- A tablet event tqcontains a special accept flag that indicates
+ A tablet event contains a special accept flag that indicates
whether the receiver wants the event. You should call
TQTabletEvent::accept() if you handle the tablet event; otherwise
it will be sent to the tqparent widget.
@@ -2096,9 +2096,9 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
int pressure, int xTilt, int yTilt,
const TQPair<int,int> &uId )
Construct a tablet event of type \a t. The position of when the event occurred is given
- int \a pos and \a globalPos. \a tqdevice tqcontains the \link TabletDevice tqdevice type\endlink,
- \a pressure tqcontains the pressure exerted on the \a tqdevice, \a xTilt and \a yTilt contain
- \a tqdevice's degree of tilt from the X and Y axis respectively. The \a uId tqcontains an
+ int \a pos and \a globalPos. \a tqdevice contains the \link TabletDevice tqdevice type\endlink,
+ \a pressure contains the pressure exerted on the \a tqdevice, \a xTilt and \a yTilt contain
+ \a tqdevice's degree of tilt from the X and Y axis respectively. The \a uId contains an
event id.
On Irix, \a globalPos will contain the high-resolution coordinates received from the
@@ -2128,10 +2128,10 @@ TQTabletEvent::TQTabletEvent( Type t, const TQPoint &pos, const TQPoint &globalP
Constructs a tablet event object. The position when the event
occurred is is given in \a pos and \a globalPos. \a tqdevice
- tqcontains the \link TabletDevice tqdevice type\endlink, \a pressure
- tqcontains the pressure exerted on the \a tqdevice, \a xTilt and \a
+ contains the \link TabletDevice tqdevice type\endlink, \a pressure
+ contains the pressure exerted on the \a tqdevice, \a xTilt and \a
yTilt contain the \a tqdevice's degrees of tilt from the X and Y
- axis respectively. The \a uId tqcontains an event id.
+ axis respectively. The \a uId contains an event id.
On Irix, \a globalPos will contain the high-resolution coordinates
received from the tablet tqdevice driver, instead of from the
@@ -2279,8 +2279,8 @@ TQTabletEvent::TQTabletEvent( Type t, const TQPoint &pos, const TQPoint &globalP
Returns a unique ID for the current tqdevice. It is possible to
generate a unique ID for any Wacom&copy; tqdevice. This makes it
possible to differentiate between multiple tqdevices being used at
- the same time on the tablet. The \c first member tqcontains a value
- for the type, the \c second member tqcontains a physical ID obtained
+ the same time on the tablet. The \c first member contains a value
+ for the type, the \c second member contains a physical ID obtained
from the tqdevice. Each combination of these values is unique. Note:
for different platforms, the \c first value is different due to
different driver implementations.
@@ -2288,7 +2288,7 @@ TQTabletEvent::TQTabletEvent( Type t, const TQPoint &pos, const TQPoint &globalP
/*!
\class TQChildEvent tqevent.h
- \brief The TQChildEvent class tqcontains event parameters for child object
+ \brief The TQChildEvent class contains event parameters for child object
events.
\ingroup events
@@ -2358,7 +2358,7 @@ TQTabletEvent::TQTabletEvent( Type t, const TQPoint &pos, const TQPoint &globalP
TQt-defined events types, the value should be at least as large as
the value of the "User" entry in the TQEvent::Type enum.
- TQCustomEvent tqcontains a generic void* data member that may be used
+ TQCustomEvent contains a generic void* data member that may be used
for transferring event-specific data to the receiver. Note that
since events are normally delivered asynchronously, the data
pointer, if used, must remain valid until the event has been
diff --git a/tqtinterface/qt4/src/kernel/tqevent.h b/tqtinterface/qt4/src/kernel/tqevent.h
index 224759f..143c766 100644
--- a/tqtinterface/qt4/src/kernel/tqevent.h
+++ b/tqtinterface/qt4/src/kernel/tqevent.h
@@ -271,7 +271,7 @@ inline int TQIMEvent::selectionLength() const
// This class is rather closed at the moment. If you need to create your
// own DND event objects, write to qt-bugs@trolltech.com and we'll try to
-// tqfind a way to extend it so it covers your needs.
+// find a way to extend it so it covers your needs.
class TQ_EXPORT TQDropEvent : public TQEvent, public TQMimeSource
{
@@ -835,7 +835,7 @@ inline int TQIMEvent::selectionLength() const
// This class is rather closed at the moment. If you need to create your
// own DND event objects, write to qt-bugs@trolltech.com and we'll try to
-// tqfind a way to extend it so it covers your needs.
+// find a way to extend it so it covers your needs.
class TQ_EXPORT TQDropEvent : public TQEvent, public TQMimeSource
{
diff --git a/tqtinterface/qt4/src/kernel/tqeventloop_unix.cpp b/tqtinterface/qt4/src/kernel/tqeventloop_unix.cpp
index a865978..53ca943 100644
--- a/tqtinterface/qt4/src/kernel/tqeventloop_unix.cpp
+++ b/tqtinterface/qt4/src/kernel/tqeventloop_unix.cpp
@@ -151,7 +151,7 @@ static inline timeval operator-( const timeval &t1, const timeval &t2 )
// The timerBitVec array is used for keeping track of timer identifiers.
//
-static int allocTimerId() // tqfind avail timer identifier
+static int allocTimerId() // find avail timer identifier
{
int i = timerBitVec->size()-1;
while ( i >= 0 && (*timerBitVec)[i] )
@@ -312,7 +312,7 @@ bool qKillTimer( int id )
id > (int)timerBitVec->size() || !timerBitVec->testBit( id-1 ) )
return FALSE; // not init'd or invalid timer
t = timerList->first();
- while ( t && t->id != id ) // tqfind timer info in list
+ while ( t && t->id != id ) // find timer info in list
t = timerList->next();
if ( t ) { // id found
timerBitVec->clearBit( id-1 ); // set timer inactive
@@ -440,7 +440,7 @@ void TQEventLoop::unregisterSocketNotifier( TQSocketNotifier *notifier )
d->sn_pending_list.removeRef( sn ); // remove from activation list
list->remove(); // remove notifier found above
- if ( d->sn_highest == sockfd ) { // tqfind highest fd
+ if ( d->sn_highest == sockfd ) { // find highest fd
d->sn_highest = -1;
for ( int i=0; i<3; i++ ) {
if ( d->sn_vec[i].list && ! d->sn_vec[i].list->isEmpty() )
@@ -557,7 +557,7 @@ int TQEventLoop::activateTimers()
n_act++;
TQTimerEvent e( t->id );
TQApplication::sendEvent( t->obj, &e ); // send event
- if ( timerList->tqfindRef( begin ) == -1 )
+ if ( timerList->findRef( begin ) == -1 )
begin = 0;
}
return n_act;
diff --git a/tqtinterface/qt4/src/kernel/tqeventloop_x11.cpp b/tqtinterface/qt4/src/kernel/tqeventloop_x11.cpp
index 2c60d10..61b6117 100644
--- a/tqtinterface/qt4/src/kernel/tqeventloop_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqeventloop_x11.cpp
@@ -85,7 +85,7 @@ void qt_install_preselect_handler( VFPTR handler )
void qt_remove_preselect_handler( VFPTR handler )
{
if ( qt_preselect_handler ) {
- TQVFuncList::Iterator it = qt_preselect_handler->tqfind( handler );
+ TQVFuncList::Iterator it = qt_preselect_handler->find( handler );
if ( it != qt_preselect_handler->end() )
qt_preselect_handler->remove( it );
}
@@ -99,7 +99,7 @@ void qt_install_postselect_handler( VFPTR handler )
void qt_remove_postselect_handler( VFPTR handler )
{
if ( qt_postselect_handler ) {
- TQVFuncList::Iterator it = qt_postselect_handler->tqfind( handler );
+ TQVFuncList::Iterator it = qt_postselect_handler->find( handler );
if ( it != qt_postselect_handler->end() )
qt_postselect_handler->remove( it );
}
@@ -305,7 +305,7 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags )
if (nsel == -1) {
if (errno == EBADF) {
- // it seems a socket notifier has a bad fd... tqfind out
+ // it seems a socket notifier has a bad fd... find out
// which one it is and disable it
fd_set fdset;
zerotm.tv_sec = zerotm.tv_usec = 0l;
diff --git a/tqtinterface/qt4/src/kernel/tqfocusdata.cpp b/tqtinterface/qt4/src/kernel/tqfocusdata.cpp
index 0259940..d46553e 100644
--- a/tqtinterface/qt4/src/kernel/tqfocusdata.cpp
+++ b/tqtinterface/qt4/src/kernel/tqfocusdata.cpp
@@ -47,7 +47,7 @@
\ingroup misc
- This read-only list always tqcontains at least one widget (i.e. the
+ This read-only list always contains at least one widget (i.e. the
top-level widget). It provides a simple cursor which can be reset
to the current focus widget using home(), or moved to its
neighboring widgets using next() and prev(). You can also retrieve
@@ -65,7 +65,7 @@
When reimplementing TQWidget::focusNextPrevChild() to provide
special focus flow, you will usually call TQWidget::focusData() to
retrieve the focus data stored at the top-level widget. A
- top-level widget's focus data tqcontains the focus list for its
+ top-level widget's focus data contains the focus list for its
hierarchy of widgets.
The cursor may change at any time.
@@ -94,7 +94,7 @@
*/
TQWidget* TQFocusData::home()
{
- tqfocusWidgets.tqfind(it.current());
+ tqfocusWidgets.find(it.current());
return tqfocusWidgets.current();
}
diff --git a/tqtinterface/qt4/src/kernel/tqfont.cpp b/tqtinterface/qt4/src/kernel/tqfont.cpp
index 48fe5a0..5570afd 100644
--- a/tqtinterface/qt4/src/kernel/tqfont.cpp
+++ b/tqtinterface/qt4/src/kernel/tqfont.cpp
@@ -275,7 +275,7 @@ TQFontEngineData::~TQFontEngineData()
Use TQApplication::setFont() to set the application's default font.
If a choosen X11 font does not include all the characters that
- need to be displayed, TQFont will try to tqfind the characters in the
+ need to be displayed, TQFont will try to find the characters in the
nearest equivalent fonts. When a TQPainter draws a character from a
font the TQFont will report whether or not it has the character; if
it does not, TQPainter will draw an unfilled square.
@@ -328,7 +328,7 @@ TQFontEngineData::~TQFontEngineData()
Under the X Window System you can set a font using its system
specific name with setRawName().
- Loading fonts can be expensive, especially on X11. TQFont tqcontains
+ Loading fonts can be expensive, especially on X11. TQFont contains
extensive optimizations to make the copying of TQFont objects fast,
and to cache the results of the slow window system functions it
depends upon.
@@ -337,9 +337,9 @@ TQFontEngineData::~TQFontEngineData()
The font matching algorithm works as follows:
\list 1
\i The specified font family is searched for.
- \i If not found, the tqstyleHint() is used to select a tqreplacement
+ \i If not found, the tqstyleHint() is used to select a replacement
family.
- \i Each tqreplacement font family is searched for.
+ \i Each replacement font family is searched for.
\i If none of these are found or there was no tqstyleHint(), "helvetica"
will be searched for.
\i If "helvetica" isn't found TQt will try the lastResortFamily().
@@ -395,7 +395,7 @@ TQFontEngineData::~TQFontEngineData()
TQString family = info.family();
\endcode
- To tqfind out font metrics use a TQFontMetrics object, e.g.
+ To find out font metrics use a TQFontMetrics object, e.g.
\code
TQFontMetrics fm( f1 );
int pixelWidth = fm.width( "How many pixels wide is this text?" );
@@ -427,7 +427,7 @@ TQFontEngineData::~TQFontEngineData()
\value Greek covers ancient and modern Greek and Coptic.
\value Cyrillic covers the Slavic and non-Slavic languages using
cyrillic alphabets.
- \value Armenian tqcontains the Armenian alphabet used with the
+ \value Armenian contains the Armenian alphabet used with the
Armenian language.
\value Georgian covers at least the language Georgian.
\value Runic covers the known constituents of the Runic alphabets used
@@ -512,14 +512,14 @@ TQFontEngineData::~TQFontEngineData()
Symbols:
- \value CurrencySymbols tqcontains currency symbols not encoded in other scripts.
+ \value CurrencySymbols contains currency symbols not encoded in other scripts.
\value LetterlikeSymbols consists of symbols derived from
ordinary letters of an alphabetical script.
\value NumberForms are provided for compatibility with other
existing character sets.
\value MathematicalOperators consists of encodings for operators,
relations and other symbols like arrows used in a mathematical context.
- \value TechnicalSymbols tqcontains representations for control
+ \value TechnicalSymbols contains representations for control
codes, the space symbol, APL symbols and other symbols
mainly used in the context of electronic data processing.
\value GeometricSymbols covers block elements and geometric tqshapes.
@@ -890,7 +890,7 @@ int TQFont::weight() const
same as, the scales used in Windows or CSS. A weight of 0 is
ultralight, whilst 99 will be an extremely black.
- This enum tqcontains the predefined font weights:
+ This enum contains the predefined font weights:
\value Light 25
\value Normal 50
@@ -1071,7 +1071,7 @@ TQFont::StyleHint TQFont::tqstyleHint() const
\enum TQFont::StyleHint
Style hints are used by the \link #fontmatching font
- matching\endlink algorithm to tqfind an appropriate default family
+ matching\endlink algorithm to find an appropriate default family
if a selected font family is not available.
\value AnyStyle leaves the font matching algorithm to choose the
@@ -1097,7 +1097,7 @@ TQFont::StyleHint TQFont::tqstyleHint() const
The style strategy tells the \link #fontmatching font
matching\endlink algorithm what type of fonts should be used to
- tqfind an appropriate default family.
+ find an appropriate default family.
The following strategies are available:
@@ -1446,7 +1446,7 @@ TQString TQFont::substitute( const TQString &familyName )
{
initFontSubst();
- TQStringList *list = fontSubst->tqfind(familyName);
+ TQStringList *list = fontSubst->find(familyName);
if (list && list->count() > 0)
return *(list->at(0));
@@ -1467,7 +1467,7 @@ TQStringList TQFont::substitutes(const TQString &familyName)
{
initFontSubst();
- TQStringList ret, *list = fontSubst->tqfind(familyName);
+ TQStringList ret, *list = fontSubst->find(familyName);
if (list)
ret += *list;
return ret;
@@ -1485,13 +1485,13 @@ void TQFont::insertSubstitution(const TQString &familyName,
{
initFontSubst();
- TQStringList *list = fontSubst->tqfind(familyName);
+ TQStringList *list = fontSubst->find(familyName);
if (! list) {
list = new TQStringList;
fontSubst->insert(familyName, list);
}
- if (! list->tqcontains(substituteName))
+ if (! list->contains(substituteName))
list->append(substituteName);
}
@@ -1507,7 +1507,7 @@ void TQFont::insertSubstitutions(const TQString &familyName,
{
initFontSubst();
- TQStringList *list = fontSubst->tqfind(familyName);
+ TQStringList *list = fontSubst->find(familyName);
if (! list) {
list = new TQStringList;
fontSubst->insert(familyName, list);
@@ -1515,7 +1515,7 @@ void TQFont::insertSubstitutions(const TQString &familyName,
TQStringList::ConstIterator it = substituteNames.begin();
while (it != substituteNames.end()) {
- if (! list->tqcontains(*it))
+ if (! list->contains(*it))
list->append(*it);
it++;
}
@@ -1665,12 +1665,12 @@ bool TQFont::fromString(const TQString &descrip)
int count = 0;
TQString l[11];
int from = 0;
- int to = descrip.tqfind( ',' );
+ int to = descrip.find( ',' );
while ( to > 0 && count < 11 ) {
l[count] = descrip.mid( from, to-from );
count++;
from = to+1;
- to = descrip.tqfind( ',', from );
+ to = descrip.find( ',', from );
}
#endif // TQT_NO_STRINGLIST
if ( !count || ( count > 2 && count < 9 ) || count > 11 ) {
@@ -1873,7 +1873,7 @@ TQDataStream &operator>>( TQDataStream &s, TQFont &font )
possible.
For each character, you can get its width(), leftBearing() and
- rightBearing() and tqfind out whether it is in the font using
+ rightBearing() and find out whether it is in the font using
inFont(). You can also treat the character as a string, and use
the string functions on it.
@@ -3039,9 +3039,9 @@ void TQFontCache::clear()
}
#endif
-TQFontEngineData *TQFontCache::tqfindEngineData( const Key &key ) const
+TQFontEngineData *TQFontCache::findEngineData( const Key &key ) const
{
- EngineDataCache::ConstIterator it = engineDataCache.tqfind( key ),
+ EngineDataCache::ConstIterator it = engineDataCache.find( key ),
end = engineDataCache.end();
if ( it == end ) return 0;
@@ -3057,9 +3057,9 @@ void TQFontCache::insertEngineData( const Key &key, TQFontEngineData *engineData
increaseCost( sizeof( TQFontEngineData ) );
}
-TQFontEngine *TQFontCache::tqfindEngine( const Key &key )
+TQFontEngine *TQFontCache::findEngine( const Key &key )
{
- EngineCache::Iterator it = engineCache.tqfind( key ),
+ EngineCache::Iterator it = engineCache.find( key ),
end = engineCache.end();
if ( it == end ) return 0;
@@ -3231,7 +3231,7 @@ void TQFontCache::timerEvent( TQTimerEvent * )
// print out all engines
for ( int i = 0; i < TQFont::LastPrivateScript; ++i ) {
if ( ! it.data()->engines[i] ) continue;
- FC_DEBUG( " tqcontains %p", it.data()->engines[i] );
+ FC_DEBUG( " contains %p", it.data()->engines[i] );
}
# endif // TQ_WS_X11 || TQ_WS_WIN
#endif // TQFONTCACHE_DEBUG
diff --git a/tqtinterface/qt4/src/kernel/tqfont_x11.cpp b/tqtinterface/qt4/src/kernel/tqfont_x11.cpp
index 84ea2d6..fda292f 100644
--- a/tqtinterface/qt4/src/kernel/tqfont_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqfont_x11.cpp
@@ -168,7 +168,7 @@ TQString qt_fallback_font_family( TQFont::Script script )
if ( fallbackMap ) {
FallbackMap::ConstIterator it, end = fallbackMap->end();
- it = fallbackMap->tqfind( script );
+ it = fallbackMap->find( script );
if ( it != end )
ret = it.data();
}
@@ -370,7 +370,7 @@ void TQFontPrivate::load( TQFont::Script script )
TQFontCache::Key key( req, TQFont::NoScript, screen, painttqdevice );
// look for the requested font in the engine data cache
- engineData = TQFontCache::instance->tqfindEngineData( key );
+ engineData = TQFontCache::instance->findEngineData( key );
if ( ! engineData ) {
// create a new one
@@ -407,12 +407,12 @@ void TQFontPrivate::load( TQFont::Script script )
// append the default fallback font for the specified script
TQString fallback = qt_fallback_font_family( script );
- if ( ! fallback.isEmpty() && ! family_list.tqcontains( fallback ) )
+ if ( ! fallback.isEmpty() && ! family_list.contains( fallback ) )
family_list << fallback;
// add the default family
TQString defaultFamily = TQApplication::font().family();
- if ( ! family_list.tqcontains( defaultFamily ) )
+ if ( ! family_list.contains( defaultFamily ) )
family_list << defaultFamily;
// add TQFont::defaultFamily() to the list, for compatibility with
@@ -421,14 +421,14 @@ void TQFontPrivate::load( TQFont::Script script )
#endif // TQT_XFT2
}
- // null family means tqfind the first font matching the specified script
+ // null family means find the first font matching the specified script
family_list << TQString::null;
TQStringList::ConstIterator it = family_list.begin(), end = family_list.end();
for ( ; ! engine && it != end; ++it ) {
req.family = *it;
- engine = TQFontDatabase::tqfindFont( script, this, req );
+ engine = TQFontDatabase::findFont( script, this, req );
if ( engine ) {
if ( engine->type() != TQFontEngine::Box )
break;
@@ -543,7 +543,7 @@ void TQFont::setRawName( const TQString &name )
Returns the "last resort" font family name.
The current implementation tries a wide variety of common fonts,
- returning the first one it tqfinds. Is is possible that no family is
+ returning the first one it finds. Is is possible that no family is
found in which case a null string is returned.
\sa lastResortFont()
@@ -583,7 +583,7 @@ TQString TQFont::defaultFamily() const
This is used if even the last resort family is not available. It
returns \e something, almost no matter what. The current
implementation tries a wide variety of common fonts, returning the
- first one it tqfinds. The implementation may change at any time.
+ first one it finds. The implementation may change at any time.
*/
static const char * const tryFonts[] = {
"-*-helvetica-medium-r-*-*-*-120-*-*-*-*-*-*",
@@ -625,7 +625,7 @@ static bool fontExists( const TQString &fontName )
"fixed" or "system".
The current implementation tries a wide variety of common fonts,
- returning the first one it tqfinds. The implementation may change
+ returning the first one it finds. The implementation may change
at any time, but this function will always return a string
containing something.
diff --git a/tqtinterface/qt4/src/kernel/tqfontdata_p.h b/tqtinterface/qt4/src/kernel/tqfontdata_p.h
index b6d7a54..36b709f 100644
--- a/tqtinterface/qt4/src/kernel/tqfontdata_p.h
+++ b/tqtinterface/qt4/src/kernel/tqfontdata_p.h
@@ -240,7 +240,7 @@ public:
typedef TQMap<Key,TQFontEngineData*> EngineDataCache;
EngineDataCache engineDataCache;
- TQFontEngineData *tqfindEngineData( const Key &key ) const;
+ TQFontEngineData *findEngineData( const Key &key ) const;
void insertEngineData( const Key &key, TQFontEngineData *engineData );
// TQFontEngine cache
@@ -256,7 +256,7 @@ public:
typedef TQMap<Key,Engine> EngineCache;
EngineCache engineCache;
- TQFontEngine *tqfindEngine( const Key &key );
+ TQFontEngine *findEngine( const Key &key );
void insertEngine( const Key &key, TQFontEngine *engine );
#if defined(TQ_WS_WIN) || defined(TQ_WS_TQWS)
diff --git a/tqtinterface/qt4/src/kernel/tqfontdatabase.cpp b/tqtinterface/qt4/src/kernel/tqfontdatabase.cpp
index e70be03..219aa98 100644
--- a/tqtinterface/qt4/src/kernel/tqfontdatabase.cpp
+++ b/tqtinterface/qt4/src/kernel/tqfontdatabase.cpp
@@ -126,16 +126,16 @@ static int getFontWeight( const TQString &weightString )
if (s == "light")
return TQFont::Light;
- if (s.tqcontains("bold")) {
- if (s.tqcontains("demi"))
+ if (s.contains("bold")) {
+ if (s.contains("demi"))
return (int) TQFont::DemiBold;
return (int) TQFont::Bold;
}
- if (s.tqcontains("light"))
+ if (s.contains("light"))
return (int) TQFont::Light;
- if (s.tqcontains("black"))
+ if (s.contains("black"))
return (int) TQFont::Black;
return (int) TQFont::Normal;
@@ -261,9 +261,9 @@ TQtFontStyle::Key::Key( const TQString &styleString )
{
weight = getFontWeight( styleString );
- if ( styleString.tqcontains( "Italic" ) )
+ if ( styleString.contains( "Italic" ) )
italic = TRUE;
- else if ( styleString.tqcontains( "Oblique" ) )
+ else if ( styleString.contains( "Oblique" ) )
oblique = TRUE;
}
@@ -715,7 +715,7 @@ static TQtFontStyle *bestStyle(TQtFontFoundry *foundry, const TQtFontStyle::Key
}
#if defined(TQ_WS_X11)
-static TQtFontEncoding *tqfindEncoding(TQFont::Script script, int styleStrategy,
+static TQtFontEncoding *findEncoding(TQFont::Script script, int styleStrategy,
TQtFontSize *size, int force_encoding_id)
{
TQtFontEncoding *encoding = 0;
@@ -734,11 +734,11 @@ static TQtFontEncoding *tqfindEncoding(TQFont::Script script, int styleStrategy,
if (encoding) return encoding;
}
- // Xft not available, tqfind an XLFD font, trying the default encoding first
+ // Xft not available, find an XLFD font, trying the default encoding first
encoding = size->encodingID(TQFontPrivate::defaultEncodingID);
if (!encoding || !scripts_for_xlfd_encoding[encoding->encoding][script]) {
- // tqfind the first encoding that supports the requested script
+ // find the first encoding that supports the requested script
encoding = 0;
for (int x = 0; !encoding && x < size->count; ++x) {
const int enc = size->encodings[x].encoding;
@@ -821,13 +821,13 @@ unsigned int bestFoundry( TQFont::Script script, unsigned int score, int styleSt
TQtFontEncoding *encoding = 0;
#endif
- // 4. tqfind closest size match
+ // 4. find closest size match
if (! size) {
unsigned int distance = ~0u;
for (int x = 0; x < style->count; ++x) {
#ifdef TQ_WS_X11
encoding =
- tqfindEncoding(script, styleStrategy, style->pixelSizes + x, force_encoding_id);
+ findEncoding(script, styleStrategy, style->pixelSizes + x, force_encoding_id);
if (!encoding) {
FM_DEBUG(" size %3d does not support the script we want",
style->pixelSizes[x].pixelSize);
@@ -861,7 +861,7 @@ unsigned int bestFoundry( TQFont::Script script, unsigned int score, int styleSt
#ifdef TQ_WS_X11
if (size) {
- encoding = tqfindEncoding(script, styleStrategy, size, force_encoding_id);
+ encoding = findEncoding(script, styleStrategy, size, force_encoding_id);
if (!encoding) size = 0;
}
if ( ! encoding ) {
@@ -929,7 +929,7 @@ unsigned int bestFoundry( TQFont::Script script, unsigned int score, int styleSt
\internal
*/
TQFontEngine *
-TQFontDatabase::tqfindFont( TQFont::Script script, const TQFontPrivate *fp,
+TQFontDatabase::findFont( TQFont::Script script, const TQFontPrivate *fp,
const TQFontDef &request, int force_encoding_id )
{
#ifndef TQ_WS_X11
@@ -961,7 +961,7 @@ TQFontDatabase::tqfindFont( TQFont::Script script, const TQFontPrivate *fp,
#endif
fp->painttqdevice
);
- fe = TQFontCache::instance->tqfindEngine( key );
+ fe = TQFontCache::instance->findEngine( key );
if ( fe ) return fe;
}
@@ -988,13 +988,13 @@ TQFontDatabase::tqfindFont( TQFont::Script script, const TQFontPrivate *fp,
static TQFont::Script defaultHan;
TQCString locale = setlocale(LC_ALL, NULL);
- if (locale.tqcontains("ko"))
+ if (locale.contains("ko"))
defaultHan = TQFont::Han_Korean;
- else if (locale.tqcontains("zh_TW") || locale.tqcontains("zh_HK"))
+ else if (locale.contains("zh_TW") || locale.contains("zh_HK"))
defaultHan = TQFont::Han_TraditionalChinese;
- else if (locale.tqcontains("zh"))
+ else if (locale.contains("zh"))
defaultHan = TQFont::Han_SimplifiedChinese;
- else if (locale.tqcontains("ja"))
+ else if (locale.contains("ja"))
defaultHan = TQFont::Han_Japanese;
else
defaultHan = TQFont::Han; // don't change
@@ -1003,7 +1003,7 @@ TQFontDatabase::tqfindFont( TQFont::Script script, const TQFontPrivate *fp,
}
#endif
- FM_DEBUG( "TQFontDatabase::tqfindFont\n"
+ FM_DEBUG( "TQFontDatabase::findFont\n"
" request:\n"
" family: %s [%s], script: %d (%s)\n"
" weight: %d, italic: %d\n"
@@ -1104,7 +1104,7 @@ TQFontDatabase::tqfindFont( TQFont::Script script, const TQFontPrivate *fp,
#endif // TQ_WS_X11
// as we know the script is supported, we can be sure
- // to tqfind a matching font here.
+ // to find a matching font here.
unsigned int newscore =
bestFoundry( override_script, score, request.styleStrategy,
try_family, foundry_name, styleKey, request.pixelSize, pitch,
@@ -1206,7 +1206,7 @@ TQFontDatabase::tqfindFont( TQFont::Script script, const TQFontPrivate *fp,
TQFontDef def = request;
if (def.family.isEmpty()) {
def.family = fp->request.family;
- def.family = def.family.left(def.family.tqfind(','));
+ def.family = def.family.left(def.family.find(','));
}
TQFontCache::Key key( def, script,
#ifdef TQ_WS_WIN
@@ -1748,7 +1748,7 @@ TQValueList<int> TQFontDatabase::pointSizes( const TQString &family,
#else
const uint pointSize = size->pixelSize; // embedded uses 72dpi
#endif
- if (! sizes.tqcontains(pointSize))
+ if (! sizes.contains(pointSize))
sizes.append(pointSize);
}
}
@@ -1849,7 +1849,7 @@ TQValueList<int> TQFontDatabase::smoothSizes( const TQString &family,
#else
const uint pointSize = size->pixelSize; // embedded uses 72dpi
#endif
- if (! sizes.tqcontains(pointSize))
+ if (! sizes.contains(pointSize))
sizes.append( pointSize );
}
}
@@ -2476,23 +2476,23 @@ TQString TQFontDatabase::scriptSample(TQFont::Script script)
This makes sense of the font family name:
- 1) if the family name tqcontains a '-' (ie. "Adobe-Courier"), then we
+ 1) if the family name contains a '-' (ie. "Adobe-Courier"), then we
split at the '-', and use the string as the foundry, and the string to
the right as the family
- 2) if the family name tqcontains a '[' and a ']', then we take the text
+ 2) if the family name contains a '[' and a ']', then we take the text
between the square brackets as the foundry, and the text before the
square brackets as the family (ie. "Arial [Monotype]")
*/
void TQFontDatabase::parseFontName(const TQString &name, TQString &foundry, TQString &family)
{
- if ( name.tqcontains('-') ) {
- int i = name.tqfind('-');
+ if ( name.contains('-') ) {
+ int i = name.find('-');
foundry = name.left( i );
family = name.right( name.length() - i - 1 );
- } else if ( name.tqcontains('[') && name.tqcontains(']')) {
- int i = name.tqfind('[');
- int li = name.tqfindRev(']');
+ } else if ( name.contains('[') && name.contains(']')) {
+ int i = name.find('[');
+ int li = name.findRev(']');
if (i < li) {
foundry = name.mid(i + 1, li - i - 1);
diff --git a/tqtinterface/qt4/src/kernel/tqfontdatabase.h b/tqtinterface/qt4/src/kernel/tqfontdatabase.h
index f2556ef..e6af3f8 100644
--- a/tqtinterface/qt4/src/kernel/tqfontdatabase.h
+++ b/tqtinterface/qt4/src/kernel/tqfontdatabase.h
@@ -83,7 +83,7 @@ public:
TQFontDatabase() : QFontDatabase() {}
// private:
-// static inline TQFontEngine *tqfindFont( TQFont::Script script, const QFontPrivate *fp, const QFontDef &request, int force_encoding_id = -1 ) { return findFont(script, fp, request, force_encoding_id); }
+// static inline TQFontEngine *findFont( TQFont::Script script, const QFontPrivate *fp, const QFontDef &request, int force_encoding_id = -1 ) { return findFont(script, fp, request, force_encoding_id); }
static inline TQString scriptName( TQFont::Script s ) { return writingSystemName((QFontDatabase::WritingSystem)s); }
static inline TQString scriptSample( TQFont::Script s ) { return writingSystemSample((QFontDatabase::WritingSystem)s); }
@@ -196,7 +196,7 @@ public:
private:
#if defined(TQ_WS_X11) || defined(TQ_WS_WIN)
- static TQFontEngine *tqfindFont( TQFont::Script script, const TQFontPrivate *fp,
+ static TQFontEngine *findFont( TQFont::Script script, const TQFontPrivate *fp,
const TQFontDef &request, int force_encoding_id = -1 );
#endif // TQ_WS_X11
diff --git a/tqtinterface/qt4/src/kernel/tqfontdatabase_x11.cpp b/tqtinterface/qt4/src/kernel/tqfontdatabase_x11.cpp
index 97cb544..66c2362 100644
--- a/tqtinterface/qt4/src/kernel/tqfontdatabase_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqfontdatabase_x11.cpp
@@ -488,7 +488,7 @@ int qt_xlfd_encoding_id( const char *encoding )
++e;
}
}
- // qDebug( "couldn't tqfind encoding %s", encoding );
+ // qDebug( "couldn't find encoding %s", encoding );
return -1;
}
@@ -955,8 +955,8 @@ static bool loadXftFont( FcPattern* font )
return false;
// capitalize( value );
rawName = familyName = TQString::fromUtf8(value);
- familyName.tqreplace('-', ' ');
- familyName.tqreplace("/", "");
+ familyName.replace('-', ' ');
+ familyName.replace("/", "");
slant_value = XFT_SLANT_ROMAN;
weight_value = XFT_WEIGHT_MEDIUM;
@@ -1134,7 +1134,7 @@ static TQ_UINT16 getGlyphIndex( unsigned char *table, TQ_UINT16 format, unsigned
static inline void checkXftCoverage( TQtFontFamily *family )
{
#ifdef _POSIX_MAPPED_FILES
- TQCString ext = family->fontFilename.mid( family->fontFilename.tqfindRev( '.' ) ).lower();
+ TQCString ext = family->fontFilename.mid( family->fontFilename.findRev( '.' ) ).lower();
if ( family->fontFileIndex == 0 && ( ext == ".ttf" || ext == ".otf" ) ) {
void *map;
// qDebug("using own ttf code coverage checking of '%s'!", family->name.latin1() );
@@ -1350,8 +1350,8 @@ static void load( const TQString &family = TQString::null, int script = -1 )
for (int i = 0; i < fonts->nfont; i++)
loadXftFont( fonts->fonts[i] );
XftFontSetDestroy (fonts);
- if (mfamily.tqcontains(' ')) {
- mfamily.tqreplace(TQChar(' '), TQChar('-'));
+ if (mfamily.contains(' ')) {
+ mfamily.replace(TQChar(' '), TQChar('-'));
goto redo;
}
f->fullyLoaded = TRUE;
@@ -1658,7 +1658,7 @@ TQFontEngine *loadEngine( TQFont::Script script,
XftPattern *dup = XftPatternDuplicate( result );
XftFont *xftfs = XftFontOpenPattern( TQPaintDevice::x11AppDisplay(), dup );
- if ( ! xftfs ) // Xft couldn't tqfind a font?
+ if ( ! xftfs ) // Xft couldn't find a font?
return 0;
TQFontEngine *fe = new TQFontEngineXft( xftfs, result, symbol ? 1 : 0 );
@@ -1744,9 +1744,9 @@ TQFontEngine *loadEngine( TQFont::Script script,
static void parseFontName(const TQString &name, TQString &foundry, TQString &family)
{
- if ( name.tqcontains('[') && name.tqcontains(']')) {
- int i = name.tqfind('[');
- int li = name.tqfindRev(']');
+ if ( name.contains('[') && name.contains(']')) {
+ int i = name.find('[');
+ int li = name.findRev(']');
if (i < li) {
foundry = name.mid(i + 1, li - i - 1);
@@ -1809,7 +1809,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef
double scale = addPatternProps(pattern, key, FALSE, TRUE, fp, request);
#ifdef FONT_MATCH_DEBUG
- qDebug("original pattern tqcontains:");
+ qDebug("original pattern contains:");
FcPatternPrint(pattern);
#endif
@@ -1818,7 +1818,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef
FcConfigSubstitute(0, pattern, FcMatchPattern);
XftDefaultSubstitute(TQPaintDevice::x11AppDisplay(), TQPaintDevice::x11AppScreen(), pattern);
-// qDebug("1: pattern tqcontains:");
+// qDebug("1: pattern contains:");
// FcPatternPrint(pattern);
{
@@ -1829,7 +1829,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef
// append the default fallback font for the specified script
extern TQString qt_fallback_font_family( TQFont::Script );
TQString fallback = qt_fallback_font_family( script );
- if ( ! fallback.isEmpty() && ! family_list.tqcontains( fallback ) ) {
+ if ( ! fallback.isEmpty() && ! family_list.contains( fallback ) ) {
TQCString cs = fallback.utf8();
value.u.s = (const FcChar8 *)cs.data();
FcPatternAddWeak(pattern, FC_FAMILY, value, FcTrue);
@@ -1837,7 +1837,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef
// add the default family
TQString defaultFamily = TQApplication::font().family();
- if ( ! family_list.tqcontains( defaultFamily ) ) {
+ if ( ! family_list.contains( defaultFamily ) ) {
TQCString cs = defaultFamily.utf8();
value.u.s = (const FcChar8 *)cs.data();
FcPatternAddWeak(pattern, FC_FAMILY, value, FcTrue);
@@ -1846,7 +1846,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef
// add TQFont::defaultFamily() to the list, for compatibility with
// previous versions
defaultFamily = TQApplication::font().defaultFamily();
- if ( ! family_list.tqcontains( defaultFamily ) ) {
+ if ( ! family_list.contains( defaultFamily ) ) {
TQCString cs = defaultFamily.utf8();
value.u.s = (const FcChar8 *)cs.data();
FcPatternAddWeak(pattern, FC_FAMILY, value, FcTrue);
@@ -1865,7 +1865,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef
}
#ifdef FONT_MATCH_DEBUG
- printf("final pattern tqcontains:\n");
+ printf("final pattern contains:\n");
FcPatternPrint(pattern);
#endif
@@ -1889,7 +1889,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef
#ifdef FONT_MATCH_DEBUG
if( use_fontsort ) {
- printf("fontset tqcontains:\n");
+ printf("fontset contains:\n");
for (int i = 0; i < fs->nfont; ++i) {
FcPattern *test = fs->fonts[i];
FcChar8 *fam;
@@ -1950,7 +1950,7 @@ static TQFontEngine *loadFontConfigFont(const TQFontPrivate *fp, const TQFontDef
XftFont *xftfs = XftFontOpenPattern( TQPaintDevice::x11AppDisplay(), dup );
if ( !xftfs ) {
- // Xft couldn't tqfind a font?
+ // Xft couldn't find a font?
qDebug("couldn't open fontconfigs chosen font with Xft!!!");
} else {
fe = new TQFontEngineXft( xftfs, result, 0 );
diff --git a/tqtinterface/qt4/src/kernel/tqfontengine_p.h b/tqtinterface/qt4/src/kernel/tqfontengine_p.h
index cba46a7..37aba1c 100644
--- a/tqtinterface/qt4/src/kernel/tqfontengine_p.h
+++ b/tqtinterface/qt4/src/kernel/tqfontengine_p.h
@@ -466,7 +466,7 @@ public:
TQt::HANDLE handle() const { return ((TQFontEngineXLFD *) _engines[0])->handle(); }
private:
- void tqfindEngine( const TQChar &ch );
+ void findEngine( const TQChar &ch );
TQFontEngine **_engines;
int _count;
diff --git a/tqtinterface/qt4/src/kernel/tqfontengine_x11.cpp b/tqtinterface/qt4/src/kernel/tqfontengine_x11.cpp
index 8d76e0b..02cf60c 100644
--- a/tqtinterface/qt4/src/kernel/tqfontengine_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqfontengine_x11.cpp
@@ -653,7 +653,7 @@ void TQFontEngineXLFD::draw( TQPainter *p, int x, int y, const TQTextEngine *eng
}
matrix += ']';
//qDebug("m: %2.2f %2.2f %2.2f %2.2f, matrix=%s", p->m11(), p->m12(), p->m21(), p->m22(), matrix.data());
- xlfd_transformed.tqreplace( pos, endPos-pos, matrix );
+ xlfd_transformed.replace( pos, endPos-pos, matrix );
x_font_load_error = FALSE;
XErrorHandler old_handler = XSetErrorHandler( x_font_errorhandler );
@@ -1016,7 +1016,7 @@ TQFontEngineLatinXLFD::~TQFontEngineLatinXLFD()
_engines = 0;
}
-void TQFontEngineLatinXLFD::tqfindEngine( const TQChar &ch )
+void TQFontEngineLatinXLFD::findEngine( const TQChar &ch )
{
if ( ch.tqunicode() == 0 ) return;
@@ -1061,10 +1061,10 @@ void TQFontEngineLatinXLFD::tqfindEngine( const TQChar &ch )
const int enc_id = qt_xlfd_encoding_id( alternate_encodings[which] );
TQFontDef req = fontDef;
- TQFontEngine *engine = TQFontDatabase::tqfindFont( TQFont::Latin, 0, req, enc_id );
+ TQFontEngine *engine = TQFontDatabase::findFont( TQFont::Latin, 0, req, enc_id );
if ( ! engine ) {
req.family = TQString::null;
- engine = TQFontDatabase::tqfindFont( TQFont::Latin, 0, req, enc_id );
+ engine = TQFontDatabase::findFont( TQFont::Latin, 0, req, enc_id );
if ( ! engine ) return;
}
engine->setScale( scale() );
@@ -1188,7 +1188,7 @@ TQFontEngineLatinXLFD::stringToCMap( const TQChar *str, int len, glyph_t *glyphs
continue;
TQFontEngineLatinXLFD *that = (TQFontEngineLatinXLFD *) this;
- that->tqfindEngine( str[i] );
+ that->findEngine( str[i] );
glyphs[i] = (uc == 0x20ac ? euroIndex : that->glyphIndices[uc]);
if ( advances )
advances[i] = (uc == 0x20ac ? euroAdvance : glyphAdvances[uc]);
@@ -1414,7 +1414,7 @@ bool TQFontEngineLatinXLFD::canRender( const TQChar *string, int len )
if (euroIndex)
continue;
- tqfindEngine(string[i]);
+ findEngine(string[i]);
if (euroIndex)
continue;
}
@@ -1423,7 +1423,7 @@ bool TQFontEngineLatinXLFD::canRender( const TQChar *string, int len )
}
if ( glyphIndices[string[i].tqunicode()] != 0 ) continue;
- tqfindEngine( string[i] );
+ findEngine( string[i] );
if ( glyphIndices[string[i].tqunicode()] == 0 ) {
all = FALSE;
break;
@@ -2334,7 +2334,7 @@ static const OTScripts ot_scripts [] = {
// Malayalam,
{ FT_MAKE_TAG( 'm', 'l', 'y', 'm' ), 1 },
// Sinhala,
- // ### could not tqfind any OT specs on this
+ // ### could not find any OT specs on this
{ FT_MAKE_TAG( 's', 'i', 'n', 'h' ), 1 },
// Thai,
{ FT_MAKE_TAG( 't', 'h', 'a', 'i' ), 1 },
@@ -2497,7 +2497,7 @@ void TQOpenType::selectScript(unsigned int script, const Features *features)
return;
assert(script < TQFont::NScripts);
- // tqfind script in our list of supported scripts.
+ // find script in our list of supported scripts.
uint tag = ot_scripts[script].tag;
if (gsub && features) {
diff --git a/tqtinterface/qt4/src/kernel/tqiconset.cpp b/tqtinterface/qt4/src/kernel/tqiconset.cpp
index e5769f8..09a1126 100644
--- a/tqtinterface/qt4/src/kernel/tqiconset.cpp
+++ b/tqtinterface/qt4/src/kernel/tqiconset.cpp
@@ -57,7 +57,7 @@ static short widths[2] = { 22, 32 };
static short heights[2] = { 22, 32 };
enum TQIconSetIconOrigin {
- SuppliedFileName, // 'fileName' tqcontains the name of the file
+ SuppliedFileName, // 'fileName' contains the name of the file
SuppliedPixmap, // 'pixmap' is a pointer to the user-supplied pixmap
Manufactured, // 'pixmap' is a factory-generated pixmap (or 0)
Generated // 'pixmap' is a TQIconSet-generated pixmap (or 0)
@@ -763,7 +763,7 @@ void TQIconSet::setIconSize( Size which, const TQSize& size )
*/
const TQSize& TQIconSet::iconSize( Size which )
{
- // ### tqreplace 'const TQSize&' with TQSize in TQt 4 and simply this code
+ // ### replace 'const TQSize&' with TQSize in TQt 4 and simply this code
static TQSize size;
size = TQSize( widths[(int) which - 1], heights[(int) which - 1] );
return size;
diff --git a/tqtinterface/qt4/src/kernel/tqimage.cpp b/tqtinterface/qt4/src/kernel/tqimage.cpp
index 0c97e64..2a99fc9 100644
--- a/tqtinterface/qt4/src/kernel/tqimage.cpp
+++ b/tqtinterface/qt4/src/kernel/tqimage.cpp
@@ -657,9 +657,9 @@ static TQString fbname( const TQString &fileName ) // get file basename (sort of
TQString s = fileName;
if ( !s.isEmpty() ) {
int i;
- if ( (i = s.tqfindRev('/')) >= 0 )
+ if ( (i = s.findRev('/')) >= 0 )
s = s.mid( i );
- if ( (i = s.tqfindRev('\\')) >= 0 )
+ if ( (i = s.findRev('\\')) >= 0 )
s = s.mid( i );
TQRegExp r( TQString::tqfromLatin1("[a-zA-Z][a-zA-Z0-9_]*") );
int p = r.search( s );
@@ -705,14 +705,14 @@ static void swapPixel01( TQImage *image ) // 1-bpp: swap 0 and 1 pixels
/*!
\class TQImageIO tqimage.h
- \brief The TQImageIO class tqcontains parameters for loading and
+ \brief The TQImageIO class contains parameters for loading and
saving images.
\ingroup images
\ingroup graphics
\ingroup io
- TQImageIO tqcontains a TQIODevice object that is used for image data
+ TQImageIO contains a TQIODevice object that is used for image data
I/O. The programmer can install new image file formats in addition
to those that TQt provides.
@@ -834,11 +834,11 @@ TQImageHandler::TQImageHandler( const char *f, const char *h, const TQCString& f
: format(f), header(TQString::tqfromLatin1(h))
{
text_mode = Untranslated;
- if ( fl.tqcontains('t') )
+ if ( fl.contains('t') )
text_mode = TranslateIn;
- else if ( fl.tqcontains('T') )
+ else if ( fl.contains('T') )
text_mode = TranslateInOut;
- obsolete = fl.tqcontains('O');
+ obsolete = fl.contains('O');
read_image = r;
write_image = w;
}
@@ -1328,7 +1328,7 @@ TQStrList TQImageIO::inputFormats()
while ( p ) {
if ( p->read_image
&& !p->obsolete
- && !result.tqcontains(p->format) )
+ && !result.contains(p->format) )
{
result.inSort(p->format);
}
@@ -1356,7 +1356,7 @@ TQStrList TQImageIO::outputFormats()
while ( p ) {
if ( p->write_image
&& !p->obsolete
- && !result.tqcontains(p->format) )
+ && !result.contains(p->format) )
{
result.inSort(p->format);
}
@@ -2684,15 +2684,15 @@ static bool read_xpm_string( TQCString &buf, TQIODevice *d,
static int nextColorSpec(const TQCString & buf)
{
- int i = buf.tqfind(" c ");
+ int i = buf.find(" c ");
if (i < 0)
- i = buf.tqfind(" g ");
+ i = buf.find(" g ");
if (i < 0)
- i = buf.tqfind(" g4 ");
+ i = buf.find(" g4 ");
if (i < 0)
- i = buf.tqfind(" m ");
+ i = buf.find(" m ");
if (i < 0)
- i = buf.tqfind(" s ");
+ i = buf.find(" s ");
return i;
}
@@ -2717,7 +2717,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc
d = iio ? iio->ioDevice() : 0;
d->readLine( buf.data(), buf.size() ); // "/* XPM */"
TQRegExp r( TQString::tqfromLatin1("/\\*.XPM.\\*/") );
- if ( buf.tqfind(r) == -1 )
+ if ( buf.find(r) == -1 )
return; // bad magic
} else if ( !source ) {
return;
@@ -2909,7 +2909,7 @@ static void write_xpm_image( TQImageIO * iio )
TQRgb * yp = (TQRgb *)image.scanLine( y );
for( x=0; x<w; x++ ) {
TQRgb color = *(yp + x);
- if ( !colorMap.tqcontains(color) )
+ if ( !colorMap.contains(color) )
colorMap.insert( color, ncolors++ );
}
}
@@ -3159,7 +3159,7 @@ TQImage TQImage::createHeuristicMask( bool clipTight ) const {
*(image.scanLine(y) + x) = 19;
\endcode
- 32-bpp images ignore the color table; instead, each pixel tqcontains
+ 32-bpp images ignore the color table; instead, each pixel contains
the RGB triplet. 24 bits contain the RGB value; the most
significant byte is reserved for the alpha buffer.
@@ -3232,7 +3232,7 @@ TQImage TQImage::createHeuristicMask( bool clipTight ) const {
Color/Mono preference (ignored for TQBitmap)
\value AutoColor (default) - If the image has \link
- TQImage::depth() depth\endlink 1 and tqcontains only
+ TQImage::depth() depth\endlink 1 and contains only
black and white pixels, the pixmap becomes monochrome.
\value ColorOnly The pixmap is dithered/converted to the
\link TQPixmap::defaultDepth() native display depth\endlink.
@@ -4080,7 +4080,7 @@ void TQImage::fill( uint pixel )
If the depth is not 32, the argument \a invertAlpha has no
meaning.
- Note that inverting an 8-bit image means to tqreplace all pixels
+ Note that inverting an 8-bit image means to replace all pixels
using color index \e i with a pixel using color index 255 minus \e
i. Similarly for a 1-bit image. The color table is not changed.
@@ -4216,7 +4216,7 @@ void TQImage::setNumColors( int numColors )
it. The default setting is disabled.
An 8-bpp image has 8-bit pixels. A pixel is an index into the
- \link color() color table\endlink, which tqcontains 32-bit color
+ \link color() color table\endlink, which contains 32-bit color
values. In a 32-bpp image, the 32-bit pixels are the color values.
This 32-bit value is encoded as follows: The lower 24 bits are
@@ -5969,7 +5969,7 @@ TQImage TQImage::scaleHeight( int h ) const
The transformation \a matrix is internally adjusted to compensate
for unwanted translation, i.e. xForm() returns the smallest image
- that tqcontains all the transformed points of the original image.
+ that contains all the transformed points of the original image.
\sa scale() TQPixmap::xForm() TQPixmap::trueMatrix() TQWMatrix
*/
@@ -6697,9 +6697,9 @@ static TQString fbname( const TQString &fileName ) // get file basename (sort of
TQString s = fileName;
if ( !s.isEmpty() ) {
int i;
- if ( (i = s.tqfindRev('/')) >= 0 )
+ if ( (i = s.findRev('/')) >= 0 )
s = s.mid( i );
- if ( (i = s.tqfindRev('\\')) >= 0 )
+ if ( (i = s.findRev('\\')) >= 0 )
s = s.mid( i );
TQRegExp r( TQString::tqfromLatin1("[a-zA-Z][a-zA-Z0-9_]*") );
int p = r.search( s );
@@ -6745,14 +6745,14 @@ static void swapPixel01( TQImage *image ) // 1-bpp: swap 0 and 1 pixels
/*!
\class TQImageIO tqimage.h
- \brief The TQImageIO class tqcontains parameters for loading and
+ \brief The TQImageIO class contains parameters for loading and
saving images.
\ingroup images
\ingroup graphics
\ingroup io
- TQImageIO tqcontains a TQIODevice object that is used for image data
+ TQImageIO contains a TQIODevice object that is used for image data
I/O. The programmer can install new image file formats in addition
to those that TQt provides.
@@ -6871,11 +6871,11 @@ TQImageHandler::TQImageHandler( const char *f, const char *h, const TQCString& f
: format(f), header(TQString::tqfromLatin1(h))
{
text_mode = Untranslated;
- if ( fl.tqcontains('t') )
+ if ( fl.contains('t') )
text_mode = TranslateIn;
- else if ( fl.tqcontains('T') )
+ else if ( fl.contains('T') )
text_mode = TranslateInOut;
- obsolete = fl.tqcontains('O');
+ obsolete = fl.contains('O');
read_image = r;
write_image = w;
}
@@ -7365,7 +7365,7 @@ TQStrList TQImageIO::inputFormats()
while ( p ) {
if ( p->read_image
&& !p->obsolete
- && !result.tqcontains(p->format) )
+ && !result.contains(p->format) )
{
result.inSort(p->format);
}
@@ -7393,7 +7393,7 @@ TQStrList TQImageIO::outputFormats()
while ( p ) {
if ( p->write_image
&& !p->obsolete
- && !result.tqcontains(p->format) )
+ && !result.contains(p->format) )
{
result.inSort(p->format);
}
@@ -8722,15 +8722,15 @@ static bool read_xpm_string( TQCString &buf, TQIODevice *d,
static int nextColorSpec(const TQCString & buf)
{
- int i = buf.tqfind(" c ");
+ int i = buf.find(" c ");
if (i < 0)
- i = buf.tqfind(" g ");
+ i = buf.find(" g ");
if (i < 0)
- i = buf.tqfind(" g4 ");
+ i = buf.find(" g4 ");
if (i < 0)
- i = buf.tqfind(" m ");
+ i = buf.find(" m ");
if (i < 0)
- i = buf.tqfind(" s ");
+ i = buf.find(" s ");
return i;
}
@@ -8755,7 +8755,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc
d = iio ? iio->ioDevice() : 0;
d->readLine( buf.data(), buf.size() ); // "/* XPM */"
TQRegExp r( TQString::tqfromLatin1("/\\*.XPM.\\*/") );
- if ( buf.tqfind(r) == -1 )
+ if ( buf.find(r) == -1 )
return; // bad magic
} else if ( !source ) {
return;
@@ -8947,7 +8947,7 @@ static void write_xpm_image( TQImageIO * iio )
TQRgb * yp = (TQRgb *)image.scanLine( y );
for( x=0; x<w; x++ ) {
TQRgb color = *(yp + x);
- if ( !colorMap.tqcontains(color) )
+ if ( !colorMap.contains(color) )
colorMap.insert( color, ncolors++ );
}
}
@@ -9488,7 +9488,7 @@ TQValueList<TQImageTextKeyLang> TQImage::textList() const
void TQImage::setText(const char* key, const char* lang, const TQString& s)
{
TQImageTextKeyLang x(key,lang);
- misc().text_lang.tqreplace(x,s);
+ misc().text_lang.replace(x,s);
}
#endif // TQT_NO_IMAGE_TEXT
diff --git a/tqtinterface/qt4/src/kernel/tqjpegio.cpp b/tqtinterface/qt4/src/kernel/tqjpegio.cpp
index 20b7b17..dbaa301 100644
--- a/tqtinterface/qt4/src/kernel/tqjpegio.cpp
+++ b/tqtinterface/qt4/src/kernel/tqjpegio.cpp
@@ -225,7 +225,7 @@ void read_jpeg_image(TQImageIO* iio)
char sModeStr[1024] = "";
TQ_ScaleMode sMode;
- if ( params.tqcontains( "GetHeaderInformation" ) ) {
+ if ( params.contains( "GetHeaderInformation" ) ) {
// Create TQImage's without allocating the data
if ( cinfo.output_components == 3 || cinfo.output_components == 4) {
@@ -237,7 +237,7 @@ void read_jpeg_image(TQImageIO* iio)
}
- } else if ( params.tqcontains( "Scale" ) ) {
+ } else if ( params.contains( "Scale" ) ) {
sscanf( params.latin1(), "Scale( %i, %i, %1023s )",
&sWidth, &sHeight, sModeStr );
diff --git a/tqtinterface/qt4/src/kernel/tqkeysequence.cpp b/tqtinterface/qt4/src/kernel/tqkeysequence.cpp
index f34f697..7b06b22 100644
--- a/tqtinterface/qt4/src/kernel/tqkeysequence.cpp
+++ b/tqtinterface/qt4/src/kernel/tqkeysequence.cpp
@@ -217,7 +217,7 @@ TQKeySequence::TQKeySequence()
with commas, e.g. "Alt+X,Ctrl+S,Q".
This contructor is typically used with \link TQObject::tr() tr
- \endlink(), so that accelerator keys can be tqreplaced in
+ \endlink(), so that accelerator keys can be replaced in
translations:
\code
@@ -359,7 +359,7 @@ int TQKeySequence::assign( TQString keyseq )
// We MUST use something to seperate each sequence, and space
// does not cut it, since some of the key names have space
// in them.. (Let's hope no one translate with a comma in it:)
- p = keyseq.tqfind( ',' );
+ p = keyseq.find( ',' );
if ( -1 != p ) {
if ( ',' == keyseq[p+1] ) // e.g. 'Ctrl+,, Shift+,,'
p++;
@@ -414,7 +414,7 @@ int TQKeySequence::decodeString( const TQString& str )
modifs << ModifKeyName( META, "meta+" ) << ModifKeyName( ALT, TQAccel::tqtr("Meta").lower().append('+') );
TQString sl = accel.lower();
for( TQValueList<ModifKeyName>::iterator it = modifs.begin(); it != modifs.end(); ++it ) {
- if ( sl.tqcontains( (*it).name ) ) {
+ if ( sl.contains( (*it).name ) ) {
ret |= (*it).qt_key;
#ifndef TQT_NO_REGEXP
accel.remove( TQRegExp(TQRegExp::escape((*it).name), FALSE) );
@@ -425,7 +425,7 @@ int TQKeySequence::decodeString( const TQString& str )
}
}
- int p = accel.tqfindRev( '+', str.length() - 2 ); // -2 so that Ctrl++ works
+ int p = accel.findRev( '+', str.length() - 2 ); // -2 so that Ctrl++ works
if( p > 0 )
accel = accel.mid( p + 1 );
@@ -523,7 +523,7 @@ TQString TQKeySequence::encodeString( int key )
}
++i;
}
- // If we can't tqfind the actual translatable keyname,
+ // If we can't find the actual translatable keyname,
// fall back on the tqunicode representation of it...
// Or else characters like Key_aring may not get displayed
// ( Really depends on you locale )
diff --git a/tqtinterface/qt4/src/kernel/tqlayout.cpp b/tqtinterface/qt4/src/kernel/tqlayout.cpp
index 9a74fce..9c3132a 100644
--- a/tqtinterface/qt4/src/kernel/tqlayout.cpp
+++ b/tqtinterface/qt4/src/kernel/tqlayout.cpp
@@ -1538,7 +1538,7 @@ public:
int heightForWidth( int, int, int );
int minimumHeightForWidth( int, int, int );
- bool tqfindWidget( TQWidget* w, int *row, int *col );
+ bool findWidget( TQWidget* w, int *row, int *col );
inline void getNextPos( int &row, int &col ) { row = nextR; col = nextC; }
inline uint count() const
@@ -1550,7 +1550,7 @@ private:
void recalcHFW( int w, int s );
void addHfwData ( TQGridBox *box, int width );
void init();
- TQSize tqfindSize( TQCOORD TQLayoutStruct::*, int ) const;
+ TQSize findSize( TQCOORD TQLayoutStruct::*, int ) const;
void addData( TQGridBox *b, bool r = TRUE, bool c = TRUE );
void setSize( int rows, int cols );
void setupLayoutData( int space );
@@ -1683,7 +1683,7 @@ int TQGridLayoutData::minimumHeightForWidth( int w, int margin, int spacing )
return has_hfw ? (hfw_minheight + 2*margin) : -1;
}
-bool TQGridLayoutData::tqfindWidget( TQWidget* w, int *row, int *col )
+bool TQGridLayoutData::findWidget( TQWidget* w, int *row, int *col )
{
TQPtrListIterator<TQGridBox> it( things );
TQGridBox * box;
@@ -1716,7 +1716,7 @@ bool TQGridLayoutData::tqfindWidget( TQWidget* w, int *row, int *col )
return FALSE;
}
-TQSize TQGridLayoutData::tqfindSize( TQCOORD TQLayoutStruct::*size, int spacer ) const
+TQSize TQGridLayoutData::findSize( TQCOORD TQLayoutStruct::*size, int spacer ) const
{
TQGridLayoutData *that = (TQGridLayoutData *)this;
that->setupLayoutData( spacer );
@@ -1767,17 +1767,17 @@ TQ_SPExpandData TQGridLayoutData::expanding( int spacing )
QSize TQGridLayoutData::tqsizeHint( int spacer ) const
{
- return tqfindSize( &TQLayoutStruct::tqsizeHint, spacer );
+ return findSize( &TQLayoutStruct::tqsizeHint, spacer );
}
QSize TQGridLayoutData::tqmaximumSize( int spacer ) const
{
- return tqfindSize( &TQLayoutStruct::tqmaximumSize, spacer );
+ return findSize( &TQLayoutStruct::tqmaximumSize, spacer );
}
QSize TQGridLayoutData::tqminimumSize( int spacer ) const
{
- return tqfindSize( &TQLayoutStruct::tqminimumSize, spacer );
+ return findSize( &TQLayoutStruct::tqminimumSize, spacer );
}
void TQGridLayoutData::setSize( int r, int c )
@@ -2526,9 +2526,9 @@ int TQGridLayout::minimumHeightForWidth( int w ) const
Note: if a widget spans multiple rows/columns, the top-left cell
is returned.
*/
-bool TQGridLayout::tqfindWidget( TQWidget* w, int *row, int *col )
+bool TQGridLayout::findWidget( TQWidget* w, int *row, int *col )
{
- return data->tqfindWidget( w, row, col );
+ return data->findWidget( w, row, col );
}
/*!
@@ -3419,7 +3419,7 @@ void TQBoxLayout::addItem( QLayoutItem *item )
\warning Does not call TQLayout::insertChildLayout() if \a item is
a TQLayout.
- \sa addItem(), tqfindWidget()
+ \sa addItem(), findWidget()
*/
void TQBoxLayout::insertItem( int index, TQLayoutItem *item )
{
@@ -3644,7 +3644,7 @@ void TQBoxLayout::addStrut( int size )
Returns the index of \a w, or -1 if \a w is not found.
*/
-int TQBoxLayout::tqfindWidget( TQWidget* w )
+int TQBoxLayout::findWidget( TQWidget* w )
{
const int n = data->list.count();
for ( int i = 0; i < n; i++ ) {
diff --git a/tqtinterface/qt4/src/kernel/tqlayout.h b/tqtinterface/qt4/src/kernel/tqlayout.h
index 5423cad..38dd33e 100644
--- a/tqtinterface/qt4/src/kernel/tqlayout.h
+++ b/tqtinterface/qt4/src/kernel/tqlayout.h
@@ -1011,7 +1011,7 @@ public:
#endif // USE_QT4
protected:
- bool tqfindWidget( TQWidget* w, int *r, int *c );
+ bool findWidget( TQWidget* w, int *r, int *c );
void add( TQLayoutItem*, int row, int col );
private:
@@ -1077,7 +1077,7 @@ public:
// TQLayoutIterator iterator();
void setGeometry( const TQRect& );
- int tqfindWidget( TQWidget* w );
+ int findWidget( TQWidget* w );
#ifdef USE_QT4
diff --git a/tqtinterface/qt4/src/kernel/tqlayoutengine.cpp b/tqtinterface/qt4/src/kernel/tqlayoutengine.cpp
index 7dca5e0..7833b27 100644
--- a/tqtinterface/qt4/src/kernel/tqlayoutengine.cpp
+++ b/tqtinterface/qt4/src/kernel/tqlayoutengine.cpp
@@ -59,7 +59,7 @@ static inline int fRound( int i ) {
is computed mirror-reversed, and it's the caller's responsibility
do reverse the values before use.
- chain tqcontains input and output parameters describing the tqgeometry.
+ chain contains input and output parameters describing the tqgeometry.
count is the count of items in the chain; pos and space give the
interval (relative to parentWidget topLeft).
*/
diff --git a/tqtinterface/qt4/src/kernel/tqmetaobject.cpp b/tqtinterface/qt4/src/kernel/tqmetaobject.cpp
index 09d8439..6b2b17f 100644
--- a/tqtinterface/qt4/src/kernel/tqmetaobject.cpp
+++ b/tqtinterface/qt4/src/kernel/tqmetaobject.cpp
@@ -406,7 +406,7 @@ const TQMetaData* TQMetaObject::signal( int index, bool super ) const
[FIXME]: Superclass handling is badly broken
*/
-int TQMetaObject::tqfindSlot( const char* n, bool super ) const
+int TQMetaObject::findSlot( const char* n, bool super ) const
{
// TQStrList l( FALSE );
// int m = methodCount();
@@ -420,7 +420,7 @@ int TQMetaObject::tqfindSlot( const char* n, bool super ) const
// }
// return -1;
- if (super) printf("[WARNING] In TQMetaObject::tqfindSlot(), superclasses are not being searched for the slot\n\r");
+ if (super) printf("[WARNING] In TQMetaObject::findSlot(), superclasses are not being searched for the slot\n\r");
return indexOfSlot(normalizedSignature(n));
}
@@ -431,7 +431,7 @@ int TQMetaObject::tqfindSlot( const char* n, bool super ) const
[FIXME]: Superclass handling is badly broken
*/
-int TQMetaObject::tqfindSignal( const char* n, bool super ) const
+int TQMetaObject::findSignal( const char* n, bool super ) const
{
// TQStrList l( FALSE );
// int m = methodCount();
@@ -445,7 +445,7 @@ int TQMetaObject::tqfindSignal( const char* n, bool super ) const
// }
// return -1;
- if (super) printf("[WARNING] In TQMetaObject::tqfindSignal(), superclasses are not being searched for the signal\n\r");
+ if (super) printf("[WARNING] In TQMetaObject::findSignal(), superclasses are not being searched for the signal\n\r");
return indexOfSignal(normalizedSignature(n));
}
@@ -498,7 +498,7 @@ const TQMetaProperty* TQMetaObject::property( int index, bool super ) const
return tqsuperClass()->property( index, super );
}
-int TQMetaObject::tqfindProperty( const char *name, bool super ) const {
+int TQMetaObject::findProperty( const char *name, bool super ) const {
TQ_UNUSED(name);
return indexOfProperty(name);
}
@@ -621,7 +621,7 @@ const TQMetaEnum* TQMetaObject::enumerator( const char* name, bool super ) const
/*!
\class TQMetaObject tqmetaobject.h
- \brief The TQMetaObject class tqcontains meta information about TQt objects.
+ \brief The TQMetaObject class contains meta information about TQt objects.
\ingroup objectmodel
@@ -632,7 +632,7 @@ const TQMetaEnum* TQMetaObject::enumerator( const char* name, bool super ) const
This class is not normally required for application programming.
But if you write meta applications, such as scripting engines or
- GUI builders, you might tqfind these functions useful:
+ GUI builders, you might find these functions useful:
\list
\i className() to get the name of a class.
\i superClassName() to get the name of the superclass.
@@ -952,17 +952,17 @@ const TQMetaData* TQMetaObject::signal( int index, bool super ) const
If \a super is TRUE, inherited Q_SIGNALS are included.
*/
-int TQMetaObject::tqfindSignal( const char* n, bool super ) const
+int TQMetaObject::findSignal( const char* n, bool super ) const
{
const TQMetaObject *mo = this;
int offset = -1;
do {
- const TQMetaData *md = mo->signalDict ? mo->signalDict->tqfind( n ) : 0;
+ const TQMetaData *md = mo->signalDict ? mo->signalDict->find( n ) : 0;
if ( md ) {
#if defined(TQT_CHECK_RANGE)
if ( offset != -1 ) {
- qWarning( "TQMetaObject::tqfindSignal:%s: Conflict with %s::%s",
+ qWarning( "TQMetaObject::findSignal:%s: Conflict with %s::%s",
className(), mo->className(), n );
return offset;
}
@@ -991,14 +991,14 @@ int TQMetaObject::tqfindSignal( const char* n, bool super ) const
If \a super is TRUE, inherited Q_SLOTS are included.
*/
-int TQMetaObject::tqfindSlot( const char* n, bool super ) const
+int TQMetaObject::findSlot( const char* n, bool super ) const
{
- const TQMetaData *md = slotDict ? slotDict->tqfind( n ) : 0;
+ const TQMetaData *md = slotDict ? slotDict->find( n ) : 0;
if ( md )
return slotOffset() + ( md - slotData );
if ( !super || !superclass)
return -1;
- return superclass->tqfindSlot( n, super );
+ return superclass->findSlot( n, super );
}
/*!\internal
@@ -1149,7 +1149,7 @@ const TQMetaProperty* TQMetaObject::property( int index, bool super ) const
\sa property(), propertyNames()
*/
-int TQMetaObject::tqfindProperty( const char *name, bool super ) const
+int TQMetaObject::findProperty( const char *name, bool super ) const
{
for( int i = 0; i < d->numPropData; ++i ) {
if ( d->propData[i].isValid() && qstrcmp( d->propData[i].name(), name ) == 0 ) {
@@ -1158,7 +1158,7 @@ int TQMetaObject::tqfindProperty( const char *name, bool super ) const
}
if ( !super || !superclass )
return -1;
- return superclass->tqfindProperty( name, super );
+ return superclass->findProperty( name, super );
}
/*! \internal
@@ -1192,7 +1192,7 @@ const TQMetaProperty* TQMetaObject::resolveProperty( const TQMetaProperty* p ) c
{
if ( !superclass )
return 0;
- return superclass->property( superclass->tqfindProperty( p->n, TRUE ), TRUE );
+ return superclass->property( superclass->findProperty( p->n, TRUE ), TRUE );
}
/*!\internal
@@ -1207,7 +1207,7 @@ int TQMetaObject::resolveProperty( int index ) const
if ( !superclass )
return -1;
const TQMetaProperty* p = d->propData + ( index - propertyOffset() );
- return superclass->tqfindProperty( p->n, TRUE );
+ return superclass->findProperty( p->n, TRUE );
}
@@ -1342,7 +1342,7 @@ TQMetaObject *TQMetaObject::tqmetaObject( const char *class_name )
TQMutexLocker( tqt_global_mutexpool ?
tqt_global_mutexpool->get( &qt_metaobjects ) : 0 );
#endif // TQT_THREAD_SUPPORT
- TQtStaticMetaObjectFunction func = (TQtStaticMetaObjectFunction)qt_metaobjects->tqfind( class_name );
+ TQtStaticMetaObjectFunction func = (TQtStaticMetaObjectFunction)qt_metaobjects->find( class_name );
if ( func )
return func();
return 0;
@@ -1357,7 +1357,7 @@ bool TQMetaObject::hasMetaObject( const char *class_name )
TQMutexLocker( tqt_global_mutexpool ?
tqt_global_mutexpool->get( &qt_metaobjects ) : 0 );
#endif // TQT_THREAD_SUPPORT
- return !!qt_metaobjects->tqfind( class_name );
+ return !!qt_metaobjects->find( class_name );
}
#ifndef TQT_NO_PROPERTIES
diff --git a/tqtinterface/qt4/src/kernel/tqmetaobject.h b/tqtinterface/qt4/src/kernel/tqmetaobject.h
index 5502743..f6e1631 100644
--- a/tqtinterface/qt4/src/kernel/tqmetaobject.h
+++ b/tqtinterface/qt4/src/kernel/tqmetaobject.h
@@ -138,7 +138,7 @@ public:
TQStrList signalNames( bool super = FALSE ) const;
#ifndef TQT_NO_PROPERTIES
- int tqfindProperty( const char *name, bool super = FALSE ) const;
+ int findProperty( const char *name, bool super = FALSE ) const;
TQMetaObject *tqsuperClass() const;
const char *tqsuperClassName() const;
TQStrList propertyNames( bool super = FALSE ) const;
@@ -150,8 +150,8 @@ public:
const TQMetaData *slot( int index, bool super = FALSE ) const;
const TQMetaData *signal( int index, bool super = FALSE ) const;
- int tqfindSlot( const char *, bool super = FALSE ) const;
- int tqfindSignal( const char *, bool super = FALSE ) const;
+ int findSlot( const char *, bool super = FALSE ) const;
+ int findSignal( const char *, bool super = FALSE ) const;
int numProperties( bool super = FALSE ) const;
const TQMetaProperty *property( int index, bool super = FALSE ) const;
@@ -290,8 +290,8 @@ public:
int numSlots( bool super = FALSE ) const;
int numSignals( bool super = FALSE ) const;
- int tqfindSlot( const char *, bool super = FALSE ) const;
- int tqfindSignal( const char *, bool super = FALSE ) const;
+ int findSlot( const char *, bool super = FALSE ) const;
+ int findSignal( const char *, bool super = FALSE ) const;
const TQMetaData *slot( int index, bool super = FALSE ) const;
const TQMetaData *signal( int index, bool super = FALSE ) const;
@@ -309,7 +309,7 @@ public:
#ifndef TQT_NO_PROPERTIES
const TQMetaProperty *property( int index, bool super = FALSE ) const;
- int tqfindProperty( const char *name, bool super = FALSE ) const;
+ int findProperty( const char *name, bool super = FALSE ) const;
int indexOfProperty( const TQMetaProperty*, bool super = FALSE ) const;
const TQMetaProperty* resolveProperty( const TQMetaProperty* ) const;
int resolveProperty( int ) const;
diff --git a/tqtinterface/qt4/src/kernel/tqmime.cpp b/tqtinterface/qt4/src/kernel/tqmime.cpp
index 46d07d3..943ba55 100644
--- a/tqtinterface/qt4/src/kernel/tqmime.cpp
+++ b/tqtinterface/qt4/src/kernel/tqmime.cpp
@@ -747,7 +747,7 @@ public:
TQMessageBox) always use the default factory.
A factory can also be used as a container to store data associated
- with a name. This technique is useful whenever rich text tqcontains
+ with a name. This technique is useful whenever rich text contains
images that are stored in the program itself, not loaded from the
hard disk. Your program may, for example, define some image data
as:
@@ -817,7 +817,7 @@ TQMimeSource* TQMimeSourceFactory::dataInternal(const TQString& abs_name, const
TQString e = fi.extension(FALSE);
TQCString mimetype = "application/octet-stream";
const char* imgfmt;
- if ( extensions.tqcontains(e) )
+ if ( extensions.contains(e) )
mimetype = extensions[e].latin1();
else if ( ( imgfmt = TQImage::imageFormat( abs_name ) ) )
mimetype = TQCString("image/")+TQCString(imgfmt).lower();
@@ -833,7 +833,7 @@ TQMimeSource* TQMimeSourceFactory::dataInternal(const TQString& abs_name, const
}
}
- // we didn't tqfind the mime-source, so ask the default factory for
+ // we didn't find the mime-source, so ask the default factory for
// the mime-source (this one will iterate over all installed ones)
//
// this looks dangerous, as this dataInternal() function will be
@@ -894,7 +894,7 @@ TQMimeSource* TQMimeSourceFactory::dataInternal(const TQString& abs_name, const
*/
const TQMimeSource* TQMimeSourceFactory::data(const TQString& abs_name) const
{
- if ( d->stored.tqcontains(abs_name) )
+ if ( d->stored.contains(abs_name) )
return d->stored[abs_name];
TQMimeSource* r = 0;
@@ -987,7 +987,7 @@ void TQMimeSourceFactory::addFilePath( const TQString& p )
*/
void TQMimeSourceFactory::setExtensionType( const TQString& ext, const char* mimetype )
{
- d->extensions.tqreplace(ext, mimetype);
+ d->extensions.replace(ext, mimetype);
}
/*!
@@ -1074,9 +1074,9 @@ void TQMimeSourceFactory::setPixmap( const TQString& abs_name, const TQPixmap& p
*/
void TQMimeSourceFactory::setData( const TQString& abs_name, TQMimeSource* data )
{
- if ( d->stored.tqcontains(abs_name) )
+ if ( d->stored.contains(abs_name) )
delete d->stored[abs_name];
- d->stored.tqreplace(abs_name,data);
+ d->stored.replace(abs_name,data);
}
diff --git a/tqtinterface/qt4/src/kernel/tqmovie.cpp b/tqtinterface/qt4/src/kernel/tqmovie.cpp
index 4b77249..87a339c 100644
--- a/tqtinterface/qt4/src/kernel/tqmovie.cpp
+++ b/tqtinterface/qt4/src/kernel/tqmovie.cpp
@@ -368,7 +368,7 @@ void TQMoviePrivate::updatePixmapFromImage(const TQPoint& off,
// this frame already.
TQString key;
key.sprintf( "%08lx:%04d", ( long )this, framenumber );
- if ( !TQPixmapCache::tqfind( key, lines ) ) {
+ if ( !TQPixmapCache::find( key, lines ) ) {
lines.convertFromImage(img, TQt::ColorOnly);
TQPixmapCache::insert( key, lines );
dirty_cache = TRUE;
diff --git a/tqtinterface/qt4/src/kernel/tqnetworkprotocol.cpp b/tqtinterface/qt4/src/kernel/tqnetworkprotocol.cpp
index 83cc094..d980b35 100644
--- a/tqtinterface/qt4/src/kernel/tqnetworkprotocol.cpp
+++ b/tqtinterface/qt4/src/kernel/tqnetworkprotocol.cpp
@@ -138,7 +138,7 @@ public:
This signal is emitted after listChildren() was called and new
tqchildren (files) have been read from the list of files. \a i holds
the information about the new tqchildren. \a op is the pointer to
- the operation object which tqcontains all the information about the
+ the operation object which contains all the information about the
operation, including the state, etc.
When a protocol emits this signal, TQNetworkProtocol is smart
@@ -160,7 +160,7 @@ public:
TQNetworkProtocol automatically connects it to a slot which creates
a list of TQUrlInfo objects (with just one TQUrlInfo \a i) and emits
the newChildren() signal with this list. \a op is the pointer to
- the operation object which tqcontains all the information about the
+ the operation object which contains all the information about the
operation that has finished, including the state, etc.
This is just a convenience signal useful for implementing your own
@@ -173,7 +173,7 @@ public:
This signal is emitted when an operation finishes. This signal is
always emitted, for both success and failure. \a op is the pointer
- to the operation object which tqcontains all the information about
+ to the operation object which contains all the information about
the operation, including the state, etc. Check the state and error
code of the operation object to determine whether or not the
operation was successful.
@@ -188,7 +188,7 @@ public:
Some operations (such as listChildren()) emit this signal when
they start processing the operation. \a op is the pointer to the
- operation object which tqcontains all the information about the
+ operation object which contains all the information about the
operation, including the state, etc.
When a protocol emits this signal, TQNetworkProtocol is smart
@@ -202,7 +202,7 @@ public:
This signal is emitted when mkdir() has been succesful and the
directory has been created. \a i holds the information about the
new directory. \a op is the pointer to the operation object which
- tqcontains all the information about the operation, including the
+ contains all the information about the operation, including the
state, etc. Using op->arg( 0 ), you can get the file name of the
new directory.
@@ -217,7 +217,7 @@ public:
This signal is emitted when remove() has been succesful and the
file has been removed. \a op holds the file name of the removed
file in the first argument, accessible with op->arg( 0 ). \a op is
- the pointer to the operation object which tqcontains all the
+ the pointer to the operation object which contains all the
information about the operation, including the state, etc.
When a protocol emits this signal, TQNetworkProtocol is smart
@@ -233,7 +233,7 @@ public:
holds the original and the new file names in the first and second
arguments, accessible with op->arg( 0 ) and op->arg( 1 )
respectively. \a op is the pointer to the operation object which
- tqcontains all the information about the operation, including the
+ contains all the information about the operation, including the
state, etc.
When a protocol emits this signal, TQNetworkProtocol is smart
@@ -250,7 +250,7 @@ public:
which data is retrieved or uploaded in its first argument, and the
(raw) data in its second argument. You can get them with
op->arg( 0 ) and op->rawArg( 1 ). \a op is the pointer to the
- operation object, which tqcontains all the information about the
+ operation object, which contains all the information about the
operation, including the state, etc.
When a protocol emits this signal, TQNetworkProtocol is smart
@@ -265,7 +265,7 @@ public:
get()). \a bytesDone is how many bytes of \a bytesTotal have been
transferred. \a bytesTotal may be -1, which means that the total
number of bytes is not known. \a op is the pointer to the
- operation object which tqcontains all the information about the
+ operation object which contains all the information about the
operation, including the state, etc.
When a protocol emits this signal, TQNetworkProtocol is smart
@@ -285,7 +285,7 @@ public:
/*!
\enum TQNetworkProtocol::State
- This enum tqcontains the state that a TQNetworkOperation can have.
+ This enum contains the state that a TQNetworkOperation can have.
\value StWaiting The operation is in the TQNetworkProtocol's queue
waiting to be prcessed.
@@ -604,7 +604,7 @@ TQNetworkProtocol *TQNetworkProtocol::getNetworkProtocol( const TQString &protoc
if ( protocol.isNull() )
return 0;
- TQNetworkProtocolFactoryBase *factory = qNetworkProtocolRegister->tqfind( protocol );
+ TQNetworkProtocolFactoryBase *factory = qNetworkProtocolRegister->find( protocol );
if ( factory )
return factory->createObject();
@@ -689,7 +689,7 @@ void TQNetworkProtocol::processOperation( TQNetworkOperation *op )
at the example implementation in
examples/network/networkprotocol/nntp.cpp.
- \a op is the pointer to the operation object which tqcontains all
+ \a op is the pointer to the operation object which contains all
the information on the operation that has finished, including the
state, etc.
*/
@@ -711,7 +711,7 @@ void TQNetworkProtocol::operationListChildren( TQNetworkOperation * )
at the example implementation in
examples/network/networkprotocol/nntp.cpp.
- \a op is the pointer to the operation object which tqcontains all
+ \a op is the pointer to the operation object which contains all
the information on the operation that has finished, including the
state, etc.
*/
@@ -733,7 +733,7 @@ void TQNetworkProtocol::operationMkDir( TQNetworkOperation * )
look at the example implementation in
examples/network/networkprotocol/nntp.cpp.
- \a op is the pointer to the operation object which tqcontains all
+ \a op is the pointer to the operation object which contains all
the information on the operation that has finished, including the
state, etc.
*/
@@ -755,7 +755,7 @@ void TQNetworkProtocol::operationRemove( TQNetworkOperation * )
at the example implementation in
examples/network/networkprotocol/nntp.cpp.
- \a op is the pointer to the operation object which tqcontains all
+ \a op is the pointer to the operation object which contains all
the information on the operation that has finished, including the
state, etc.
*/
@@ -777,7 +777,7 @@ void TQNetworkProtocol::operationRename( TQNetworkOperation * )
at the example implementation in
examples/network/networkprotocol/nntp.cpp.
- \a op is the pointer to the operation object which tqcontains all
+ \a op is the pointer to the operation object which contains all
the information on the operation that has finished, including the
state, etc.
*/
@@ -799,7 +799,7 @@ void TQNetworkProtocol::operationGet( TQNetworkOperation * )
at the example implementation in
examples/network/networkprotocol/nntp.cpp.
- \a op is the pointer to the operation object which tqcontains all
+ \a op is the pointer to the operation object which contains all
the information on the operation that has finished, including the
state, etc.
*/
diff --git a/tqtinterface/qt4/src/kernel/tqobject.cpp b/tqtinterface/qt4/src/kernel/tqobject.cpp
index 9bec024..4f465d1 100644
--- a/tqtinterface/qt4/src/kernel/tqobject.cpp
+++ b/tqtinterface/qt4/src/kernel/tqobject.cpp
@@ -284,7 +284,7 @@ static TQObject* qt_spy_signal_sender = 0;
// mo = sender->tqmetaObject();
// while ( mo ) {
// s.sprintf( "%s_%s", mo->className(), sigData->name );
-// int slot = qt_preliminary_signal_spy->tqmetaObject()->tqfindSlot( s, TRUE );
+// int slot = qt_preliminary_signal_spy->tqmetaObject()->findSlot( s, TRUE );
// if ( slot >= 0 ) {
// #ifdef TQT_THREAD_SUPPORT
// // protect access to qt_spy_signal_sender
@@ -350,7 +350,7 @@ static TQCString qt_rmWS( const char *s )
}
*d = '\0';
result.truncate( (int)(d - result.data()) );
- int void_pos = result.tqfind("(void)");
+ int void_pos = result.find("(void)");
if ( void_pos >= 0 )
result.remove( void_pos+1, (uint)strlen("void") );
return result;
@@ -463,7 +463,7 @@ void TQObject::activate_signal( TQConnectionList *clist, TQUObject *o )
// #ifndef TQT_NO_PRELIMINARY_SIGNAL_SPY
// if ( qt_preliminary_signal_spy )
-// qt_spy_signal( this, connections->tqfindRef( clist), o );
+// qt_spy_signal( this, connections->findRef( clist), o );
// #endif
TQObject *object;
@@ -671,7 +671,7 @@ static void objSearch( TQObjectList *result,
file.
\warning Delete the list as soon you have finished using it. The
- list tqcontains pointers that may become invalid at almost any time
+ list contains pointers that may become invalid at almost any time
without notice (as soon as the user closes a window you may have
dangling pointers, for example).
@@ -911,14 +911,14 @@ bool TQObject::eventFilter( TQObject * /* watched */, TQEvent * /* e */ )
Returns 0 if there is no such child.
\code
- TQListBox *c = (TQListBox *) qt_tqfind_obj_child( myWidget, "TQListBox",
+ TQListBox *c = (TQListBox *) qt_find_obj_child( myWidget, "TQListBox",
"my list box" );
if ( c )
c->insertItem( "another string" );
\endcode
*/
-void *qt_tqfind_obj_child( TQObject *tqparent, const char *type, const char *name )
+void *qt_find_obj_child( TQObject *tqparent, const char *type, const char *name )
{
if ( !tqparent->childrenListObject().isEmpty() ) {
TQObjectListIt it( tqparent->childrenListObject() );
@@ -1184,7 +1184,7 @@ static TQCString qt_rmWS( const char *s )
}
*d = '\0';
result.truncate( (int)(d - result.data()) );
- int void_pos = result.tqfind("(void)");
+ int void_pos = result.find("(void)");
if ( void_pos >= 0 )
result.remove( void_pos+1, (uint)strlen("void") );
return result;
@@ -1202,12 +1202,12 @@ static void removeObjFromList( TQObjectList *objList, const TQObject *obj,
{
if ( !objList )
return;
- int index = objList->tqfindRef( obj );
+ int index = objList->findRef( obj );
while ( index >= 0 ) {
objList->remove();
if ( single )
return;
- index = objList->tqfindNextRef( obj );
+ index = objList->findNextRef( obj );
}
}
@@ -1221,14 +1221,14 @@ static void removeObjFromList( TQObjectList *objList, const TQObject *obj,
Returns 0 if there is no such child.
\code
- TQListBox *c = (TQListBox *) qt_tqfind_obj_child( myWidget, "TQListBox",
+ TQListBox *c = (TQListBox *) qt_find_obj_child( myWidget, "TQListBox",
"my list box" );
if ( c )
c->insertItem( "another string" );
\endcode
*/
-void *qt_tqfind_obj_child( TQObject *tqparent, const char *type, const char *name )
+void *qt_find_obj_child( TQObject *tqparent, const char *type, const char *name )
{
if ( !tqparent->childrenListObject().isEmpty() ) {
TQObjectListIt it( tqparent->childrenListObject() );
@@ -1266,7 +1266,7 @@ static void qt_spy_signal( TQObject* sender, int signal, TQUObject* o )
mo = sender->tqmetaObject();
while ( mo ) {
s.sprintf( "%s_%s", mo->className(), sigData->name );
- int slot = qt_preliminary_signal_spy->tqmetaObject()->tqfindSlot( s, TRUE );
+ int slot = qt_preliminary_signal_spy->tqmetaObject()->findSlot( s, TRUE );
if ( slot >= 0 ) {
#ifdef TQT_THREAD_SUPPORT
// protect access to qt_spy_signal_sender
@@ -1344,7 +1344,7 @@ static void remove_tree( TQObject* obj )
The tqparent of an object may be viewed as the object's owner. For
instance, a \link TQDialog dialog box\endlink is the tqparent of the
- "OK" and "Cancel" buttons it tqcontains.
+ "OK" and "Cancel" buttons it contains.
The destructor of a tqparent object destroys all child objects.
@@ -1353,8 +1353,8 @@ static void remove_tree( TQObject* obj )
The object name is some text that can be used to identify a
TQObject. It's particularly useful in conjunction with \link
- designer-manual.book <i>TQt Designer</i>\endlink. You can tqfind an
- object by name (and type) using child(). To tqfind several objects
+ designer-manual.book <i>TQt Designer</i>\endlink. You can find an
+ object by name (and type) using child(). To find several objects
use queryList().
\sa tqparent(), name(), child(), queryList()
@@ -1485,9 +1485,9 @@ TQObject::~TQObject()
Returns a pointer to the meta object of this object.
- A meta object tqcontains information about a class that inherits
+ A meta object contains information about a class that inherits
TQObject, e.g. class name, superclass name, properties, Q_SIGNALS and
- Q_SLOTS. Every class that tqcontains the TQ_OBJECT macro will also have
+ Q_SLOTS. Every class that contains the TQ_OBJECT macro will also have
a meta object.
The meta object information is required by the signal/slot
@@ -1584,8 +1584,8 @@ void *qt_inheritedBy( TQMetaObject *superClass, const TQObject *object )
\brief the name of this object
- You can tqfind an object by name (and type) using child(). You can
- tqfind a set of objects with queryList().
+ You can find an object by name (and type) using child(). You can
+ find a set of objects with queryList().
The object name is set by the constructor or by the setName()
function. The object name is not very useful in the current
@@ -1930,7 +1930,7 @@ void TQObject::blockSignals( bool block )
function to get timer events.
If multiple timers are running, the TQTimerEvent::timerId() can be
- used to tqfind out which timer was activated.
+ used to find out which timer was activated.
Example:
\code
@@ -1993,7 +1993,7 @@ void TQObject::killTimer( int id )
/*!
Kills all timers that this object has started.
- \warning Using this function can cause hard-to-tqfind bugs: it kills
+ \warning Using this function can cause hard-to-find bugs: it kills
timers started by sub- and superclasses as well as those started
by you, which is often not what you want. We recommend using a
TQTimer or perhaps killTimer().
@@ -2136,7 +2136,7 @@ const TQObjectList *TQObject::objectTrees()
file.
\warning Delete the list as soon you have finished using it. The
- list tqcontains pointers that may become invalid at almost any time
+ list contains pointers that may become invalid at almost any time
without notice (as soon as the user closes a window you may have
dangling pointers, for example).
@@ -2178,9 +2178,9 @@ TQConnectionList *TQObject::tqreceivers( const char* signal ) const
if ( connections && signal ) {
if ( *signal == '2' ) { // tag == 2, i.e. signal
TQCString s = qt_rmWS( signal+1 );
- return tqreceivers( tqmetaObject()->tqfindSignal( (const char*)s, TRUE ) );
+ return tqreceivers( tqmetaObject()->findSignal( (const char*)s, TRUE ) );
} else {
- return tqreceivers( tqmetaObject()->tqfindSignal(signal, TRUE ) );
+ return tqreceivers( tqmetaObject()->findSignal(signal, TRUE ) );
}
}
return 0;
@@ -2355,7 +2355,7 @@ void TQObject::installEventFilter( const TQObject *obj )
if ( !obj )
return;
if ( eventFilters ) {
- int c = eventFilters->tqfindRef( obj );
+ int c = eventFilters->findRef( obj );
if ( c >= 0 )
eventFilters->take( c );
disconnect( obj, TQT_SIGNAL(destroyed(TQObject*)),
@@ -2464,16 +2464,16 @@ static void err_info_about_candidates( int code,
// porting help
TQCString newname = member;
int p;
- while ( (p=newname.tqfind("const char*")) >= 0 ) {
- newname.tqreplace(p, 11, "const TQString&");
+ while ( (p=newname.find("const char*")) >= 0 ) {
+ newname.replace(p, 11, "const TQString&");
}
const TQMetaData *rm = 0;
switch ( code ) {
case TQSLOT_CODE:
- rm = mo->slot( mo->tqfindSlot( newname, TRUE ), TRUE );
+ rm = mo->slot( mo->findSlot( newname, TRUE ), TRUE );
break;
case TQSIGNAL_CODE:
- rm = mo->signal( mo->tqfindSignal( newname, TRUE ), TRUE );
+ rm = mo->signal( mo->findSignal( newname, TRUE ), TRUE );
break;
}
if ( rm ) {
@@ -2524,7 +2524,7 @@ const TQObject *TQObject::sender()
* which gets cleaned on both destruction and disconnect.
*/
- senderObjects->tqfindRef( senderObjects->currentSender ) != -1 )
+ senderObjects->findRef( senderObjects->currentSender ) != -1 )
return senderObjects->currentSender;
return 0;
}
@@ -2718,11 +2718,11 @@ bool TQObject::connect( const TQObject *sender, const char *signal,
TQCString nw_signal(signal); // Assume already normalized
++signal; // skip member type code
- int signal_index = smeta->tqfindSignal( signal, TRUE );
+ int signal_index = smeta->findSignal( signal, TRUE );
if ( signal_index < 0 ) { // normalize and retry
nw_signal = qt_rmWS( signal-1 ); // remove whitespace
signal = nw_signal.data()+1; // skip member type code
- signal_index = smeta->tqfindSignal( signal, TRUE );
+ signal_index = smeta->findSignal( signal, TRUE );
}
if ( signal_index < 0 ) { // no such signal
@@ -2752,19 +2752,19 @@ bool TQObject::connect( const TQObject *sender, const char *signal,
int member_index = -1;
switch ( membcode ) { // get receiver member
case TQSLOT_CODE:
- member_index = rmeta->tqfindSlot( member, TRUE );
+ member_index = rmeta->findSlot( member, TRUE );
if ( member_index < 0 ) { // normalize and retry
nw_member = qt_rmWS(member); // remove whitespace
member = nw_member;
- member_index = rmeta->tqfindSlot( member, TRUE );
+ member_index = rmeta->findSlot( member, TRUE );
}
break;
case TQSIGNAL_CODE:
- member_index = rmeta->tqfindSignal( member, TRUE );
+ member_index = rmeta->findSignal( member, TRUE );
if ( member_index < 0 ) { // normalize and retry
nw_member = qt_rmWS(member); // remove whitespace
member = nw_member;
- member_index = rmeta->tqfindSignal( member, TRUE );
+ member_index = rmeta->findSignal( member, TRUE );
}
break;
}
@@ -2964,19 +2964,19 @@ bool TQObject::disconnect( const TQObject *sender, const char *signal,
switch ( membcode ) { // get receiver member
case TQSLOT_CODE:
- member_index = rmeta->tqfindSlot( member, TRUE );
+ member_index = rmeta->findSlot( member, TRUE );
if ( member_index < 0 ) { // normalize and retry
nw_member = qt_rmWS(member); // remove whitespace
member = nw_member;
- member_index = rmeta->tqfindSlot( member, TRUE );
+ member_index = rmeta->findSlot( member, TRUE );
}
break;
case TQSIGNAL_CODE:
- member_index = rmeta->tqfindSignal( member, TRUE );
+ member_index = rmeta->findSignal( member, TRUE );
if ( member_index < 0 ) { // normalize and retry
nw_member = qt_rmWS(member); // remove whitespace
member = nw_member;
- member_index = rmeta->tqfindSignal( member, TRUE );
+ member_index = rmeta->findSignal( member, TRUE );
}
break;
}
@@ -3006,11 +3006,11 @@ bool TQObject::disconnect( const TQObject *sender, const char *signal,
TQMetaObject *smeta = s->tqmetaObject();
if ( !smeta ) // no meta object
return FALSE;
- int signal_index = smeta->tqfindSignal( signal, TRUE );
+ int signal_index = smeta->findSignal( signal, TRUE );
if ( signal_index < 0 ) { // normalize and retry
nw_signal = qt_rmWS( signal-1 ); // remove whitespace
signal = nw_signal.data()+1; // skip member type code
- signal_index = smeta->tqfindSignal( signal, TRUE );
+ signal_index = smeta->findSignal( signal, TRUE );
}
if ( signal_index < 0 ) {
#if defined(TQT_CHECK_RANGE)
@@ -3026,7 +3026,7 @@ bool TQObject::disconnect( const TQObject *sender, const char *signal,
if ( membcode == TQSLOT_CODE && r ) {
TQMetaObject * rmeta = r->tqmetaObject();
do {
- int mi = rmeta->tqfindSlot( member );
+ int mi = rmeta->findSlot( member );
if ( mi != -1 )
res |= disconnectInternal( s, signal_index, r, membcode, mi );
} while ( (rmeta = rmeta->superClass()) );
@@ -3314,7 +3314,7 @@ void TQObject::activate_signal( TQConnectionList *clist, TQUObject *o )
#ifndef TQT_NO_PRELIMINARY_SIGNAL_SPY
if ( qt_preliminary_signal_spy )
- qt_spy_signal( this, connections->tqfindRef( clist), o );
+ qt_spy_signal( this, connections->findRef( clist), o );
#endif
TQObject *object;
@@ -3560,7 +3560,7 @@ bool TQObject::setProperty( const char *name, const TQVariant& value )
TQMetaObject* meta = tqmetaObject();
if ( !meta )
return FALSE;
- int id = meta->tqfindProperty( name, TRUE );
+ int id = meta->findProperty( name, TRUE );
const TQMetaProperty* p = meta->property( id, TRUE );
if ( !p || !p->isValid() || !p->writable() ) {
qWarning( "%s::setProperty( \"%s\", value ) failed: property invalid, read-only or does not exist",
@@ -3612,7 +3612,7 @@ TQVariant TQObject::property( const char *name ) const
TQMetaObject* meta = tqmetaObject();
if ( !meta )
return v;
- int id = meta->tqfindProperty( name, TRUE );
+ int id = meta->findProperty( name, TRUE );
const TQMetaProperty* p = meta->property( id, TRUE );
if ( !p || !p->isValid() ) {
qWarning( "%s::property( \"%s\" ) failed: property invalid or does not exist",
diff --git a/tqtinterface/qt4/src/kernel/tqobjectcleanuphandler.cpp b/tqtinterface/qt4/src/kernel/tqobjectcleanuphandler.cpp
index fdee282..f9a5937 100644
--- a/tqtinterface/qt4/src/kernel/tqobjectcleanuphandler.cpp
+++ b/tqtinterface/qt4/src/kernel/tqobjectcleanuphandler.cpp
@@ -135,7 +135,7 @@ void TQObjectCleanupHandler::remove( TQObject *object )
{
if ( !cleanupObjects )
return;
- if ( cleanupObjects->tqfindRef( object ) >= 0 ) {
+ if ( cleanupObjects->findRef( object ) >= 0 ) {
(void) cleanupObjects->take();
disconnect( object, TQT_SIGNAL(destroyed(TQObject*)), this, TQT_SLOT(objectDestroyed(TQObject*)) );
}
diff --git a/tqtinterface/qt4/src/kernel/tqobjectdefs.h b/tqtinterface/qt4/src/kernel/tqobjectdefs.h
index 794d1f0..c876898 100644
--- a/tqtinterface/qt4/src/kernel/tqobjectdefs.h
+++ b/tqtinterface/qt4/src/kernel/tqobjectdefs.h
@@ -247,9 +247,9 @@ class TQObjectList;
class TQObjectListIt;
class TQMemberDict;
-TQ_EXPORT void *qt_tqfind_obj_child( TQObject *, const char *, const char * );
+TQ_EXPORT void *qt_find_obj_child( TQObject *, const char *, const char * );
#define TQ_CHILD(tqparent,type,name) \
- ((type*)qt_tqfind_obj_child(tqparent,#type,name))
+ ((type*)qt_find_obj_child(tqparent,#type,name))
TQ_EXPORT void *qt_inheritedBy( TQMetaObject *super, const TQObject *cls );
diff --git a/tqtinterface/qt4/src/kernel/tqpaintdevice.h b/tqtinterface/qt4/src/kernel/tqpaintdevice.h
index 5c7a2c7..738dd76 100644
--- a/tqtinterface/qt4/src/kernel/tqpaintdevice.h
+++ b/tqtinterface/qt4/src/kernel/tqpaintdevice.h
@@ -248,7 +248,7 @@ private:
static void *x_appvisual;
static bool x_appdefvisual;
- // ### in 4.0, remove the above, and tqreplace with the below
+ // ### in 4.0, remove the above, and replace with the below
static int *x_appdepth_arr;
static int *x_appcells_arr;
static TQt::HANDLE *x_approotwindow_arr;
@@ -539,7 +539,7 @@ private:
static void *x_appvisual;
static bool x_appdefvisual;
- // ### in 4.0, remove the above, and tqreplace with the below
+ // ### in 4.0, remove the above, and replace with the below
static int *x_appdepth_arr;
static int *x_appcells_arr;
static TQt::HANDLE *x_approotwindow_arr;
diff --git a/tqtinterface/qt4/src/kernel/tqpaintdevicemetrics.cpp b/tqtinterface/qt4/src/kernel/tqpaintdevicemetrics.cpp
index 6013062..0763352 100644
--- a/tqtinterface/qt4/src/kernel/tqpaintdevicemetrics.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpaintdevicemetrics.cpp
@@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE
\snippet doc/src/snippets/code/src_qt3support_painting_q3painttqdevicemetrics.cpp 0
- TQPaintDeviceMetrics tqcontains methods to provide the width and
+ TQPaintDeviceMetrics contains methods to provide the width and
height of a tqdevice in both pixels (width() and height()) and
millimeters (widthMM() and heightMM()), the number of colors the
tqdevice supports (numColors()), the number of bit planes (depth()),
@@ -210,7 +210,7 @@ QT_END_NAMESPACE
double aspect = (double)pdm.widthMM() / (double)pdm.heightMM();
\endcode
- TQPaintDeviceMetrics tqcontains methods to provide the width and
+ TQPaintDeviceMetrics contains methods to provide the width and
height of a tqdevice in both pixels (width() and height()) and
millimeters (widthMM() and heightMM()), the number of colors the
tqdevice supports (numColors()), the number of bit planes (depth()),
diff --git a/tqtinterface/qt4/src/kernel/tqpainter.cpp b/tqtinterface/qt4/src/kernel/tqpainter.cpp
index 66596f5..6d48128 100644
--- a/tqtinterface/qt4/src/kernel/tqpainter.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpainter.cpp
@@ -1518,7 +1518,7 @@ typedef TQPtrStack<TQWMatrix> TQWMatrixStack;
\list
\i font() is the currently set font. If you set a font that isn't
- available, TQt tqfinds a close match. In fact font() returns what
+ available, TQt finds a close match. In fact font() returns what
you set using setFont() and fontInfo() returns the font actually
being used (which may be the same).
@@ -1594,7 +1594,7 @@ typedef TQPtrStack<TQWMatrix> TQWMatrixStack;
The most common functions used are scale(), rotate(), translate()
and shear(), all of which operate on the tqworldMatrix().
- setWorldMatrix() can tqreplace or add to the currently set
+ setWorldMatrix() can replace or add to the currently set
tqworldMatrix().
setViewport() sets the rectangle on which TQPainter operates. The
@@ -1739,7 +1739,7 @@ typedef TQPtrStack<TQWMatrix> TQWMatrixStack;
/*!
\enum TQt::AlignmentFlags
- This enum type is used to describe tqalignment. It tqcontains
+ This enum type is used to describe tqalignment. It contains
horizontal and vertical flags.
The horizontal flags are:
@@ -2232,17 +2232,17 @@ static TQPaintDeviceDict *pdev_dict = 0;
/*!
Redirects all paint commands for a paint tqdevice, \a pdev, to
- another paint tqdevice, \a tqreplacement, unless \a tqreplacement is 0.
- If \a tqreplacement is 0, the redirection for \a pdev is removed.
+ another paint tqdevice, \a replacement, unless \a replacement is 0.
+ If \a replacement is 0, the redirection for \a pdev is removed.
- In general, you'll probably tqfind calling TQPixmap::grabWidget() or
+ In general, you'll probably find calling TQPixmap::grabWidget() or
TQPixmap::grabWindow() is an easier solution.
*/
-void TQPainter::redirect( TQPaintDevice *pdev, TQPaintDevice *tqreplacement )
+void TQPainter::redirect( TQPaintDevice *pdev, TQPaintDevice *replacement )
{
if ( pdev_dict == 0 ) {
- if ( tqreplacement == 0 )
+ if ( replacement == 0 )
return;
pdev_dict = new TQPaintDeviceDict;
TQ_CHECK_PTR( pdev_dict );
@@ -2251,8 +2251,8 @@ void TQPainter::redirect( TQPaintDevice *pdev, TQPaintDevice *tqreplacement )
if ( pdev == 0 )
qWarning( "TQPainter::redirect: The pdev argument cannot be 0" );
#endif
- if ( tqreplacement ) {
- pdev_dict->insert( pdev, tqreplacement );
+ if ( replacement ) {
+ pdev_dict->insert( pdev, replacement );
} else {
pdev_dict->remove( pdev );
if ( pdev_dict->count() == 0 ) {
@@ -2264,11 +2264,11 @@ void TQPainter::redirect( TQPaintDevice *pdev, TQPaintDevice *tqreplacement )
/*!
\internal
- Returns the tqreplacement for \a pdev, or 0 if there is no tqreplacement.
+ Returns the replacement for \a pdev, or 0 if there is no replacement.
*/
TQPaintDevice *TQPainter::redirect( TQPaintDevice *pdev )
{
- return pdev_dict ? pdev_dict->tqfind( pdev ) : 0;
+ return pdev_dict ? pdev_dict->find( pdev ) : 0;
}
/*!
@@ -2799,7 +2799,7 @@ const TQWMatrix &TQPainter::tqworldMatrix() const
transformation.
If \a combine is TRUE, then \a m is combined with the current
- transformation matrix, otherwise \a m tqreplaces the current
+ transformation matrix, otherwise \a m replaces the current
transformation matrix.
If \a m is the identity matrix and \a combine is FALSE, this
@@ -4136,7 +4136,7 @@ void TQPainter::fix_neg_rect( int *x, int *y, int *w, int *h )
//
// The drawText function takes two special parameters; 'internal' and 'brect'.
//
-// The 'internal' parameter tqcontains a pointer to an array of encoded
+// The 'internal' parameter contains a pointer to an array of encoded
// information that keeps internal tqgeometry data.
// If the drawText function is called repeatedly to display the same text,
// it makes sense to calculate text width and linebreaks the first time,
@@ -4145,7 +4145,7 @@ void TQPainter::fix_neg_rect( int *x, int *y, int *w, int *h )
// The 'internal' parameter will not be used if it is a null pointer.
// The 'internal' parameter will be generated if it is not null, but points
// to a null pointer, i.e. internal != 0 && *internal == 0.
-// The 'internal' parameter will be used if it tqcontains a non-null pointer.
+// The 'internal' parameter will be used if it contains a non-null pointer.
//
// If the 'brect parameter is a non-null pointer, then the bounding rectangle
// of the text will be returned in 'brect'.
@@ -4255,7 +4255,7 @@ void qt_format_text( const TQFont& font, const TQRect &_r,
TQFontMetrics fm( fnt );
TQString text = str;
- // str.setLength() always does a deep copy, so the tqreplacement
+ // str.setLength() always does a deep copy, so the replacement
// code below is safe.
text.setLength( len );
// compatible behaviour to the old implementation. Replace
diff --git a/tqtinterface/qt4/src/kernel/tqpainter.h b/tqtinterface/qt4/src/kernel/tqpainter.h
index c491f8b..c1a5092 100644
--- a/tqtinterface/qt4/src/kernel/tqpainter.h
+++ b/tqtinterface/qt4/src/kernel/tqpainter.h
@@ -385,7 +385,7 @@ public:
#endif
#endif
- static void redirect( TQPaintDevice *pdev, TQPaintDevice *tqreplacement );
+ static void redirect( TQPaintDevice *pdev, TQPaintDevice *replacement );
static TQPaintDevice *redirect( TQPaintDevice *pdev );
bool isActive() const;
diff --git a/tqtinterface/qt4/src/kernel/tqpainter_x11.cpp b/tqtinterface/qt4/src/kernel/tqpainter_x11.cpp
index ac788d4..05d5c76 100644
--- a/tqtinterface/qt4/src/kernel/tqpainter_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpainter_x11.cpp
@@ -1148,7 +1148,7 @@ void TQPainter::updateBrush()
if ( pat ) {
TQString key;
key.sprintf( "$qt-brush$%d", bs );
- pm = TQPixmapCache::tqfind( key );
+ pm = TQPixmapCache::find( key );
bool del = FALSE;
if ( !pm ) { // not already in pm dict
pm = new TQBitmap( d, d, pat, TRUE );
@@ -3093,7 +3093,7 @@ void TQPainter::drawTiledPixmap( int x, int y, int w, int h,
#if 0
//
// Generate a string that describes a transformed bitmap. This string is used
-// to insert and tqfind bitmaps in the global pixmap cache.
+// to insert and find bitmaps in the global pixmap cache.
//
static TQString gen_text_bitmap_key( const TQWMatrix &m, const TQFont &font,
@@ -3124,7 +3124,7 @@ static TQString gen_text_bitmap_key( const TQWMatrix &m, const TQFont &font,
static TQBitmap *get_text_bitmap( const TQString &key )
{
- return (TQBitmap*)TQPixmapCache::tqfind( key );
+ return (TQBitmap*)TQPixmapCache::find( key );
}
static void ins_text_bitmap( const TQString &key, TQBitmap *bm )
diff --git a/tqtinterface/qt4/src/kernel/tqpalette.cpp b/tqtinterface/qt4/src/kernel/tqpalette.cpp
index 2e9e49e..6935d09 100644
--- a/tqtinterface/qt4/src/kernel/tqpalette.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpalette.cpp
@@ -173,13 +173,13 @@ TQPalette::ColorRole TQPalette::backgroundRoleFromMode( TQt::BackgroundMode mode
/*!
\class TQColorGroup tqpalette.h
- \brief The TQColorGroup class tqcontains a group of widget colors.
+ \brief The TQColorGroup class contains a group of widget colors.
\ingroup appearance
\ingroup graphics
\ingroup images
- A color group tqcontains a group of colors used by widgets for
+ A color group contains a group of colors used by widgets for
drawing themselves. We recommend that widgets use color group
roles such as "foreground" and "base" rather than literal colors
like "red" or "turquoise". The color roles are enumerated and
@@ -637,7 +637,7 @@ bool TQColorGroup::operator==( const TQColorGroup &g ) const
/*!
\class TQPalette tqpalette.h
- \brief The TQPalette class tqcontains color groups for each widget state.
+ \brief The TQPalette class contains color groups for each widget state.
\ingroup appearance
\ingroup shared
diff --git a/tqtinterface/qt4/src/kernel/tqpicture.cpp b/tqtinterface/qt4/src/kernel/tqpicture.cpp
index c9c5c0e..8a6fff1 100644
--- a/tqtinterface/qt4/src/kernel/tqpicture.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpicture.cpp
@@ -180,7 +180,7 @@ TQPicture::~TQPicture()
/*!
\fn bool TQPicture::isNull() const
- Returns TRUE if the picture tqcontains no data; otherwise returns
+ Returns TRUE if the picture contains no data; otherwise returns
FALSE.
*/
@@ -197,7 +197,7 @@ TQPicture::~TQPicture()
Returns a pointer to the picture data. The pointer is only valid
until the next non-const function is called on this picture. The
- returned pointer is 0 if the picture tqcontains no data.
+ returned pointer is 0 if the picture contains no data.
\sa size(), isNull()
*/
@@ -357,7 +357,7 @@ bool TQPicture::save( TQIODevice *dev, const char *format )
/*!
Returns the picture's bounding rectangle or an invalid rectangle
- if the picture tqcontains no data.
+ if the picture contains no data.
*/
TQRect TQPicture::boundingRect() const
diff --git a/tqtinterface/qt4/src/kernel/tqpixmap.cpp b/tqtinterface/qt4/src/kernel/tqpixmap.cpp
index f47fb38..8fb5380 100644
--- a/tqtinterface/qt4/src/kernel/tqpixmap.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpixmap.cpp
@@ -637,7 +637,7 @@ TQPixmap::TQPixmap( const TQSize &size, int depth, Optimization optimization )
The \a fileName, \a format and \a conversion_flags parameters are
passed on to load(). This means that the data in \a fileName is
- not compiled into the binary. If \a fileName tqcontains a relative
+ not compiled into the binary. If \a fileName contains a relative
path (e.g. the filename only) the relevant file must be found
relative to the runtime working directory.
@@ -663,7 +663,7 @@ TQPixmap::TQPixmap( const TQString& fileName, const char *format,
The \a fileName, \a format and \a mode parameters are passed on to
load(). This means that the data in \a fileName is not compiled
- into the binary. If \a fileName tqcontains a relative path (e.g. the
+ into the binary. If \a fileName contains a relative path (e.g. the
filename only) the relevant file must be found relative to the
runtime working directory.
@@ -1698,7 +1698,7 @@ TQDataStream &operator>>( TQDataStream &s, TQPixmap &pixmap )
TQPixmap (and TQImage) helper functions
*****************************************************************************/
/*
- This internal function tqcontains the common (i.e. platform independent) code
+ This internal function contains the common (i.e. platform independent) code
to do a transformation of pixel data. It is used by TQPixmap::xForm() and by
TQImage::xForm().
diff --git a/tqtinterface/qt4/src/kernel/tqpixmap_x11.cpp b/tqtinterface/qt4/src/kernel/tqpixmap_x11.cpp
index a16235c..37bb0ee 100644
--- a/tqtinterface/qt4/src/kernel/tqpixmap_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpixmap_x11.cpp
@@ -2053,7 +2053,7 @@ TQPixmap TQPixmap::grabWindow( WId window, int x, int y, int w, int h )
The transformation \a matrix is internally adjusted to compensate
for unwanted translation, i.e. xForm() returns the smallest image
- that tqcontains all the transformed points of the original image.
+ that contains all the transformed points of the original image.
This function is slow because it involves transformation to a
TQImage, non-trivial computations and a transformation back to a
diff --git a/tqtinterface/qt4/src/kernel/tqpixmapcache.cpp b/tqtinterface/qt4/src/kernel/tqpixmapcache.cpp
index 6724d82..e42ec38 100644
--- a/tqtinterface/qt4/src/kernel/tqpixmapcache.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpixmapcache.cpp
@@ -58,7 +58,7 @@
This class is a tool for optimized drawing with TQPixmap. You can
use it to store temporary pixmaps that are expensive to generate
without using more storage space than cacheLimit(). Use insert()
- to insert pixmaps, tqfind() to tqfind them and clear() to empty the
+ to insert pixmaps, find() to find them and clear() to empty the
cache.
For example, TQRadioButton has a non-trivial visual representation
@@ -75,7 +75,7 @@
radio button. All radio buttons in the program share the cached
pixmap since TQPixmapCache is application-global.
- TQPixmapCache tqcontains no member data, only static functions to
+ TQPixmapCache contains no member data, only static functions to
access the global pixmap cache. It creates an internal TQCache for
caching the pixmaps.
@@ -171,13 +171,13 @@ static TQSingleCleanupHandler<TQPMCache> qpm_cleanup_cache;
\warning If valid, you should copy the pixmap immediately (this is
fast). Subsequent insertions into the cache could cause the
pointer to become invalid. For this reason, we recommend you use
- tqfind(const TQString&, TQPixmap&) instead.
+ find(const TQString&, TQPixmap&) instead.
Example:
\code
TQPixmap* pp;
TQPixmap p;
- if ( (pp=TQPixmapCache::tqfind("my_big_image", pm)) ) {
+ if ( (pp=TQPixmapCache::find("my_big_image", pm)) ) {
p = *pp;
} else {
p.load("bigimage.png");
@@ -187,9 +187,9 @@ static TQSingleCleanupHandler<TQPMCache> qpm_cleanup_cache;
\endcode
*/
-TQPixmap *TQPixmapCache::tqfind( const TQString &key )
+TQPixmap *TQPixmapCache::find( const TQString &key )
{
- return pm_cache ? pm_cache->tqfind(key) : 0;
+ return pm_cache ? pm_cache->find(key) : 0;
}
@@ -203,7 +203,7 @@ TQPixmap *TQPixmapCache::tqfind( const TQString &key )
Example:
\code
TQPixmap p;
- if ( !TQPixmapCache::tqfind("my_big_image", pm) ) {
+ if ( !TQPixmapCache::find("my_big_image", pm) ) {
pm.load("bigimage.png");
TQPixmapCache::insert("my_big_image", pm);
}
@@ -211,9 +211,9 @@ TQPixmap *TQPixmapCache::tqfind( const TQString &key )
\endcode
*/
-bool TQPixmapCache::tqfind( const TQString &key, TQPixmap& pm )
+bool TQPixmapCache::find( const TQString &key, TQPixmap& pm )
{
- TQPixmap* p = pm_cache ? pm_cache->tqfind(key) : 0;
+ TQPixmap* p = pm_cache ? pm_cache->find(key) : 0;
if ( p ) pm = *p;
return !!p;
}
diff --git a/tqtinterface/qt4/src/kernel/tqpixmapcache.h b/tqtinterface/qt4/src/kernel/tqpixmapcache.h
index ba543ac..c1c6bce 100644
--- a/tqtinterface/qt4/src/kernel/tqpixmapcache.h
+++ b/tqtinterface/qt4/src/kernel/tqpixmapcache.h
@@ -51,8 +51,8 @@ class TQ_EXPORT TQPixmapCache // global pixmap cache
public:
static int cacheLimit();
static void setCacheLimit( int );
- static TQPixmap *tqfind( const TQString &key );
- static bool tqfind( const TQString &key, TQPixmap& );
+ static TQPixmap *find( const TQString &key );
+ static bool find( const TQString &key, TQPixmap& );
static bool insert( const TQString &key, TQPixmap * );
static bool insert( const TQString &key, const TQPixmap& );
static void remove( const TQString &key );
diff --git a/tqtinterface/qt4/src/kernel/tqpointarray.cpp b/tqtinterface/qt4/src/kernel/tqpointarray.cpp
index f5d0016..c634210 100644
--- a/tqtinterface/qt4/src/kernel/tqpointarray.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpointarray.cpp
@@ -323,7 +323,7 @@ const double TQ_PI = 3.14159265358979323846; // pi // one more useful comment
/*!
Constructs a point array from the rectangle \a r.
- If \a closed is FALSE, then the point array just tqcontains the
+ If \a closed is FALSE, then the point array just contains the
following four points in the listed order: r.topLeft(),
r.topRight(), r.bottomRight() and r.bottomLeft().
@@ -645,7 +645,7 @@ TQRect TQPointArray::boundingRect() const
minx = maxx = pd->x();
miny = maxy = pd->y();
pd++;
- for ( int i=1; i<(int)size(); i++ ) { // tqfind min+max x and y
+ for ( int i=1; i<(int)size(); i++ ) { // find min+max x and y
if ( pd->x() < minx )
minx = pd->x();
else if ( pd->x() > maxx )
@@ -1018,7 +1018,7 @@ int pnt_on_line( const int* p, const int* q, const int* t )
* Point-Line distance is normalized with the Infinity Norm
* avoiding square-root code and tightening the test vs the
* Manhattan Norm. All math is done on the field of integers.
- * The latter tqreplaces the initial ">= MAX(...)" test with
+ * The latter replaces the initial ">= MAX(...)" test with
* "> (ABS(qx-px) + ABS(qy-py))" loosening both inequality
* and norm, yielding a broader target line for selection.
* The tightest test is employed here for best discrimination
diff --git a/tqtinterface/qt4/src/kernel/tqpolygonscanner.cpp b/tqtinterface/qt4/src/kernel/tqpolygonscanner.cpp
index 78e35ab..20f65da 100644
--- a/tqtinterface/qt4/src/kernel/tqpolygonscanner.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpolygonscanner.cpp
@@ -137,7 +137,7 @@ from the X Consortium.
*
* Written by Brian Kelleher; Jan 1985
*
- * This file tqcontains a few macros to help track
+ * This file contains a few macros to help track
* the edge of a filled object. The object is assumed
* to be filled in scanline order, and thus the
* algorithm used is an extension of Bresenham's line
@@ -220,7 +220,7 @@ from the X Consortium.
/*
- * This structure tqcontains all of the information needed
+ * This structure contains all of the information needed
* to run the bresenham algorithm.
* The variables may be hardcoded into the declarations
* instead of using this structure to make use of
@@ -390,7 +390,7 @@ SOFTWARE.
*
* Written by Brian Kelleher; Oct. 1985
*
- * This module tqcontains all of the utility functions
+ * This module contains all of the utility functions
* needed to scan convert a polygon.
*
*/
@@ -398,8 +398,8 @@ SOFTWARE.
* InsertEdgeInET
*
* Insert the given edge into the edge table.
- * First we must tqfind the correct bucket in the
- * Edge table, then tqfind the right slot in the
+ * First we must find the correct bucket in the
+ * Edge table, then find the right slot in the
* bucket. Finally, we can insert it.
*
*/
@@ -412,7 +412,7 @@ miInsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE,
ScanLineListBlock *tmpSLLBlock;
/*
- * tqfind the right bucket to put the edge into
+ * find the right bucket to put the edge into
*/
pPrevSLL = &ET->scanlines;
pSLL = pPrevSLL->next;
@@ -555,7 +555,7 @@ miCreateETandAET(int count, DDXPointPtr pts, EdgeTable *ET,
CurrPt = pts++;
/*
- * tqfind out which point is above and which is below.
+ * find out which point is above and which is below.
*/
if (PrevPt->y > CurrPt->y)
{
diff --git a/tqtinterface/qt4/src/kernel/tqprinter_unix.cpp b/tqtinterface/qt4/src/kernel/tqprinter_unix.cpp
index f9ff932..0472479 100644
--- a/tqtinterface/qt4/src/kernel/tqprinter_unix.cpp
+++ b/tqtinterface/qt4/src/kernel/tqprinter_unix.cpp
@@ -135,7 +135,7 @@ bool TQPrinter::cmd( int c, TQPainter *paint, TQPDevCmdParam *p )
// if ( fork() > 0 ) {
// closeAllOpenFds();
//
-// // try to tqreplace this process with "true" - this prevents
+// // try to replace this process with "true" - this prevents
// // global destructors from being called (that could possibly
// // do wrong things to the tqparent process)
// (void)execlp("true", "true", (char *)0);
@@ -554,7 +554,7 @@ bool TQPrinter::cmd( int c, TQPainter *paint, TQPDevCmdParam *p )
if ( fork() > 0 ) {
closeAllOpenFds();
- // try to tqreplace this process with "true" - this prevents
+ // try to replace this process with "true" - this prevents
// global destructors from being called (that could possibly
// do wrong things to the tqparent process)
(void)execlp("true", "true", (char *)0);
diff --git a/tqtinterface/qt4/src/kernel/tqprocess.cpp b/tqtinterface/qt4/src/kernel/tqprocess.cpp
index a809996..c85e2de 100644
--- a/tqtinterface/qt4/src/kernel/tqprocess.cpp
+++ b/tqtinterface/qt4/src/kernel/tqprocess.cpp
@@ -143,7 +143,7 @@
\printline }
Although you may need quotes for a file named on the command line
- (e.g. if it tqcontains spaces) you shouldn't use extra quotes for
+ (e.g. if it contains spaces) you shouldn't use extra quotes for
arguments passed to addArgument() or setArguments().
The readyReadStdout() signal is emitted when there is new data on
@@ -164,8 +164,8 @@
Please note that TQProcess does not emulate a shell. This means that
TQProcess does not do any expansion of arguments: a '*' is passed as a '*'
- to the program and is \e not tqreplaced by all the files, a '$HOME' is also
- passed literally and is \e not tqreplaced by the environment variable HOME
+ to the program and is \e not replaced by all the files, a '$HOME' is also
+ passed literally and is \e not replaced by the environment variable HOME
and the special characters for IO redirection ('>', '|', etc.) are also
passed literally and do \e not have the special meaning as they have in a
shell.
diff --git a/tqtinterface/qt4/src/kernel/tqprocess_unix.cpp b/tqtinterface/qt4/src/kernel/tqprocess_unix.cpp
index 0895ae2..5b60f6a 100644
--- a/tqtinterface/qt4/src/kernel/tqprocess_unix.cpp
+++ b/tqtinterface/qt4/src/kernel/tqprocess_unix.cpp
@@ -771,7 +771,7 @@ bool TQProcess::start( TQStringList *env )
TQFileInfo fi(arg_bundle);
if(fi.exists() && fi.isDir() && arg_bundle.right(4) == ".app") {
TQCString exe = arg_bundle;
- int lslash = exe.tqfindRev('/');
+ int lslash = exe.findRev('/');
if(lslash != -1)
exe = exe.mid(lslash+1);
exe = TQCString(arg_bundle + "/Contents/MacOS/" + exe);
@@ -858,7 +858,7 @@ bool TQProcess::start( TQStringList *env )
// look for the executable in the search path
if ( _arguments.count()>0 && getenv("PATH")!=0 ) {
TQString command = _arguments[0];
- if ( !command.tqcontains( '/' ) ) {
+ if ( !command.contains( '/' ) ) {
TQStringList pathList = TQStringList::split( ':', getenv( "PATH" ) );
for (TQStringList::Iterator it = pathList.begin(); it != pathList.end(); ++it ) {
TQString dir = *it;
diff --git a/tqtinterface/qt4/src/kernel/tqpsprinter.cpp b/tqtinterface/qt4/src/kernel/tqpsprinter.cpp
index 18227cf..f881bf8 100644
--- a/tqtinterface/qt4/src/kernel/tqpsprinter.cpp
+++ b/tqtinterface/qt4/src/kernel/tqpsprinter.cpp
@@ -187,13 +187,13 @@ static const char *const ps_header =
"div 3 1 roll}D/BC{CRGB BkCol sp}D/BR{CRGB BCol sp/BSt ED}D/WB{1 W BR}D/NB{0\n"
"B BR}D/PE{setlinejoin setlinecap CRGB PCol sp/LWi ED/PSt ED LWi 0 eq{0.25\n"
"/LWi ED}if PCol SC}D/P1{1 0 5 2 roll 0 0 PE}D/ST{defM SM concat}D/MF{true\n"
-"exch true exch{exch pop exch pop dup 0 get dup tqfindfont dup/FontName get 3\n"
+"exch true exch{exch pop exch pop dup 0 get dup findfont dup/FontName get 3\n"
"-1 roll eq{exit}if}forall exch dup 1 get/fxscale ED 2 get/fslant ED exch\n"
"/fencoding ED[fxscale 0 fslant 1 0 0]makefont fencoding false eq{}{dup\n"
"maxlength dict begin{1 i/FID ne{def}{pop pop}ifelse}forall/Encoding\n"
-"fencoding d currentdict end}ie definefont pop}D/MFEmb{tqfindfont dup length\n"
+"fencoding d currentdict end}ie definefont pop}D/MFEmb{findfont dup length\n"
"dict begin{1 i/FID ne{d}{pop pop}ifelse}forall/Encoding ED currentdict end\n"
-"definefont pop}D/DF{tqfindfont/fs 3 -1 roll d[fs 0 0 fs -1 mul 0 0]makefont d}\n"
+"definefont pop}D/DF{findfont/fs 3 -1 roll d[fs 0 0 fs -1 mul 0 0]makefont d}\n"
"D/ty 0 d/Y{/ty ED}D/Tl{gsave SW NP 1 i exch MT 1 i 0 RL S grestore}D/XYT{ty\n"
"MT/xyshow where{pop pop xyshow}{exch pop 1 i dup length 2 div exch\n"
"stringwidth pop 3 -1 roll exch sub exch div exch 0 exch ashow}ie}D/AT{ty MT\n"
@@ -222,7 +222,7 @@ static const char *const ps_header =
// http://partners.adobe.com:80/asn/developer/type/tqunicodegn.html
//
// IMPORTANT NOTE:
-// the list tqcontains glyphs in the private use area of tqunicode. These should get removed when regenerating the glyphlist.
+// the list contains glyphs in the private use area of tqunicode. These should get removed when regenerating the glyphlist.
// also 0 shout be mapped to .notdef
static const struct {
TQ_UINT16 u;
@@ -1300,7 +1300,7 @@ static const psfont * const VerdanaReplacements[] = {
static const struct {
const char * input; // spaces are stripped in here, and everything lowercase
const psfont * ps;
- const psfont *const * tqreplacements;
+ const psfont *const * replacements;
} postscriptFonts [] = {
{ "arial", Arial, SansSerifReplacements },
{ "arialmt", Arial, SansSerifReplacements },
@@ -1469,7 +1469,7 @@ public:
protected:
TQString psname;
- TQStringList tqreplacementList;
+ TQStringList replacementList;
TQMap<unsigned short, unsigned short> subset; // tqunicode subset in the global font
TQMap<unsigned short, unsigned short> page_subset; // subset added in this page
@@ -1577,16 +1577,16 @@ static TQString makePSFontName( const TQFontEngine *fe, int *listpos = 0, int *f
return ps;
}
-static void appendReplacements( TQStringList &list, const psfont * const * tqreplacements, int type, float xscale = 100. )
+static void appendReplacements( TQStringList &list, const psfont * const * replacements, int type, float xscale = 100. )
{
- // iterate through the tqreplacement fonts
- while ( *tqreplacements ) {
- const psfont *psf = *tqreplacements;
+ // iterate through the replacement fonts
+ while ( *replacements ) {
+ const psfont *psf = *replacements;
TQString ps = "[ /" + TQString::tqfromLatin1( psf[type].psname ) + " " +
toString( xscale / psf[type].xscale ) + " " +
toString( psf[type].slant ) + " ]";
list.append( ps );
- ++tqreplacements;
+ ++replacements;
}
}
@@ -1605,20 +1605,20 @@ static TQStringList makePSFontNameList( const TQFontEngine *fe, const TQString &
ps = makePSFontName( fe, &i, &type );
const psfont *psf = postscriptFonts[i].ps;
- const psfont * const * tqreplacements = postscriptFonts[i].tqreplacements;
+ const psfont * const * replacements = postscriptFonts[i].replacements;
float xscale = 100;
if ( psf ) {
- // xscale for the "right" font is always 1. We scale the tqreplacements...
+ // xscale for the "right" font is always 1. We scale the replacements...
xscale = psf->xscale;
ps = "[ /" + TQString::tqfromLatin1( psf[type].psname ) + " 1.0 " +
toString( psf[type].slant ) + " ]";
} else {
ps = "[ /" + ps + " 1.0 0.0 ]";
- // only add default tqreplacement fonts in case this font was unknown.
+ // only add default replacement fonts in case this font was unknown.
if ( fe->fontDef.fixedPitch ) {
- tqreplacements = FixedReplacements;
+ replacements = FixedReplacements;
} else {
- tqreplacements = SansSerifReplacements;
+ replacements = SansSerifReplacements;
// 100 is courier, but most fonts are not as wide as courier. Using 100
// here would make letters overlap for some fonts. This value is empirical.
xscale = 83;
@@ -1626,8 +1626,8 @@ static TQStringList makePSFontNameList( const TQFontEngine *fe, const TQString &
}
list.append( ps );
- if ( tqreplacements )
- appendReplacements( list, tqreplacements, type, xscale);
+ if ( replacements )
+ appendReplacements( list, replacements, type, xscale);
return list;
}
@@ -1666,13 +1666,13 @@ TQPSPrinterFontPrivate::TQPSPrinterFontPrivate()
unsigned short TQPSPrinterFontPrivate::insertIntoSubset( unsigned short u )
{
unsigned short retval = 0;
- if ( subset.tqfind(u) == subset.end() ) {
+ if ( subset.find(u) == subset.end() ) {
if ( !downloaded ) { // we need to add to the page subset
subset.insert( u, subsetCount ); // mark it as used
//printf("GLOBAL SUBSET ADDED %04x = %04x\n",u, subsetCount);
retval = subsetCount;
subsetCount++;
- } else if ( page_subset.tqfind(u) == page_subset.end() ) {
+ } else if ( page_subset.find(u) == page_subset.end() ) {
page_subset.insert( u, pageSubsetCount ); // mark it as used
//printf("PAGE SUBSET ADDED %04x = %04x\n",u, pageSubsetCount);
retval = pageSubsetCount + (subsetCount/256 + 1) * 256;
@@ -1809,14 +1809,14 @@ TQString TQPSPrinterFontPrivate::defineFont( TQTextStream &stream, const TQStrin
unsigned short TQPSPrinterFontPrivate::mapUnicode( unsigned short tqunicode )
{
TQMap<unsigned short, unsigned short>::iterator res;
- res = subset.tqfind( tqunicode );
+ res = subset.find( tqunicode );
unsigned short offset = 0;
bool found = FALSE;
if ( res != subset.end() ) {
found = TRUE;
} else {
if ( downloaded ) {
- res = page_subset.tqfind( tqunicode );
+ res = page_subset.find( tqunicode );
offset = (subsetCount/256 + 1) * 256;
if ( res != page_subset.end() )
found = TRUE;
@@ -2075,7 +2075,7 @@ void TQPSPrinterFontPrivate::downloadMapping( TQTextStream &s, bool global )
s << psname;
s << "-Uni-";
s << toHex( range );
- s << " tqfindfont\n";
+ s << " findfont\n";
}
s << "]def\n";
@@ -2351,7 +2351,7 @@ TQPSPrinterFontTTF::TQPSPrinterFontTTF(const TQFontEngine *f, TQByteArray& d)
BYTE* table_ptr = getTable("name"); /* pointer to table */
if ( !table_ptr ) {
defective = TRUE;
- qDebug("couldn't tqfind name table" );
+ qDebug("couldn't find name table" );
return;
}
int numrecords = getUSHORT( table_ptr + 2 ); /* number of names */
@@ -2388,8 +2388,8 @@ TQPSPrinterFontTTF::TQPSPrinterFontTTF(const TQFontEngine *f, TQByteArray& d)
Trademark.setLatin1(strings+offset,length);
}
- psname.tqreplace(' ', '-');
- psname.tqreplace("/", "");
+ psname.replace(' ', '-');
+ psname.replace("/", "");
if (psname.isEmpty())
psname = makePSFontName(f);
@@ -2418,7 +2418,7 @@ TQPSPrinterFontTTF::TQPSPrinterFontTTF(const TQFontEngine *f, TQByteArray& d)
}
numGlyphs = getUSHORT( maxp + 4 );
// qDebug("number of glyphs is %d", numGlyphs);
- tqreplacementList = makePSFontNameList( f, psname );
+ replacementList = makePSFontNameList( f, psname );
uni2glyphSetup();
}
@@ -2448,7 +2448,7 @@ void TQPSPrinterFontTTF::drawText( TQTextStream &stream, const TQPoint &p, TQTex
int type = si.fontEngine->type();
bool glyphIndices = (type == TQFontEngine::Xft);
// This helps us get arabic for XLFD fonts working. In that case we have a Unicode
- // cmap (== 0), and the glyphs array tqcontains the tqshaped string.
+ // cmap (== 0), and the glyphs array contains the tqshaped string.
bool useGlyphAsUnicode = (type == TQFontEngine::XLFD && si.fontEngine->cmap() == 0);
#else // TQ_WS_TQWS
const bool glyphIndices = FALSE;
@@ -2510,7 +2510,7 @@ void TQPSPrinterFontTTF::drawText( TQTextStream &stream, const TQPoint &p, TQTex
void TQPSPrinterFontTTF::download(TQTextStream& s,bool global)
{
- emitPSFontNameList( s, psname, tqreplacementList);
+ emitPSFontNameList( s, psname, replacementList);
if ( !embedFonts ) {
downloadMapping(s, global);
return;
@@ -2783,7 +2783,7 @@ void TQPSPrinterFontTTF::download(TQTextStream& s,bool global)
s << " {true}ifelse\n";
/* If true, execute code to produce an error message if */
- /* we can't tqfind Apple's TrueDict in VM. */
+ /* we can't find Apple's TrueDict in VM. */
s << "{/TrueDict where{pop}{(%%[ Error: no TrueType rasterizer ]%%)= flush}ifelse\n";
/* Since we are expected to use Apple's TrueDict TrueType */
@@ -2808,7 +2808,7 @@ void TQPSPrinterFontTTF::download(TQTextStream& s,bool global)
/* is a procedure. If it is, it executes it, otherwise, it */
/* lets the TrueType rasterizer loose on it. */
- /* When this proceedure is executed the stack tqcontains */
+ /* When this proceedure is executed the stack contains */
/* the font dictionary and the character name. We */
/* exchange arguments and move the dictionary to the */
/* dictionary stack. */
@@ -2822,7 +2822,7 @@ void TQPSPrinterFontTTF::download(TQTextStream& s,bool global)
/* stack: charname CharStrings bool */
/* Exchange the CharStrings dictionary and the charname, */
- /* but if the answer was false, tqreplace the character name */
+ /* but if the answer was false, replace the character name */
/* with ".notdef". */
s << " {exch}{exch pop /.notdef}ifelse\n";
/* stack: CharStrings charname */
@@ -3015,7 +3015,7 @@ USHORT TQPSPrinterFontTTF::glyph_for_tqunicode(unsigned short tqunicode)
/*-------------------------------------------------------------------
** sfnts routines
** These routines generate the PostScript "sfnts" array which
-** tqcontains one or more strings which contain a reduced version
+** contains one or more strings which contain a reduced version
** of the TrueType font.
**
** A number of functions are required to accomplish this rather
@@ -3156,7 +3156,7 @@ void TQPSPrinterFontTTF::sfnts_glyf_table(ULONG oldoffset,
** two byte boundary.
*/
if( length % 2 ) {
- qWarning("TrueType font tqcontains a 'glyf' table without 2 byte padding");
+ qWarning("TrueType font contains a 'glyf' table without 2 byte padding");
defective = TRUE;
return;
}
@@ -3216,7 +3216,7 @@ void TQPSPrinterFontTTF::download_sfnts(TQTextStream& s)
int c; /* Input character. */
int diff;
- int count; /* How many `important' tables did we tqfind? */
+ int count; /* How many `important' tables did we find? */
BYTE* ptr = offset_table + 12; // original table directory
ULONG nextoffset=0;
@@ -3536,7 +3536,7 @@ static double intest( int co, int ci, charproc_data *cd )
}
/*
-** tqfind the nearest out contour to a specified in contour.
+** find the nearest out contour to a specified in contour.
*/
static int nearout(int ci, charproc_data* cd)
{
@@ -3802,7 +3802,7 @@ void TQPSPrinterFontTTF::subsetGlyph(int charindex,bool* glyphset)
glyphset[ glyphIndex ] = TRUE;
subsetGlyph( glyphIndex, glyphset );
- //printf("subset tqcontains: %d %s ",glyphIndex, glyphName(glyphIndex).latin1());
+ //printf("subset contains: %d %s ",glyphIndex, glyphName(glyphIndex).latin1());
if(flags & ARG_1_AND_2_ARE_WORDS) {
glyph += 2;
@@ -4078,12 +4078,12 @@ TQPSPrinterFontPFA::TQPSPrinterFontPFA(const TQFontEngine *f, TQByteArray& d)
while (fontnameptr[l] != ' ') l++;
psname = TQString::tqfromLatin1(fontnameptr,l);
- tqreplacementList = makePSFontNameList( f, psname );
+ replacementList = makePSFontNameList( f, psname );
}
void TQPSPrinterFontPFA::download(TQTextStream& s, bool global)
{
- emitPSFontNameList( s, psname, tqreplacementList);
+ emitPSFontNameList( s, psname, replacementList);
if ( !embedFonts ) {
downloadMapping(s, global);
@@ -4145,12 +4145,12 @@ TQPSPrinterFontPFB::TQPSPrinterFontPFB(const TQFontEngine *f, TQByteArray& d)
while (fontnameptr[l] != ' ') l++;
psname = TQString::tqfromLatin1(fontnameptr,l);
- tqreplacementList = makePSFontNameList( f, psname );
+ replacementList = makePSFontNameList( f, psname );
}
void TQPSPrinterFontPFB::download(TQTextStream& s, bool global)
{
- emitPSFontNameList( s, psname, tqreplacementList);
+ emitPSFontNameList( s, psname, replacementList);
if ( !embedFonts ) {
downloadMapping(s, global);
@@ -4239,13 +4239,13 @@ private:
TQPSPrinterFontNotFound::TQPSPrinterFontNotFound(const TQFontEngine* f)
{
psname = makePSFontName( f );
- tqreplacementList = makePSFontNameList( f );
+ replacementList = makePSFontNameList( f );
}
void TQPSPrinterFontNotFound::download(TQTextStream& s, bool)
{
//qDebug("downloading not found font %s", psname.latin1() );
- emitPSFontNameList( s, psname, tqreplacementList );
+ emitPSFontNameList( s, psname, replacementList );
s << "% No embeddable font for ";
s << psname;
s << " found\n";
@@ -4328,7 +4328,7 @@ TQString TQPSPrinterFontAsian::defineFont( TQTextStream &stream, const TQString
TQString fontName;
TQString fontName2;
- TQString *tmp = d->headerFontNames.tqfind( ps );
+ TQString *tmp = d->headerFontNames.find( ps );
if ( d->buffer ) {
if ( tmp ) {
@@ -4364,7 +4364,7 @@ void TQPSPrinterFontAsian::download(TQTextStream& s, bool)
//qDebug("downloading asian font %s", psname.latin1() );
s << "% Asian postscript font requested. Using "
<< psname << endl;
- emitPSFontNameList( s, psname, tqreplacementList );
+ emitPSFontNameList( s, psname, replacementList );
}
void TQPSPrinterFontAsian::drawText( TQTextStream &stream, const TQPoint &p, TQTextEngine *engine, int item,
@@ -4516,10 +4516,10 @@ TQPSPrinterFontJapanese::TQPSPrinterFontJapanese(const TQFontEngine* f)
int type = getPsFontType( f );
psname = makePSFontName( f, type );
TQString best = "[ /" + psname + " 1.0 0.0 ]";
- tqreplacementList.append( best );
+ replacementList.append( best );
- const psfont *const *tqreplacements = ( psname.tqcontains( "Helvetica" ) ? Japanese2Replacements : Japanese1Replacements );
- appendReplacements( tqreplacementList, tqreplacements, type );
+ const psfont *const *replacements = ( psname.contains( "Helvetica" ) ? Japanese2Replacements : Japanese1Replacements );
+ appendReplacements( replacementList, replacements, type );
}
TQString TQPSPrinterFontJapanese::extension() const
@@ -4615,8 +4615,8 @@ TQPSPrinterFontKorean::TQPSPrinterFontKorean(const TQFontEngine* f)
int type = getPsFontType( f );
psname = makePSFontName( f, type );
TQString best = "[ /" + psname + " 1.0 0.0 ]";
- tqreplacementList.append( best );
- appendReplacements( tqreplacementList, KoreanReplacements, type );
+ replacementList.append( best );
+ appendReplacements( replacementList, KoreanReplacements, type );
}
TQString TQPSPrinterFontKorean::extension() const
@@ -4756,8 +4756,8 @@ TQPSPrinterFontTraditionalChinese::TQPSPrinterFontTraditionalChinese(const TQFon
int type = getPsFontType( f );
psname = makePSFontName( f, type );
TQString best = "[ /" + psname + " 1.0 0.0 ]";
- tqreplacementList.append( best );
- appendReplacements( tqreplacementList, TraditionalReplacements, type );
+ replacementList.append( best );
+ appendReplacements( replacementList, TraditionalReplacements, type );
}
TQString TQPSPrinterFontTraditionalChinese::extension() const
@@ -4869,18 +4869,18 @@ TQPSPrinterFontSimplifiedChinese::TQPSPrinterFontSimplifiedChinese(const TQFontE
codec = TQTextCodec::codecForMib( 114 ); // GB18030
int type = getPsFontType( f );
TQString family = f->fontDef.family.lower();
- if( family.tqcontains("kai",FALSE) ) {
+ if( family.contains("kai",FALSE) ) {
psname = KaiGBK2K[type].psname;
- appendReplacements( tqreplacementList, KaiGBK2KReplacements, type );
- } else if( family.tqcontains("fangsong",FALSE) ) {
+ appendReplacements( replacementList, KaiGBK2KReplacements, type );
+ } else if( family.contains("fangsong",FALSE) ) {
psname = FangSongGBK2K[type].psname;
- appendReplacements( tqreplacementList, FangSongGBK2KReplacements, type );
- } else if( family.tqcontains("hei",FALSE) ) {
+ appendReplacements( replacementList, FangSongGBK2KReplacements, type );
+ } else if( family.contains("hei",FALSE) ) {
psname = HeiGBK2K[type].psname;
- appendReplacements( tqreplacementList, HeiGBK2KReplacements, type );
+ appendReplacements( replacementList, HeiGBK2KReplacements, type );
} else {
psname = SongGBK2K[type].psname;
- appendReplacements( tqreplacementList, SimplifiedReplacements, type );
+ appendReplacements( replacementList, SimplifiedReplacements, type );
}
//qDebug("simplified chinese: fontname is %s, psname=%s", f.family().latin1(), psname.latin1() );
}
@@ -4950,11 +4950,11 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate
TQString rawName;
if ( engine && engine != (TQFontEngine *)-1 )
rawName = engine->name();
- int index = rawName.tqfind('-');
+ int index = rawName.find('-');
if (index == 0) {
// this is an XLFD font name
for (int i=0; i < 6; i++) {
- index = rawName.tqfind('-',index+1);
+ index = rawName.find('-',index+1);
}
xfontname = rawName.mid(0,index);
if ( xfontname.endsWith( "*" ) )
@@ -5008,7 +5008,7 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate
#endif
//qDebug("looking for font %s in dict", xfontname.latin1() );
- p = priv->fonts.tqfind(xfontname);
+ p = priv->fonts.find(xfontname);
if ( p )
return;
@@ -5034,12 +5034,12 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate
// fold to lower (since X folds to lowercase)
//qWarning(xfontname);
//qWarning(mapping);
- if (mapping.lower().tqcontains(searchname.lower())) {
- int index = mapping.tqfind(' ',0);
+ if (mapping.lower().contains(searchname.lower())) {
+ int index = mapping.find(' ',0);
TQString ffn = mapping.mid(0,index);
// remove the most common bitmap formats
- if( !ffn.tqcontains( ".pcf" ) && !ffn.tqcontains( ".bdf" ) &&
- !ffn.tqcontains( ".spd" ) && !ffn.tqcontains( ".phont" ) ) {
+ if( !ffn.contains( ".pcf" ) && !ffn.contains( ".bdf" ) &&
+ !ffn.contains( ".spd" ) && !ffn.contains( ".phont" ) ) {
fontfilename = (*it) + TQString("/") + ffn;
if ( TQFile::exists(fontfilename) ) {
//qDebug("found font file %s", fontfilename.latin1());
@@ -5127,7 +5127,7 @@ TQPSPrinterFont::TQPSPrinterFont(const TQFont &f, int script, TQPSPrinterPrivate
}
} else
#endif
- //qDebug("didnt tqfind font for %s", xfontname.latin1());
+ //qDebug("didnt find font for %s", xfontname.latin1());
p = new TQPSPrinterFontNotFound( engine );
break;
}
@@ -5195,15 +5195,15 @@ TQPSPrinterPrivate::TQPSPrinterPrivate( TQPrinter *prt, int filedes )
TQString fs;
f.readLine(fs, 1024);
fs=fs.stripWhiteSpace();
- if (fs.left(9)=="catalogue" && fs.tqcontains('=')) {
- fs=fs.mid(fs.tqfind('=')+1).stripWhiteSpace();
+ if (fs.left(9)=="catalogue" && fs.contains('=')) {
+ fs=fs.mid(fs.find('=')+1).stripWhiteSpace();
bool end = FALSE;
while( f.status()==IO_Ok && !end ) {
if ( fs[int(fs.length())-1] == ',' )
fs = fs.left(fs.length()-1);
else
end = TRUE;
- if (fs[0] != '#' && !fs.tqcontains(":unscaled"))
+ if (fs[0] != '#' && !fs.contains(":unscaled"))
fontpath += fs;
f.readLine(fs, 1024);
fs=fs.stripWhiteSpace();
@@ -5268,9 +5268,9 @@ void TQPSPrinterPrivate::setFont( const TQFont & fnt, int script )
key += " px" + toString( f.pixelSize() );
TQString * tmp;
if ( !buffer )
- tmp = pageFontNames.tqfind( key );
+ tmp = pageFontNames.find( key );
else
- tmp = headerFontNames.tqfind( key );
+ tmp = headerFontNames.find( key );
TQString fontName;
if ( tmp )
@@ -5283,7 +5283,7 @@ void TQPSPrinterPrivate::setFont( const TQFont & fnt, int script )
ps.append( ' ' );
ps.prepend( ' ' );
- if ( !fontsUsed.tqcontains( ps ) )
+ if ( !fontsUsed.contains( ps ) )
fontsUsed += ps;
#ifndef TQT_NO_TEXTCODEC
@@ -5465,7 +5465,7 @@ static TQByteArray compress( const TQImage & image, bool gray ) {
looking for some spot where those pixels of those two colours
occur at the right distance from each other.
- when we tqfind a spot, we'll try a string-compare of all the
+ when we find a spot, we'll try a string-compare of all the
intervening pixels. we only do a maximum of 128 both-ends
compares or 64 full-string compares. it's more important to be
fast than get the ultimate in compression.
@@ -5991,9 +5991,9 @@ void TQPSPrinterPrivate::emitHeader( bool finished )
" [ m s s s ] [ s m s s ]" // dash dot line
" [ m s s s s ] [ s m s s s s ]" // dash dot dot line
" ] d\n";
- lineStyles.tqreplace( TQRegExp( "w" ), toString( 10./scale ) );
- lineStyles.tqreplace( TQRegExp( "m" ), toString( 5./scale ) );
- lineStyles.tqreplace( TQRegExp( "s" ), toString( 3./scale ) );
+ lineStyles.replace( TQRegExp( "w" ), toString( 10./scale ) );
+ lineStyles.replace( TQRegExp( "m" ), toString( 5./scale ) );
+ lineStyles.replace( TQRegExp( "s" ), toString( 3./scale ) );
outStream << lineStyles;
diff --git a/tqtinterface/qt4/src/kernel/tqrect.cpp b/tqtinterface/qt4/src/kernel/tqrect.cpp
index aa16303..2c9b9f3 100644
--- a/tqtinterface/qt4/src/kernel/tqrect.cpp
+++ b/tqtinterface/qt4/src/kernel/tqrect.cpp
@@ -130,8 +130,8 @@ void TQRect::coords( int *xp1, int *yp1, int *xp2, int *yp2 ) const
moveBottomRight(), etc. You can also add coordinates to a
rectangle with addCoords().
- You can test to see if a TQRect tqcontains a specific point with
- tqcontains(). You can also test to see if two TQRects intersect with
+ You can test to see if a TQRect contains a specific point with
+ contains(). You can also test to see if two TQRects intersect with
intersects() (see also intersect()). To get the bounding rectangle
of two TQRects use unite().
@@ -789,7 +789,7 @@ void TQRect::setSize( const TQSize &s )
inside (not on the edge).
*/
-bool TQRect::tqcontains( const TQPoint &p, bool proper ) const
+bool TQRect::contains( const TQPoint &p, bool proper ) const
{
if ( proper )
return p.x() > x1 && p.x() < x2 &&
@@ -800,7 +800,7 @@ bool TQRect::tqcontains( const TQPoint &p, bool proper ) const
}
/*!
- \overload bool TQRect::tqcontains( int x, int y, bool proper ) const
+ \overload bool TQRect::contains( int x, int y, bool proper ) const
Returns TRUE if the point \a x, \a y is inside this rectangle;
otherwise returns FALSE.
@@ -810,7 +810,7 @@ bool TQRect::tqcontains( const TQPoint &p, bool proper ) const
*/
/*!
- \overload bool TQRect::tqcontains( int x, int y ) const
+ \overload bool TQRect::contains( int x, int y ) const
Returns TRUE if the point \a x, \a y is inside this rectangle;
otherwise returns FALSE.
@@ -828,7 +828,7 @@ bool TQRect::tqcontains( const TQPoint &p, bool proper ) const
\sa unite(), intersect(), intersects()
*/
-bool TQRect::tqcontains( const TQRect &r, bool proper ) const
+bool TQRect::contains( const TQRect &r, bool proper ) const
{
if ( proper )
return r.x1 > x1 && r.x2 < x2 && r.y1 > y1 && r.y2 < y2;
@@ -862,7 +862,7 @@ TQRect& TQRect::operator&=(const TQRect &r)
The bounding rectangle of a nonempty rectangle and an empty or
invalid rectangle is defined to be the nonempty rectangle.
- \sa operator|=(), operator&(), intersects(), tqcontains()
+ \sa operator|=(), operator&(), intersects(), contains()
*/
TQRect TQRect::operator|(const TQRect &r) const
@@ -898,7 +898,7 @@ TQRect TQRect::unite( const TQRect &r ) const
Returns an empty rectangle if there is no intersection.
- \sa operator&=(), operator|(), isEmpty(), intersects(), tqcontains()
+ \sa operator&=(), operator|(), isEmpty(), intersects(), contains()
*/
TQRect TQRect::operator&( const TQRect &r ) const
@@ -925,7 +925,7 @@ TQRect TQRect::intersect( const TQRect &r ) const
(there is at least one pixel that is within both rectangles);
otherwise returns FALSE.
- \sa intersect(), tqcontains()
+ \sa intersect(), contains()
*/
bool TQRect::intersects( const TQRect &r ) const
diff --git a/tqtinterface/qt4/src/kernel/tqrect.h b/tqtinterface/qt4/src/kernel/tqrect.h
index e208978..8d5dc2b 100644
--- a/tqtinterface/qt4/src/kernel/tqrect.h
+++ b/tqtinterface/qt4/src/kernel/tqrect.h
@@ -66,10 +66,10 @@ public:
void moveBy( int dx, int dy ) { translate(dx, dy); }
- inline bool tqcontains( const TQPoint &p, bool proper=FALSE ) const { return contains(p, proper); }
- inline bool tqcontains( int x, int y ) const { return contains(x, y); }
- inline bool tqcontains( int x, int y, bool proper ) const { return contains(x, y, proper); }
- inline bool tqcontains( const TQRect &r, bool proper=FALSE ) const { return contains(r, proper); }
+ inline bool contains( const TQPoint &p, bool proper=FALSE ) const { return contains(p, proper); }
+ inline bool contains( int x, int y ) const { return contains(x, y); }
+ inline bool contains( int x, int y, bool proper ) const { return contains(x, y, proper); }
+ inline bool contains( const TQRect &r, bool proper=FALSE ) const { return contains(r, proper); }
inline void addCoords( int x1, int y1, int x2, int y2 ) { adjust(x1, y1, x2, y2); }
@@ -172,10 +172,10 @@ public:
TQRect& operator|=(const TQRect &r);
TQRect& operator&=(const TQRect &r);
- bool tqcontains( const TQPoint &p, bool proper=FALSE ) const;
- bool tqcontains( int x, int y ) const; // inline methods, _don't_ merge these
- bool tqcontains( int x, int y, bool proper ) const;
- bool tqcontains( const TQRect &r, bool proper=FALSE ) const;
+ bool contains( const TQPoint &p, bool proper=FALSE ) const;
+ bool contains( int x, int y ) const; // inline methods, _don't_ merge these
+ bool contains( int x, int y, bool proper ) const;
+ bool contains( const TQRect &r, bool proper=FALSE ) const;
TQRect unite( const TQRect &r ) const;
TQRect intersect( const TQRect &r ) const;
bool intersects( const TQRect &r ) const;
@@ -305,7 +305,7 @@ inline int TQRect::height() const
inline TQSize TQRect::size() const
{ return TQSize(x2-x1+1, y2-y1+1); }
-inline bool TQRect::tqcontains( int x, int y, bool proper ) const
+inline bool TQRect::contains( int x, int y, bool proper ) const
{
if ( proper )
return x > x1 && x < x2 &&
@@ -315,7 +315,7 @@ inline bool TQRect::tqcontains( int x, int y, bool proper ) const
y >= y1 && y <= y2;
}
-inline bool TQRect::tqcontains( int x, int y ) const
+inline bool TQRect::contains( int x, int y ) const
{
return x >= x1 && x <= x2 &&
y >= y1 && y <= y2;
diff --git a/tqtinterface/qt4/src/kernel/tqregion.cpp b/tqtinterface/qt4/src/kernel/tqregion.cpp
index 58bf4eb..20d42c3 100644
--- a/tqtinterface/qt4/src/kernel/tqregion.cpp
+++ b/tqtinterface/qt4/src/kernel/tqregion.cpp
@@ -75,7 +75,7 @@ TQRegion::TQRegion(const QPolygon &pa, bool winding)
or). You can move a region using translate().
You can test whether a region isNull(), isEmpty() or if it
- tqcontains() a TQPoint or TQRect. The bounding rectangle is given by
+ contains() a TQPoint or TQRect. The bounding rectangle is given by
boundingRect().
The function rects() gives a decomposition of the region into
diff --git a/tqtinterface/qt4/src/kernel/tqregion.h b/tqtinterface/qt4/src/kernel/tqregion.h
index 179d33d..d8a5d29 100644
--- a/tqtinterface/qt4/src/kernel/tqregion.h
+++ b/tqtinterface/qt4/src/kernel/tqregion.h
@@ -70,8 +70,8 @@ public:
inline bool isNull() const { return isEmpty(); }
- inline bool tqcontains( const QPoint &p ) const { return contains(p); }
- inline bool tqcontains( const QRect &r ) const { return contains(r); }
+ inline bool contains( const QPoint &p ) const { return contains(p); }
+ inline bool contains( const QRect &r ) const { return contains(r); }
inline TQMemArray<TQRect> tqrects() const {
QVector<QRect> qvr = rects();
@@ -116,8 +116,8 @@ public:
bool isNull() const;
bool isEmpty() const;
- bool tqcontains( const TQPoint &p ) const;
- bool tqcontains( const TQRect &r ) const;
+ bool contains( const TQPoint &p ) const;
+ bool contains( const TQRect &r ) const;
void translate( int dx, int dy );
diff --git a/tqtinterface/qt4/src/kernel/tqregion_x11.cpp b/tqtinterface/qt4/src/kernel/tqregion_x11.cpp
index 4e573c9..ddc80a0 100644
--- a/tqtinterface/qt4/src/kernel/tqregion_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqregion_x11.cpp
@@ -563,7 +563,7 @@ miCoalesce (register TQRegionPrivate *pReg, int prevStart, int curStart)
if (pCurBox != pRegEnd)
{
/*
- * If more than one band was added, we have to tqfind the start
+ * If more than one band was added, we have to find the start
* of the last band added so the next coalescing job can start
* at the right place... (given when multiple bands are added,
* this may be pointless -- see above).
@@ -1494,7 +1494,7 @@ SOFTWARE.
************************************************************************/
/*
- * This file tqcontains a few macros to help track
+ * This file contains a few macros to help track
* the edge of a filled object. The object is assumed
* to be filled in scanline order, and thus the
* algorithm used is an extension of Bresenham's line
@@ -1578,7 +1578,7 @@ SOFTWARE.
/*
- * This structure tqcontains all of the information needed
+ * This structure contains all of the information needed
* to run the bresenham algorithm.
* The variables may be hardcoded into the declarations
* instead of using this structure to make use of
@@ -1799,8 +1799,8 @@ SOFTWARE.
* InsertEdgeInET
*
* Insert the given edge into the edge table.
- * First we must tqfind the correct bucket in the
- * Edge table, then tqfind the right slot in the
+ * First we must find the correct bucket in the
+ * Edge table, then find the right slot in the
* bucket. Finally, we can insert it.
*
*/
@@ -1813,7 +1813,7 @@ InsertEdgeInET(EdgeTable *ET, EdgeTableEntry *ETE, int scanline,
ScanLineListBlock *tmpSLLBlock;
/*
- * tqfind the right bucket to put the edge into
+ * find the right bucket to put the edge into
*/
pPrevSLL = &ET->scanlines;
pSLL = pPrevSLL->next;
@@ -1928,7 +1928,7 @@ CreateETandAET(register int count, register TQPoint *pts,
CurrPt = pts++;
/*
- * tqfind out which point is above and which is below.
+ * find out which point is above and which is below.
*/
if (PrevPt->y() > CurrPt->y() )
{
@@ -2643,7 +2643,7 @@ bool TQRegion::isNull() const
/*!
Returns TRUE if the region is empty; otherwise returns FALSE. An
- empty region is a region that tqcontains no points.
+ empty region is a region that contains no points.
Example:
\code
@@ -2672,11 +2672,11 @@ bool TQRegion::isEmpty() const
/*!
- Returns TRUE if the region tqcontains the point \a p; otherwise
+ Returns TRUE if the region contains the point \a p; otherwise
returns FALSE.
*/
-bool TQRegion::tqcontains( const TQPoint &p ) const
+bool TQRegion::contains( const TQPoint &p ) const
{
return PointInRegion( data->region, p.x(), p.y() );
}
@@ -2688,7 +2688,7 @@ bool TQRegion::tqcontains( const TQPoint &p ) const
returns FALSE.
*/
-bool TQRegion::tqcontains( const TQRect &r ) const
+bool TQRegion::contains( const TQRect &r ) const
{
return RectInRegion( data->region, r.left(), r.top(),
r.width(), r.height() ) != RectangleOut;
diff --git a/tqtinterface/qt4/src/kernel/tqrichtext.cpp b/tqtinterface/qt4/src/kernel/tqrichtext.cpp
index 00484d6..e8e91b3 100644
--- a/tqtinterface/qt4/src/kernel/tqrichtext.cpp
+++ b/tqtinterface/qt4/src/kernel/tqrichtext.cpp
@@ -8885,12 +8885,12 @@ void TQTextCursor::insert( const QString &str, bool checkNewLine, TQMemArray<TQT
#if defined(TQ_WS_WIN)
if ( checkNewLine ) {
int i = 0;
- while ( ( i = s.tqfind( '\r', i ) ) != -1 )
+ while ( ( i = s.find( '\r', i ) ) != -1 )
s.remove( i ,1 );
}
#endif
if ( checkNewLine )
- justInsert = s.tqfind( '\n' ) == -1;
+ justInsert = s.find( '\n' ) == -1;
if ( justInsert ) { // we ignore new lines and insert all in the current para at the current index
para->insert( idx, s.tqunicode(), s.length() );
if ( formatting ) {
@@ -8908,8 +8908,8 @@ void TQTextCursor::insert( const QString &str, bool checkNewLine, TQMemArray<TQT
int y = para->rect().y() + para->rect().height();
int lastIndex = 0;
do {
- end = s.tqfind( '\n', start + 1 ); // tqfind line break
- if ( end == -1 ) // didn't tqfind one, so end of line is end of string
+ end = s.find( '\n', start + 1 ); // find line break
+ if ( end == -1 ) // didn't find one, so end of line is end of string
end = s.length();
int len = (start == -1 ? end : end - start - 1);
if ( len > 0 ) // insert the line
@@ -9846,7 +9846,7 @@ void TQTextDocument::setPlainText( const TQString &text )
oText = text;
int lastNl = 0;
- int nl = text.tqfind( '\n' );
+ int nl = text.find( '\n' );
if ( nl == -1 ) {
lParag = createParagraph( this, lParag, 0 );
if ( !fParag )
@@ -9872,7 +9872,7 @@ void TQTextDocument::setPlainText( const TQString &text )
if ( nl == (int)text.length() )
break;
lastNl = nl + 1;
- nl = text.tqfind( '\n', nl + 1 );
+ nl = text.find( '\n', nl + 1 );
if ( nl == -1 )
nl = text.length();
}
@@ -10065,7 +10065,7 @@ void TQTextDocument::setRichTextInternal( const TQString &text, TQTextCursor* cu
#endif
// some well-known tags, some have a nstyle, some not
- if ( wellKnownTags.tqfind( tagname ) != -1 ) {
+ if ( wellKnownTags.find( tagname ) != -1 ) {
if ( tagname == "br" ) {
emptyTag = space = TRUE;
int index = TQMAX( curpar->length(),1) - 1;
@@ -10086,11 +10086,11 @@ void TQTextDocument::setRichTextInternal( const TQString &text, TQTextCursor* cu
custom = parseTable( attr, format, doc, length, pos, curpar );
#endif
} else if ( tagname == "qt" || tagname == "body" ) {
- if ( attr.tqcontains( "bgcolor" ) ) {
+ if ( attr.contains( "bgcolor" ) ) {
TQBrush *b = new TQBrush( TQColor( attr["bgcolor"] ) );
setPaper( b );
}
- if ( attr.tqcontains( "background" ) ) {
+ if ( attr.contains( "background" ) ) {
#ifndef TQT_NO_MIME
TQImage img;
TQString bg = attr["background"];
@@ -10108,21 +10108,21 @@ void TQTextDocument::setRichTextInternal( const TQString &text, TQTextCursor* cu
}
#endif
}
- if ( attr.tqcontains( "text" ) ) {
+ if ( attr.contains( "text" ) ) {
TQColor c( attr["text"] );
initag.format.setColor( c );
curtag.format.setColor( c );
bodyText = c;
}
- if ( attr.tqcontains( "link" ) )
+ if ( attr.contains( "link" ) )
linkColor = TQColor( attr["link"] );
- if ( attr.tqcontains( "title" ) )
- attribs.tqreplace( "title", attr["title"] );
+ if ( attr.contains( "title" ) )
+ attribs.replace( "title", attr["title"] );
if ( textEditMode ) {
- if ( attr.tqcontains("style" ) ) {
+ if ( attr.contains("style" ) ) {
TQString a = attr["style"];
- for ( int s = 0; s < a.tqcontains(';')+1; s++ ) {
+ for ( int s = 0; s < a.contains(';')+1; s++ ) {
TQString style = a.section( ';', s, s );
if ( style.startsWith("font-size:" ) && style.endsWith("pt") ) {
scaleFontsFactor = double( formatCollection()->defaultFormat()->fn.pointSize() ) /
@@ -10145,7 +10145,7 @@ void TQTextDocument::setRichTextInternal( const TQString &text, TQTextCursor* cu
title += doc[ pos ];
++pos;
}
- attribs.tqreplace( "title", title );
+ attribs.replace( "title", title );
}
} // end of well-known tag handling
@@ -10256,7 +10256,7 @@ void TQTextDocument::setRichTextInternal( const TQString &text, TQTextCursor* cu
if ( nstyle->name() == "ul" )
curtag.style = sheet_->item( "ol" );
- if ( attr.tqcontains( "align" ) ) {
+ if ( attr.contains( "align" ) ) {
TQString align = attr["align"].lower();
if ( align == "center" )
curtag.tqalignment = TQt::AlignCenter;
@@ -10265,7 +10265,7 @@ void TQTextDocument::setRichTextInternal( const TQString &text, TQTextCursor* cu
else if ( align == "justify" )
curtag.tqalignment = TQt::AlignJustify;
}
- if ( attr.tqcontains( "dir" ) ) {
+ if ( attr.contains( "dir" ) ) {
TQString dir = attr["dir"];
if ( dir == "rtl" )
curtag.direction = TQChar::DirR;
@@ -10276,14 +10276,14 @@ void TQTextDocument::setRichTextInternal( const TQString &text, TQTextCursor* cu
NEWPAR;
if ( curtag.style->displayMode() == TQStyleSheetItem::DisplayListItem ) {
- if ( attr.tqcontains( "value " ) )
+ if ( attr.contains( "value " ) )
curpar->setListValue( attr["value"].toInt() );
}
- if ( attr.tqcontains( "style" ) ) {
+ if ( attr.contains( "style" ) ) {
TQString a = attr["style"];
bool ok = TRUE;
- for ( int s = 0; ok && s < a.tqcontains(';')+1; s++ ) {
+ for ( int s = 0; ok && s < a.contains(';')+1; s++ ) {
TQString style = a.section( ';', s, s );
if ( style.startsWith("margin-top:" ) && style.endsWith("px") )
curpar->utm = 1+style.mid(11, style.length() - 13).toInt(&ok);
@@ -10852,7 +10852,7 @@ void TQTextDocument::tqinvalidate()
void TQTextDocument::selectionStart( int id, int &paragId, int &index )
{
- QMap<int, TQTextDocumentSelection>::Iterator it = selections.tqfind( id );
+ QMap<int, TQTextDocumentSelection>::Iterator it = selections.find( id );
if ( it == selections.end() )
return;
TQTextDocumentSelection &sel = *it;
@@ -10862,7 +10862,7 @@ void TQTextDocument::selectionStart( int id, int &paragId, int &index )
TQTextCursor TQTextDocument::selectionStartCursor( int id)
{
- QMap<int, TQTextDocumentSelection>::Iterator it = selections.tqfind( id );
+ QMap<int, TQTextDocumentSelection>::Iterator it = selections.find( id );
if ( it == selections.end() )
return TQTextCursor( this );
TQTextDocumentSelection &sel = *it;
@@ -10873,7 +10873,7 @@ TQTextCursor TQTextDocument::selectionStartCursor( int id)
TQTextCursor TQTextDocument::selectionEndCursor( int id)
{
- QMap<int, TQTextDocumentSelection>::Iterator it = selections.tqfind( id );
+ QMap<int, TQTextDocumentSelection>::Iterator it = selections.find( id );
if ( it == selections.end() )
return TQTextCursor( this );
TQTextDocumentSelection &sel = *it;
@@ -10884,7 +10884,7 @@ TQTextCursor TQTextDocument::selectionEndCursor( int id)
void TQTextDocument::selectionEnd( int id, int &paragId, int &index )
{
- QMap<int, TQTextDocumentSelection>::Iterator it = selections.tqfind( id );
+ QMap<int, TQTextDocumentSelection>::Iterator it = selections.find( id );
if ( it == selections.end() )
return;
TQTextDocumentSelection &sel = *it;
@@ -10923,7 +10923,7 @@ static void setSelectionEndHelper( int id, TQTextDocumentSelection &sel, TQTextC
bool TQTextDocument::setSelectionEnd( int id, const TQTextCursor &cursor )
{
- QMap<int, TQTextDocumentSelection>::Iterator it = selections.tqfind( id );
+ QMap<int, TQTextDocumentSelection>::Iterator it = selections.find( id );
if ( it == selections.end() )
return FALSE;
TQTextDocumentSelection &sel = *it;
@@ -11077,7 +11077,7 @@ void TQTextDocument::selectAll( int id )
bool TQTextDocument::removeSelection( int id )
{
- if ( !selections.tqcontains( id ) )
+ if ( !selections.contains( id ) )
return FALSE;
TQTextDocumentSelection &sel = selections[ id ];
@@ -11103,7 +11103,7 @@ bool TQTextDocument::removeSelection( int id )
TQString TQTextDocument::selectedText( int id, bool asRichText ) const
{
- QMap<int, TQTextDocumentSelection>::ConstIterator it = selections.tqfind( id );
+ QMap<int, TQTextDocumentSelection>::ConstIterator it = selections.find( id );
if ( it == selections.end() )
return TQString::null;
@@ -11152,17 +11152,17 @@ TQString TQTextDocument::selectedText( int id, bool asRichText ) const
richTextExportEnd = &c2;
TQString sel = richText();
- int from = sel.tqfind( "<!--StartFragment-->" );
+ int from = sel.find( "<!--StartFragment-->" );
if ( from >= 0 ) {
from += 20;
- // tqfind the previous span and move it into the start fragment before we clip it
+ // find the previous span and move it into the start fragment before we clip it
TQString prevspan;
- int pspan = sel.tqfindRev( "<span", from-21 );
- if ( pspan > sel.tqfindRev( "</span", from-21 ) ) {
- int spanend = sel.tqfind( '>', pspan );
+ int pspan = sel.findRev( "<span", from-21 );
+ if ( pspan > sel.findRev( "</span", from-21 ) ) {
+ int spanend = sel.find( '>', pspan );
prevspan = sel.mid( pspan, spanend - pspan + 1 );
}
- int to = sel.tqfindRev( "<!--EndFragment-->" );
+ int to = sel.findRev( "<!--EndFragment-->" );
if ( from <= to )
sel = "<!--StartFragment-->" + prevspan + sel.mid( from, to - from );
}
@@ -11249,7 +11249,7 @@ TQString TQTextDocument::selectedText( int id, bool asRichText ) const
void TQTextDocument::setFormat( int id, TQTextFormat *f, int flags )
{
- QMap<int, TQTextDocumentSelection>::ConstIterator it = selections.tqfind( id );
+ QMap<int, TQTextDocumentSelection>::ConstIterator it = selections.find( id );
if ( it == selections.end() )
return;
@@ -11281,7 +11281,7 @@ void TQTextDocument::setFormat( int id, TQTextFormat *f, int flags )
void TQTextDocument::removeSelectedText( int id, TQTextCursor *cursor )
{
- QMap<int, TQTextDocumentSelection>::Iterator it = selections.tqfind( id );
+ QMap<int, TQTextDocumentSelection>::Iterator it = selections.find( id );
if ( it == selections.end() )
return;
@@ -11345,7 +11345,7 @@ void TQTextDocument::removeSelectedText( int id, TQTextCursor *cursor )
void TQTextDocument::indentSelection( int id )
{
- QMap<int, TQTextDocumentSelection>::Iterator it = selections.tqfind( id );
+ QMap<int, TQTextDocumentSelection>::Iterator it = selections.find( id );
if ( it == selections.end() )
return;
@@ -11379,7 +11379,7 @@ TQTextCursor *TQTextDocument::redo( TQTextCursor *c )
return commandHistory->redo( c );
}
-bool TQTextDocument::tqfind( TQTextCursor& cursor, const TQString &expr, bool cs, bool wo, bool forward )
+bool TQTextDocument::find( TQTextCursor& cursor, const TQString &expr, bool cs, bool wo, bool forward )
{
removeSelection( Standard );
TQTextParagraph *p = 0;
@@ -11391,7 +11391,7 @@ bool TQTextDocument::tqfind( TQTextCursor& cursor, const TQString &expr, bool cs
TQString s = cursor.paragraph()->string()->toString();
int start = cursor.index();
for ( ;; ) {
- int res = forward ? s.tqfind( expr, start, cs ) : s.tqfindRev( expr, start, cs );
+ int res = forward ? s.find( expr, start, cs ) : s.findRev( expr, start, cs );
int end = res + expr.length();
if ( res == -1 || ( !forward && start <= res ) )
break;
@@ -11436,7 +11436,7 @@ TQt::TextFormat TQTextDocument::textFormat() const
bool TQTextDocument::inSelection( int selId, const TQPoint &pos ) const
{
- QMap<int, TQTextDocumentSelection>::ConstIterator it = selections.tqfind( selId );
+ QMap<int, TQTextDocumentSelection>::ConstIterator it = selections.find( selId );
if ( it == selections.end() )
return FALSE;
@@ -11453,7 +11453,7 @@ bool TQTextDocument::inSelection( int selId, const TQPoint &pos ) const
TQTextParagraph *p = startParag;
while ( p ) {
- if ( p->rect().tqcontains( pos ) ) {
+ if ( p->rect().contains( pos ) ) {
bool inSel = FALSE;
int selStart = p->selectionStart( selId );
int selEnd = p->selectionEnd( selId );
@@ -11465,8 +11465,8 @@ bool TQTextDocument::inSelection( int selId, const TQPoint &pos ) const
if ( i == selEnd )
break;
if ( p->at( i )->lineStart ) {
- y = (*p->lineStarts.tqfind( i ))->y;
- h = (*p->lineStarts.tqfind( i ))->h;
+ y = (*p->lineStarts.find( i ))->y;
+ h = (*p->lineStarts.find( i ))->h;
}
if ( pos.y() - p->rect().y() >= y && pos.y() - p->rect().y() <= y + h ) {
if ( inSel && pos.x() >= p->at( i )->x &&
@@ -12780,7 +12780,7 @@ int TQTextParagraph::lineHeightOfChar( int i, int *bl, int *y ) const
--it;
}
- qWarning( "TQTextParagraph::lineHeightOfChar: couldn't tqfind lh for %d", i );
+ qWarning( "TQTextParagraph::lineHeightOfChar: couldn't find lh for %d", i );
return 15;
}
@@ -12806,7 +12806,7 @@ TQTextStringChar *TQTextParagraph::lineStartOfChar( int i, int *index, int *line
--l;
}
- qWarning( "TQTextParagraph::lineStartOfChar: couldn't tqfind %d", i );
+ qWarning( "TQTextParagraph::lineStartOfChar: couldn't find %d", i );
return 0;
}
@@ -12833,7 +12833,7 @@ TQTextStringChar *TQTextParagraph::lineStartOfLine( int line, int *index ) const
return &str->at( i );
}
- qWarning( "TQTextParagraph::lineStartOfLine: couldn't tqfind %d", line );
+ qWarning( "TQTextParagraph::lineStartOfLine: couldn't find %d", line );
return 0;
}
@@ -13047,7 +13047,7 @@ void TQTextParagraph::paint( TQPainter &painter, const TQColorGroup &cg, TQTextC
else if ( chr->customItem()->placement() == TQTextCustomItem::PlaceInline ) {
bool inSelection = FALSE;
if (drawSelections) {
- QMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->tqfind( TQTextDocument::Standard );
+ QMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->find( TQTextDocument::Standard );
inSelection = (it != mSelections->end() && (*it).start <= i && (*it).end > i);
}
chr->customItem()->draw( &painter, chr->x, y,
@@ -13159,7 +13159,7 @@ void TQTextParagraph::drawString( TQPainter &painter, const TQString &str, int s
bool allSelected = FALSE;
if (drawSelections) {
- QMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->tqfind( TQTextDocument::Standard );
+ QMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->find( TQTextDocument::Standard );
allSelected = (it != mSelections->end() && (*it).start <= start && (*it).end >= start+len);
}
if (!allSelected)
@@ -13485,7 +13485,7 @@ TQString TQTextParagraph::richText() const
TQTextStringChar *c = &str->at( i );
if ( c->isAnchor() && !c->anchorName().isEmpty() && c->anchorName() != lastAnchorName ) {
lastAnchorName = c->anchorName();
- if ( c->anchorName().tqcontains( '#' ) ) {
+ if ( c->anchorName().contains( '#' ) ) {
TQStringList l = TQStringList::split( '#', c->anchorName() );
for ( TQStringList::ConstIterator it = l.begin(); it != l.end(); ++it )
s += "<a name=\"" + *it + "\"></a>";
@@ -13878,7 +13878,7 @@ TQTextLineStart *TQTextFormatter::bidiReorderLine( TQTextParagraph * /*parag*/,
void TQTextFormatter::insertLineStart( TQTextParagraph *parag, int index, TQTextLineStart *ls )
{
QMap<int, TQTextLineStart*>::Iterator it;
- if ( ( it = parag->lineStartList().tqfind( index ) ) == parag->lineStartList().end() ) {
+ if ( ( it = parag->lineStartList().find( index ) ) == parag->lineStartList().end() ) {
parag->lineStartList().insert( index, ls );
} else {
delete *it;
@@ -14455,7 +14455,7 @@ TQTextFormat *TQTextFormatCollection::format( TQTextFormat *f )
return lastFormat;
}
- TQTextFormat *fm = cKey.tqfind( f->key() );
+ TQTextFormat *fm = cKey.find( f->key() );
if ( fm ) {
lastFormat = fm;
lastFormat->addRef();
@@ -14506,7 +14506,7 @@ TQTextFormat *TQTextFormatCollection::format( TQTextFormat *of, TQTextFormat *nf
cres->ha = nf->ha;
cres->update();
- TQTextFormat *fm = cKey.tqfind( cres->key() );
+ TQTextFormat *fm = cKey.find( cres->key() );
if ( !fm ) {
cres->collection = this;
cKey.insert( cres->key(), cres );
@@ -14527,7 +14527,7 @@ TQTextFormat *TQTextFormatCollection::format( const TQFont &f, const TQColor &c
}
TQString key = TQTextFormat::getKey( f, c, FALSE, TQTextFormat::AlignNormal );
- cachedFormat = cKey.tqfind( key );
+ cachedFormat = cKey.find( key );
cfont = f;
ccol = c;
@@ -14555,7 +14555,7 @@ void TQTextFormatCollection::remove( TQTextFormat *f )
cres = 0;
if ( cachedFormat == f )
cachedFormat = 0;
- if (cKey.tqfind(f->key()) == f)
+ if (cKey.find(f->key()) == f)
cKey.remove( f->key() );
}
@@ -14843,20 +14843,20 @@ TQTextFormat TQTextFormat::makeTextFormat( const TQStyleSheetItem *style, const
if ( style->name() == "font") {
- if ( attr.tqcontains("color") ) {
+ if ( attr.contains("color") ) {
TQString s = attr["color"];
if ( !s.isEmpty() ) {
format.col.setNamedColor( s );
format.linkColor = FALSE;
}
}
- if ( attr.tqcontains("face") ) {
+ if ( attr.contains("face") ) {
TQString a = attr["face"];
TQString family = a.section( ',', 0, 0 );
if ( !!family )
format.fn.setFamily( family );
}
- if ( attr.tqcontains("size") ) {
+ if ( attr.contains("size") ) {
TQString a = attr["size"];
int n = a.toInt();
if ( a[0] == '+' || a[0] == '-' )
@@ -14869,9 +14869,9 @@ TQTextFormat TQTextFormat::makeTextFormat( const TQStyleSheetItem *style, const
style->styleSheet()->scaleFont( format.fn, format.logicalFontSize );
}
}
- if ( attr.tqcontains("style" ) ) {
+ if ( attr.contains("style" ) ) {
TQString a = attr["style"];
- for ( int s = 0; s < a.tqcontains(';')+1; s++ ) {
+ for ( int s = 0; s < a.contains(';')+1; s++ ) {
TQString style = a.section( ';', s, s );
if ( style.startsWith("font-size:" ) && style.endsWith("pt") ) {
format.logicalFontSize = 0;
@@ -14891,15 +14891,15 @@ TQTextFormat TQTextFormat::makeTextFormat( const TQStyleSheetItem *style, const
format.fn.setWeight( n/8 );
} else if ( style.startsWith("font-family:" ) ) {
TQString family = style.mid(12).section(',',0,0);
- family.tqreplace( '\"', ' ' );
- family.tqreplace( '\'', ' ' );
+ family.replace( '\"', ' ' );
+ family.replace( '\'', ' ' );
family = family.stripWhiteSpace();
format.fn.setFamily( family );
} else if ( style.startsWith("text-decoration:" ) ) {
TQString s = style.mid( 16 );
- format.fn.setOverline( s.tqfind("overline") != -1 );
- format.fn.setStrikeOut( s.tqfind("line-through") != -1 );
- format.fn.setUnderline( s.tqfind("underline") != -1 );
+ format.fn.setOverline( s.find("overline") != -1 );
+ format.fn.setStrikeOut( s.find("line-through") != -1 );
+ format.fn.setUnderline( s.find("underline") != -1 );
} else if ( style.startsWith("vertical-align:" ) ) {
TQString s = TQT_TQSTRING(style.mid( 15 )).stripWhiteSpace();
if ( s == "sub" )
@@ -14936,9 +14936,9 @@ TQTextImage::TQTextImage( TQTextDocument *p, const QMap<TQString, TQString> &att
: TQTextCustomItem( p )
{
width = height = 0;
- if ( attr.tqcontains("width") )
+ if ( attr.contains("width") )
width = attr["width"].toInt();
- if ( attr.tqcontains("height") )
+ if ( attr.contains("height") )
height = attr["height"].toInt();
reg = 0;
@@ -14951,7 +14951,7 @@ TQTextImage::TQTextImage( TQTextDocument *p, const QMap<TQString, TQString> &att
imgId = TQString( "%1,%2,%3,%4" ).arg( imageName ).arg( width ).arg( height ).arg( (ulong)&factory );
if ( !pixmap_map )
pixmap_map = new QMap<TQString, TQPixmapInt>;
- if ( pixmap_map->tqcontains( imgId ) ) {
+ if ( pixmap_map->contains( imgId ) ) {
TQPixmapInt& pmi = pixmap_map->operator[](imgId);
pm = pmi.pm;
pmi.ref++;
@@ -15022,7 +15022,7 @@ TQTextImage::TQTextImage( TQTextDocument *p, const QMap<TQString, TQString> &att
TQTextImage::~TQTextImage()
{
- if ( pixmap_map && pixmap_map->tqcontains( imgId ) ) {
+ if ( pixmap_map && pixmap_map->contains( imgId ) ) {
TQPixmapInt& pmi = pixmap_map->operator[](imgId);
pmi.ref--;
if ( !pmi.ref ) {
@@ -15043,7 +15043,7 @@ TQString TQTextImage::richText() const
QMap<TQString, TQString>::ConstIterator it = attributes.begin();
for ( ; it != attributes.end(); ++it ) {
s += it.key() + "=";
- if ( (*it).tqfind( ' ' ) != -1 )
+ if ( (*it).find( ' ' ) != -1 )
s += "\"" + *it + "\"" + " ";
else
s += *it + " ";
@@ -15129,9 +15129,9 @@ TQTextHorizontalLine::TQTextHorizontalLine( TQTextDocument *p, const QMap<TQStri
: TQTextCustomItem( p )
{
height = tmpheight = 8;
- if ( attr.tqfind( "color" ) != attr.end() )
- color = TQColor( *attr.tqfind( "color" ) );
- shade = attr.tqfind( "noshade" ) == attr.end();
+ if ( attr.find( "color" ) != attr.end() )
+ color = TQColor( *attr.find( "color" ) );
+ shade = attr.find( "noshade" ) == attr.end();
}
TQTextHorizontalLine::~TQTextHorizontalLine()
@@ -15239,13 +15239,13 @@ TQTextCustomItem* TQTextDocument::parseTable( const QMap<TQString, TQString> &at
if ( row >= 0 && col >= 0 ) {
const TQStyleSheetItem* s = sheet_->item(tagname);
- if ( !attr2.tqcontains("bgcolor") ) {
+ if ( !attr2.contains("bgcolor") ) {
if (!rowbgcolor.isEmpty() )
attr2["bgcolor"] = rowbgcolor;
else if (!tablebgcolor.isEmpty() )
attr2["bgcolor"] = tablebgcolor;
}
- if ( !attr2.tqcontains("align") ) {
+ if ( !attr2.contains("align") ) {
if (!rowalign.isEmpty() )
attr2["align"] = rowalign;
}
@@ -15634,7 +15634,7 @@ TQChar TQTextDocument::parseHTMLSpecialChar(const TQChar* doc, int length, int&
if (ok)
return num;
} else {
- QMap<TQString, TQChar>::Iterator it = htmlMap()->tqfind(s);
+ QMap<TQString, TQChar>::Iterator it = htmlMap()->find(s);
if ( it != htmlMap()->end() ) {
return *it;
}
@@ -15871,10 +15871,10 @@ void TQTextFlow::unregisterFloatingItem( TQTextCustomItem* item )
void TQTextFlow::registerFloatingItem( TQTextCustomItem* item )
{
if ( item->placement() == TQTextCustomItem::PlaceRight ) {
- if ( !rightItems.tqcontains( item ) )
+ if ( !rightItems.contains( item ) )
rightItems.append( item );
} else if ( item->placement() == TQTextCustomItem::PlaceLeft &&
- !leftItems.tqcontains( item ) ) {
+ !leftItems.contains( item ) ) {
leftItems.append( item );
}
}
@@ -15931,13 +15931,13 @@ TQTextTable::TQTextTable( TQTextDocument *p, const QMap<TQString, TQString> & at
{
cells.setAutoDelete( FALSE );
cellspacing = 2;
- if ( attr.tqcontains("cellspacing") )
+ if ( attr.contains("cellspacing") )
cellspacing = attr["cellspacing"].toInt();
cellpadding = 1;
- if ( attr.tqcontains("cellpadding") )
+ if ( attr.contains("cellpadding") )
cellpadding = attr["cellpadding"].toInt();
border = innerborder = 0;
- if ( attr.tqcontains("border" ) ) {
+ if ( attr.contains("border" ) ) {
TQString s( attr["border"] );
if ( s == "TRUE" )
border = 1;
@@ -15960,7 +15960,7 @@ TQTextTable::TQTextTable( TQTextDocument *p, const QMap<TQString, TQString> & at
fixwidth = 0;
stretch = 0;
- if ( attr.tqcontains("width") ) {
+ if ( attr.contains("width") ) {
bool b;
TQString s( attr["width"] );
int w = s.toInt( &b );
@@ -16248,14 +16248,14 @@ bool TQTextTable::enterAt( TQTextCursor *c, TQTextDocument *&doc, TQTextParagrap
if ( i == (int) cells.count() )
return FALSE; // no cell found
- if ( currCell.tqfind( c ) == currCell.end() ) {
+ if ( currCell.find( c ) == currCell.end() ) {
if ( lastY != -1 )
currCell.insert( c, lastCell );
else
return FALSE;
}
- TQTextTableCell *cell = cells.at( *currCell.tqfind( c ) );
+ TQTextTableCell *cell = cells.at( *currCell.find( c ) );
if ( !cell )
return FALSE;
doc = cell->richText();
@@ -16269,8 +16269,8 @@ bool TQTextTable::enterAt( TQTextCursor *c, TQTextDocument *&doc, TQTextParagrap
bool TQTextTable::next( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *&parag, int &idx, int &ox, int &oy )
{
int cc = -1;
- if ( currCell.tqfind( c ) != currCell.end() )
- cc = *currCell.tqfind( c );
+ if ( currCell.find( c ) != currCell.end() )
+ cc = *currCell.find( c );
if ( cc > (int)cells.count() - 1 || cc < 0 )
cc = -1;
currCell.remove( c );
@@ -16286,9 +16286,9 @@ bool TQTextTable::next( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *
return TRUE;
}
- if ( currCell.tqfind( c ) == currCell.end() )
+ if ( currCell.find( c ) == currCell.end() )
return FALSE;
- TQTextTableCell *cell = cells.at( *currCell.tqfind( c ) );
+ TQTextTableCell *cell = cells.at( *currCell.find( c ) );
if ( !cell )
return FALSE;
doc = cell->richText();
@@ -16302,8 +16302,8 @@ bool TQTextTable::next( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *
bool TQTextTable::prev( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *&parag, int &idx, int &ox, int &oy )
{
int cc = -1;
- if ( currCell.tqfind( c ) != currCell.end() )
- cc = *currCell.tqfind( c );
+ if ( currCell.find( c ) != currCell.end() )
+ cc = *currCell.find( c );
if ( cc > (int)cells.count() - 1 || cc < 0 )
cc = cells.count();
currCell.remove( c );
@@ -16319,9 +16319,9 @@ bool TQTextTable::prev( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *
return TRUE;
}
- if ( currCell.tqfind( c ) == currCell.end() )
+ if ( currCell.find( c ) == currCell.end() )
return FALSE;
- TQTextTableCell *cell = cells.at( *currCell.tqfind( c ) );
+ TQTextTableCell *cell = cells.at( *currCell.find( c ) );
if ( !cell )
return FALSE;
doc = cell->richText();
@@ -16334,9 +16334,9 @@ bool TQTextTable::prev( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *
bool TQTextTable::down( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *&parag, int &idx, int &ox, int &oy )
{
- if ( currCell.tqfind( c ) == currCell.end() )
+ if ( currCell.find( c ) == currCell.end() )
return FALSE;
- TQTextTableCell *cell = cells.at( *currCell.tqfind( c ) );
+ TQTextTableCell *cell = cells.at( *currCell.find( c ) );
if ( cell->row_ == tqlayout->numRows() - 1 ) {
currCell.insert( c, 0 );
TQTextCustomItem::down( c, doc, parag, idx, ox, oy );
@@ -16350,9 +16350,9 @@ bool TQTextTable::down( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *
int oldRow = cell->row_;
int oldCol = cell->col_;
- if ( currCell.tqfind( c ) == currCell.end() )
+ if ( currCell.find( c ) == currCell.end() )
return FALSE;
- int cc = *currCell.tqfind( c );
+ int cc = *currCell.find( c );
for ( int i = cc; i < (int)cells.count(); ++i ) {
cell = cells.at( i );
if ( cell->row_ > oldRow && cell->col_ == oldCol ) {
@@ -16372,9 +16372,9 @@ bool TQTextTable::down( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *
bool TQTextTable::up( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *&parag, int &idx, int &ox, int &oy )
{
- if ( currCell.tqfind( c ) == currCell.end() )
+ if ( currCell.find( c ) == currCell.end() )
return FALSE;
- TQTextTableCell *cell = cells.at( *currCell.tqfind( c ) );
+ TQTextTableCell *cell = cells.at( *currCell.find( c ) );
if ( cell->row_ == 0 ) {
currCell.insert( c, 0 );
TQTextCustomItem::up( c, doc, parag, idx, ox, oy );
@@ -16388,9 +16388,9 @@ bool TQTextTable::up( TQTextCursor *c, TQTextDocument *&doc, TQTextParagraph *&p
int oldRow = cell->row_;
int oldCol = cell->col_;
- if ( currCell.tqfind( c ) == currCell.end() )
+ if ( currCell.find( c ) == currCell.end() )
return FALSE;
- int cc = *currCell.tqfind( c );
+ int cc = *currCell.find( c );
for ( int i = cc; i >= 0; --i ) {
cell = cells.at( i );
if ( cell->row_ < oldRow && cell->col_ == oldCol ) {
@@ -16430,7 +16430,7 @@ TQTextTableCell::TQTextTableCell( TQTextTable* table,
richtext->formatCollection()->setPaintDevice( table->tqparent->formatCollection()->paintDevice() );
richtext->bodyText = fmt.color();
richtext->setTableCell( this );
- TQString a = *attr.tqfind( "align" );
+ TQString a = *attr.find( "align" );
if ( !a.isEmpty() ) {
a = a.lower();
if ( a == "left" )
@@ -16441,7 +16441,7 @@ TQTextTableCell::TQTextTableCell( TQTextTable* table,
richtext->tqsetAlignment( TQt::AlignRight );
}
align = 0;
- TQString va = *attr.tqfind( "valign" );
+ TQString va = *attr.find( "valign" );
if ( !va.isEmpty() ) {
va = va.lower();
if ( va == "top" )
@@ -16458,19 +16458,19 @@ TQTextTableCell::TQTextTableCell( TQTextTable* table,
richtext->setRichText( doc, context, &fmt );
rowspan_ = 1;
colspan_ = 1;
- if ( attr.tqcontains("colspan") )
+ if ( attr.contains("colspan") )
colspan_ = attr["colspan"].toInt();
- if ( attr.tqcontains("rowspan") )
+ if ( attr.contains("rowspan") )
rowspan_ = attr["rowspan"].toInt();
background = 0;
- if ( attr.tqcontains("bgcolor") ) {
+ if ( attr.contains("bgcolor") ) {
background = new TQBrush(TQColor( attr["bgcolor"] ));
}
hasFixedWidth = FALSE;
- if ( attr.tqcontains("width") ) {
+ if ( attr.contains("width") ) {
bool b;
TQString s( attr["width"] );
int w = s.toInt( &b );
diff --git a/tqtinterface/qt4/src/kernel/tqrichtext_p.cpp b/tqtinterface/qt4/src/kernel/tqrichtext_p.cpp
index d8504df..31649dd 100644
--- a/tqtinterface/qt4/src/kernel/tqrichtext_p.cpp
+++ b/tqtinterface/qt4/src/kernel/tqrichtext_p.cpp
@@ -811,7 +811,7 @@ void TQTextCursor::gotoPosition( TQTextParagraph* p, int index )
bool TQTextDocument::hasSelection( int id, bool visible ) const
{
- return ( selections.tqfind( id ) != selections.end() &&
+ return ( selections.find( id ) != selections.end() &&
( !visible ||
( (TQTextDocument*)this )->selectionStartCursor( id ) !=
( (TQTextDocument*)this )->selectionEndCursor( id ) ) );
@@ -1091,7 +1091,7 @@ TQString TQTextString::toString( const TQMemArray<TQTextStringChar> &data )
void TQTextParagraph::setSelection( int id, int start, int end )
{
- TQMap<int, TQTextParagraphSelection>::ConstIterator it = selections().tqfind( id );
+ TQMap<int, TQTextParagraphSelection>::ConstIterator it = selections().find( id );
if ( it != mSelections->end() ) {
if ( start == ( *it ).start && end == ( *it ).end )
return;
@@ -1117,7 +1117,7 @@ int TQTextParagraph::selectionStart( int id ) const
{
if ( !mSelections )
return -1;
- TQMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->tqfind( id );
+ TQMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->find( id );
if ( it == mSelections->end() )
return -1;
return ( *it ).start;
@@ -1127,7 +1127,7 @@ int TQTextParagraph::selectionEnd( int id ) const
{
if ( !mSelections )
return -1;
- TQMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->tqfind( id );
+ TQMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->find( id );
if ( it == mSelections->end() )
return -1;
return ( *it ).end;
@@ -1135,14 +1135,14 @@ int TQTextParagraph::selectionEnd( int id ) const
bool TQTextParagraph::hasSelection( int id ) const
{
- return mSelections ? mSelections->tqcontains( id ) : FALSE;
+ return mSelections ? mSelections->contains( id ) : FALSE;
}
bool TQTextParagraph::fullSelected( int id ) const
{
if ( !mSelections )
return FALSE;
- TQMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->tqfind( id );
+ TQMap<int, TQTextParagraphSelection>::ConstIterator it = mSelections->find( id );
if ( it == mSelections->end() )
return FALSE;
return ( *it ).start == 0 && ( *it ).end == str->length() - 1;
diff --git a/tqtinterface/qt4/src/kernel/tqrichtext_p.h b/tqtinterface/qt4/src/kernel/tqrichtext_p.h
index edb8c76..bcfdb9b 100644
--- a/tqtinterface/qt4/src/kernel/tqrichtext_p.h
+++ b/tqtinterface/qt4/src/kernel/tqrichtext_p.h
@@ -853,7 +853,6 @@ public:
TQTextFormatCollection *formatCollection() const;
bool find(TQTextCursor &cursor, const TQString &expr, bool cs, bool wo, bool forward);
- inline bool tqfind(TQTextCursor &cursor, const TQString &expr, bool cs, bool wo, bool forward) { return find(cursor, expr, cs, wo, forward); }
void setTextFormat(TQt::TextFormat f);
TQt::TextFormat textFormat() const;
@@ -3027,7 +3026,7 @@ public:
TQTextFormatCollection *formatCollection() const;
- bool tqfind( TQTextCursor &cursor, const TQString &expr, bool cs, bool wo, bool forward);
+ bool find( TQTextCursor &cursor, const TQString &expr, bool cs, bool wo, bool forward);
void setTextFormat( TQt::TextFormat f );
TQt::TextFormat textFormat() const;
diff --git a/tqtinterface/qt4/src/kernel/tqscriptengine.cpp b/tqtinterface/qt4/src/kernel/tqscriptengine.cpp
index a45237f..0bb29fc 100644
--- a/tqtinterface/qt4/src/kernel/tqscriptengine.cpp
+++ b/tqtinterface/qt4/src/kernel/tqscriptengine.cpp
@@ -559,7 +559,7 @@ static bool hebrew_tqshape(TQShaperItem *item)
// and thus have the same enum value
//
// I'm not sure the mapping of syriac to arabic enums is correct with regards to justification, but as
-// I couldn't tqfind any better document I'll hope for the best.
+// I couldn't find any better document I'll hope for the best.
enum ArabicGroup {
// NonJoining
ArabicNone,
@@ -1339,7 +1339,7 @@ static inline const TQChar prevChar(const TQString *str, int pos)
pos--;
ch--;
}
- return TQChar::tqreplacement;
+ return TQChar::replacement;
}
static inline const TQChar nextChar(const TQString *str, int pos)
@@ -1355,7 +1355,7 @@ static inline const TQChar nextChar(const TQString *str, int pos)
pos++;
ch++;
}
- return TQChar::tqreplacement;
+ return TQChar::replacement;
}
diff --git a/tqtinterface/qt4/src/kernel/tqscriptengine_x11.cpp b/tqtinterface/qt4/src/kernel/tqscriptengine_x11.cpp
index 3cd84d7..d42b8d2 100644
--- a/tqtinterface/qt4/src/kernel/tqscriptengine_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqscriptengine_x11.cpp
@@ -1285,9 +1285,9 @@ static bool indic_tqshape_syllable(TQOpenType *openType, TQShaperItem *item, boo
unsigned short *uc = reordered.data();
bool beginsWithRa = FALSE;
- // Rule 1: tqfind base consonant
+ // Rule 1: find base consonant
//
- // The shaping engine tqfinds the base consonant of the
+ // The shaping engine finds the base consonant of the
// syllable, using the following algorithm: starting from the
// end of the syllable, move backwards until a consonant is
// found that does not have a below-base or post-base form
@@ -1301,7 +1301,7 @@ static bool indic_tqshape_syllable(TQOpenType *openType, TQShaperItem *item, boo
//
// * In Kannada and Telugu, the base consonant cannot be
// farther than 3 consonants from the end of the syllable.
- // #### tqreplace the HasReph property by testing if the feature exists in the font!
+ // #### replace the HasReph property by testing if the feature exists in the font!
if (form(*uc) == Consonant || (script == TQFont::Bengali && form(*uc) == IndependentVowel)) {
beginsWithRa = (properties & HasReph) && ((len > 2) && *uc == ra && *(uc+1) == halant);
@@ -1470,7 +1470,7 @@ static bool indic_tqshape_syllable(TQOpenType *openType, TQShaperItem *item, boo
position[base] = Base;
for (i = base+1; i < len; ++i) {
position[i] = indic_position(uc[i]);
- // #### tqreplace by adjusting table
+ // #### replace by adjusting table
if (uc[i] == nukta || uc[i] == halant)
position[i] = Inherit;
}
@@ -1679,7 +1679,7 @@ static bool indic_tqshape_syllable(TQOpenType *openType, TQShaperItem *item, boo
// move the left matra back to it's correct position in malayalam and tamil
if ((script == TQFont::Malayalam || script == TQFont::Tamil) && (form(reordered[0]) == Matra)) {
// qDebug("reordering matra, len=%d", newLen);
- // need to tqfind the base in the tqshaped string and move the matra there
+ // need to find the base in the tqshaped string and move the matra there
int basePos = 0;
while (basePos < newLen && (int)otl_glyphs[basePos].cluster <= base)
basePos++;
diff --git a/tqtinterface/qt4/src/kernel/tqsignal.cpp b/tqtinterface/qt4/src/kernel/tqsignal.cpp
index 262164a..836f870 100644
--- a/tqtinterface/qt4/src/kernel/tqsignal.cpp
+++ b/tqtinterface/qt4/src/kernel/tqsignal.cpp
@@ -103,8 +103,8 @@ TQSignal::~TQSignal()
static inline bool intSignature(const char *member)
{
TQCString s(member);
- int p = s.tqfind('(');
- return p > 0 && p < s.tqfindRev("int");
+ int p = s.find('(');
+ return p > 0 && p < s.findRev("int");
}
#endif
/*!
@@ -366,8 +366,8 @@ TQSignal::~TQSignal()
static inline bool intSignature( const char *member )
{
TQCString s( member );
- int p = s.tqfind( '(' );
- return p > 0 && p < s.tqfindRev( "int" );
+ int p = s.find( '(' );
+ return p > 0 && p < s.findRev( "int" );
}
#endif
/*!
diff --git a/tqtinterface/qt4/src/kernel/tqsignalmapper.cpp b/tqtinterface/qt4/src/kernel/tqsignalmapper.cpp
index 8a99c54..40b08ee 100644
--- a/tqtinterface/qt4/src/kernel/tqsignalmapper.cpp
+++ b/tqtinterface/qt4/src/kernel/tqsignalmapper.cpp
@@ -143,7 +143,7 @@ void TQSignalMapper::removeMapping()
void TQSignalMapper::map()
{
const TQObject* s = const_cast<const TQObject*>(static_cast<TQObject*>(sender()));
- TQSignalMapperRec* rec = d->dict.tqfind( (void*)s );
+ TQSignalMapperRec* rec = d->dict.find( (void*)s );
if ( rec ) {
if ( rec->has_int )
emit mapped( rec->int_id );
@@ -154,7 +154,7 @@ void TQSignalMapper::map()
TQSignalMapperRec* TQSignalMapper::getRec( const TQObject* sender )
{
- TQSignalMapperRec* rec = d->dict.tqfind( (void*)sender );
+ TQSignalMapperRec* rec = d->dict.find( (void*)sender );
if (!rec) {
rec = new TQSignalMapperRec;
d->dict.insert( (void*)sender, rec );
diff --git a/tqtinterface/qt4/src/kernel/tqsimplerichtext.cpp b/tqtinterface/qt4/src/kernel/tqsimplerichtext.cpp
index 4721fd8..dd4ec7b 100644
--- a/tqtinterface/qt4/src/kernel/tqsimplerichtext.cpp
+++ b/tqtinterface/qt4/src/kernel/tqsimplerichtext.cpp
@@ -550,7 +550,7 @@ void TQSimpleRichTextData::adjustSize(TQPainter *p) {
\endcode
\a context is the optional context of the rich text object. This
- becomes important if \a text tqcontains relative references, for
+ becomes important if \a text contains relative references, for
example within image tags. TQSimpleRichText always uses the default
mime source factory (see \l{TQMimeSourceFactory::defaultFactory()})
to resolve those references. The context will then be used to
@@ -590,7 +590,7 @@ TQSimpleRichText::TQSimpleRichText( const TQString& text, const TQFont& fnt,
as TQColorGroup's TQColorGroup::link() color is used now.
\a context is the optional context of the rich text object. This
- becomes important if \a text tqcontains relative references, for
+ becomes important if \a text contains relative references, for
example within image tags. TQSimpleRichText always uses the default
mime source factory (see \l{TQMimeSourceFactory::defaultFactory()})
to resolve those references. The context will then be used to
@@ -698,7 +698,7 @@ int TQSimpleRichText::width() const
Returns the width in pixels that is actually used by the rich text
object. This can be smaller or wider than the set width.
- It may be wider, for example, if the text tqcontains images or
+ It may be wider, for example, if the text contains images or
non-breakable words that are already wider than the available
space. It's smaller when the object only consists of lines that do
not fill the width completely.
diff --git a/tqtinterface/qt4/src/kernel/tqsound_x11.cpp b/tqtinterface/qt4/src/kernel/tqsound_x11.cpp
index 6ffe6e8..80b6dbf 100644
--- a/tqtinterface/qt4/src/kernel/tqsound_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqsound_x11.cpp
@@ -164,11 +164,11 @@ void TQAuServerNAS::play(const TQString& filename)
static void callback( AuServer*, AuEventHandlerRec*, AuEvent* e, AuPointer p)
{
- if ( inprogress->tqfind(p) && e ) {
+ if ( inprogress->find(p) && e ) {
if (e->type==AuEventTypeElementNotify &&
e->auelementnotify.kind==AuElementNotifyKindState) {
if ( e->auelementnotify.cur_state == AuStateStop )
- ((TQAuServerNAS*)inprogress->tqfind(p))->setDone((TQSound*)p);
+ ((TQAuServerNAS*)inprogress->find(p))->setDone((TQSound*)p);
}
}
}
diff --git a/tqtinterface/qt4/src/kernel/tqstyle.cpp b/tqtinterface/qt4/src/kernel/tqstyle.cpp
index ac14dcb..9aa3a59 100644
--- a/tqtinterface/qt4/src/kernel/tqstyle.cpp
+++ b/tqtinterface/qt4/src/kernel/tqstyle.cpp
@@ -229,7 +229,7 @@ void TQStyle::drawItem( TQPainter *p, const TQRect &r,
} else { // color pixmap, no tqmask
TQString k;
k.sprintf( "$qt-drawitem-%x", pm.serialNumber() );
- TQPixmap *tqmask = TQPixmapCache::tqfind(k);
+ TQPixmap *tqmask = TQPixmapCache::find(k);
bool del=FALSE;
if ( !tqmask ) {
tqmask = new TQPixmap( pm.createHeuristicMask() );
@@ -910,7 +910,7 @@ void TQStyle::drawItem( TQPainter *p, const TQRect &r,
} else { // color pixmap, no tqmask
TQString k;
k.sprintf( "$qt-drawitem-%x", pm.serialNumber() );
- TQPixmap *tqmask = TQPixmapCache::tqfind(k);
+ TQPixmap *tqmask = TQPixmapCache::find(k);
bool del=FALSE;
if ( !tqmask ) {
tqmask = new TQPixmap( pm.createHeuristicMask() );
@@ -1357,7 +1357,7 @@ void TQStyle::drawItem( TQPainter *p, const TQRect &r,
\list
\i opt.\link TQStyleOption::arrowType() arrowType\endlink()
\endlist
- \i17 When the tool button only tqcontains an arrow, \e t is the
+ \i17 When the tool button only contains an arrow, \e t is the
arrow's type.
\row \i \l Style_HasFocus \i Set if the toolbutton has input focus.
\row \i \l Style_Down \i Set if the toolbutton is down (i.e., a
@@ -1521,7 +1521,7 @@ void TQStyle::drawItem( TQPainter *p, const TQRect &r,
\value SC_ScrollBarFirst scrollbar first line (i.e. home).
\value SC_ScrollBarLast scrollbar last line (i.e. end).
\value SC_ScrollBarSlider scrollbar slider handle.
- \value SC_ScrollBarGroove special subcontrol which tqcontains the
+ \value SC_ScrollBarGroove special subcontrol which contains the
area in which the slider handle may move.
@@ -1537,7 +1537,7 @@ void TQStyle::drawItem( TQPainter *p, const TQRect &r,
\value SC_ComboBoxFrame combobox frame
\value SC_ComboBoxListBoxPopup combobox list box
- \value SC_SliderGroove special subcontrol which tqcontains the area
+ \value SC_SliderGroove special subcontrol which contains the area
in which the slider handle may move.
\value SC_SliderHandle slider handle.
\value SC_SliderTickmarks slider tickmarks.
@@ -1634,7 +1634,7 @@ void TQStyle::drawItem( TQPainter *p, const TQRect &r,
\list
\i opt.\link TQStyleOption::arrowType() arrowType\endlink()
\endlist
- \i16 When the tool button only tqcontains an arrow, \e t is the
+ \i16 When the tool button only contains an arrow, \e t is the
arrow's type.
\row \i \l Style_HasFocus \i Set if the toolbutton has input focus.
\row \i \l Style_Down \i Set if the toolbutton is down (ie. mouse
diff --git a/tqtinterface/qt4/src/kernel/tqstylesheet.cpp b/tqtinterface/qt4/src/kernel/tqstylesheet.cpp
index 25f6c0c..08a29dc 100644
--- a/tqtinterface/qt4/src/kernel/tqstylesheet.cpp
+++ b/tqtinterface/qt4/src/kernel/tqstylesheet.cpp
@@ -790,7 +790,7 @@ bool TQStyleSheetItem::allowedInContext( const TQStyleSheetItem* s) const
{
if ( d->contxt.isEmpty() )
return TRUE;
- return d->contxt.tqfind( TQChar(' ')+s->name()+TQChar(' ')) != -1;
+ return d->contxt.find( TQChar(' ')+s->name()+TQChar(' ')) != -1;
}
@@ -1036,7 +1036,7 @@ int TQStyleSheetItem::lineSpacing() const
\endtable
In addition, rich text supports simple HTML tables. A table
- consists of one or more rows each of which tqcontains one or more
+ consists of one or more rows each of which contains one or more
cells. Cells are either data cells or header cells, depending on
their content. Cells which span rows and columns are supported.
@@ -1370,7 +1370,7 @@ const TQStyleSheetItem* TQStyleSheet::item( const TQString& name) const
\a context is the optional context of the document, i.e. the path
to look for relative links. This becomes important if the text
- tqcontains relative references, for example within image tags.
+ contains relative references, for example within image tags.
TQSimpleRichText always uses the default mime source factory (see
\l{TQMimeSourceFactory::defaultFactory()}) to resolve these
references. The context will then be used to calculate the
@@ -1532,7 +1532,7 @@ bool TQStyleSheet::mightBeRichText( const TQString& text)
++open;
}
if ( open < (int)text.length() && text[open] == '<' ) {
- int close = text.tqfind('>', open);
+ int close = text.find('>', open);
if ( close > -1 ) {
TQString tag;
for (int i = open+1; i < close; ++i) {
diff --git a/tqtinterface/qt4/src/kernel/tqtextengine.cpp b/tqtinterface/qt4/src/kernel/tqtextengine.cpp
index dd5d9d3..becf604 100644
--- a/tqtinterface/qt4/src/kernel/tqtextengine.cpp
+++ b/tqtinterface/qt4/src/kernel/tqtextengine.cpp
@@ -677,7 +677,7 @@ static void bidiItemize( TQTextEngine *engine, bool rightToLeft, int mode )
void TQTextEngine::bidiReorder( int numItems, const TQ_UINT8 *levels, int *visualOrder )
{
- // first tqfind highest and lowest levels
+ // first find highest and lowest levels
uchar levelLow = 128;
uchar levelHigh = 0;
int i = 0;
diff --git a/tqtinterface/qt4/src/kernel/tqtextlayout.cpp b/tqtinterface/qt4/src/kernel/tqtextlayout.cpp
index 1a007a8..6700470 100644
--- a/tqtinterface/qt4/src/kernel/tqtextlayout.cpp
+++ b/tqtinterface/qt4/src/kernel/tqtextlayout.cpp
@@ -440,7 +440,7 @@ TQTextItem TQTextLayout::itemAt( int i ) const
}
-TQTextItem TQTextLayout::tqfindItem( int strPos ) const
+TQTextItem TQTextLayout::findItem( int strPos ) const
{
if ( strPos == 0 && d->items.size() )
return TQTextItem( 0, d );
@@ -565,7 +565,7 @@ TQTextLayout::Result TQTextLayout::endLine( int x, int y, int tqalignment,
if ( (tqalignment & (TQt::WordBreak|TQt::BreakAnywhere)) &&
d->widthUsed > d->lineWidth ) {
- // tqfind linebreak
+ // find linebreak
// even though we removed trailing spaces the line was too wide. We'll have to break at an earlier
// position. To not confuse the layouting below, reset the number of space items
diff --git a/tqtinterface/qt4/src/kernel/tqtextlayout_p.h b/tqtinterface/qt4/src/kernel/tqtextlayout_p.h
index 049ede2..f857011 100644
--- a/tqtinterface/qt4/src/kernel/tqtextlayout_p.h
+++ b/tqtinterface/qt4/src/kernel/tqtextlayout_p.h
@@ -181,7 +181,7 @@ public:
int numItems() const { return lineCount(); }
TQTextItem itemAt( int i ) const { return convertFromQTextLine(lineAt(i)); }
- TQTextItem tqfindItem( int strPos ) const { return convertFromQTextLine(lineForTextPosition(strPos)); }
+ TQTextItem findItem( int strPos ) const { return convertFromQTextLine(lineForTextPosition(strPos)); }
bool atEnd() const;
TQTextItem nextItem();
TQTextItem currentItem();
@@ -232,7 +232,7 @@ public:
int numItems() const;
TQTextItem itemAt( int i ) const;
- TQTextItem tqfindItem( int strPos ) const;
+ TQTextItem findItem( int strPos ) const;
enum LayoutMode {
NoBidi,
diff --git a/tqtinterface/qt4/src/kernel/tqtimer.cpp b/tqtinterface/qt4/src/kernel/tqtimer.cpp
index d1a98e1..7062b6a 100644
--- a/tqtinterface/qt4/src/kernel/tqtimer.cpp
+++ b/tqtinterface/qt4/src/kernel/tqtimer.cpp
@@ -91,7 +91,7 @@
has done all its work. This is the traditional way of
implementing heavy work in GUI applications; multi-threading is
now becoming available on more and more platforms, and we expect
- that null events will eventually be tqreplaced by threading.
+ that null events will eventually be replaced by threading.
Note that TQTimer's accuracy depends on the underlying operating
system and hardware. Most platforms support an accuracy of 20ms;
diff --git a/tqtinterface/qt4/src/kernel/tqtranslator.cpp b/tqtinterface/qt4/src/kernel/tqtranslator.cpp
index ec0856b..fabbb98 100644
--- a/tqtinterface/qt4/src/kernel/tqtranslator.cpp
+++ b/tqtinterface/qt4/src/kernel/tqtranslator.cpp
@@ -246,7 +246,7 @@ TQValueList<TQTranslatorMessage> TQTranslator::messages() const
Saves this message file to \a filename, overwriting the previous
contents of \a filename. If \a mode is \c Everything (the
default), all the information is preserved. If \a mode is \c
- Stripped, any information that is not necessary for tqfindMessage()
+ Stripped, any information that is not necessary for findMessage()
is stripped away.
\sa load()
@@ -381,7 +381,7 @@ void TQTranslator::squeeze( SaveMode mode )
cpNext = 0;
else
cpNext = (int) it.key().commonPrefix( next.key() );
- offsets.tqreplace( TQTranslatorPrivate::Offset(it.key(),
+ offsets.replace( TQTranslatorPrivate::Offset(it.key(),
ms.tqdevice()->at()), (void*)0 );
it.key().write( ms, mode == Stripped,
(TQTranslatorMessage::Prefix) TQMAX(cpPrev, cpNext + 1) );
@@ -402,7 +402,7 @@ void TQTranslator::squeeze( SaveMode mode )
int baudelaire;
for ( it = messages->begin(); it != messages->end(); ++it )
- contextSet.tqreplace( it.key().context(), &baudelaire );
+ contextSet.replace( it.key().context(), &baudelaire );
TQ_UINT16 hTableSize;
if ( contextSet.count() < 200 )
@@ -439,7 +439,7 @@ void TQTranslator::squeeze( SaveMode mode )
If hTable[h] is 0, "FunnyDialog" is not covered by this
translator. Else, we check in the contextPool at offset
2 * hTable[h] to see if "FunnyDialog" is one of the
- contexts stored there, until we tqfind it or we meet the
+ contexts stored there, until we find it or we meet the
empty string.
*/
d->contextArray = new TQByteArray;
@@ -454,7 +454,7 @@ void TQTranslator::squeeze( SaveMode mode )
uint upto = 2;
for ( int i = 0; i < hTableSize; i++ ) {
- const char *con = hDict.tqfind( i );
+ const char *con = hDict.find( i );
if ( con == 0 ) {
hTable[i] = 0;
} else {
@@ -466,7 +466,7 @@ void TQTranslator::squeeze( SaveMode mode )
t.writeRawBytes( con, len );
upto += 1 + len;
hDict.remove( i );
- } while ( (con = hDict.tqfind(i)) != 0 );
+ } while ( (con = hDict.find(i)) != 0 );
do {
t << (TQ_UINT8) 0; // empty string (at least one)
upto++;
@@ -517,18 +517,18 @@ void TQTranslator::unsqueeze()
}
/*!
- Returns TRUE if this message file tqcontains a message with the key
+ Returns TRUE if this message file contains a message with the key
(\a context, \a sourceText, \a comment); otherwise returns FALSE.
This function works with stripped translator files.
- (This is is a one-liner that calls tqfindMessage().)
+ (This is is a one-liner that calls findMessage().)
*/
-bool TQTranslator::tqcontains( const char* context, const char* sourceText,
+bool TQTranslator::contains( const char* context, const char* sourceText,
const char* comment ) const
{
- return !tqfindMessage( context, sourceText, comment ).translation().isNull();
+ return !findMessage( context, sourceText, comment ).translation().isNull();
}
/*!
@@ -575,7 +575,7 @@ void TQTranslator::remove( const TQTranslatorMessage& message )
#endif
-TQTranslatorMessage TQTranslator::tqfindMessage( const char* context,
+TQTranslatorMessage TQTranslator::findMessage( const char* context,
const char* sourceText,
const char* comment ) const
{
@@ -590,13 +590,13 @@ TQTranslatorMessage TQTranslator::tqfindMessage( const char* context,
if ( d->messages ) {
TQMap<TQTranslatorMessage, void *>::ConstIterator it;
- it = d->messages->tqfind( TQTranslatorMessage(context, sourceText,
+ it = d->messages->find( TQTranslatorMessage(context, sourceText,
comment) );
if ( it != d->messages->end() )
return it.key();
if ( comment[0] ) {
- it = d->messages->tqfind( TQTranslatorMessage(context, sourceText,
+ it = d->messages->find( TQTranslatorMessage(context, sourceText,
"") );
if ( it != d->messages->end() )
return it.key();
@@ -688,7 +688,7 @@ TQTranslatorMessage TQTranslator::tqfindMessage( const char* context,
/*!
\class TQTranslatorMessage
- \brief The TQTranslatorMessage class tqcontains a translator message and its
+ \brief The TQTranslatorMessage class contains a translator message and its
properties.
\ingroup i18n
@@ -1184,7 +1184,7 @@ public:
\ingroup environment
\mainclass
- An object of this class tqcontains a set of TQTranslatorMessage
+ An object of this class contains a set of TQTranslatorMessage
objects, each of which specifies a translation from a source
language to a target language. TQTranslator provides functions to
look up translations, add new ones, remove them, load and save
@@ -1221,8 +1221,8 @@ public:
We call a translation a "messsage". For this reason, translation
files are sometimes referred to as "message files".
- It is possible to lookup a translation using tqfindMessage() (as
- tr() and TQApplication::translate() do) and tqcontains(), to insert a
+ It is possible to lookup a translation using findMessage() (as
+ tr() and TQApplication::translate() do) and contains(), to insert a
new translation messsage using insert(), and to remove one using
remove().
@@ -1232,10 +1232,10 @@ public:
usually only need lookup. To cater for these different needs,
TQTranslator can use stripped translator files that use the minimum
of memory and which support little more functionality than
- tqfindMessage().
+ findMessage().
Thus, load() may not load enough information to make anything more
- than tqfindMessage() work. save() has an argument indicating
+ than findMessage() work. save() has an argument indicating
whether to save just this minimum of information or to save
everything.
@@ -1254,7 +1254,7 @@ public:
\endlist
The minimum for each item is just the information necessary for
- tqfindMessage() to return the right text. This may include the
+ findMessage() to return the right text. This may include the
source, context and comment, but usually it is just a hash value
and the translated text.
@@ -1414,7 +1414,7 @@ bool TQTranslator::load( const TQString & filename, const TQString & directory,
int rightmost = 0;
for ( int i = 0; i < (int)delims.length(); i++ ) {
- int k = fname.tqfindRev( delims[i] );
+ int k = fname.findRev( delims[i] );
if ( k > rightmost )
rightmost = k;
}
@@ -1555,7 +1555,7 @@ bool TQTranslator::do_load( const uchar *data, int len )
}
array.resetRawData( (const char *) data, len );
- if ( tqApp && tqApp->translators && tqApp->translators->tqcontains(this) )
+ if ( tqApp && tqApp->translators && tqApp->translators->contains(this) )
tqApp->setReverseLayout( qt_detectRTLLanguage() );
return ok;
}
@@ -1566,7 +1566,7 @@ bool TQTranslator::do_load( const uchar *data, int len )
Saves this message file to \a filename, overwriting the previous
contents of \a filename. If \a mode is \c Everything (the
default), all the information is preserved. If \a mode is \c
- Stripped, any information that is not necessary for tqfindMessage()
+ Stripped, any information that is not necessary for findMessage()
is stripped away.
\sa load()
@@ -1705,7 +1705,7 @@ void TQTranslator::squeeze( SaveMode mode )
cpNext = 0;
else
cpNext = (int) it.key().commonPrefix( next.key() );
- offsets.tqreplace( TQTranslatorPrivate::Offset(it.key(),
+ offsets.replace( TQTranslatorPrivate::Offset(it.key(),
ms.tqdevice()->at()), (void*)0 );
it.key().write( ms, mode == Stripped,
(TQTranslatorMessage::Prefix) TQMAX(cpPrev, cpNext + 1) );
@@ -1726,7 +1726,7 @@ void TQTranslator::squeeze( SaveMode mode )
int baudelaire;
for ( it = messages->begin(); it != messages->end(); ++it )
- contextSet.tqreplace( it.key().context(), &baudelaire );
+ contextSet.replace( it.key().context(), &baudelaire );
TQ_UINT16 hTableSize;
if ( contextSet.count() < 200 )
@@ -1763,7 +1763,7 @@ void TQTranslator::squeeze( SaveMode mode )
If hTable[h] is 0, "FunnyDialog" is not covered by this
translator. Else, we check in the contextPool at offset
2 * hTable[h] to see if "FunnyDialog" is one of the
- contexts stored there, until we tqfind it or we meet the
+ contexts stored there, until we find it or we meet the
empty string.
*/
d->contextArray = new TQByteArray;
@@ -1778,7 +1778,7 @@ void TQTranslator::squeeze( SaveMode mode )
uint upto = 2;
for ( int i = 0; i < hTableSize; i++ ) {
- const char *con = hDict.tqfind( i );
+ const char *con = hDict.find( i );
if ( con == 0 ) {
hTable[i] = 0;
} else {
@@ -1790,7 +1790,7 @@ void TQTranslator::squeeze( SaveMode mode )
t.writeRawBytes( con, len );
upto += 1 + len;
hDict.remove( i );
- } while ( (con = hDict.tqfind(i)) != 0 );
+ } while ( (con = hDict.find(i)) != 0 );
do {
t << (TQ_UINT8) 0; // empty string (at least one)
upto++;
@@ -1842,18 +1842,18 @@ void TQTranslator::unsqueeze()
/*!
- Returns TRUE if this message file tqcontains a message with the key
+ Returns TRUE if this message file contains a message with the key
(\a context, \a sourceText, \a comment); otherwise returns FALSE.
This function works with stripped translator files.
- (This is is a one-liner that calls tqfindMessage().)
+ (This is is a one-liner that calls findMessage().)
*/
-bool TQTranslator::tqcontains( const char* context, const char* sourceText,
+bool TQTranslator::contains( const char* context, const char* sourceText,
const char* comment ) const
{
- return !tqfindMessage( context, sourceText, comment ).translation().isNull();
+ return !findMessage( context, sourceText, comment ).translation().isNull();
}
@@ -1906,10 +1906,10 @@ void TQTranslator::remove( const TQTranslatorMessage& message )
#endif
/*!
- \fn TQString TQTranslator::tqfind( const char*, const char*, const char* ) const
+ \fn TQString TQTranslator::find( const char*, const char*, const char* ) const
\obsolete
- Please use tqfindMessage() instead.
+ Please use findMessage() instead.
Returns the translation for the key (\a context, \a sourceText,
\a comment) or TQString::null if there is none in this translator.
@@ -1920,7 +1920,7 @@ void TQTranslator::remove( const TQTranslatorMessage& message )
also tries (\a context, \a sourceText, "").
*/
-TQTranslatorMessage TQTranslator::tqfindMessage( const char* context,
+TQTranslatorMessage TQTranslator::findMessage( const char* context,
const char* sourceText,
const char* comment ) const
{
@@ -1935,13 +1935,13 @@ TQTranslatorMessage TQTranslator::tqfindMessage( const char* context,
if ( d->messages ) {
TQMap<TQTranslatorMessage, void *>::ConstIterator it;
- it = d->messages->tqfind( TQTranslatorMessage(context, sourceText,
+ it = d->messages->find( TQTranslatorMessage(context, sourceText,
comment) );
if ( it != d->messages->end() )
return it.key();
if ( comment[0] ) {
- it = d->messages->tqfind( TQTranslatorMessage(context, sourceText,
+ it = d->messages->find( TQTranslatorMessage(context, sourceText,
"") );
if ( it != d->messages->end() )
return it.key();
@@ -2079,7 +2079,7 @@ TQValueList<TQTranslatorMessage> TQTranslator::messages() const
/*!
\class TQTranslatorMessage
- \brief The TQTranslatorMessage class tqcontains a translator message and its
+ \brief The TQTranslatorMessage class contains a translator message and its
properties.
\ingroup i18n
diff --git a/tqtinterface/qt4/src/kernel/tqtranslator.h b/tqtinterface/qt4/src/kernel/tqtranslator.h
index b42c983..6713568 100644
--- a/tqtinterface/qt4/src/kernel/tqtranslator.h
+++ b/tqtinterface/qt4/src/kernel/tqtranslator.h
@@ -125,14 +125,14 @@ class TQ_EXPORT TQTranslator: public QTranslator, virtual public TQt
public:
TQTranslator( TQObject * tqparent = 0, const char * name = 0 ) : QTranslator( tqparent ) { setObjectName(QString::fromAscii(name)); }
- inline TQString find(const char *context, const char *sourceText, const char * comment = 0) const { return translate(context, sourceText, comment); }
+// inline TQString find(const char *context, const char *sourceText, const char * comment = 0) const { return translate(context, sourceText, comment); }
// Everything below is part of the old API and is therefore incompatible with Qt4 functions which expect a pure QTranslator object or object pointer
#ifndef TQT_NO_COMPAT
- inline TQString tqfind( const char *context, const char *sourceText, const char * comment = 0 ) const { return tqfindMessage( context, sourceText, comment ).translation(); }
+ inline TQString find( const char *context, const char *sourceText, const char * comment = 0 ) const { return findMessage( context, sourceText, comment ).translation(); }
#endif
- virtual TQTranslatorMessage tqfindMessage( const char *, const char *, const char * = 0 ) const;
+ virtual TQTranslatorMessage findMessage( const char *, const char *, const char * = 0 ) const;
#ifndef TQT_NO_TRANSLATION_BUILDER
enum SaveMode { Everything, Stripped };
@@ -147,7 +147,7 @@ public:
void squeeze( SaveMode = Everything );
void unsqueeze();
- bool tqcontains( const char *, const char *, const char * comment = 0 ) const;
+ bool contains( const char *, const char *, const char * comment = 0 ) const;
TQValueList<TQTranslatorMessage> messages() const;
#endif
@@ -222,11 +222,11 @@ public:
~TQTranslator();
#ifndef TQT_NO_COMPAT
- TQString tqfind( const char *context, const char *sourceText, const char * comment = 0 ) const {
- return tqfindMessage( context, sourceText, comment ).translation();
+ TQString find( const char *context, const char *sourceText, const char * comment = 0 ) const {
+ return findMessage( context, sourceText, comment ).translation();
}
#endif
- virtual TQTranslatorMessage tqfindMessage( const char *, const char *,
+ virtual TQTranslatorMessage findMessage( const char *, const char *,
const char * = 0 ) const;
bool load( const TQString & filename,
@@ -253,7 +253,7 @@ public:
void remove( const char *context, const char *sourceText ) {
remove( TQTranslatorMessage(context, sourceText, "") );
}
- bool tqcontains( const char *, const char *, const char * comment = 0 ) const;
+ bool contains( const char *, const char *, const char * comment = 0 ) const;
void squeeze( SaveMode = Everything );
void unsqueeze();
diff --git a/tqtinterface/qt4/src/kernel/tqurl.cpp b/tqtinterface/qt4/src/kernel/tqurl.cpp
index a355c4a..81f8ca4 100644
--- a/tqtinterface/qt4/src/kernel/tqurl.cpp
+++ b/tqtinterface/qt4/src/kernel/tqurl.cpp
@@ -224,8 +224,8 @@ TQUrl::TQUrl( const TQUrl& url )
bool TQUrl::isRelativeUrl( const TQString &url )
{
- int colon = url.tqfind( ":" );
- int slash = url.tqfind( "/" );
+ int colon = url.find( ":" );
+ int slash = url.find( "/" );
return ( slash != 0 && ( colon == -1 || ( slash != -1 && colon > slash ) ) );
}
@@ -258,8 +258,8 @@ bool TQUrl::isRelativeUrl( const TQString &url )
Normally it is expected that the path of \a url points to a
directory, even if the path has no slash at the end. But if you
want the constructor to handle the last part of the path as a file
- name if there is no slash at the end, and to let it be tqreplaced by
- the file name of \a relUrl (if it tqcontains one), set \a checkSlash
+ name if there is no slash at the end, and to let it be replaced by
+ the file name of \a relUrl (if it contains one), set \a checkSlash
to TRUE.
*/
@@ -375,7 +375,7 @@ void TQUrl::setUser( const TQString& user )
}
/*!
- Returns TRUE if the URL tqcontains a username; otherwise returns
+ Returns TRUE if the URL contains a username; otherwise returns
FALSE.
\sa setUser() setPassword()
@@ -415,7 +415,7 @@ void TQUrl::setPassword( const TQString& pass )
}
/*!
- Returns TRUE if the URL tqcontains a password; otherwise returns
+ Returns TRUE if the URL contains a password; otherwise returns
FALSE.
\warning Passwords passed in URLs are normally \e insecure; this
@@ -454,7 +454,7 @@ void TQUrl::setHost( const TQString& host )
}
/*!
- Returns TRUE if the URL tqcontains a hostname; otherwise returns
+ Returns TRUE if the URL contains a hostname; otherwise returns
FALSE.
\sa setHost()
@@ -488,7 +488,7 @@ void TQUrl::setPort( int port )
}
/*!
- Returns TRUE if the URL tqcontains a port; otherwise returns FALSE.
+ Returns TRUE if the URL contains a port; otherwise returns FALSE.
\sa setPort()
*/
@@ -513,7 +513,7 @@ void TQUrl::setPath( const TQString& path )
}
/*!
- Returns TRUE if the URL tqcontains a path; otherwise returns FALSE.
+ Returns TRUE if the URL contains a path; otherwise returns FALSE.
\sa path() setPath()
*/
@@ -675,13 +675,13 @@ bool TQUrl::parse( const TQString& url )
relPath = forceRel = TRUE;
int hasNoHost = -1;
- int cs = url_.tqfind( ":/" );
- if ( cs != -1 ) // if a protocol is there, tqfind out if there is a host or directly the path after it
- hasNoHost = url_.tqfind( "///", cs );
+ int cs = url_.find( ":/" );
+ if ( cs != -1 ) // if a protocol is there, find out if there is a host or directly the path after it
+ hasNoHost = url_.find( "///", cs );
table[ 4 ][ 1 ] = User;
table[ 4 ][ 2 ] = User;
if ( cs == -1 || forceRel ) { // we have a relative file
- if ( url.tqfind( ':' ) == -1 || forceRel ) {
+ if ( url.find( ':' ) == -1 || forceRel ) {
table[ 0 ][ 1 ] = Path;
// Filenames may also begin with a digit
table[ 0 ][ 2 ] = Path;
@@ -692,12 +692,12 @@ bool TQUrl::parse( const TQString& url )
} else { // some checking
table[ 0 ][ 1 ] = Protocol;
- // tqfind the part between the protocol and the path as the meaning
+ // find the part between the protocol and the path as the meaning
// of that part is dependend on some chars
++cs;
while ( url_[ cs ] == '/' )
++cs;
- int slash = url_.tqfind( "/", cs );
+ int slash = url_.find( "/", cs );
if ( slash == -1 )
slash = url_.length() - 1;
TQString tmp = url_.mid( cs, slash - cs + 1 );
@@ -705,7 +705,7 @@ bool TQUrl::parse( const TQString& url )
if ( !tmp.isEmpty() ) { // if this part exists
// look for the @ in this part
- int at = tmp.tqfind( "@" );
+ int at = tmp.find( "@" );
if ( at != -1 )
at += cs;
// we have no @, which means host[:port], so directly
@@ -928,8 +928,8 @@ bool TQUrl::operator==( const TQString& url ) const
}
/*!
- Sets the file name of the URL to \a name. If this URL tqcontains a
- fileName(), the original file name is tqreplaced by \a name.
+ Sets the file name of the URL to \a name. If this URL contains a
+ fileName(), the original file name is replaced by \a name.
See the documentation of fileName() for a more detailed discussion
of what is handled as file name and what is handled as a directory
@@ -951,7 +951,7 @@ void TQUrl::setFileName( const TQString& name )
p = "/";
} else {
p = path();
- int slash = p.tqfindRev( TQChar( '/' ) );
+ int slash = p.findRev( TQChar( '/' ) );
if ( slash == -1 ) {
p = "/";
} else if ( p[ (int)p.length() - 1 ] != '/' ) {
@@ -997,7 +997,7 @@ TQString TQUrl::encodedPathAndQuery()
void TQUrl::setEncodedPathAndQuery( const TQString& pathAndQuery )
{
d->cleanPathDirty = TRUE;
- int pos = pathAndQuery.tqfind( '?' );
+ int pos = pathAndQuery.find( '?' );
if ( pos == -1 ) {
d->path = pathAndQuery;
d->queryEncoded = "";
@@ -1158,7 +1158,7 @@ TQString TQUrl::dirPath() const
return TQString::null;
TQString s = path();
- int pos = s.tqfindRev( '/' );
+ int pos = s.findRev( '/' );
if ( pos == -1 ) {
return TQString::tqfromLatin1(".");
} else {
@@ -1195,7 +1195,7 @@ void TQUrl::encode( TQString& url )
for ( int i = 0; i < oldlen ;++i ) {
uchar inCh = (uchar)curl[ i ];
- if ( inCh >= 128 || special.tqcontains(inCh) ) {
+ if ( inCh >= 128 || special.contains(inCh) ) {
newUrl[ newlen++ ] = TQChar( '%' );
ushort c = inCh / 16;
diff --git a/tqtinterface/qt4/src/kernel/tqurlinfo.cpp b/tqtinterface/qt4/src/kernel/tqurlinfo.cpp
index 60b9f15..b0b2596 100644
--- a/tqtinterface/qt4/src/kernel/tqurlinfo.cpp
+++ b/tqtinterface/qt4/src/kernel/tqurlinfo.cpp
@@ -130,7 +130,7 @@ TQUrlInfo::TQUrlInfo()
/*!
Constructs a TQUrlInfo object with information about the file \a
- file in the \a path. It tries to tqfind the information about the \a
+ file in the \a path. It tries to find the information about the \a
file in the TQUrlOperator \a path.
If the information is not found, this constructor creates an
@@ -745,7 +745,7 @@ bool TQUrlInfo::operator==( const TQUrlInfo &i ) const
/*!
Returns TRUE if the URL info is valid; otherwise returns FALSE.
- Valid means that the TQUrlInfo tqcontains real information. For
+ Valid means that the TQUrlInfo contains real information. For
example, a call to TQUrlOperator::info() might return a an invalid
TQUrlInfo, if no information about the requested entry is
available.
diff --git a/tqtinterface/qt4/src/kernel/tqurloperator.cpp b/tqtinterface/qt4/src/kernel/tqurloperator.cpp
index bae40bc..59c485f 100644
--- a/tqtinterface/qt4/src/kernel/tqurloperator.cpp
+++ b/tqtinterface/qt4/src/kernel/tqurloperator.cpp
@@ -168,7 +168,7 @@ public:
This signal is emitted after listChildren() was called and new
tqchildren (i.e. files) have been read from a list of files. \a i
holds the information about the new files. \a op is a pointer
- to the operation object which tqcontains all the information about
+ to the operation object which contains all the information about
the operation, including the state.
\sa TQNetworkOperation, TQNetworkProtocol
@@ -180,7 +180,7 @@ public:
This signal is emitted when an operation of some sort finishes,
whether with success or failure. \a op is a pointer to the
- operation object, which tqcontains all the information, including
+ operation object, which contains all the information, including
the state, of the operation which has been finished. Check the
state and error code of the operation object to see whether or not
the operation was successful.
@@ -193,7 +193,7 @@ public:
Some operations (such as listChildren()) emit this signal when
they start processing the operation. \a op is a pointer to the
- operation object which tqcontains all the information about the
+ operation object which contains all the information about the
operation, including the state.
\sa TQNetworkOperation, TQNetworkProtocol
@@ -205,7 +205,7 @@ public:
This signal is emitted when mkdir() succeeds and the directory has
been created. \a i holds the information about the new directory.
- \a op is a pointer to the operation object, which tqcontains all the
+ \a op is a pointer to the operation object, which contains all the
information about the operation, including the state.
\c op->arg(0) holds the new directory's name.
@@ -218,7 +218,7 @@ public:
This signal is emitted when remove() has been succesful and the
file has been removed.
- \a op is a pointer to the operation object which tqcontains all the
+ \a op is a pointer to the operation object which contains all the
information about the operation, including the state.
\c op->arg(0) holds the name of the file that was removed.
@@ -230,7 +230,7 @@ public:
This signal is emitted whenever a file which is a child of the URL
has been changed, for example by successfully calling rename().
- \a op is a pointer to the operation object which tqcontains all the
+ \a op is a pointer to the operation object which contains all the
information about the operation, including the state.
\c op->arg(0) holds the original file name and \c op->arg(1) holds
the new file name (if it was changed).
@@ -243,7 +243,7 @@ public:
This signal is emitted when new \a data has been received after calling
get() or put().
- \a op is a pointer to the operation object which tqcontains all
+ \a op is a pointer to the operation object which contains all
the information about the operation, including the state.
\c op->arg(0) holds the name of the file whose data is retrieved
and op->rawArg(1) holds the (raw) data.
@@ -268,7 +268,7 @@ public:
\fn void TQUrlOperator::startedNextCopy( const TQPtrList<TQNetworkOperation> &lst )
This signal is emitted if copy() starts a new copy operation. \a
- lst tqcontains all TQNetworkOperations related to this copy
+ lst contains all TQNetworkOperations related to this copy
operation.
\sa copy()
@@ -434,7 +434,7 @@ const TQNetworkOperation *TQUrlOperator::startOperation( TQNetworkOperation *op
Because the operation may not be executed immediately, a pointer
to the TQNetworkOperation object created by this function is
- returned. This object tqcontains all the data about the operation
+ returned. This object contains all the data about the operation
and is used to refer to this operation later (e.g. in the Q_SIGNALS
that are emitted by the TQUrlOperator). The return value can also
be 0 if the operation object couldn't be created.
@@ -464,7 +464,7 @@ const TQNetworkOperation *TQUrlOperator::listChildren()
Because the operation will not be executed immediately, a pointer
to the TQNetworkOperation object created by this function is
- returned. This object tqcontains all the data about the operation
+ returned. This object contains all the data about the operation
and is used to refer to this operation later (e.g. in the Q_SIGNALS
that are emitted by the TQUrlOperator). The return value can also
be 0 if the operation object couldn't be created.
@@ -491,7 +491,7 @@ const TQNetworkOperation *TQUrlOperator::mkdir( const TQString &dirname )
Because the operation will not be executed immediately, a pointer
to the TQNetworkOperation object created by this function is
- returned. This object tqcontains all the data about the operation
+ returned. This object contains all the data about the operation
and is used to refer to this operation later (e.g. in the Q_SIGNALS
that are emitted by the TQUrlOperator). The return value can also
be 0 if the operation object couldn't be created.
@@ -519,7 +519,7 @@ const TQNetworkOperation *TQUrlOperator::remove( const TQString &filename )
Because the operation may not be executed immediately, a pointer
to the TQNetworkOperation object created by this function is
- returned. This object tqcontains all the data about the operation
+ returned. This object contains all the data about the operation
and is used to refer to this operation later (e.g. in the Q_SIGNALS
that are emitted by the TQUrlOperator). The return value can also
be 0 if the operation object couldn't be created.
@@ -713,7 +713,7 @@ bool TQUrlOperator::isDir( bool *ok )
return FALSE;
}
- if ( d->entryMap.tqcontains( "." ) ) {
+ if ( d->entryMap.contains( "." ) ) {
return d->entryMap[ "." ].isDir();
}
// #### can assume that we are a directory?
@@ -901,7 +901,7 @@ void TQUrlOperator::addEntry( const TQValueList<TQUrlInfo> &i )
TQUrlInfo TQUrlOperator::info( const TQString &entry ) const
{
- if ( d->entryMap.tqcontains( entry.stripWhiteSpace() ) ) {
+ if ( d->entryMap.contains( entry.stripWhiteSpace() ) ) {
return d->entryMap[ entry.stripWhiteSpace() ];
} else if ( entry == "." || entry == ".." ) {
// return a faked TQUrlInfo
@@ -1202,7 +1202,7 @@ void TQUrlOperator::slotItemChanged( TQNetworkOperation *op )
if ( op->arg( 0 ) == op->arg( 1 ) )
return;
- TQMap<TQString, TQUrlInfo>::iterator mi = d->entryMap.tqfind( op->arg( 0 ) );
+ TQMap<TQString, TQUrlInfo>::iterator mi = d->entryMap.find( op->arg( 0 ) );
if ( mi != d->entryMap.end() ) {
mi.data().setName( op->arg( 1 ) );
d->entryMap[ op->arg( 1 ) ] = mi.data();
@@ -1212,7 +1212,7 @@ void TQUrlOperator::slotItemChanged( TQNetworkOperation *op )
}
case TQNetworkProtocol::OpRemove :
{
- TQMap<TQString, TQUrlInfo>::iterator mi = d->entryMap.tqfind( op->arg( 0 ) );
+ TQMap<TQString, TQUrlInfo>::iterator mi = d->entryMap.find( op->arg( 0 ) );
if ( mi != d->entryMap.end() )
d->entryMap.erase( mi );
break;
diff --git a/tqtinterface/qt4/src/kernel/tqvariant.cpp b/tqtinterface/qt4/src/kernel/tqvariant.cpp
index bd022e1..90a2afd 100644
--- a/tqtinterface/qt4/src/kernel/tqvariant.cpp
+++ b/tqtinterface/qt4/src/kernel/tqvariant.cpp
@@ -1842,7 +1842,7 @@ void TQVariant::Private::clear()
A TQVariant object holds a single value of a single type() at a
time. (Some type()s are multi-valued, for example a string list.)
- You can tqfind out what type, T, the variant holds, convert it to a
+ You can find out what type, T, the variant holds, convert it to a
different type using one of the asT() functions, e.g. asSize(),
get its value using one of the toT() functions, e.g. toSize(), and
check whether the type can be converted to a particular type using
@@ -1870,11 +1870,11 @@ void TQVariant::Private::clear()
\code
TQDataStream out(...);
- TQVariant v(123); // The variant now tqcontains an int
+ TQVariant v(123); // The variant now contains an int
int x = v.toInt(); // x = 123
out << v; // Writes a type tag and an int to out
- v = TQVariant("hello"); // The variant now tqcontains a TQCString
- v = TQVariant(tr("hello"));// The variant now tqcontains a TQString
+ v = TQVariant("hello"); // The variant now contains a TQCString
+ v = TQVariant(tr("hello"));// The variant now contains a TQString
int y = v.toInt(); // y = 0 since v cannot be converted to an int
TQString s = v.toString(); // s = tr("hello") (see TQObject::tr())
out << v; // Writes a type tag and a TQString to out
@@ -4427,7 +4427,7 @@ TQMap<TQString, TQVariant>& TQVariant::asMap()
\row \i Int \i String, CString, ByteArray, Double, Bool, UInt, LongLong, ULongLong, KeySequence
\row \i LongLong \i String, CString, ByteArray, Double, Bool, UInt, LongLong, ULongLong, KeySequence
\row \i ULongLong \i String, CString, ByteArray, Double, Bool, UInt, LongLong, ULongLong, KeySequence
- \row \i List \i StringList (if the list tqcontains only strings or
+ \row \i List \i StringList (if the list contains only strings or
something that can be cast to a string)
\row \i String \i CString, ByteArray, CString, Int, UInt, Bool, Double, Date,
Time, DateTime, KeySequence, Font, Color
diff --git a/tqtinterface/qt4/src/kernel/tqvariant.cpp.new b/tqtinterface/qt4/src/kernel/tqvariant.cpp.new
index 22c05b3..b518a7e 100644
--- a/tqtinterface/qt4/src/kernel/tqvariant.cpp.new
+++ b/tqtinterface/qt4/src/kernel/tqvariant.cpp.new
@@ -1728,7 +1728,7 @@ void TQVariant::Private::clear()
A TQVariant object holds a single value of a single type() at a
time. (Some type()s are multi-valued, for example a string list.)
- You can tqfind out what type, T, the variant holds, convert it to a
+ You can find out what type, T, the variant holds, convert it to a
different type using one of the asT() functions, e.g. asSize(),
get its value using one of the toT() functions, e.g. toSize(), and
check whether the type can be converted to a particular type using
@@ -1756,11 +1756,11 @@ void TQVariant::Private::clear()
\code
TQDataStream out(...);
- TQVariant v(123); // The variant now tqcontains an int
+ TQVariant v(123); // The variant now contains an int
int x = v.toInt(); // x = 123
out << v; // Writes a type tag and an int to out
- v = TQVariant("hello"); // The variant now tqcontains a TQCString
- v = TQVariant(tr("hello"));// The variant now tqcontains a TQString
+ v = TQVariant("hello"); // The variant now contains a TQCString
+ v = TQVariant(tr("hello"));// The variant now contains a TQString
int y = v.toInt(); // y = 0 since v cannot be converted to an int
TQString s = v.toString(); // s = tr("hello") (see TQObject::tr())
out << v; // Writes a type tag and a TQString to out
@@ -4313,7 +4313,7 @@ TQMap<TQString, TQVariant>& TQVariant::asMap()
\row \i Int \i String, CString, ByteArray, Double, Bool, UInt, LongLong, ULongLong, KeySequence
\row \i LongLong \i String, CString, ByteArray, Double, Bool, UInt, LongLong, ULongLong, KeySequence
\row \i ULongLong \i String, CString, ByteArray, Double, Bool, UInt, LongLong, ULongLong, KeySequence
- \row \i List \i StringList (if the list tqcontains only strings or
+ \row \i List \i StringList (if the list contains only strings or
something that can be cast to a string)
\row \i String \i CString, ByteArray, CString, Int, UInt, Bool, Double, Date,
Time, DateTime, KeySequence, Font, Color
diff --git a/tqtinterface/qt4/src/kernel/tqvariant.h b/tqtinterface/qt4/src/kernel/tqvariant.h
index 5fb5e65..400705c 100644
--- a/tqtinterface/qt4/src/kernel/tqvariant.h
+++ b/tqtinterface/qt4/src/kernel/tqvariant.h
@@ -321,7 +321,7 @@ inline TQMapConstIterator<TQString,TQVariant> TQVariant::mapFind( const TQString
{
if ( d.type != Map )
return TQMapConstIterator<TQString,TQVariant>();
- return ((const TQMap<TQString,TQVariant>*)d.data.ptr)->tqfind( key );
+ return ((const TQMap<TQString,TQVariant>*)d.data.ptr)->find( key );
}
#endif
@@ -626,7 +626,7 @@ inline TQMapConstIterator<TQString,TQVariant> TQVariant::mapFind( const TQString
{
if ( d->typ != Map )
return TQMapConstIterator<TQString,TQVariant>();
- return ((const TQMap<TQString,TQVariant>*)d->value.ptr)->tqfind( key );
+ return ((const TQMap<TQString,TQVariant>*)d->value.ptr)->find( key );
}
#endif
diff --git a/tqtinterface/qt4/src/kernel/tqwidget.cpp b/tqtinterface/qt4/src/kernel/tqwidget.cpp
index 67d0e1b..c6523df 100644
--- a/tqtinterface/qt4/src/kernel/tqwidget.cpp
+++ b/tqtinterface/qt4/src/kernel/tqwidget.cpp
@@ -249,7 +249,7 @@ TQMetaObject *TQWidget::tqmetaObject() const {
return TQT_TQOBJECT_CONST(this)->tqmetaObject();
}
-TQWidget * TQWidget::tqfind( WId w ) {
+TQWidget * TQWidget::find( WId w ) {
return static_cast<TQWidget*>(find(w));
}
@@ -910,7 +910,7 @@ void TQWidget::setKeyCompression(bool compress)
Returns the focus data for this widget's top-level widget.
Focus data always belongs to the top-level widget. The focus data
- list tqcontains all the widgets in this top-level widget that can
+ list contains all the widgets in this top-level widget that can
accept focus, in tab order. An iterator points to the current
focus widget (tqfocusWidget() returns a pointer to this widget).
@@ -1886,7 +1886,7 @@ bool TQWidget::event( TQEvent *e )
// // }
// // }
// // if ( e->type() == TQEvent::LanguageChange ) {
-// // int index = tqmetaObject()->tqfindSlot( "languageChange()", TRUE );
+// // int index = tqmetaObject()->findSlot( "languageChange()", TRUE );
// // if ( index >= 0 )
// // qt_invoke( index, 0 );
// // }
@@ -2010,7 +2010,7 @@ void TQWidget::mousePressEvent( TQMouseEvent *e )
if (tqApp->activePopupWidget() == w) // widget does not want to dissappear
w->hide(); // hide at least
}
- if (!TQT_TQRECT_OBJECT(rect()).tqcontains(e->pos()) ){
+ if (!TQT_TQRECT_OBJECT(rect()).contains(e->pos()) ){
close();
}
}
@@ -2931,7 +2931,7 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
reparent(),
polish(),
winId(),
- tqfind(),
+ find(),
metric().
\row \i What's this help \i
@@ -2967,7 +2967,7 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
\endlist
The tictac/tictac.cpp example program is good example of a simple
- widget. It tqcontains a few event handlers (as all widgets must), a
+ widget. It contains a few event handlers (as all widgets must), a
few custom routines that are specific to it (as all useful widgets
do), and has a few tqchildren and connections. Everything it does
is done in response to an event: this is by far the most common way
@@ -3012,7 +3012,7 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
\endlist
- If your widget only tqcontains child widgets, you probably do not need to
+ If your widget only contains child widgets, you probably do not need to
implement any event handlers. If you want to detect a mouse click in
a child widget call the child's hasMouse() function inside the
tqparent widget's mousePressEvent().
@@ -3131,7 +3131,7 @@ class TQWidgetMapper : public TQWidgetIntDict
public:
TQWidgetMapper();
~TQWidgetMapper();
- TQWidget *tqfind( WId id ); // tqfind widget
+ TQWidget *find( WId id ); // find widget
void insert( const TQWidget * ); // insert widget
bool remove( WId id ); // remove widget
private:
@@ -3153,10 +3153,10 @@ TQWidgetMapper::~TQWidgetMapper()
clear();
}
-inline TQWidget *TQWidgetMapper::tqfind( WId id )
+inline TQWidget *TQWidgetMapper::find( WId id )
{
if ( id != cur_id ) { // need to lookup
- cur_widget = TQWidgetIntDict::tqfind((long)id);
+ cur_widget = TQWidgetIntDict::find((long)id);
if ( cur_widget )
cur_id = id;
else
@@ -3577,7 +3577,7 @@ TQWidget::TQWidget( TQWidget *tqparent, const char *name, WFlags f )
if ( isTopLevel() ) {
setWState( WState_ForceHide | WState_CreatedHidden );
TQFocusData *fd = focusData( TRUE );
- if ( fd->tqfocusWidgets.tqfindRef(this) < 0 )
+ if ( fd->tqfocusWidgets.findRef(this) < 0 )
fd->tqfocusWidgets.append( this );
} else {
// propagate enabled state
@@ -3900,9 +3900,9 @@ void TQWidget::deactivateWidgetCleanup()
is no widget with this identifier, 0 is returned.
*/
-TQWidget *TQWidget::tqfind( WId id )
+TQWidget *TQWidget::find( WId id )
{
- return mapper ? mapper->tqfind( id ) : 0;
+ return mapper ? mapper->find( id ) : 0;
}
/*!
@@ -3912,7 +3912,7 @@ TQWidget *TQWidget::tqfind( WId id )
The widget mapper is an internal dictionary that is used to map from
window identifiers/handles to widget pointers.
- \sa tqfind(), id()
+ \sa find(), id()
*/
/*!
@@ -3955,7 +3955,7 @@ TQWidget *TQWidget::tqfind( WId id )
Portable in principle, but if you use it you are probably about to
do something non-portable. Be careful.
- \sa tqfind()
+ \sa find()
*/
#ifndef TQT_NO_STYLE
@@ -5205,7 +5205,7 @@ void TQWidget::setBackgroundFromMode()
This enum describes how the background of a widget changes, as the
widget's palette changes.
- The background is what the widget tqcontains when \link
+ The background is what the widget contains when \link
TQWidget::paintEvent() paintEvent()\endlink is called. To minimize
flicker, this should be the most common color or pixmap in the
widget. For \c PaletteBackground, use tqcolorGroup().brush( \c
@@ -6054,7 +6054,7 @@ void TQWidget::clearFocus()
/*!
Finds a new widget to give the keyboard focus to, as appropriate
- for Tab and Shift+Tab, and returns TRUE if is can tqfind a new
+ for Tab and Shift+Tab, and returns TRUE if is can find a new
widget and FALSE if it can't,
If \a next is TRUE, this function searches "forwards", if \a next
@@ -6128,7 +6128,7 @@ TQWidget *TQWidget::tqfocusWidget() const
Returns the focus data for this widget's top-level widget.
Focus data always belongs to the top-level widget. The focus data
- list tqcontains all the widgets in this top-level widget that can
+ list contains all the widgets in this top-level widget that can
accept focus, in tab order. An iterator points to the current
focus widget (tqfocusWidget() returns a pointer to this widget).
@@ -6223,7 +6223,7 @@ void TQWidget::setKeyCompression(bool compress)
\property TQWidget::isActiveWindow
\brief whether this widget is the active window
- The active window is the window that tqcontains the widget
+ The active window is the window that contains the widget
that has keyboard focus.
When popup windows are visible, this property is TRUE for both the
@@ -6330,7 +6330,7 @@ void TQWidget::setTabOrder( TQWidget* first, TQWidget *second )
TQFocusData *f = first->focusData( TRUE );
bool focusThere = (f->it.current() == second );
f->tqfocusWidgets.removeRef( second );
- if ( f->tqfocusWidgets.tqfindRef( first ) >= 0 )
+ if ( f->tqfocusWidgets.findRef( first ) >= 0 )
f->tqfocusWidgets.insert( f->tqfocusWidgets.at() + 1, second );
else
f->tqfocusWidgets.append( second );
@@ -6382,7 +6382,7 @@ void TQWidget::reparentFocusWidgets( TQWidget * oldtlw )
} while( from->tqfocusWidgets.current() );
}
- if ( to->tqfocusWidgets.tqfindRef(this) < 0 )
+ if ( to->tqfocusWidgets.findRef(this) < 0 )
to->tqfocusWidgets.append( this );
if ( !isTopLevel() && extra && extra->topextra && extra->topextra->focusData ) {
@@ -6544,7 +6544,7 @@ void TQWidget::setFocusPolicy( FocusPolicy policy )
focusProxy()->setFocusPolicy( policy );
if ( policy != NoFocus ) {
TQFocusData * f = focusData( TRUE );
- if ( f->tqfocusWidgets.tqfindRef( this ) < 0 )
+ if ( f->tqfocusWidgets.findRef( this ) < 0 )
f->tqfocusWidgets.append( this );
}
focus_policy = (uint) policy;
@@ -6957,7 +6957,7 @@ bool TQWidget::close( bool alsoDelete )
bool deleted = FALSE;
TQCloseEvent e;
TQApplication::sendEvent( this, &e );
- deleted = !TQWidget::tqfind(id);
+ deleted = !TQWidget::find(id);
if ( !deleted && !e.isAccepted() ) {
is_closing = 0;
return FALSE;
@@ -7586,7 +7586,7 @@ bool TQWidget::event( TQEvent *e )
}
}
if ( e->type() == TQEvent::LanguageChange ) {
- int index = tqmetaObject()->tqfindSlot( "languageChange()", TRUE );
+ int index = tqmetaObject()->findSlot( "languageChange()", TRUE );
if ( index >= 0 )
qt_invoke( index, 0 );
}
@@ -7698,7 +7698,7 @@ void TQWidget::mousePressEvent( TQMouseEvent *e )
if (tqApp->activePopupWidget() == w) // widget does not want to dissappear
w->hide(); // hide at least
}
- if (!rect().tqcontains(e->pos()) ){
+ if (!rect().contains(e->pos()) ){
close();
}
}
@@ -8566,7 +8566,7 @@ bool TQWidget::customWhatsThis() const
*/
TQWidget *TQWidget::tqchildAt( int x, int y, bool includeThis ) const
{
- if ( !rect().tqcontains( x, y ) )
+ if ( !rect().contains( x, y ) )
return 0;
if ( childrenListObject() ) {
TQObjectListIt it( *childrenListObject() );
diff --git a/tqtinterface/qt4/src/kernel/tqwidget.h b/tqtinterface/qt4/src/kernel/tqwidget.h
index 0a75dad..6af93ed 100644
--- a/tqtinterface/qt4/src/kernel/tqwidget.h
+++ b/tqtinterface/qt4/src/kernel/tqwidget.h
@@ -158,7 +158,7 @@ typedef QFlags<Qt::WindowState> WState;
QPoint gpos = mapToGlobal(e->pos()); \
QPoint npos = newreceiver->mapFromGlobal(gpos); \
if (popup) { \
- while (!TQT_TQRECT_OBJECT(newreceiver->rect()).tqcontains(npos)) { \
+ while (!TQT_TQRECT_OBJECT(newreceiver->rect()).contains(npos)) { \
new_receiver_found = TRUE; \
newreceiver = tqwidget_parent_popup_menu(newreceiver); \
if (newreceiver) { \
@@ -169,7 +169,7 @@ typedef QFlags<Qt::WindowState> WState;
} \
} \
if ((newreceiver) && (new_receiver_found)) { \
- if (TQT_TQRECT_OBJECT(newreceiver->rect()).tqcontains(npos)) { \
+ if (TQT_TQRECT_OBJECT(newreceiver->rect()).contains(npos)) { \
if (tqwidget_is_popup_menu(newreceiver)) { \
npos = newreceiver->mapFromGlobal(gpos); \
QMouseEvent fixedevent(e->type(), npos, e->globalPos(), e->button(), e->buttons(), e->modifiers()); \
@@ -230,7 +230,7 @@ public:
TQWidget * parentWidget( bool sameWindow = FALSE ) const;
static TQCString normalizeSignalSlot( const char *signalSlot );
TQMetaObject *tqmetaObject() const;
- static TQWidget * tqfind( WId w );
+ static TQWidget * find( WId w );
bool isShown() const;
TQWidget *tqchildAt( int x, int y, bool includeThis = FALSE ) const;
TQWidget *tqchildAt( const TQPoint &p, bool includeThis = FALSE ) const;
@@ -992,7 +992,7 @@ public:
TQWidget * parentWidget( bool sameWindow = FALSE ) const;
WState testWState( WState s ) const;
WFlags testWFlags( WFlags f ) const;
- static TQWidget * tqfind( WId );
+ static TQWidget * find( WId );
static TQWidgetMapper *wmapper();
TQWidget *tqchildAt( int x, int y, bool includeThis = FALSE ) const;
diff --git a/tqtinterface/qt4/src/kernel/tqwidget_x11.cpp b/tqtinterface/qt4/src/kernel/tqwidget_x11.cpp
index 0a60833..60df412 100644
--- a/tqtinterface/qt4/src/kernel/tqwidget_x11.cpp
+++ b/tqtinterface/qt4/src/kernel/tqwidget_x11.cpp
@@ -483,7 +483,7 @@ extern bool qt_nograb();
// defined in qapplication_x11.cpp
extern void qt_deferred_map_add( TQWidget* );
extern void qt_deferred_map_take( TQWidget* );
-extern bool qt_deferred_map_tqcontains(TQWidget *);
+extern bool qt_deferred_map_contains(TQWidget *);
static TQWidget *mouseGrb = 0;
static TQWidget *keyboardGrb = 0;
@@ -792,7 +792,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
TQPaintDeviceX11Data* xd = getX11Data( TRUE );
- // tqfind which screen the window is on...
+ // find which screen the window is on...
xd->x_screen = TQPaintDevice::x11AppScreen(); // by default, use the default :)
int i;
for ( i = 0; i < ScreenCount( dpy ); i++ ) {
@@ -812,7 +812,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
setX11Data( xd );
} else if ( desktop ) { // desktop widget
id = (WId)parentw; // id = root window
- TQWidget *otherDesktop = tqfind( id ); // is there another desktop?
+ TQWidget *otherDesktop = find( id ); // is there another desktop?
if ( otherDesktop && otherDesktop->testWFlags(WPaintDesktop) ) {
otherDesktop->setWinId( 0 ); // remove id from widget mapper
setWinId( id ); // make sure otherDesktop is
@@ -966,7 +966,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
XSetTransientForHint( dpy, id, root_win );
}
- // tqfind the real client leader, i.e. a toplevel without tqparent
+ // find the real client leader, i.e. a toplevel without tqparent
while ( p && p->parentWidget())
p = p->parentWidget()->tqtopLevelWidget();
@@ -1668,7 +1668,7 @@ void TQWidget::setMouseTracking( bool enable )
else
clearWState( WState_MouseTracking );
if ( testWFlags(WType_Desktop) ) { // desktop widget?
- TQWidget* main_desktop = tqfind( winId() );
+ TQWidget* main_desktop = find( winId() );
if ( main_desktop->testWFlags(WPaintDesktop) )
XSelectInput( x11Display(), winId(),
stdDesktopEventMask | ExposureMask );
@@ -1900,7 +1900,7 @@ TQWidget *TQWidget::keyboardGrabber()
void TQWidget::setActiveWindow()
{
TQWidget *tlw = tqtopLevelWidget();
- if ( tlw->isVisible() && !tlw->topData()->embedded && !qt_deferred_map_tqcontains(tlw) ) {
+ if ( tlw->isVisible() && !tlw->topData()->embedded && !qt_deferred_map_contains(tlw) ) {
XSetInputFocus( x11Display(), tlw->winId(), RevertToNone, GET_QT_X_TIME());
focusInputContext();
}
@@ -1948,8 +1948,8 @@ void TQWidget::update()
Calling update() several times normally results in just one
paintEvent() call.
- If \a w is negative, it is tqreplaced with \c{width() - x}. If \a h
- is negative, it is tqreplaced width \c{height() - y}.
+ If \a w is negative, it is replaced with \c{width() - x}. If \a h
+ is negative, it is replaced width \c{height() - y}.
TQt normally erases the specified area before the paintEvent()
call. If the \c WRepaintNoErase widget flag is set, the widget is
@@ -2007,8 +2007,8 @@ void TQWidget::update( int x, int y, int w, int h )
If \a erase is TRUE, TQt erases the area \a (x, y, w, h) before the
paintEvent() call.
- If \a w is negative, it is tqreplaced with \c{width() - x}, and if
- \a h is negative, it is tqreplaced width \c{height() - y}.
+ If \a w is negative, it is replaced with \c{width() - x}, and if
+ \a h is negative, it is replaced width \c{height() - y}.
We suggest only using tqrepaint() if you need an immediate tqrepaint,
for example during animation. In almost all circumstances update()
@@ -2322,7 +2322,7 @@ void TQWidget::hideWindow()
void TQWidget::raise()
{
TQWidget *p = parentWidget();
- if ( p && p->childObjects && p->childObjects->tqfindRef(this) >= 0 )
+ if ( p && p->childObjects && p->childObjects->findRef(this) >= 0 )
p->childObjects->append( p->childObjects->take() );
XRaiseWindow( x11Display(), winId() );
}
@@ -2339,7 +2339,7 @@ void TQWidget::raise()
void TQWidget::lower()
{
TQWidget *p = parentWidget();
- if ( p && p->childObjects && p->childObjects->tqfindRef(this) >= 0 )
+ if ( p && p->childObjects && p->childObjects->findRef(this) >= 0 )
p->childObjects->insert( 0, p->childObjects->take() );
XLowerWindow( x11Display(), winId() );
}
@@ -2357,9 +2357,9 @@ void TQWidget::stackUnder( TQWidget* w)
TQWidget *p = parentWidget();
if ( !w || isTopLevel() || p != w->parentWidget() || this == w )
return;
- if ( p && p->childObjects && p->childObjects->tqfindRef(w) >= 0 && p->childObjects->tqfindRef(this) >= 0 ) {
+ if ( p && p->childObjects && p->childObjects->findRef(w) >= 0 && p->childObjects->findRef(this) >= 0 ) {
p->childObjects->take();
- p->childObjects->insert( p->childObjects->tqfindRef(w), this );
+ p->childObjects->insert( p->childObjects->findRef(w), this );
}
Window stack[2];
stack[0] = w->winId();;
@@ -2372,7 +2372,7 @@ void TQWidget::stackUnder( TQWidget* w)
/*
The global variable qt_widget_tlw_gravity defines the window gravity of
the next top level window to be created. We do this when setting the
- main widget's tqgeometry and the "-tqgeometry" command line option tqcontains
+ main widget's tqgeometry and the "-tqgeometry" command line option contains
a negative position.
*/
@@ -2645,8 +2645,8 @@ void TQWidget::setBaseSize( int basew, int baseh )
Erases the specified area \a (x, y, w, h) in the widget without
generating a \link paintEvent() paint event\endlink.
- If \a w is negative, it is tqreplaced with \c{width() - x}. If \a h
- is negative, it is tqreplaced width \c{height() - y}.
+ If \a w is negative, it is replaced with \c{width() - x}. If \a h
+ is negative, it is replaced width \c{height() - y}.
Child widgets are not affected.
diff --git a/tqtinterface/qt4/src/kernel/tqwmatrix.cpp b/tqtinterface/qt4/src/kernel/tqwmatrix.cpp
index ffa0388..97eccf2 100644
--- a/tqtinterface/qt4/src/kernel/tqwmatrix.cpp
+++ b/tqtinterface/qt4/src/kernel/tqwmatrix.cpp
@@ -251,7 +251,7 @@ TQWMatrix operator*( const TQWMatrix &m1, const TQWMatrix &m2 )
graphics; the actual transformation is performed by the drawing
routines in TQPainter and by TQPixmap::xForm().
- The TQWMatrix class tqcontains a 3x3 matrix of the form:
+ The TQWMatrix class contains a 3x3 matrix of the form:
<table align=center border=1 cellpadding=1 cellspacing=0>
<tr align=center><td>m11</td><td>m12</td><td>&nbsp;0 </td></tr>
<tr align=center><td>m21</td><td>m22</td><td>&nbsp;0 </td></tr>
diff --git a/tqtinterface/qt4/src/network/tqdns.cpp b/tqtinterface/qt4/src/network/tqdns.cpp
index 24b5401..898ac43 100644
--- a/tqtinterface/qt4/src/network/tqdns.cpp
+++ b/tqtinterface/qt4/src/network/tqdns.cpp
@@ -762,7 +762,7 @@ void TQDnsAnswer::parse()
if ( rr->target.length() && rr->deleteTime > 0 && rr->current )
used.insert( rr->target, (void*)42 );
if ( ( rr->t == TQDns::A || rr->t == TQDns::Aaaa ) &&
- used.tqfind( rr->domain->name() ) != 0 )
+ used.find( rr->domain->name() ) != 0 )
rr->deleteTime = rr->expireTime;
}
@@ -829,7 +829,7 @@ void TQDnsAnswer::notify()
it.toFirst();
while( (dns=(TQDns*)(it.current())) != 0 ) {
++it;
- if ( notified.tqfind( (void*)dns ) == 0 ) {
+ if ( notified.find( (void*)dns ) == 0 ) {
notified.insert( (void*)dns, (void*)42 );
if ( rrs->count() == 0 ) {
#if defined(TQDNS_DEBUG)
@@ -839,7 +839,7 @@ void TQDnsAnswer::notify()
((TQDnsUgleHack*)dns)->ugle( true );
} else {
TQStringList n = dns->qualifiedNames();
- if ( query && n.tqcontains(query->l) )
+ if ( query && n.contains(query->l) )
((TQDnsUgleHack*)dns)->ugle();
#if defined(TQDNS_DEBUG)
else
@@ -1189,7 +1189,7 @@ void TQDnsManager::transmitQuery( int i )
int pp = 12;
uint lp = 0;
while( lp < (uint) q->l.length() ) {
- int le = q->l.tqfind( QLatin1Char('.'), lp );
+ int le = q->l.find( QLatin1Char('.'), lp );
if ( le < 0 )
le = q->l.length();
TQString component = q->l.mid( lp, le-lp );
@@ -1241,7 +1241,7 @@ void TQDnsManager::transmitQuery( int i )
TQDns::doResInit();
if ( !theNs || theNs->isEmpty() ) {
- // we don't tqfind any name servers. We fake an NXDomain
+ // we don't find any name servers. We fake an NXDomain
// with a very short life time...
TQDnsAnswer answer( q );
answer.notify();
@@ -1297,7 +1297,7 @@ void TQDnsManager::transmitQuery( int i )
TQDnsDomain * TQDnsManager::domain( const TQString & label )
{
- TQDnsDomain * d = cache.tqfind( label );
+ TQDnsDomain * d = cache.find( label );
if ( !d ) {
d = new TQDnsDomain( label );
cache.insert( label, d );
@@ -1495,21 +1495,21 @@ TQPtrList<TQDnsRR> * TQDnsDomain::cached( const TQDns * r )
// we haven't done it before, so maybe we should. but
// wait - if it's an unqualified name, only ask when all
// the other alternatives are exhausted.
- if ( q == m->queries.size() && ( s.tqfind( QLatin1Char('.') ) >= 0 ||
+ if ( q == m->queries.size() && ( s.find( QLatin1Char('.') ) >= 0 ||
int(l->count()) >= n.count()-1 ) ) {
TQDnsQuery * query = new TQDnsQuery;
query->started = now();
query->id = ++theId;
query->t = r->recordType();
query->l = s;
- query->dns->tqreplace( (void*)r, (void*)r );
+ query->dns->replace( (void*)r, (void*)r );
TQT_BASE_OBJECT_NAME::connect( query, TQT_SIGNAL(timeout()),
TQDnsManager::manager(), TQT_SLOT(retransmit()) );
TQDnsManager::manager()->transmitQuery( query );
} else if ( q < m->queries.size() ) {
// if we've found an earlier query for the same
// domain/type, subscribe to its answer
- m->queries[q]->dns->tqreplace( (void*)r, (void*)r );
+ m->queries[q]->dns->replace( (void*)r, (void*)r );
}
}
}
@@ -1822,7 +1822,7 @@ void TQDns::setLabel( const TQHostAddress & address )
\value Mx Mail eXchanger names. Used for mail delivery.
- \value Srv SeRVer names. Generic record type for tqfinding
+ \value Srv SeRVer names. Generic record type for finding
servers. So far mostly unused.
\value Cname Canonical names. Maps from nicknames to the true
@@ -2021,7 +2021,7 @@ TQValueList<TQHostAddress> TQDns::addresses() const
/*!
Returns a list of mail servers if the record type is \c Mx. The
- class TQDns::MailServer tqcontains the following public variables:
+ class TQDns::MailServer contains the following public variables:
\list
\i TQString TQDns::MailServer::name
\i Q_UINT16 TQDns::MailServer::priority
@@ -2065,7 +2065,7 @@ TQValueList<TQDns::MailServer> TQDns::mailServers() const
/*!
Returns a list of servers if the record type is \c Srv. The class
- TQDns::Server tqcontains the following public variables:
+ TQDns::Server contains the following public variables:
\list
\i TQString TQDns::Server::name
\i Q_UINT16 TQDns::Server::priority
@@ -2359,7 +2359,7 @@ void TQDns::doResInit()
if ( !nameServer.isEmpty() ) {
first = 0;
do {
- last = nameServer.tqfind( QLatin1Char(separator), first );
+ last = nameServer.find( QLatin1Char(separator), first );
if ( last < 0 )
last = nameServer.length();
TQDns tmp( nameServer.mid( first, last-first ), TQDns::A );
@@ -2375,7 +2375,7 @@ void TQDns::doResInit()
searchList = searchList.simplifyWhiteSpace().lower();
first = 0;
do {
- last = searchList.tqfind( QLatin1Char(separator), first );
+ last = searchList.find( QLatin1Char(separator), first );
if ( last < 0 )
last = searchList.length();
theDomains->append( qstrdup( searchList.mid( first, last-first ).latin1() ) );
@@ -2496,7 +2496,7 @@ void TQDns::doResInit()
struct __res_state res;
res_ninit( &res );
int i;
- // tqfind the name servers to use
+ // find the name servers to use
for( i=0; i < MAXNS && i < res.nscount; i++ )
theNs->append( new TQHostAddress( ntohl( res.nsaddr_list[i].sin_addr.s_addr ) ) );
# if defined(MAXDFLSRCH)
@@ -2512,7 +2512,7 @@ void TQDns::doResInit()
#else
res_init();
int i;
- // tqfind the name servers to use
+ // find the name servers to use
for( i=0; i < MAXNS && i < _res.nscount; i++ )
theNs->append( new TQHostAddress( ntohl( _res.nsaddr_list[i].sin_addr.s_addr ) ) );
# if defined(MAXDFLSRCH)
@@ -2541,7 +2541,7 @@ void TQDns::doResInit()
QFile hosts( TQString::fromLatin1( "/etc/hosts" ) );
if ( hosts.open( QIODevice::ReadOnly ) ) {
// read the /etc/hosts file, creating long-life A and PTR RRs
- // for the things we tqfind.
+ // for the things we find.
QTextStream i( &hosts );
TQString line;
while( !i.atEnd() ) {
@@ -3365,7 +3365,7 @@ void TQDnsAnswer::parse()
if ( rr->target.length() && rr->deleteTime > 0 && rr->current )
used.insert( rr->target, (void*)42 );
if ( ( rr->t == TQDns::A || rr->t == TQDns::Aaaa ) &&
- used.tqfind( rr->domain->name() ) != 0 )
+ used.find( rr->domain->name() ) != 0 )
rr->deleteTime = rr->expireTime;
}
@@ -3432,7 +3432,7 @@ void TQDnsAnswer::notify()
it.toFirst();
while( (dns=(TQDns*)(it.current())) != 0 ) {
++it;
- if ( notified.tqfind( (void*)dns ) == 0 ) {
+ if ( notified.find( (void*)dns ) == 0 ) {
notified.insert( (void*)dns, (void*)42 );
if ( rrs->count() == 0 ) {
#if defined(TQDNS_DEBUG)
@@ -3442,7 +3442,7 @@ void TQDnsAnswer::notify()
((TQDnsUgleHack*)dns)->ugle( TRUE );
} else {
TQStringList n = dns->qualifiedNames();
- if ( query && n.tqcontains(query->l) )
+ if ( query && n.contains(query->l) )
((TQDnsUgleHack*)dns)->ugle();
#if defined(TQDNS_DEBUG)
else
@@ -3796,7 +3796,7 @@ void TQDnsManager::transmitQuery( int i )
int pp = 12;
uint lp = 0;
while( lp < q->l.length() ) {
- int le = q->l.tqfind( '.', lp );
+ int le = q->l.find( '.', lp );
if ( le < 0 )
le = q->l.length();
TQString component = q->l.mid( lp, le-lp );
@@ -3848,7 +3848,7 @@ void TQDnsManager::transmitQuery( int i )
TQDns::doResInit();
if ( !ns || ns->isEmpty() ) {
- // we don't tqfind any name servers. We fake an NXDomain
+ // we don't find any name servers. We fake an NXDomain
// with a very short life time...
TQDnsAnswer answer( q );
answer.notify();
@@ -3904,7 +3904,7 @@ void TQDnsManager::transmitQuery( int i )
TQDnsDomain * TQDnsManager::domain( const TQString & label )
{
- TQDnsDomain * d = cache.tqfind( label );
+ TQDnsDomain * d = cache.find( label );
if ( !d ) {
d = new TQDnsDomain( label );
cache.insert( label, d );
@@ -4104,21 +4104,21 @@ TQPtrList<TQDnsRR> * TQDnsDomain::cached( const TQDns * r )
// we haven't done it before, so maybe we should. but
// wait - if it's an unqualified name, only ask when all
// the other alternatives are exhausted.
- if ( q == m->queries.size() && ( s.tqfind( '.' ) >= 0 ||
+ if ( q == m->queries.size() && ( s.find( '.' ) >= 0 ||
l->count() >= n.count()-1 ) ) {
TQDnsQuery * query = new TQDnsQuery;
query->started = now();
query->id = ++::id;
query->t = r->recordType();
query->l = s;
- query->dns->tqreplace( (void*)r, (void*)r );
+ query->dns->replace( (void*)r, (void*)r );
TQObject::connect( query, TQT_SIGNAL(timeout()),
TQDnsManager::manager(), TQT_SLOT(retransmit()) );
TQDnsManager::manager()->transmitQuery( query );
} else if ( q < m->queries.size() ) {
// if we've found an earlier query for the same
// domain/type, subscribe to its answer
- m->queries[q]->dns->tqreplace( (void*)r, (void*)r );
+ m->queries[q]->dns->replace( (void*)r, (void*)r );
}
}
}
@@ -4442,7 +4442,7 @@ void TQDns::setLabel( const TQHostAddress & address )
\value Mx Mail eXchanger names. Used for mail delivery.
- \value Srv SeRVer names. Generic record type for tqfinding
+ \value Srv SeRVer names. Generic record type for finding
servers. So far mostly unused.
\value Cname Canonical names. Maps from nicknames to the true
@@ -4653,7 +4653,7 @@ TQValueList<TQHostAddress> TQDns::addresses() const
/*!
Returns a list of mail servers if the record type is \c Mx. The
- class \c TQDns::MailServer tqcontains the following public variables:
+ class \c TQDns::MailServer contains the following public variables:
\list
\i TQString TQDns::MailServer::name
\i TQ_UINT16 TQDns::MailServer::priority
@@ -4709,7 +4709,7 @@ TQValueList<TQDns::MailServer> TQDns::mailServers() const
/*!
Returns a list of servers if the record type is \c Srv. The class
- \c TQDns::Server tqcontains the following public variables:
+ \c TQDns::Server contains the following public variables:
\list
\i TQString TQDns::Server::name
\i TQ_UINT16 TQDns::Server::priority
@@ -5056,7 +5056,7 @@ void TQDns::doResInit()
if ( !nameServer.isEmpty() ) {
first = 0;
do {
- last = nameServer.tqfind( separator, first );
+ last = nameServer.find( separator, first );
if ( last < 0 )
last = nameServer.length();
TQDns tmp( nameServer.mid( first, last-first ), TQDns::A );
@@ -5072,7 +5072,7 @@ void TQDns::doResInit()
searchList = searchList.simplifyWhiteSpace().lower();
first = 0;
do {
- last = searchList.tqfind( separator, first );
+ last = searchList.find( separator, first );
if ( last < 0 )
last = searchList.length();
domains->append( qstrdup( searchList.mid( first, last-first ) ) );
@@ -5194,7 +5194,7 @@ void TQDns::doResInit()
struct __res_state res;
res_ninit( &res );
int i;
- // tqfind the name servers to use
+ // find the name servers to use
for( i=0; i < MAXNS && i < res.nscount; i++ )
ns->append( new TQHostAddress( ntohl( res.nsaddr_list[i].sin_addr.s_addr ) ) );
# if defined(MAXDFLSRCH)
@@ -5210,7 +5210,7 @@ void TQDns::doResInit()
#else
qdns_res_init();
int i;
- // tqfind the name servers to use
+ // find the name servers to use
for( i=0; i < MAXNS && i < _res.nscount; i++ )
ns->append( new TQHostAddress( ntohl( _res.nsaddr_list[i].sin_addr.s_addr ) ) );
# if defined(MAXDFLSRCH)
@@ -5239,7 +5239,7 @@ void TQDns::doResInit()
TQFile hosts( TQString::tqfromLatin1( "/etc/hosts" ) );
if ( hosts.open( IO_ReadOnly ) ) {
// read the /etc/hosts file, creating long-life A and PTR RRs
- // for the things we tqfind.
+ // for the things we find.
TQTextStream i( &hosts );
TQString line;
while( !i.atEnd() ) {
diff --git a/tqtinterface/qt4/src/network/tqdns.h b/tqtinterface/qt4/src/network/tqdns.h
index 14a5e65..23c84ee 100644
--- a/tqtinterface/qt4/src/network/tqdns.h
+++ b/tqtinterface/qt4/src/network/tqdns.h
@@ -364,7 +364,7 @@ private:
class TQDnsSocket: public TQObject {
Q_OBJECT
TQ_OBJECT
- // note: Private not public. This class tqcontains NO public API.
+ // note: Private not public. This class contains NO public API.
protected:
TQDnsSocket( TQObject *, const char * );
virtual ~TQDnsSocket();
diff --git a/tqtinterface/qt4/src/network/tqftp.cpp b/tqtinterface/qt4/src/network/tqftp.cpp
index 7fb239e..7b6acdd 100644
--- a/tqtinterface/qt4/src/network/tqftp.cpp
+++ b/tqtinterface/qt4/src/network/tqftp.cpp
@@ -481,7 +481,7 @@ bool TQFtpDTP::parseDir( const TQString &buffer, const TQString &userName, TQUrl
dateStr += lst[ 6 ];
dateStr += ' ';
- if ( lst[ 7 ].tqcontains( ":" ) ) {
+ if ( lst[ 7 ].contains( ":" ) ) {
time = TQTime( lst[ 7 ].left( 2 ).toInt(), lst[ 7 ].right( 2 ).toInt() );
dateStr += TQString::number( TQDate::currentDate().year() );
} else {
@@ -491,7 +491,7 @@ bool TQFtpDTP::parseDir( const TQString &buffer, const TQString &userName, TQUrl
TQDate date = TQT_TQDATE_OBJECT(TQDate::fromString( dateStr ));
info->setLastModified( TQDateTime( date, time ) );
- if ( lst[ 7 ].tqcontains( ":" ) ) {
+ if ( lst[ 7 ].contains( ":" ) ) {
const int futureTolerance = 600;
if( info->lastModified().secsTo( TQDateTime::tqcurrentDateTime() ) < -futureTolerance ) {
TQDateTime dt = info->lastModified();
@@ -1046,10 +1046,10 @@ static TQFtpPrivate* d( const TQFtp* foo )
d_ptr->setAutoDelete( TRUE );
qAddPostRoutine( cleanup_d_ptr );
}
- TQFtpPrivate* ret = d_ptr->tqfind( (void*)foo );
+ TQFtpPrivate* ret = d_ptr->find( (void*)foo );
if ( ! ret ) {
ret = new TQFtpPrivate;
- d_ptr->tqreplace( (void*) foo, ret );
+ d_ptr->replace( (void*) foo, ret );
}
return ret;
}
@@ -1347,7 +1347,7 @@ void TQFtp::init()
\fn void TQFtp::listInfo( const TQUrlInfo &i );
This signal is emitted for each directory entry the list() command
- tqfinds. The details of the entry are stored in \a i.
+ finds. The details of the entry are stored in \a i.
\sa list()
*/
@@ -1929,7 +1929,7 @@ TQFtp::State TQFtp::state() const
}
/*!
- Returns the last error that occurred. This is useful to tqfind out
+ Returns the last error that occurred. This is useful to find out
what when wrong when receiving a commandFinished() or a done()
signal with the \c error argument set to \c TRUE.
diff --git a/tqtinterface/qt4/src/network/tqhostaddress.cpp b/tqtinterface/qt4/src/network/tqhostaddress.cpp
index f6720e4..5a4e5cf 100644
--- a/tqtinterface/qt4/src/network/tqhostaddress.cpp
+++ b/tqtinterface/qt4/src/network/tqhostaddress.cpp
@@ -96,7 +96,7 @@ TQHostAddressPrivate::TQHostAddressPrivate(const TQ_IPV6ADDR &a_) : a(0), isIp4(
\ingroup io
\module network
- This class tqcontains an IP address in a platform and protocol
+ This class contains an IP address in a platform and protocol
independent manner. It stores both IPv4 and IPv6 addresses in a
way that you can easily access on any platform.
@@ -378,7 +378,7 @@ bool TQHostAddress::isIPv6Address() const
\code
TQ_IPV6ADDR addr = hostAddr.ip6Addr();
- // addr.c[] tqcontains 16 unsigned characters
+ // addr.c[] contains 16 unsigned characters
for (int i = 0; i < 16; ++i) {
// process addr.c[i]
diff --git a/tqtinterface/qt4/src/network/tqhttp.cpp b/tqtinterface/qt4/src/network/tqhttp.cpp
index 7d324ea..53cdbeb 100644
--- a/tqtinterface/qt4/src/network/tqhttp.cpp
+++ b/tqtinterface/qt4/src/network/tqhttp.cpp
@@ -333,7 +333,7 @@ void TQHttpCloseRequest::start( TQHttp *http )
/*!
\class TQHttpHeader tqhttp.h
- \brief The TQHttpHeader class tqcontains header information for HTTP.
+ \brief The TQHttpHeader class contains header information for HTTP.
\if defined(commercial)
It is part of the <a href="commercialeditions.html">TQt Enterprise Edition</a>.
\endif
@@ -445,7 +445,7 @@ bool TQHttpHeader::isValid() const
/*! \internal
Parses the HTTP header string \a str for header fields and adds
- the keys/values it tqfinds. If the string is not parsed successfully
+ the keys/values it finds. If the string is not parsed successfully
the TQHttpHeader becomes \link isValid() invalid\endlink.
Returns TRUE if \a str was successfully parsed; otherwise returns FALSE.
@@ -455,7 +455,7 @@ bool TQHttpHeader::isValid() const
bool TQHttpHeader::parse( const TQString& str )
{
TQStringList lst;
- int pos = str.tqfind( '\n' );
+ int pos = str.find( '\n' );
if ( pos > 0 && str.at( pos - 1 ) == '\r' )
lst = TQStringList::split( "\r\n", str.stripWhiteSpace(), FALSE );
else
@@ -526,7 +526,7 @@ TQStringList TQHttpHeader::keys() const
*/
bool TQHttpHeader::hasKey( const TQString& key ) const
{
- return values.tqcontains( key.lower() );
+ return values.contains( key.lower() );
}
/*!
@@ -534,7 +534,7 @@ bool TQHttpHeader::hasKey( const TQString& key ) const
If no entry with \a key exists, a new entry with the given \a key
and \a value is created. If an entry with the \a key already
- exists, its value is discarded and tqreplaced with the given \a
+ exists, its value is discarded and replaced with the given \a
value.
\sa value() hasKey() removeValue()
@@ -564,7 +564,7 @@ void TQHttpHeader::removeValue( const TQString& key )
*/
bool TQHttpHeader::parseLine( const TQString& line, int )
{
- int i = line.tqfind( ":" );
+ int i = line.find( ":" );
if ( i == -1 )
return FALSE;
@@ -649,7 +649,7 @@ TQString TQHttpHeader::contentType() const
if ( type.isEmpty() )
return TQString::null;
- int pos = type.tqfind( ";" );
+ int pos = type.find( ";" );
if ( pos == -1 )
return type;
@@ -675,7 +675,7 @@ void TQHttpHeader::setContentType( const TQString& type )
/*!
\class TQHttpResponseHeader tqhttp.h
- \brief The TQHttpResponseHeader class tqcontains response header information for HTTP.
+ \brief The TQHttpResponseHeader class contains response header information for HTTP.
\if defined(commercial)
It is part of the <a href="commercialeditions.html">TQt Enterprise Edition</a>.
\endif
@@ -807,7 +807,7 @@ bool TQHttpResponseHeader::parseLine( const TQString& line, int number )
majVer = l[5].latin1() - '0';
minVer = l[7].latin1() - '0';
- int pos = l.tqfind( ' ', 9 );
+ int pos = l.find( ' ', 9 );
if ( pos != -1 ) {
reasonPhr = l.mid( pos + 1 );
statCode = l.mid( 9, pos - 9 ).toInt();
@@ -838,7 +838,7 @@ TQString TQHttpResponseHeader::toString() const
/*!
\class TQHttpRequestHeader tqhttp.h
- \brief The TQHttpRequestHeader class tqcontains request header information for
+ \brief The TQHttpRequestHeader class contains request header information for
\if defined(commercial)
It is part of the <a href="commercialeditions.html">TQt Enterprise Edition</a>.
\endif
@@ -1166,7 +1166,7 @@ TQString TQHttpRequestHeader::toString() const
You can then get details about the error with the error() and
errorString() functions. Note that only unexpected behaviour, like
network failure is considered as an error. If the server response
- tqcontains an error status, like a 404 response, this is reported as
+ contains an error status, like a 404 response, this is reported as
a normal response case. So you should always check the \link
TQHttpResponseHeader::statusCode() status code \endlink of the
response header.
@@ -1985,7 +1985,7 @@ void TQHttp::slotReadyRead()
if (d->response.statusCode() != 100) {
d->readHeader = FALSE;
if ( d->response.hasKey( "transfer-encoding" ) &&
- d->response.value( "transfer-encoding" ).lower().tqcontains( "chunked" ) )
+ d->response.value( "transfer-encoding" ).lower().contains( "chunked" ) )
d->chunkedSize = 0;
emit responseHeaderReceived( d->response );
@@ -2008,7 +2008,7 @@ void TQHttp::slotReadyRead()
if ( !d->socket.canReadLine() )
break;
TQString sizeString = d->socket.readLine();
- int tPos = sizeString.tqfind( ';' );
+ int tPos = sizeString.find( ';' );
if ( tPos != -1 )
sizeString.truncate( tPos );
bool ok;
@@ -2135,7 +2135,7 @@ TQHttp::State TQHttp::state() const
}
/*!
- Returns the last error that occurred. This is useful to tqfind out
+ Returns the last error that occurred. This is useful to find out
what happened when receiving a requestFinished() or a done()
signal with the \c error argument \c TRUE.
diff --git a/tqtinterface/qt4/src/network/tqsocket.cpp b/tqtinterface/qt4/src/network/tqsocket.cpp
index 52d95cc..c894f3e 100644
--- a/tqtinterface/qt4/src/network/tqsocket.cpp
+++ b/tqtinterface/qt4/src/network/tqsocket.cpp
@@ -248,7 +248,7 @@ void TQSocketPrivate::setSocketDevice( TQSocket *q, TQSocketDevice *tqdevice )
Most network protocols are either packet-oriented or
line-oriented. canReadLine() indicates whether a connection
- tqcontains an entire unread line or not, and bytesAvailable()
+ contains an entire unread line or not, and bytesAvailable()
returns the number of bytes available for reading.
The Q_SIGNALS error(), connected(), readyRead() and
@@ -325,7 +325,7 @@ qint64 TQSocket::readData( char *data, qint64 maxlen )
// readyRead() signal since this might cause a bad recursive behavior.
// We can test for this condition by looking at the
// sn_read_alreadyCalled flag.
- if ( d->rsn && TQSocketPrivate::sn_read_alreadyCalled.tqfindRef(this) == -1 )
+ if ( d->rsn && TQSocketPrivate::sn_read_alreadyCalled.findRef(this) == -1 )
d->rsn->setEnabled( true );
return maxlen;
}
@@ -593,7 +593,7 @@ void TQSocket::tryConnecting()
return;
}
- // we've found something. press on with that. if we later tqfind
+ // we've found something. press on with that. if we later find
// more, fine.
emit hostFound();
d->state = Connecting;
@@ -777,7 +777,7 @@ bool TQSocket::open( int m )
If the output buffer is empty, the state is set to \c
TQSocket::Idle and the connection is terminated immediately. If the
- output buffer still tqcontains data to be written, TQSocket goes into
+ output buffer still contains data to be written, TQSocket goes into
the \c TQSocket::Closing state and the rest of the data will be
written. When all of the outgoing data have been written, the
state is set to \c TQSocket::Idle and the connection is terminated.
@@ -982,7 +982,7 @@ bool TQSocket::at( Offset index )
// readyRead() signal since this might cause a bad recursive behavior.
// We can test for this condition by looking at the
// sn_read_alreadyCalled flag.
- if ( d->rsn && TQSocketPrivate::sn_read_alreadyCalled.tqfindRef(this) == -1 )
+ if ( d->rsn && TQSocketPrivate::sn_read_alreadyCalled.findRef(this) == -1 )
d->rsn->setEnabled( TRUE );
return TRUE;
}
@@ -1038,7 +1038,7 @@ TQ_ULONG TQSocket::bytesAvailable() const
If \a timeout is non-null and no error occurred (i.e. it does not
return -1): this function sets \a *timeout to TRUE, if the reason
for returning was that the timeout was reached; otherwise it sets
- \a *timeout to FALSE. This is useful to tqfind out if the peer
+ \a *timeout to FALSE. This is useful to find out if the peer
closed the connection.
\warning This is a blocking call and should be avoided in event
@@ -1126,7 +1126,7 @@ TQ_LONG TQSocket::readBlock( char *data, TQ_ULONG maxlen )
// readyRead() signal since this might cause a bad recursive behavior.
// We can test for this condition by looking at the
// sn_read_alreadyCalled flag.
- if ( d->rsn && TQSocketPrivate::sn_read_alreadyCalled.tqfindRef(this) == -1 )
+ if ( d->rsn && TQSocketPrivate::sn_read_alreadyCalled.findRef(this) == -1 )
d->rsn->setEnabled( TRUE );
return maxlen;
}
@@ -1209,7 +1209,7 @@ int TQSocket::getch()
// readyRead() signal since this might cause a bad recursive behavior.
// We can test for this condition by looking at the
// sn_read_alreadyCalled flag.
- if ( d->rsn && TQSocketPrivate::sn_read_alreadyCalled.tqfindRef(this) == -1 )
+ if ( d->rsn && TQSocketPrivate::sn_read_alreadyCalled.findRef(this) == -1 )
d->rsn->setEnabled( TRUE );
return c;
}
@@ -1331,7 +1331,7 @@ void TQSocket::sn_read( bool force )
// Use TQSocketPrivate::sn_read_alreadyCalled to avoid recursive calls of
// sn_read() (and as a result avoid emitting the readyRead() signal in a
// slot for readyRead(), if you use bytesAvailable()).
- if ( !force && TQSocketPrivate::sn_read_alreadyCalled.tqfindRef(this) != -1 )
+ if ( !force && TQSocketPrivate::sn_read_alreadyCalled.findRef(this) != -1 )
return;
TQSocketPrivate::sn_read_alreadyCalled.append( this );
diff --git a/tqtinterface/qt4/src/network/tqsocketdevice_unix.cpp b/tqtinterface/qt4/src/network/tqsocketdevice_unix.cpp
index a0bf65d..46c3932 100644
--- a/tqtinterface/qt4/src/network/tqsocketdevice_unix.cpp
+++ b/tqtinterface/qt4/src/network/tqsocketdevice_unix.cpp
@@ -879,7 +879,7 @@ TQ_LONG TQSocketDevice::bytesAvailable() const
If \a timeout is non-null and no error occurred (i.e. it does not
return -1): this function sets \a *timeout to TRUE, if the reason
for returning was that the timeout was reached; otherwise it sets
- \a *timeout to FALSE. This is useful to tqfind out if the peer
+ \a *timeout to FALSE. This is useful to find out if the peer
closed the connection.
\warning This is a blocking call and should be avoided in event
diff --git a/tqtinterface/qt4/src/opengl/tqgl.cpp b/tqtinterface/qt4/src/opengl/tqgl.cpp
index 80e3658..7054e8e 100644
--- a/tqtinterface/qt4/src/opengl/tqgl.cpp
+++ b/tqtinterface/qt4/src/opengl/tqgl.cpp
@@ -79,7 +79,7 @@ static TQCleanupHandler<TQGLFormat> qgl_cleanup_format;
own TQGLWidget subclass you can use the identifiers in the TQGL
namespace without qualification.
- However, you may occasionally tqfind yourself in situations where you
+ However, you may occasionally find yourself in situations where you
need to refer to these identifiers from outside the TQGL namespace's
scope, e.g. in static functions. In such cases, simply write e.g. \c
TQGL::DoubleBuffer instead of just \c DoubleBuffer.
@@ -149,7 +149,7 @@ static TQCleanupHandler<TQGLFormat> qgl_cleanup_format;
MyGLWidget* myWidget = new MyGLWidget( f, ... );
\endcode
- After the widget has been created, you can tqfind out which of the
+ After the widget has been created, you can find out which of the
requested features the system was able to provide:
\code
TQGLFormat f;
@@ -670,7 +670,7 @@ TQGLFormat TQGLFormat::defaultOverlayFormat()
TQGLFormat::setDefaultOverlayFormat( f );
\endcode
- As usual, you can tqfind out after widget creation whether the
+ As usual, you can find out after widget creation whether the
underlying OpenGL system was able to provide the requested
specification:
@@ -1058,8 +1058,8 @@ bool TQGLContext::create( const TQGLContext* shareContext )
shareContext as closely as possible.
On Windows, it calls the virtual function choosePixelFormat(),
- which tqfinds a matching pixel format identifier. On X11, it calls
- the virtual function chooseVisual() which tqfinds an appropriate X
+ which finds a matching pixel format identifier. On X11, it calls
+ the virtual function chooseVisual() which finds an appropriate X
visual. On other platforms it may work differently.
*/
@@ -1277,10 +1277,10 @@ static TQGLWidgetPrivate * qgl_d( const TQGLWidget * w )
qgl_cleanup_d_ptr.set( &qgl_d_ptr );
qgl_d_ptr->setAutoDelete( TRUE );
}
- TQGLWidgetPrivate * ret = qgl_d_ptr->tqfind( (void *) w );
+ TQGLWidgetPrivate * ret = qgl_d_ptr->find( (void *) w );
if ( !ret ) {
ret = new TQGLWidgetPrivate;
- qgl_d_ptr->tqreplace( (void *) w, ret );
+ qgl_d_ptr->replace( (void *) w, ret );
}
return ret;
}
@@ -2019,9 +2019,9 @@ void TQGLWidget::qglColor( const TQColor& c ) const
else if ( ctx->tqdevice() == context()->tqdevice()
&& !cmap.isEmpty() ) { // TQGLColormap in use?
- int i = cmap.tqfind( c.rgb() );
+ int i = cmap.find( c.rgb() );
if ( i < 0 )
- i = cmap.tqfindNearest( c.rgb() );
+ i = cmap.findNearest( c.rgb() );
glIndexi( i );
} else
glIndexi( ctx->colorIndex( c ) );
@@ -2045,9 +2045,9 @@ void TQGLWidget::qglClearColor( const TQColor& c ) const
(GLfloat)c.blue() / 255.0, (GLfloat) 0.0 );
else if ( ctx->tqdevice() == context()->tqdevice()
&& !cmap.isEmpty() ) { // TQGLColormap in use?
- int i = cmap.tqfind( c.rgb() );
+ int i = cmap.find( c.rgb() );
if ( i < 0 )
- i = cmap.tqfindNearest( c.rgb() );
+ i = cmap.findNearest( c.rgb() );
glClearIndex( i );
} else
glClearIndex( ctx->colorIndex( c ) );
@@ -2166,7 +2166,7 @@ int TQGLWidget::displayListBase( const TQFont & fnt, int listBase )
TQString key = fnt.key() + TQString::number((int) regenerate);
#endif
- if ( !regenerate && (d->displayListCache.tqfind( key ) != d->displayListCache.end()) ) {
+ if ( !regenerate && (d->displayListCache.find( key ) != d->displayListCache.end()) ) {
base = d->displayListCache[ key ];
} else {
int maxBase = listBase - 256;
diff --git a/tqtinterface/qt4/src/opengl/tqgl_x11.cpp b/tqtinterface/qt4/src/opengl/tqgl_x11.cpp
index 70abe7d..2bedfd6 100644
--- a/tqtinterface/qt4/src/opengl/tqgl_x11.cpp
+++ b/tqtinterface/qt4/src/opengl/tqgl_x11.cpp
@@ -68,7 +68,7 @@
extern "C" {
Status XmuLookupStandardColormap( Display *dpy, int screen, VisualID visualid,
unsigned int depth, Atom property,
- Bool tqreplace, Bool retain );
+ Bool replace, Bool retain );
}
#endif
@@ -189,7 +189,7 @@ bool qt_resolve_gl_symbols(bool fatal)
/*
The choose_cmap function is internal and used by TQGLWidget::setContext()
- and GLX (not Windows). If the application can't tqfind any sharable
+ and GLX (not Windows). If the application can't find any sharable
colormaps, it must at least create as few colormaps as possible. The
dictionary solution below ensures only one colormap is created per visual.
Colormaps are also deleted when the application terminates.
@@ -244,7 +244,7 @@ static Colormap choose_cmap( Display *dpy, XVisualInfo *vi )
qAddPostRoutine( cleanup_cmaps );
}
- CMapEntry *x = cmap_dict->tqfind( (long) vi->visualid + ( vi->screen * 256 ) );
+ CMapEntry *x = cmap_dict->find( (long) vi->visualid + ( vi->screen * 256 ) );
if ( x ) // found colormap for visual
return x->cmap;
@@ -284,7 +284,7 @@ static Colormap choose_cmap( Display *dpy, XVisualInfo *vi )
if ( !x->cmap ) {
#ifdef TQT_DLOPEN_OPENGL
typedef Status (*_XmuLookupStandardColormap)( Display *dpy, int screen, VisualID visualid, unsigned int depth,
- Atom property, Bool tqreplace, Bool retain );
+ Atom property, Bool replace, Bool retain );
_XmuLookupStandardColormap qt_XmuLookupStandardColormap;
qt_XmuLookupStandardColormap = (_XmuLookupStandardColormap) TQLibrary::resolve("Xmu.so.6", "XmuLookupStandardColormap");
if (!qt_XmuLookupStandardColormap)
@@ -334,7 +334,7 @@ static TQMemArray<TransColor> trans_colors;
static int trans_colors_init = FALSE;
-static void tqfind_trans_colors()
+static void find_trans_colors()
{
struct OverlayProp {
long visual;
@@ -407,7 +407,7 @@ bool TQGLFormat::hasOpenGLOverlays()
{
qt_resolve_gl_symbols();
if ( !trans_colors_init )
- tqfind_trans_colors();
+ find_trans_colors();
return trans_colors.size() > 0;
}
@@ -508,7 +508,7 @@ bool TQGLContext::chooseContext( const TQGLContext* shareContext )
/*!
- <strong>X11 only</strong>: This virtual function tries to tqfind a
+ <strong>X11 only</strong>: This virtual function tries to find a
visual that matches the format, reducing the demands if the original
request cannot be met.
@@ -599,12 +599,12 @@ void *TQGLContext::tryVisual( const TQGLFormat& f, int bufDepth )
if ( f.plane() && !useTranspExtChecked && d->paintDevice ) {
TQCString estr( glXQueryExtensionsString( d->paintDevice->x11Display(),
d->paintDevice->x11Screen() ) );
- useTranspExt = estr.tqcontains( "GLX_EXT_visual_info" );
+ useTranspExt = estr.contains( "GLX_EXT_visual_info" );
//# (A bit simplistic; that could theoretically be a substring)
if ( useTranspExt ) {
TQCString cstr( glXGetClientString( d->paintDevice->x11Display(),
GLX_VENDOR ) );
- useTranspExt = !cstr.tqcontains( "Xi Graphics" ); // bug workaround
+ useTranspExt = !cstr.contains( "Xi Graphics" ); // bug workaround
if ( useTranspExt ) {
// bug workaround - some systems (eg. FireGL) refuses to return an overlay
// visual if the GLX_TRANSPARENT_TYPE_EXT attribute is specfied, even if
@@ -747,7 +747,7 @@ TQColor TQGLContext::overlayTransparentColor() const
//### make more efficient using the transpColor member
if ( isValid() ) {
if ( !trans_colors_init )
- tqfind_trans_colors();
+ find_trans_colors();
VisualID myVisualId = ((XVisualInfo*)vi)->visualid;
int myScreen = ((XVisualInfo*)vi)->screen;
@@ -785,7 +785,7 @@ uint TQGLContext::colorIndex( const TQColor& c ) const
return c.pixel( screen ); // We're using TQColor's cmap
XVisualInfo *info = (XVisualInfo *) vi;
- CMapEntry *x = cmap_dict->tqfind( (long) info->visualid + ( info->screen * 256 ) );
+ CMapEntry *x = cmap_dict->find( (long) info->visualid + ( info->screen * 256 ) );
if ( x && !x->alloc) { // It's a standard colormap
int rf = (int)(((float)c.red() * (x->scmap.red_max+1))/256.0);
int gf = (int)(((float)c.green() * (x->scmap.green_max+1))/256.0);
@@ -800,7 +800,7 @@ uint TQGLContext::colorIndex( const TQColor& c ) const
qglcmap_dict = new TQIntDict< TQMap<int, TQRgb> >;
}
TQMap<int, TQRgb> *cmap;
- if ((cmap = qglcmap_dict->tqfind((long) info->visualid)) == 0) {
+ if ((cmap = qglcmap_dict->find((long) info->visualid)) == 0) {
cmap = new TQMap<int, TQRgb>;
qglcmap_dict->insert((long) info->visualid, cmap);
}
@@ -1177,7 +1177,7 @@ void TQGLWidget::setContext( TQGLContext *context,
XVisualInfo *vi = (XVisualInfo*)glcx->vi;
XSetWindowAttributes a;
- a.colormap = choose_cmap( x11Display(), vi ); // tqfind best colormap
+ a.colormap = choose_cmap( x11Display(), vi ); // find best colormap
a.background_pixel = backgroundColor().pixel( vi->screen );
a.border_pixel = TQt::black.pixel( vi->screen );
Window p = RootWindow( x11Display(), vi->screen );
@@ -1198,7 +1198,7 @@ void TQGLWidget::setContext( TQGLContext *context,
XFree( (char *)cmwret );
int i;
for ( i=0; i<count; i++ ) {
- if ( cmw[i] == winId() ) { // tqreplace old window
+ if ( cmw[i] == winId() ) { // replace old window
cmw[i] = w;
break;
}
diff --git a/tqtinterface/qt4/src/opengl/tqglcolormap.cpp b/tqtinterface/qt4/src/opengl/tqglcolormap.cpp
index 6366e8b..3afdb7c 100644
--- a/tqtinterface/qt4/src/opengl/tqglcolormap.cpp
+++ b/tqtinterface/qt4/src/opengl/tqglcolormap.cpp
@@ -255,10 +255,10 @@ int TQGLColormap::size() const
Returns the index of the color \a color. If \a color is not in the
map, -1 is returned.
*/
-int TQGLColormap::tqfind( TQRgb color ) const
+int TQGLColormap::find( TQRgb color ) const
{
if ( d )
- return d->cells.tqfind( color );
+ return d->cells.find( color );
return -1;
}
@@ -266,9 +266,9 @@ int TQGLColormap::tqfind( TQRgb color ) const
Returns the index of the color that is the closest match to color
\a color.
*/
-int TQGLColormap::tqfindNearest( TQRgb color ) const
+int TQGLColormap::findNearest( TQRgb color ) const
{
- int idx = tqfind( color );
+ int idx = find( color );
if ( idx >= 0 )
return idx;
int mapSize = size();
diff --git a/tqtinterface/qt4/src/opengl/tqglcolormap.h b/tqtinterface/qt4/src/opengl/tqglcolormap.h
index d6fec59..2019496 100644
--- a/tqtinterface/qt4/src/opengl/tqglcolormap.h
+++ b/tqtinterface/qt4/src/opengl/tqglcolormap.h
@@ -72,8 +72,8 @@ public:
void setEntry( int idx, const TQColor & color );
TQRgb entryRgb( int idx ) const;
TQColor entryColor( int idx ) const;
- int tqfind( TQRgb color ) const;
- int tqfindNearest( TQRgb color ) const;
+ int find( TQRgb color ) const;
+ int findNearest( TQRgb color ) const;
private:
class Private : public TQShared
diff --git a/tqtinterface/qt4/src/qt.pro b/tqtinterface/qt4/src/qt.pro
index 070c405..10d0fe6 100644
--- a/tqtinterface/qt4/src/qt.pro
+++ b/tqtinterface/qt4/src/qt.pro
@@ -44,7 +44,7 @@ STYLES_CPP = styles
EMBEDDED_CPP = embedded
win32 {
- tqcontains(TQT_PRODUCT,qt-internal) {
+ contains(TQT_PRODUCT,qt-internal) {
SQL_H = $$SQL_CPP
KERNEL_H = $$KERNEL_CPP
WIDGETS_H = $$WIDGETS_CPP
diff --git a/tqtinterface/qt4/src/qt_professional.pri b/tqtinterface/qt4/src/qt_professional.pri
index f9179d0..181ea08 100644
--- a/tqtinterface/qt4/src/qt_professional.pri
+++ b/tqtinterface/qt4/src/qt_professional.pri
@@ -1,4 +1,4 @@
-!xml:tqcontains( DEFINES, TQT_INTERNAL_XML ) {
+!xml:contains( DEFINES, TQT_INTERNAL_XML ) {
CONFIG += xml
XML_CPP = $$TQT_SOURCE_TREE/src/xml
win32 {
@@ -15,7 +15,7 @@
DEFINES *= TQT_MODULE_XML
}
-!network:tqcontains( DEFINES, TQT_INTERNAL_NETWORK) {
+!network:contains( DEFINES, TQT_INTERNAL_NETWORK) {
CONFIG += network
NETWORK_CPP = $$TQT_SOURCE_TREE/src/network
win32 {
@@ -31,7 +31,7 @@
DEFINES *= TQT_MODULE_NETWORK
}
-!workspace:tqcontains( DEFINES, TQT_INTERNAL_WORKSPACE ) {
+!workspace:contains( DEFINES, TQT_INTERNAL_WORKSPACE ) {
CONFIG += workspace
WORKSPACE_CPP = $$TQT_SOURCE_TREE/src/workspace
win32 {
@@ -46,7 +46,7 @@
DEFINES *= TQT_MODULE_WORKSPACE
}
-!iconview:tqcontains( DEFINES, TQT_INTERNAL_ICONVIEW ) {
+!iconview:contains( DEFINES, TQT_INTERNAL_ICONVIEW ) {
CONFIG += iconview
ICONVIEW_CPP = $$TQT_SOURCE_TREE/src/iconview
win32 {
@@ -61,7 +61,7 @@
DEFINES *= TQT_MODULE_ICONVIEW
}
-!canvas:tqcontains( DEFINES, TQT_INTERNAL_CANVAS ) {
+!canvas:contains( DEFINES, TQT_INTERNAL_CANVAS ) {
CONFIG += canvas
CANVAS_CPP = $$TQT_SOURCE_TREE/src/canvas
win32 {
@@ -76,7 +76,7 @@
DEFINES *= TQT_MODULE_CANVAS
}
-!table:tqcontains( DEFINES, TQT_INTERNAL_TABLE ) {
+!table:contains( DEFINES, TQT_INTERNAL_TABLE ) {
CONFIG += table
TABLE_CPP = $$TQT_SOURCE_TREE/src/table
win32 {
@@ -91,6 +91,6 @@
DEFINES *= TQT_MODULE_TABLE
}
-tqcontains(TQT_PRODUCT,qt-professional) {
+contains(TQT_PRODUCT,qt-professional) {
DEFINES *= TQT_LICENSE_PROFESSIONAL
}
diff --git a/tqtinterface/qt4/src/sql/drivers/mysql/tqsql_mysql.cpp b/tqtinterface/qt4/src/sql/drivers/mysql/tqsql_mysql.cpp
index f97cd2e..e13f12b 100644
--- a/tqtinterface/qt4/src/sql/drivers/mysql/tqsql_mysql.cpp
+++ b/tqtinterface/qt4/src/sql/drivers/mysql/tqsql_mysql.cpp
@@ -476,7 +476,7 @@ bool TQMYSTQLDriver::open( const TQString& db,
for ( it = raw.begin(); it != raw.end(); ++it ) {
TQString tmp( *it );
int idx;
- if ( (idx = tmp.tqfind( '=' )) != -1 ) {
+ if ( (idx = tmp.find( '=' )) != -1 ) {
TQString val( tmp.mid( idx + 1 ) );
val.simplifyWhiteSpace();
if ( val == "TRUE" || val == "1" )
@@ -764,7 +764,7 @@ TQString TQMYSTQLDriver::formatValue( const TQSqlField* field, bool trimStrings
case TQVariant::CString: {
// Escape '\' characters
r = TQSqlDriver::formatValue( field );
- r.tqreplace( "\\", "\\\\" );
+ r.replace( "\\", "\\\\" );
break;
}
default:
diff --git a/tqtinterface/qt4/src/sql/drivers/odbc/tqsql_odbc.cpp b/tqtinterface/qt4/src/sql/drivers/odbc/tqsql_odbc.cpp
index fda38a8..3401435 100644
--- a/tqtinterface/qt4/src/sql/drivers/odbc/tqsql_odbc.cpp
+++ b/tqtinterface/qt4/src/sql/drivers/odbc/tqsql_odbc.cpp
@@ -291,7 +291,7 @@ static TQString qGetStringData( STQLHANDLE hStmt, int column, int colSize, bool&
}
// if STQL_SUCCESS_WITH_INFO is returned, indicating that
// more data can be fetched, the length indicator does NOT
- // contain the number of bytes returned - it tqcontains the
+ // contain the number of bytes returned - it contains the
// total number of bytes that CAN be fetched
// colSize-1: remove 0 termination when there is more data to fetch
int rSize = (r == STQL_SUCCESS_WITH_INFO) ? (tqunicode ? colSize-2 : colSize-1) : lengthIndicator;
@@ -521,7 +521,7 @@ bool TQODBCPrivate::setConnectionOptions( const TQString& connOpts )
for ( TQStringList::ConstIterator it = raw.begin(); it != raw.end(); ++it ) {
TQString tmp( *it );
int idx;
- if ( (idx = tmp.tqfind( '=' )) != -1 )
+ if ( (idx = tmp.find( '=' )) != -1 )
connMap[ tmp.left( idx ) ] = tmp.mid( idx + 1 ).simplifyWhiteSpace();
else
qWarning( "TQODBCDriver::open: Illegal connect option value '%s'", tmp.latin1() );
@@ -863,7 +863,7 @@ TQVariant TQODBCResult::data( int field )
qWarning( "TQODBCResult::data: column %d out of range", field );
return TQVariant();
}
- if ( fieldCache.tqcontains( field ) )
+ if ( fieldCache.contains( field ) )
return fieldCache[ field ];
STQLRETURN r(0);
TQSTQLLEN lengthIndicator = 0;
@@ -963,8 +963,8 @@ TQVariant TQODBCResult::data( int field )
bool TQODBCResult::isNull( int field )
{
- if ( !fieldCache.tqcontains( field ) ) {
- // since there is no good way to tqfind out whether the value is NULL
+ if ( !fieldCache.contains( field ) ) {
+ // since there is no good way to find out whether the value is NULL
// without fetching the field we'll fetch it here.
// (data() also sets the NULL flag)
data( field );
@@ -1443,9 +1443,9 @@ bool TQODBCDriver::open( const TQString & db,
// Create the connection string
TQString connTQStr;
// support the "DRIVER={SQL SERVER};SERVER=blah" syntax
- if ( db.tqcontains(".dsn") )
+ if ( db.contains(".dsn") )
connTQStr = "FILEDSN=" + db;
- else if ( db.tqcontains( "DRIVER" ) || db.tqcontains( "SERVER" ) )
+ else if ( db.contains( "DRIVER" ) || db.contains( "SERVER" ) )
connTQStr = db;
else
connTQStr = "DSN=" + db;
diff --git a/tqtinterface/qt4/src/sql/drivers/psql/tqsql_psql.cpp b/tqtinterface/qt4/src/sql/drivers/psql/tqsql_psql.cpp
index db233ce..b5885bf 100644
--- a/tqtinterface/qt4/src/sql/drivers/psql/tqsql_psql.cpp
+++ b/tqtinterface/qt4/src/sql/drivers/psql/tqsql_psql.cpp
@@ -260,7 +260,7 @@ bool TQPSTQLResult::fetchLast()
static TQPoint pointFromString( const TQString& s)
{
// format '(x,y)'
- int pivot = s.tqfind( ',' );
+ int pivot = s.find( ',' );
if ( pivot != -1 ) {
int x = s.mid( 1, pivot-1 ).toInt();
int y = s.mid( pivot+1, s.length()-pivot-2 ).toInt();
@@ -336,7 +336,7 @@ TQVariant TQPSTQLResult::data( int i )
return TQVariant( pointFromString( val ) );
case TQVariant::Rect: // format '(x,y),(x',y')'
{
- int pivot = val.tqfind( "),(" );
+ int pivot = val.find( "),(" );
if ( pivot != -1 )
return TQVariant( TQRect( pointFromString( val.mid(pivot+2,val.length()) ), pointFromString( val.mid(0,pivot+1) ) ) );
return TQVariant( TQRect() );
@@ -344,14 +344,14 @@ TQVariant TQPSTQLResult::data( int i )
case TQVariant::PointArray: // format '((x,y),(x1,y1),...,(xn,yn))'
{
TQRegExp pointPattern("\\([0-9-]*,[0-9-]*\\)");
- int points = val.tqcontains( pointPattern );
+ int points = val.contains( pointPattern );
TQPointArray parray( points );
int idx = 1;
for ( int i = 0; i < points; i++ ){
- int start = val.tqfind( pointPattern, idx );
+ int start = val.find( pointPattern, idx );
int end = -1;
if ( start != -1 ) {
- end = val.tqfind( ')', start+1 );
+ end = val.find( ')', start+1 );
if ( end != -1 ) {
parray.setPoint( i, pointFromString( val.mid(idx, end-idx+1) ) );
}
@@ -1080,7 +1080,7 @@ TQString TQPSTQLDriver::formatValue( const TQSqlField* field,
default:
// Escape '\' characters
r = TQSqlDriver::formatValue( field );
- r.tqreplace( "\\", "\\\\" );
+ r.replace( "\\", "\\\\" );
break;
}
break;
diff --git a/tqtinterface/qt4/src/sql/drivers/sqlite/tqsql_sqlite.cpp b/tqtinterface/qt4/src/sql/drivers/sqlite/tqsql_sqlite.cpp
index c94f595..864c4c9 100644
--- a/tqtinterface/qt4/src/sql/drivers/sqlite/tqsql_sqlite.cpp
+++ b/tqtinterface/qt4/src/sql/drivers/sqlite/tqsql_sqlite.cpp
@@ -250,7 +250,7 @@ bool TQSTQLiteResult::reset (const TQString& query)
setActive(FALSE);
return FALSE;
}
- // we have to fetch one row to tqfind out about
+ // we have to fetch one row to find out about
// the structure of the result set
d->skippedtqStatus = d->fetchNext(0);
setSelect(!d->rInf.isEmpty());
@@ -450,7 +450,7 @@ TQSqlIndex TQSTQLiteDriver::primaryIndex(const TQString &tblname) const
TQSqlQuery q = createQuery();
q.setForwardOnly(TRUE);
- // finrst tqfind a UNITQUE INDEX
+ // finrst find a UNITQUE INDEX
q.exec("PRAGMA index_list('" + tblname + "');");
TQString indexname;
while(q.next()) {
@@ -468,8 +468,8 @@ TQSqlIndex TQSTQLiteDriver::primaryIndex(const TQString &tblname) const
while(q.next()) {
TQString name = q.value(2).toString();
TQSqlVariant::Type type = TQSqlVariant::Invalid;
- if (rec.tqcontains(name))
- type = rec.tqfind(name).type();
+ if (rec.contains(name))
+ type = rec.find(name).type();
index.append(TQSqlField(name, type));
}
return index;
diff --git a/tqtinterface/qt4/src/sql/qt_sql.pri b/tqtinterface/qt4/src/sql/qt_sql.pri
index 29845f8..732c674 100644
--- a/tqtinterface/qt4/src/sql/qt_sql.pri
+++ b/tqtinterface/qt4/src/sql/qt_sql.pri
@@ -53,21 +53,21 @@ sql {
$$SQL_CPP/tqsqlselectcursor.cpp \
$$SQL_CPP/drivers/cache/tqsqlcachedresult.cpp
- tqcontains(sql-drivers, all ) {
+ contains(sql-drivers, all ) {
sql-driver += psql mysql odbc oci tds db2 sqlite ibase
}
- tqcontains(sql-drivers, psql) {
+ contains(sql-drivers, psql) {
HEADERS += $$SQL_CPP/drivers/psql/tqsql_psql.h
SOURCES += $$SQL_CPP/drivers/psql/tqsql_psql.cpp
DEFINES += TQT_SQL_POSTGRES
unix {
- !tqcontains( LIBS, .*pq.* ) {
+ !contains( LIBS, .*pq.* ) {
LIBS *= -lpq
}
}
win32 {
- !tqcontains( LIBS, .*libpq.* ) {
+ !contains( LIBS, .*libpq.* ) {
LIBS *= libpqdll.lib
}
# win32-msvc: {
@@ -80,17 +80,17 @@ sql {
}
}
- tqcontains(sql-drivers, mysql) {
+ contains(sql-drivers, mysql) {
HEADERS += $$SQL_CPP/drivers/mysql/tqsql_mysql.h
SOURCES += $$SQL_CPP/drivers/mysql/tqsql_mysql.cpp
DEFINES += TQT_SQL_MYSQL
unix {
- !tqcontains( LIBS, .*mysql.* ) {
+ !contains( LIBS, .*mysql.* ) {
LIBS *= -lmysqlclient
}
}
win32 {
- !tqcontains( LIBS, .*mysql.* ) {
+ !contains( LIBS, .*mysql.* ) {
LIBS *= libmysql.lib
}
# win32-msvc: {
@@ -103,19 +103,19 @@ sql {
}
}
- tqcontains(sql-drivers, odbc) {
+ contains(sql-drivers, odbc) {
HEADERS += $$SQL_CPP/drivers/odbc/tqsql_odbc.h
SOURCES += $$SQL_CPP/drivers/odbc/tqsql_odbc.cpp
DEFINES += TQT_SQL_ODBC
mac {
- !tqcontains( LIBS, .*odbc.* ) {
+ !contains( LIBS, .*odbc.* ) {
LIBS *= -liodbc
}
}
unix {
- !tqcontains( LIBS, .*odbc.* ) {
+ !contains( LIBS, .*odbc.* ) {
LIBS *= -lodbc
}
}
@@ -127,12 +127,12 @@ sql {
}
- tqcontains(sql-drivers, oci) {
+ contains(sql-drivers, oci) {
HEADERS += $$SQL_CPP/drivers/oci/tqsql_oci.h
SOURCES += $$SQL_CPP/drivers/oci/tqsql_oci.cpp
DEFINES += TQT_SQL_OCI
unix {
- !tqcontains( LIBS, .*clnts.* ) {
+ !contains( LIBS, .*clnts.* ) {
LIBS += -lclntsh -lwtc8
}
}
@@ -148,7 +148,7 @@ sql {
}
}
- tqcontains(sql-drivers, tds) {
+ contains(sql-drivers, tds) {
HEADERS += $$SQL_CPP/drivers/tds/tqsql_tds.h \
$$SQL_CPP/drivers/shared/tqsql_result.h
SOURCES += $$SQL_CPP/drivers/tds/tqsql_tds.cpp \
@@ -170,7 +170,7 @@ sql {
}
}
- tqcontains(sql-drivers, db2) {
+ contains(sql-drivers, db2) {
HEADERS += $$SQL_CPP/drivers/db2/tqsql_db2.h
SOURCES += $$SQL_CPP/drivers/db2/tqsql_db2.cpp
DEFINES += TQT_SQL_DB2
@@ -183,7 +183,7 @@ sql {
}
}
- tqcontains(sql-drivers, ibase) {
+ contains(sql-drivers, ibase) {
HEADERS += $$SQL_CPP/drivers/ibase/tqsql_ibase.h
SOURCES += $$SQL_CPP/drivers/ibase/tqsql_ibase.cpp
DEFINES += TQT_SQL_IBASE
@@ -196,8 +196,8 @@ sql {
}
}
- tqcontains(sql-drivers, sqlite) {
- !tqcontains( LIBS, .*sqlite.* ) {
+ contains(sql-drivers, sqlite) {
+ !contains( LIBS, .*sqlite.* ) {
INCLUDEPATH += $$SQL_CPP/../3rdparty/sqlite/
diff --git a/tqtinterface/qt4/src/sql/tqdatabrowser.cpp b/tqtinterface/qt4/src/sql/tqdatabrowser.cpp
index bf27e14..910fb11 100644
--- a/tqtinterface/qt4/src/sql/tqdatabrowser.cpp
+++ b/tqtinterface/qt4/src/sql/tqdatabrowser.cpp
@@ -964,7 +964,7 @@ bool TQDataBrowser::insertCurrent()
updateBoundary();
} else {
refresh();
- d->cur.tqfindBuffer( cur->primaryIndex() );
+ d->cur.findBuffer( cur->primaryIndex() );
updateBoundary();
cursorChanged( TQSqlCursor::Insert );
return TRUE;
@@ -1002,7 +1002,7 @@ bool TQDataBrowser::updateCurrent()
updateBoundary();
} else {
refresh();
- d->cur.tqfindBuffer( cur->primaryIndex() );
+ d->cur.findBuffer( cur->primaryIndex() );
updateBoundary();
cur->editBuffer( TRUE );
cursorChanged( TQSqlCursor::Update );
diff --git a/tqtinterface/qt4/src/sql/tqdatatable.cpp b/tqtinterface/qt4/src/sql/tqdatatable.cpp
index 496da9d..647c3a2 100644
--- a/tqtinterface/qt4/src/sql/tqdatatable.cpp
+++ b/tqtinterface/qt4/src/sql/tqdatatable.cpp
@@ -197,7 +197,7 @@ void qt_debug_buffer( const TQString& msg, TQSqlRecord* cursor )
The contents of a cell is available as a TQString with text() or as
a TQVariant with value(). The current record is returned by
- currentRecord(). Use the tqfind() function to search for a string in
+ currentRecord(). Use the find() function to search for a string in
the table.
Editing actions can be applied programatically. For example, the
@@ -377,7 +377,7 @@ void TQDataTable::setColumnWidth( int col, int w )
/*!
Resizes column \a col so that the column width is wide enough to
- display the widest item the column tqcontains (including the column
+ display the widest item the column contains (including the column
label). If the table's TQSqlCursor is not currently active, the
cursor will be refreshed before the column width is calculated. Be
aware that this function may be slow on tables that contain large
@@ -475,7 +475,7 @@ void TQDataTable::setSort( const TQStringList& sort )
\overload
Sets the sort to be applied to the displayed data to \a sort. If
- there is no current cursor, nothing happens. A TQSqlIndex tqcontains
+ there is no current cursor, nothing happens. A TQSqlIndex contains
field names and their ordering (ASC or DESC); these are used to
compose the ORDER BY clause.
@@ -821,7 +821,7 @@ void TQDataTable::contentsMousePressEvent( TQMouseEvent* e )
}
/*! \reimp */
-TQWidget* TQDataTable::beginEdit ( int row, int col, bool tqreplace )
+TQWidget* TQDataTable::beginEdit ( int row, int col, bool replace )
{
d->editRow = -1;
d->editCol = -1;
@@ -837,12 +837,12 @@ TQWidget* TQDataTable::beginEdit ( int row, int col, bool tqreplace )
// see comment in beginInsert()
bool fakeReadOnly = isColumnReadOnly( col );
setColumnReadOnly( col, FALSE );
- TQWidget* w = TQTable::beginEdit( row, col, tqreplace );
+ TQWidget* w = TQTable::beginEdit( row, col, replace );
setColumnReadOnly( col, fakeReadOnly );
return w;
}
if ( d->dat.mode() == TQSql::None && sqlCursor()->canUpdate() && sqlCursor()->primaryIndex().count() > 0 )
- return beginUpdate( row, col, tqreplace );
+ return beginUpdate( row, col, replace );
return 0;
}
@@ -1009,11 +1009,11 @@ bool TQDataTable::beginInsert()
\a row and \a col refer to the row and column in the TQDataTable.
- (\a tqreplace is provided for reimplementors and reflects the API of
+ (\a replace is provided for reimplementors and reflects the API of
TQTable::beginEdit().)
*/
-TQWidget* TQDataTable::beginUpdate ( int row, int col, bool tqreplace )
+TQWidget* TQDataTable::beginUpdate ( int row, int col, bool replace )
{
if ( !sqlCursor() || isReadOnly() || isColumnReadOnly( col ) )
return 0;
@@ -1023,7 +1023,7 @@ TQWidget* TQDataTable::beginUpdate ( int row, int col, bool tqreplace )
d->editBuffer = sqlCursor()->primeUpdate();
sqlCursor()->seek( currentRow() );
emit primeUpdate( d->editBuffer );
- return TQTable::beginEdit( row, col, tqreplace );
+ return TQTable::beginEdit( row, col, replace );
}
return 0;
}
@@ -1075,7 +1075,7 @@ bool TQDataTable::insertCurrent()
endInsert();
refresh();
TQSqlIndex idx = sqlCursor()->primaryIndex();
- tqfindBuffer( idx, d->lastAt );
+ findBuffer( idx, d->lastAt );
repaintContents( contentsX(), contentsY(), visibleWidth(), visibleHeight(), FALSE );
emit cursorChanged( TQSql::Insert );
}
@@ -1276,12 +1276,12 @@ TQSql::Confirm TQDataTable::confirmCancel( TQSql::Op m )
caseSensitive is FALSE the case of \a str will be ignored.
The search will wrap, i.e. if the first (or if backwards is TRUE,
- last) cell is reached without tqfinding \a str the search will
+ last) cell is reached without finding \a str the search will
continue until it reaches the starting cell. If \a str is not
found the search will fail and the current cell will remain
unchanged.
*/
-void TQDataTable::tqfind( const TQString & str, bool caseSensitive, bool backwards )
+void TQDataTable::find( const TQString & str, bool caseSensitive, bool backwards )
{
if ( !sqlCursor() )
return;
@@ -1312,7 +1312,7 @@ void TQDataTable::tqfind( const TQString & str, bool caseSensitive, bool backwar
if( !caseSensitive ){
text = text.lower();
}
- if( text.tqcontains( tmp ) ){
+ if( text.contains( tmp ) ){
setCurrentCell( row, i );
col = i;
found = TRUE;
@@ -2147,12 +2147,12 @@ void TQDataTable::refresh()
searching.
*/
-bool TQDataTable::tqfindBuffer( const TQSqlIndex& idx, int atHint )
+bool TQDataTable::findBuffer( const TQSqlIndex& idx, int atHint )
{
TQSqlCursor* cur = sqlCursor();
if ( !cur )
return FALSE;
- bool found = d->cur.tqfindBuffer( idx, atHint );
+ bool found = d->cur.findBuffer( idx, atHint );
if ( found )
setCurrentCell( cur->at(), currentColumn() );
return found;
diff --git a/tqtinterface/qt4/src/sql/tqdatatable.h b/tqtinterface/qt4/src/sql/tqdatatable.h
index 657dc9c..2f1c5dd 100644
--- a/tqtinterface/qt4/src/sql/tqdatatable.h
+++ b/tqtinterface/qt4/src/sql/tqdatatable.h
@@ -152,7 +152,7 @@ public:
int numRows() const;
void setNumCols( int c );
void setNumRows ( int r );
- bool tqfindBuffer( const TQSqlIndex& idx, int atHint = 0 );
+ bool findBuffer( const TQSqlIndex& idx, int atHint = 0 );
void hideColumn( int col );
void showColumn( int col );
@@ -167,7 +167,7 @@ Q_SIGNALS:
void cursorChanged( TQSql::Op mode );
public Q_SLOTS:
- virtual void tqfind( const TQString & str, bool caseSensitive,
+ virtual void find( const TQString & str, bool caseSensitive,
bool backwards );
virtual void sortAscending( int col );
virtual void sortDescending( int col );
@@ -188,14 +188,14 @@ protected:
virtual void handleError( const TQSqlError& e );
virtual bool beginInsert();
- virtual TQWidget* beginUpdate ( int row, int col, bool tqreplace );
+ virtual TQWidget* beginUpdate ( int row, int col, bool replace );
bool eventFilter( TQObject *o, TQEvent *e );
void keyPressEvent( TQKeyEvent* );
void resizeEvent ( TQResizeEvent * );
void contentsMousePressEvent( TQMouseEvent* e );
void contentsContextMenuEvent( TQContextMenuEvent* e );
- void endEdit( int row, int col, bool accept, bool tqreplace );
+ void endEdit( int row, int col, bool accept, bool replace );
TQWidget * createEditor( int row, int col, bool initFromCell ) const;
void activateNextCell();
int indexOf( uint i ) const; // ### make this public in 4.0
@@ -229,7 +229,7 @@ private Q_SLOTS:
private:
TQString fieldToString( const TQSqlField * field );
void init();
- TQWidget* beginEdit ( int row, int col, bool tqreplace );
+ TQWidget* beginEdit ( int row, int col, bool replace );
void updateRow( int row );
void endInsert();
void endUpdate();
diff --git a/tqtinterface/qt4/src/sql/tqsqlcursor.cpp b/tqtinterface/qt4/src/sql/tqsqlcursor.cpp
index 0d9fc53..621d693 100644
--- a/tqtinterface/qt4/src/sql/tqsqlcursor.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlcursor.cpp
@@ -134,11 +134,11 @@ TQString qWhereClause( TQSqlRecord* rec, const TQString& prefix, const TQString&
A TQSqlCursor is a database record (see \l TQSqlRecord) that
corresponds to a table or view within an SQL database (see \l
TQSqlDatabase). There are two buffers in a cursor, one used for
- browsing and one used for editing records. Each buffer tqcontains a
+ browsing and one used for editing records. Each buffer contains a
list of fields which correspond to the fields in the table or
view.
- When positioned on a valid record, the browse buffer tqcontains the
+ When positioned on a valid record, the browse buffer contains the
values of the current record's fields from the database. The edit
buffer is separate, and is used for editing existing records and
inserting new records.
@@ -168,7 +168,7 @@ TQString qWhereClause( TQSqlRecord* rec, const TQString& prefix, const TQString&
When next() returns FALSE, there are no more records to process,
and the loop terminates.
- For editing records (rows of data), a cursor tqcontains a separate
+ For editing records (rows of data), a cursor contains a separate
edit buffer which is independent of the fields used when browsing.
The functions insert(), update() and del() operate on the edit
buffer. This allows the cursor to be repositioned to other
@@ -216,7 +216,7 @@ TQString qWhereClause( TQSqlRecord* rec, const TQString& prefix, const TQString&
from becoming invalid. The edits will still not be visible when
navigating the cursor until select() is called.
- TQSqlCursor tqcontains virtual methods which allow editing behavior
+ TQSqlCursor contains virtual methods which allow editing behavior
to be customized by subclasses. This allows custom cursors to be
created that encapsulate the editing behavior of a database table
for an entire application. For example, a cursor can be customized
@@ -548,7 +548,7 @@ TQSqlIndex TQSqlCursor::primaryIndex( bool setFromCursor ) const
if ( setFromCursor ) {
for ( uint i = 0; i < d->priIndx.count(); ++i ) {
const TQString fn = d->priIndx.fieldName( i );
- if ( tqcontains( fn ) )
+ if ( contains( fn ) )
d->priIndx.setValue( i, value( fn ) );
}
}
@@ -737,9 +737,9 @@ bool TQSqlCursor::select( const TQSqlIndex& sort )
In this example the TQSqlIndex, pk, is used for two different
purposes. When used as the filter (first) argument, the field
- names it tqcontains are used to construct the WHERE clause, each set
+ names it contains are used to construct the WHERE clause, each set
to the current cursor value, \c{WHERE id=10}, in this case. When
- used as the sort (second) argument the field names it tqcontains are
+ used as the sort (second) argument the field names it contains are
used for the ORDER BY clause, \c{ORDER BY id} in this example.
*/
diff --git a/tqtinterface/qt4/src/sql/tqsqldatabase.cpp b/tqtinterface/qt4/src/sql/tqsqldatabase.cpp
index 45cca58..70a15ae 100644
--- a/tqtinterface/qt4/src/sql/tqsqldatabase.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqldatabase.cpp
@@ -155,7 +155,7 @@ public:
static TQSqlDatabase* addDatabase( TQSqlDatabase* db, const TQString & name );
static void removeDatabase( const TQString& name );
static void removeDatabase( TQSqlDatabase* db );
- static bool tqcontains( const TQString& name );
+ static bool contains( const TQString& name );
static TQDriverDict* driverDict();
protected:
@@ -229,11 +229,11 @@ TQSqlDatabaseManager* TQSqlDatabaseManager::instance()
TQSqlDatabase* TQSqlDatabaseManager::database( const TQString& name, bool open )
{
- if ( !tqcontains( name ) )
+ if ( !contains( name ) )
return 0;
TQSqlDatabaseManager* sqlConnection = instance();
- TQSqlDatabase* db = sqlConnection->dbDict.tqfind( name );
+ TQSqlDatabase* db = sqlConnection->dbDict.find( name );
if ( db && !db->isOpen() && open ) {
db->open();
#ifdef TQT_CHECK_RANGE
@@ -246,14 +246,14 @@ TQSqlDatabase* TQSqlDatabaseManager::database( const TQString& name, bool open )
}
/*!
- Returns TRUE if the list of database connections tqcontains \a name;
+ Returns TRUE if the list of database connections contains \a name;
otherwise returns FALSE.
*/
-bool TQSqlDatabaseManager::tqcontains( const TQString& name )
+bool TQSqlDatabaseManager::contains( const TQString& name )
{
TQSqlDatabaseManager* sqlConnection = instance();
- TQSqlDatabase* db = sqlConnection->dbDict.tqfind( name );
+ TQSqlDatabase* db = sqlConnection->dbDict.find( name );
if ( db )
return TRUE;
return FALSE;
@@ -280,7 +280,7 @@ TQSqlDatabase* TQSqlDatabaseManager::addDatabase( TQSqlDatabase* db, const TQStr
TQSqlDatabaseManager* sqlConnection = instance();
if( sqlConnection == 0 )
return 0;
- if ( tqcontains( name ) )
+ if ( contains( name ) )
sqlConnection->removeDatabase( name );
sqlConnection->dbDict.insert( name, db );
return db;
@@ -365,7 +365,7 @@ public:
\module sql
Note that transaction handling is not supported by every SQL
- database. You can tqfind out whether transactions are supported
+ database. You can find out whether transactions are supported
using TQSqlDriver::hasFeature().
The TQSqlDatabase class provides an abstract interface for
@@ -393,7 +393,7 @@ public:
database connection.
\warning If you add a database with the same name as an
- existing database, the new database will tqreplace the old one.
+ existing database, the new database will replace the old one.
This will happen automatically if you call this function more
than once without specifying \a connectionName.
@@ -486,41 +486,41 @@ TQStringList TQSqlDatabase::drivers()
TQDictIterator<TQSqlDriverCreatorBase> itd( *TQSqlDatabaseManager::driverDict() );
while ( itd.current() ) {
- if ( !l.tqcontains( itd.currentKey() ) )
+ if ( !l.contains( itd.currentKey() ) )
l << itd.currentKey();
++itd;
}
#ifdef TQT_STQL_POSTGRES
- if ( !l.tqcontains( "TQPSQL7" ) )
+ if ( !l.contains( "TQPSQL7" ) )
l << "TQPSQL7";
#endif
#ifdef TQT_STQL_MYSQL
- if ( !l.tqcontains( "TQMYSQL3" ) )
+ if ( !l.contains( "TQMYSQL3" ) )
l << "TQMYSQL3";
#endif
#ifdef TQT_STQL_ODBC
- if ( !l.tqcontains( "TQODBC3" ) )
+ if ( !l.contains( "TQODBC3" ) )
l << "TQODBC3";
#endif
#ifdef TQT_STQL_OCI
- if ( !l.tqcontains( "TQOCI8" ) )
+ if ( !l.contains( "TQOCI8" ) )
l << "TQOCI8";
#endif
#ifdef TQT_STQL_TDS
- if ( !l.tqcontains( "TQTDS7" ) )
+ if ( !l.contains( "TQTDS7" ) )
l << "TQTDS7";
#endif
#ifdef TQT_STQL_DB2
- if ( !l.tqcontains( "TQDB2" ) )
+ if ( !l.contains( "TQDB2" ) )
l << "TQDB2";
#endif
#ifdef TQT_STQL_STQLITE
- if ( !l.tqcontains( "TQSQLITE" ) )
+ if ( !l.contains( "TQSQLITE" ) )
l << "TQSQLITE";
#endif
#ifdef TQT_STQL_IBASE
- if ( !l.tqcontains( "TQIBASE" ) )
+ if ( !l.contains( "TQIBASE" ) )
l << "TQIBASE";
#endif
@@ -551,13 +551,13 @@ void TQSqlDatabase::registerSqlDriver( const TQString& name, const TQSqlDriverCr
}
/*!
- Returns TRUE if the list of database connections tqcontains \a
+ Returns TRUE if the list of database connections contains \a
connectionName; otherwise returns FALSE.
*/
-bool TQSqlDatabase::tqcontains( const TQString& connectionName )
+bool TQSqlDatabase::contains( const TQString& connectionName )
{
- return TQSqlDatabaseManager::tqcontains( connectionName );
+ return TQSqlDatabaseManager::contains( connectionName );
}
diff --git a/tqtinterface/qt4/src/sql/tqsqldatabase.h b/tqtinterface/qt4/src/sql/tqsqldatabase.h
index 730fb44..98e7be2 100644
--- a/tqtinterface/qt4/src/sql/tqsqldatabase.h
+++ b/tqtinterface/qt4/src/sql/tqsqldatabase.h
@@ -134,7 +134,7 @@ public:
static TQSqlDatabase* database( const TQString& connectionName = defaultConnection, bool open = TRUE );
static void removeDatabase( const TQString& connectionName );
static void removeDatabase( TQSqlDatabase* db );
- static bool tqcontains( const TQString& connectionName = defaultConnection );
+ static bool contains( const TQString& connectionName = defaultConnection );
static TQStringList drivers();
static void registerSqlDriver( const TQString& name, const TQSqlDriverCreatorBase* creator ); // ### 4.0: creator should not be const
static bool isDriverAvailable( const TQString& name );
diff --git a/tqtinterface/qt4/src/sql/tqsqldriver.cpp b/tqtinterface/qt4/src/sql/tqsqldriver.cpp
index 3f8cdca..3f6f137 100644
--- a/tqtinterface/qt4/src/sql/tqsqldriver.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqldriver.cpp
@@ -133,7 +133,7 @@ TQSqlDriver::~TQSqlDriver()
bool TQSqlDriver::isOpen() const
{
if ( !qSqlDriverExtDict()->isEmpty() ) {
- TQSqlDriverExtension *ext = qSqlDriverExtDict()->tqfind( (TQSqlDriver *) this );
+ TQSqlDriverExtension *ext = qSqlDriverExtDict()->find( (TQSqlDriver *) this );
if ( ext )
return ext->isOpen();
}
@@ -154,7 +154,7 @@ bool TQSqlDriver::isOpenError() const
/*!
\enum TQSqlDriver::DriverFeature
- This enum tqcontains a list of features a driver may support. Use
+ This enum contains a list of features a driver may support. Use
hasFeature() to query whether a feature is supported or not.
\value Transactions whether the driver supports SQL transactions
@@ -274,7 +274,7 @@ void TQSqlDriver::setLastError( const TQSqlError& e )
}
/*!
- Returns a TQSqlError object which tqcontains information about the
+ Returns a TQSqlError object which contains information about the
last error that occurred on the database.
*/
@@ -289,7 +289,7 @@ TQSqlError TQSqlDriver::lastError() const
The \a tableType argument describes what types of tables
should be returned. Due to binary compatibility, the string
- tqcontains the value of the enum TQSql::TableTypes as text.
+ contains the value of the enum TQSql::TableTypes as text.
An empty string should be treated as TQSql::Tables for
downward compatibility.
@@ -386,7 +386,7 @@ TQString TQSqlDriver::nullText() const
\i If \a field is character data, the value is returned enclosed
in single quotation marks, which is appropriate for many SQL
databases. Any embedded single-quote characters are escaped
- (tqreplaced with two single-quote characters). If \a trimStrings is
+ (replaced with two single-quote characters). If \a trimStrings is
TRUE (the default is FALSE), all trailing whitespace is trimmed
from the field.
@@ -448,7 +448,7 @@ TQString TQSqlDriver::formatValue( const TQSqlField* field, bool trimStrings ) c
result.truncate( end );
}
/* escape the "'" character */
- result.tqreplace( TQChar( '\'' ), "''" );
+ result.replace( TQChar( '\'' ), "''" );
r = "'" + result + "'";
break;
}
@@ -499,7 +499,7 @@ bool TQSqlDriver::open( const TQString& db,
const TQString& connOpts )
{
if ( !qSqlOpenExtDict()->isEmpty() ) {
- TQSqlOpenExtension *ext = qSqlOpenExtDict()->tqfind( (TQSqlDriver *) this );
+ TQSqlOpenExtension *ext = qSqlOpenExtDict()->find( (TQSqlDriver *) this );
if ( ext )
return ext->open( db, user, password, host, port, connOpts );
}
diff --git a/tqtinterface/qt4/src/sql/tqsqlextension_p.cpp b/tqtinterface/qt4/src/sql/tqsqlextension_p.cpp
index dd4f1fb..6f115f7 100644
--- a/tqtinterface/qt4/src/sql/tqsqlextension_p.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlextension_p.cpp
@@ -65,7 +65,7 @@ void TQSqlExtension::bindValue( const TQString& placeholder, const TQVariant& va
bindm = BindByName;
// if the index has already been set when doing emulated named
// bindings - don't reset it
- if ( index.tqcontains( (int)values.count() ) ) {
+ if ( index.contains( (int)values.count() ) ) {
index[ (int)values.count() ] = placeholder;
}
values[ placeholder ] = Param( val, tp );
diff --git a/tqtinterface/qt4/src/sql/tqsqlfield.cpp b/tqtinterface/qt4/src/sql/tqsqlfield.cpp
index fcbb08d..b9f9590 100644
--- a/tqtinterface/qt4/src/sql/tqsqlfield.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlfield.cpp
@@ -53,7 +53,7 @@
TQSqlField represents the characteristics of a single column in a
database table or view, such as the data type and column name. A
- field also tqcontains the value of the database column, which can be
+ field also contains the value of the database column, which can be
viewed or changed.
Field data values are stored as TQVariants. Using an incompatible
diff --git a/tqtinterface/qt4/src/sql/tqsqlform.cpp b/tqtinterface/qt4/src/sql/tqsqlform.cpp
index ed1f935..a33c18b 100644
--- a/tqtinterface/qt4/src/sql/tqsqlform.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlform.cpp
@@ -102,7 +102,7 @@ public:
// Move the cursor to a valid record (the first record)
myCursor.next();
// Set the form's record pointer to the cursor's edit buffer (which
- // tqcontains the current record's values)
+ // contains the current record's values)
myForm.setRecord( myCursor.primeUpdate() );
// Insert a field into the form that uses myEditor to edit the
@@ -200,8 +200,8 @@ void TQSqlForm::insert( TQWidget * widget, const TQString& field )
void TQSqlForm::remove( const TQString& field )
{
d->dirty = TRUE;
- if ( d->fld.tqfind( field ) != d->fld.end() )
- d->fld.remove( d->fld.tqfind( field ) );
+ if ( d->fld.find( field ) != d->fld.end() )
+ d->fld.remove( d->fld.find( field ) );
d->wgt.remove( field );
}
@@ -296,7 +296,7 @@ TQWidget * TQSqlForm::fieldToWidget( TQSqlField * field ) const
*/
TQSqlField * TQSqlForm::widgetToField( TQWidget * widget ) const
{
- if( d->map.tqcontains( widget ) )
+ if( d->map.contains( widget ) )
return d->map[widget];
else
return 0;
diff --git a/tqtinterface/qt4/src/sql/tqsqlindex.cpp b/tqtinterface/qt4/src/sql/tqsqlindex.cpp
index 525b1cd..9d5880c 100644
--- a/tqtinterface/qt4/src/sql/tqsqlindex.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlindex.cpp
@@ -180,7 +180,7 @@ void TQSqlIndex::setDescending( int i, bool desc )
"\a{prefix}.<fieldname>"
If \a sep is specified, each field is separated by \a sep. If \a
- verbose is TRUE (the default), each field tqcontains a suffix
+ verbose is TRUE (the default), each field contains a suffix
indicating an ASCending or DESCending sort order.
*/
@@ -207,7 +207,7 @@ TQString TQSqlIndex::toString( const TQString& prefix, const TQString& sep, bool
"\a{prefix}.<fieldname>"
- If \a verbose is TRUE (the default), each field tqcontains a suffix
+ If \a verbose is TRUE (the default), each field contains a suffix
indicating an ASCending or DESCending sort order.
Note that if you want to iterate over the list, you should iterate
@@ -270,7 +270,7 @@ TQSqlIndex TQSqlIndex::fromStringList( const TQStringList& l, const TQSqlCursor*
desc = TRUE;
f = f.mid( 0, f.length()-4 );
}
- int dot = f.tqfindRev( '.' );
+ int dot = f.findRev( '.' );
if ( dot != -1 )
f = f.mid( dot+1 );
const TQSqlField* field = cursor->field( f.simplifyWhiteSpace() );
diff --git a/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp b/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp
index 8412c94..6a35ef7 100644
--- a/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp
@@ -339,16 +339,16 @@ update. For example:
...
myCursor->update(); // update current record
myCursor->select(); // refresh the cursor
- myManager.tqfindBuffer( myCursor->primaryIndex() ); // go to the updated record
+ myManager.findBuffer( myCursor->primaryIndex() ); // go to the updated record
\endcode
*/
//## possibly add tqsizeHint parameter
-bool TQSqlCursorManager::tqfindBuffer( const TQSqlIndex& idx, int atHint )
+bool TQSqlCursorManager::findBuffer( const TQSqlIndex& idx, int atHint )
{
#ifdef TQT_DEBUG_DATAMANAGER
- qDebug("TQSqlCursorManager::tqfindBuffer:");
+ qDebug("TQSqlCursorManager::findBuffer:");
#endif
TQSqlCursor* cur = cursor();
if ( !cur )
diff --git a/tqtinterface/qt4/src/sql/tqsqlmanager_p.h b/tqtinterface/qt4/src/sql/tqsqlmanager_p.h
index 9f19335..ed892e3 100644
--- a/tqtinterface/qt4/src/sql/tqsqlmanager_p.h
+++ b/tqtinterface/qt4/src/sql/tqsqlmanager_p.h
@@ -93,7 +93,7 @@ public:
bool autoDelete() const;
virtual bool refresh();
- virtual bool tqfindBuffer( const TQSqlIndex& idx, int atHint = 0 );
+ virtual bool findBuffer( const TQSqlIndex& idx, int atHint = 0 );
private:
TQSqlCursorManagerPrivate* d;
diff --git a/tqtinterface/qt4/src/sql/tqsqlpropertymap.cpp b/tqtinterface/qt4/src/sql/tqsqlpropertymap.cpp
index 63b7e3a..d1498d9 100644
--- a/tqtinterface/qt4/src/sql/tqsqlpropertymap.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlpropertymap.cpp
@@ -110,7 +110,7 @@ public:
...
\endcode
- You can also tqreplace the global TQSqlPropertyMap that is used by
+ You can also replace the global TQSqlPropertyMap that is used by
default. (Bear in mind that TQSqlPropertyMap takes ownership of the
new default map.)
@@ -216,7 +216,7 @@ TQVariant TQSqlPropertyMap::property( TQWidget * widget )
{
if( !widget ) return TQVariant();
const QMetaObject* mo = widget->metaObject();
- while ( mo && !d->propertyMap.tqcontains( TQString( mo->className() ) ) )
+ while ( mo && !d->propertyMap.contains( TQString( mo->className() ) ) )
mo = mo->superClass();
if ( !mo ) {
@@ -236,7 +236,7 @@ void TQSqlPropertyMap::setProperty( TQWidget * widget, const TQVariant & value )
if( !widget ) return;
QMetaObject* mo = const_cast<QMetaObject*>(widget->metaObject());
- while ( mo && !d->propertyMap.tqcontains( TQString( mo->className() ) ) )
+ while ( mo && !d->propertyMap.contains( TQString( mo->className() ) ) )
mo = const_cast<QMetaObject*>(mo->superClass());
if ( !mo ) {
#ifdef TQT_CHECK_RANGE
diff --git a/tqtinterface/qt4/src/sql/tqsqlquery.cpp b/tqtinterface/qt4/src/sql/tqsqlquery.cpp
index 9a6f649..a1a7632 100644
--- a/tqtinterface/qt4/src/sql/tqsqlquery.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlquery.cpp
@@ -969,7 +969,7 @@ bool TQSqlQuery::prepare( const TQString& query )
TQRegExp rx(TQString::tqfromLatin1("'[^']*'|\\?"));
while ( (i = rx.search( q, i )) != -1 ) {
if ( rx.cap(0) == "?" ) {
- q = q.tqreplace( i, 1, ":f" + TQString::number(cnt) );
+ q = q.replace( i, 1, ":f" + TQString::number(cnt) );
cnt++;
}
i += rx.matchedLength();
@@ -982,7 +982,7 @@ bool TQSqlQuery::prepare( const TQString& query )
// record the index of the placeholder - needed
// for emulating named bindings with ODBC
d->sqlResult->extension()->index[ cnt ]= rx.cap(0);
- q = q.tqreplace( i, rx.matchedLength(), "?" );
+ q = q.replace( i, rx.matchedLength(), "?" );
i++;
cnt++;
}
@@ -1017,7 +1017,7 @@ bool TQSqlQuery::exec()
if ( driver()->hasFeature( TQSqlDriver::PreparedQueries ) ) {
ret = d->sqlResult->extension()->exec();
} else {
- // fake preparation - just tqreplace the placeholders..
+ // fake preparation - just replace the placeholders..
TQString query = d->sqlResult->lastQuery();
if ( d->sqlResult->extension()->bindMethod() == TQSqlExtension::BindByName ) {
int i;
@@ -1031,7 +1031,7 @@ bool TQSqlQuery::exec()
f.setNull();
else
f.setValue( val );
- query = query.tqreplace( (uint)d->sqlResult->extension()->holders[ (uint)i ].holderPos,
+ query = query.replace( (uint)d->sqlResult->extension()->holders[ (uint)i ].holderPos,
holder.length(), driver()->formatValue( &f ) );
}
} else {
@@ -1040,7 +1040,7 @@ bool TQSqlQuery::exec()
int i = 0;
for ( it = d->sqlResult->extension()->index.begin();
it != d->sqlResult->extension()->index.end(); ++it ) {
- i = query.tqfind( '?', i );
+ i = query.find( '?', i );
if ( i > -1 ) {
TQSqlField f( "", d->sqlResult->extension()->values[ it.data() ].value.type() );
if ( d->sqlResult->extension()->values[ it.data() ].value.isNull() )
@@ -1048,7 +1048,7 @@ bool TQSqlQuery::exec()
else
f.setValue( d->sqlResult->extension()->values[ it.data() ].value );
val = driver()->formatValue( &f );
- query = query.tqreplace( i, 1, driver()->formatValue( &f ) );
+ query = query.replace( i, 1, driver()->formatValue( &f ) );
i += val.length();
}
}
@@ -1202,7 +1202,7 @@ TQMap<TQString,TQVariant> TQSqlQuery::boundValues() const
In most cases this function returns the same as lastQuery(). If a
prepared query with placeholders is executed on a DBMS that does
not support it, the preparation of this query is emulated. The
- placeholders in the original query are tqreplaced with their bound
+ placeholders in the original query are replaced with their bound
values to form a new query. This function returns the modified
query. Useful for debugging purposes.
diff --git a/tqtinterface/qt4/src/sql/tqsqlrecord.cpp b/tqtinterface/qt4/src/sql/tqsqlrecord.cpp
index c082d16..00a7acc 100644
--- a/tqtinterface/qt4/src/sql/tqsqlrecord.cpp
+++ b/tqtinterface/qt4/src/sql/tqsqlrecord.cpp
@@ -137,7 +137,7 @@ public:
{
return cnt;
}
- bool tqcontains( int i ) const
+ bool contains( int i ) const
{
return i >= 0 && i < (int)fi.count() && fi[ i ].isValid();
}
@@ -302,7 +302,7 @@ int TQSqlRecord::position( const TQString& name ) const
return i;
}
#ifdef TQT_CHECK_RANGE
- qWarning( "TQSqlRecord::position: unable to tqfind field %s", name.latin1() );
+ qWarning( "TQSqlRecord::position: unable to find field %s", name.latin1() );
#endif
return -1;
}
@@ -315,7 +315,7 @@ int TQSqlRecord::position( const TQString& name ) const
TQSqlField* TQSqlRecord::field( int i )
{
checkDetach();
- if ( !sh->d->tqcontains( i ) ) {
+ if ( !sh->d->contains( i ) ) {
#ifdef TQT_CHECK_RANGE
qWarning( "TQSqlRecord::field: index out of range: %d", i );
#endif
@@ -334,7 +334,7 @@ TQSqlField* TQSqlRecord::field( int i )
TQSqlField* TQSqlRecord::field( const TQString& name )
{
checkDetach();
- if ( !sh->d->tqcontains( position( name ) ) )
+ if ( !sh->d->contains( position( name ) ) )
return 0;
return &sh->d->fieldInfo( position( name ) )->field;
}
@@ -346,7 +346,7 @@ TQSqlField* TQSqlRecord::field( const TQString& name )
const TQSqlField* TQSqlRecord::field( int i ) const
{
- if ( !sh->d->tqcontains( i ) ) {
+ if ( !sh->d->contains( i ) ) {
#ifdef TQT_CHECK_RANGE
qWarning( "TQSqlRecord::field: index out of range: %d", i );
#endif // TQT_CHECK_RANGE
@@ -364,7 +364,7 @@ const TQSqlField* TQSqlRecord::field( int i ) const
const TQSqlField* TQSqlRecord::field( const TQString& name ) const
{
- if( !sh->d->tqcontains( position( name ) ) )
+ if( !sh->d->contains( position( name ) ) )
return 0;
return &sh->d->fieldInfo( position( name ) )->field;
}
@@ -384,7 +384,7 @@ void TQSqlRecord::append( const TQSqlField& field )
exists at \a pos, it is removed.
*/
-void TQSqlRecord::insert( int pos, const TQSqlField& field ) // ### 4.0: rename to ::tqreplace
+void TQSqlRecord::insert( int pos, const TQSqlField& field ) // ### 4.0: rename to ::replace
{
checkDetach();
sh->d->insert( pos, field );
@@ -429,7 +429,7 @@ bool TQSqlRecord::isEmpty() const
otherwise returns FALSE.
*/
-bool TQSqlRecord::tqcontains( const TQString& name ) const
+bool TQSqlRecord::contains( const TQString& name ) const
{
for ( uint i = 0; i < count(); ++i ) {
if ( fieldName(i).upper() == name.upper() )
@@ -695,8 +695,8 @@ void TQSqlRecord::setValue( const TQString& name, const TQVariant& val )
\module sql
This class is a TQValueList that holds a set of database field meta
- data. Use tqcontains() to see if a given field name exists in the
- record, and use tqfind() to get a TQSqlFieldInfo record for a named
+ data. Use contains() to see if a given field name exists in the
+ record, and use find() to get a TQSqlFieldInfo record for a named
field.
\sa TQValueList, TQSqlFieldInfo
@@ -718,7 +718,7 @@ TQSqlRecordInfo::TQSqlRecordInfo( const TQSqlRecord& other )
Returns the number of times a field called \a fieldName occurs in
the record. Returns 0 if no field by that name could be found.
*/
-TQSqlRecordInfo::size_type TQSqlRecordInfo::tqcontains( const TQString& fieldName ) const
+TQSqlRecordInfo::size_type TQSqlRecordInfo::contains( const TQString& fieldName ) const
{
size_type i = 0;
TQString fName = fieldName.upper();
@@ -735,7 +735,7 @@ TQSqlRecordInfo::size_type TQSqlRecordInfo::tqcontains( const TQString& fieldNam
which has the field name \a fieldName. If no matching field is
found then an empty TQSqlFieldInfo object is returned.
*/
-TQSqlFieldInfo TQSqlRecordInfo::tqfind( const TQString& fieldName ) const
+TQSqlFieldInfo TQSqlRecordInfo::find( const TQString& fieldName ) const
{
TQString fName = fieldName.upper();
for( const_iterator it = begin(); it != end(); ++it ) {
diff --git a/tqtinterface/qt4/src/sql/tqsqlrecord.h b/tqtinterface/qt4/src/sql/tqsqlrecord.h
index 1dd99a3..60c4a30 100644
--- a/tqtinterface/qt4/src/sql/tqsqlrecord.h
+++ b/tqtinterface/qt4/src/sql/tqsqlrecord.h
@@ -96,7 +96,7 @@ public:
virtual void remove( int pos );
bool isEmpty() const;
- bool tqcontains( const TQString& name ) const;
+ bool contains( const TQString& name ) const;
virtual void clear();
virtual void clearValues( bool nullify = FALSE );
uint count() const;
@@ -130,8 +130,8 @@ public:
TQSqlRecordInfo( const TQSqlFieldInfoList& other ): TQSqlFieldInfoList( other ) {}
TQSqlRecordInfo( const TQSqlRecord& other );
- size_type tqcontains( const TQString& fieldName ) const;
- TQSqlFieldInfo tqfind( const TQString& fieldName ) const;
+ size_type contains( const TQString& fieldName ) const;
+ TQSqlFieldInfo find( const TQString& fieldName ) const;
TQSqlRecord toRecord() const;
};
diff --git a/tqtinterface/qt4/src/styles/qt_styles.pri b/tqtinterface/qt4/src/styles/qt_styles.pri
index baf36d5..1dc8983 100644
--- a/tqtinterface/qt4/src/styles/qt_styles.pri
+++ b/tqtinterface/qt4/src/styles/qt_styles.pri
@@ -10,19 +10,19 @@ styles {
$$STYLES_CPP/tqstyleplugin.cpp \
$$STYLES_CPP/tqcommonstyle.cpp
- tqcontains( styles, all ) {
+ contains( styles, all ) {
styles += mac cde motifplus sgi platinum compact interlace windows motif
}
x11|embedded|!macx-*:styles -= mac
- tqcontains( styles, mac ) {
+ contains( styles, mac ) {
HEADERS +=$$STYLES_H/tqmacstyle_mac.h \
$$STYLES_H/tqmacstylepixmaps_mac_p.h
SOURCES +=$$STYLES_CPP/tqmacstyle_mac.cpp
HEADERS *= $$STYLES_CPP/tqaquastyle_p.h
SOURCES *= $$STYLES_CPP/tqaquastyle_p.cpp
- !tqcontains( styles, windows ) {
+ !contains( styles, windows ) {
message( mac requires windows )
styles += windows
}
@@ -30,84 +30,84 @@ styles {
else:DEFINES += TQT_NO_STYLE_MAC
#embedded|!macx-*:styles -= aqua
- tqcontains( styles, aqua ) {
+ contains( styles, aqua ) {
HEADERS += $$STYLES_H/tqaquastyle.h
SOURCES += $$STYLES_CPP/tqaquastyle.cpp
HEADERS *= $$STYLES_CPP/tqaquastyle_p.h
SOURCES *= $$STYLES_CPP/tqaquastyle_p.cpp
- !tqcontains( styles, windows ) {
+ !contains( styles, windows ) {
message( aqua requires windows )
styles += windows
}
}
else:DEFINES += TQT_NO_STYLE_AQUA
- tqcontains( styles, cde ) {
+ contains( styles, cde ) {
HEADERS +=$$STYLES_H/tqcdestyle.h
SOURCES +=$$STYLES_CPP/tqcdestyle.cpp
- !tqcontains( styles, motif ) {
+ !contains( styles, motif ) {
message( cde requires motif )
styles += motif
}
}
else:DEFINES += TQT_NO_STYLE_CDE
- tqcontains( styles, motifplus ) {
+ contains( styles, motifplus ) {
HEADERS +=$$STYLES_H/tqmotifplusstyle.h
SOURCES +=$$STYLES_CPP/tqmotifplusstyle.cpp
- !tqcontains( styles, motif ) {
+ !contains( styles, motif ) {
message( motifplus requires motif )
styles += motif
}
}
else:DEFINES += TQT_NO_STYLE_MOTIFPLUS
- tqcontains( styles, interlace ) {
+ contains( styles, interlace ) {
HEADERS +=$$STYLES_H/tqinterlacestyle.h
SOURCES +=$$STYLES_CPP/tqinterlacestyle.cpp
- !tqcontains( styles, windows ) {
+ !contains( styles, windows ) {
message( interlace requires windows )
styles += windows
}
}
else:DEFINES += TQT_NO_STYLE_INTERLACE
- tqcontains( styles, platinum ) {
+ contains( styles, platinum ) {
HEADERS +=$$STYLES_H/tqplatinumstyle.h
SOURCES +=$$STYLES_CPP/tqplatinumstyle.cpp
- !tqcontains( styles, windows ) {
+ !contains( styles, windows ) {
message( platinum requires windows )
styles += windows
}
}
else:DEFINES += TQT_NO_STYLE_PLATINUM
- tqcontains( styles, windowsxp ) {
+ contains( styles, windowsxp ) {
HEADERS +=$$STYLES_H/tqwindowsxpstyle.h
SOURCES +=$$STYLES_CPP/tqwindowsxpstyle.cpp
- !tqcontains( styles, windowsxp ) {
+ !contains( styles, windowsxp ) {
message( windowsxp requires windows )
styles += windows
}
}
else:DEFINES += TQT_NO_STYLE_WINDOWSXP
- tqcontains( styles, sgi ) {
+ contains( styles, sgi ) {
HEADERS +=$$STYLES_H/tqsgistyle.h
SOURCES +=$$STYLES_CPP/tqsgistyle.cpp
- !tqcontains( styles, motif ) {
+ !contains( styles, motif ) {
message( sgi requires motif )
styles += motif
}
}
else:DEFINES += TQT_NO_STYLE_SGI
- tqcontains( styles, compact ) {
+ contains( styles, compact ) {
HEADERS +=$$STYLES_H/tqcompactstyle.h
SOURCES +=$$STYLES_CPP/tqcompactstyle.cpp
- !tqcontains( styles, windows ) {
+ !contains( styles, windows ) {
message( compact requires windows )
styles += windows
}
@@ -115,24 +115,24 @@ styles {
else:DEFINES += TQT_NO_STYLE_COMPACT
wince-*:styles += pocketpc
- tqcontains( styles, pocketpc ) {
+ contains( styles, pocketpc ) {
HEADERS +=$$STYLES_H/tqpocketpcstyle_wce.h
SOURCES +=$$STYLES_CPP/tqpocketpcstyle_wce.cpp
- !tqcontains( styles, windows ) {
+ !contains( styles, windows ) {
message( pocketpc requires windows )
styles += windows
}
}
else:DEFINES += TQT_NO_STYLE_POCKETPC
- tqcontains( styles, windows ) {
+ contains( styles, windows ) {
HEADERS +=$$STYLES_H/tqwindowsstyle.h
SOURCES +=$$STYLES_CPP/tqwindowsstyle.cpp
}
else:DEFINES += TQT_NO_STYLE_WINDOWS
- tqcontains( styles, motif ) {
+ contains( styles, motif ) {
HEADERS +=$$STYLES_H/tqmotifstyle.h
SOURCES +=$$STYLES_CPP/tqmotifstyle.cpp
}
diff --git a/tqtinterface/qt4/src/styles/tqcommonstyle.cpp b/tqtinterface/qt4/src/styles/tqcommonstyle.cpp
index 79439b9..8ab5d91 100644
--- a/tqtinterface/qt4/src/styles/tqcommonstyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqcommonstyle.cpp
@@ -2182,7 +2182,7 @@ TQStyle::SubControl TQCommonStyle::querySubControl(TQ_ComplexControl control,
while (ret == SC_None && ctrl <= SC_ScrollBarGroove) {
r = querySubControlMetrics(control, widget,
(TQStyle::SubControl) ctrl, opt);
- if (r.isValid() && r.tqcontains(pos))
+ if (r.isValid() && r.contains(pos))
ret = (TQStyle::SubControl) ctrl;
ctrl <<= 1;
@@ -2201,7 +2201,7 @@ TQStyle::SubControl TQCommonStyle::querySubControl(TQ_ComplexControl control,
// we can do this because subcontrols were designed to be masks as well...
while (ret == SC_None && ctrl <= SC_TitleBarUnshadeButton) {
r = tqvisualRect( querySubControlMetrics( control, widget, (TQStyle::SubControl) ctrl, opt ), widget );
- if (r.isValid() && r.tqcontains(pos))
+ if (r.isValid() && r.contains(pos))
ret = (TQStyle::SubControl) ctrl;
ctrl <<= 1;
@@ -2608,7 +2608,7 @@ TQSize TQCommonStyle::tqsizeFromContents(ContentsType contents,
}
if (! mi->text().isNull()) {
- if (mi->text().tqfind('\t') >= 0)
+ if (mi->text().find('\t') >= 0)
w += 12;
}
diff --git a/tqtinterface/qt4/src/styles/tqcompactstyle.cpp b/tqtinterface/qt4/src/styles/tqcompactstyle.cpp
index 44cd711..7f90df9 100644
--- a/tqtinterface/qt4/src/styles/tqcompactstyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqcompactstyle.cpp
@@ -94,7 +94,7 @@ static int extraPopupMenuItemWidth( bool checkable, int maxpmw, TQMenuItem* mi,
w += mi->pixmap()->width(); // pixmap only
if ( !mi->text().isNull() ) {
- if ( mi->text().tqfind('\t') >= 0 ) // string tqcontains tab
+ if ( mi->text().find('\t') >= 0 ) // string contains tab
w += motifTabSpacing;
}
@@ -265,7 +265,7 @@ void TQCompactStyle::tqdrawControl( ControlElement element, TQPainter *p, const
}
TQString s = mi->text();
if ( !s.isNull() ) { // draw text
- int t = s.tqfind( '\t' );
+ int t = s.find( '\t' );
int m = motifItemVMargin;
const int text_flags = AlignVCenter|ShowPrefix | DontClip | SingleLine;
if ( t >= 0 ) { // draw tab text
diff --git a/tqtinterface/qt4/src/styles/tqmotifplusstyle.cpp b/tqtinterface/qt4/src/styles/tqmotifplusstyle.cpp
index bef75db..c10183c 100644
--- a/tqtinterface/qt4/src/styles/tqmotifplusstyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqmotifplusstyle.cpp
@@ -859,7 +859,7 @@ void TQMotifPlusStyle::tqdrawControl( TQ_ControlElement element,
TQString s = mi->text();
if ( !s.isNull() ) { // draw text
- int t = s.tqfind( '\t' );
+ int t = s.find( '\t' );
int m = 2;
int text_flags = TQt::AlignVCenter|TQt::ShowPrefix | TQt::DontClip | TQt::SingleLine;
text_flags |= (TQApplication::reverseLayout() ? TQt::AlignRight : TQt::AlignLeft );
@@ -1127,15 +1127,15 @@ void TQMotifPlusStyle::tqdrawComplexControl(TQ_ComplexControl control,
bool skipUpdate = FALSE;
if (singleton->hovering) {
- if (addline.tqcontains(singleton->mousePos)) {
+ if (addline.contains(singleton->mousePos)) {
skipUpdate =
(singleton->scrollbarElement == SC_ScrollBarAddLine);
singleton->scrollbarElement = SC_ScrollBarAddLine;
- } else if (subline.tqcontains(singleton->mousePos)) {
+ } else if (subline.contains(singleton->mousePos)) {
skipUpdate =
(singleton->scrollbarElement == SC_ScrollBarSubLine);
singleton->scrollbarElement = SC_ScrollBarSubLine;
- } else if (slider.tqcontains(singleton->mousePos)) {
+ } else if (slider.contains(singleton->mousePos)) {
skipUpdate =
(singleton->scrollbarElement == SC_ScrollBarSlider);
singleton->scrollbarElement = SC_ScrollBarSlider;
@@ -1353,7 +1353,7 @@ void TQMotifPlusStyle::tqdrawComplexControl(TQ_ComplexControl control,
}
if ((controls & SC_SliderHandle) && handle.isValid()) {
- if ((mouseover && handle.tqcontains(singleton->mousePos)) ||
+ if ((mouseover && handle.contains(singleton->mousePos)) ||
singleton->sliderActive)
flags |= Style_MouseOver;
else
diff --git a/tqtinterface/qt4/src/styles/tqmotifstyle.cpp b/tqtinterface/qt4/src/styles/tqmotifstyle.cpp
index 257c0ad..b05c46d 100644
--- a/tqtinterface/qt4/src/styles/tqmotifstyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqmotifstyle.cpp
@@ -1122,7 +1122,7 @@ void TQMotifStyle::tqdrawControl( TQ_ControlElement element,
}
TQString s = mi->text();
if ( !s.isNull() ) { // draw text
- int t = s.tqfind( '\t' );
+ int t = s.find( '\t' );
int m = motifItemVMargin;
int text_flags = TQt::AlignVCenter|TQt::ShowPrefix | TQt::DontClip | TQt::SingleLine;
text_flags |= (TQApplication::reverseLayout() ? TQt::AlignRight : TQt::AlignLeft );
@@ -1777,8 +1777,8 @@ TQSize TQMotifStyle::tqsizeFromContents( ContentsType contents,
// a little bit of border can never harm
w += 2*motifItemHMargin + 2*motifItemFrame;
- if ( !mi->text().isNull() && mi->text().tqfind('\t') >= 0 )
- // string tqcontains tab
+ if ( !mi->text().isNull() && mi->text().find('\t') >= 0 )
+ // string contains tab
w += motifTabSpacing;
else if (mi->popup())
// submenu indicator needs some room if we don't have a tab column
diff --git a/tqtinterface/qt4/src/styles/tqsgistyle.cpp b/tqtinterface/qt4/src/styles/tqsgistyle.cpp
index 6b8a17b..45ac25b 100644
--- a/tqtinterface/qt4/src/styles/tqsgistyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqsgistyle.cpp
@@ -487,7 +487,7 @@ static void drawSGIPrefix( TQPainter *p, int x, int y, TQString* miText )
if ( miText && (!!(*miText)) ) {
int amp = 0;
bool nextAmp = FALSE;
- while ( ( amp = miText->tqfind( '&', amp ) ) != -1 ) {
+ while ( ( amp = miText->find( '&', amp ) ) != -1 ) {
if ( (uint)amp == miText->length()-1 )
return;
miText->remove( amp,1 );
@@ -795,7 +795,7 @@ void TQSGIStyle::tqdrawPrimitiveBase( TQ_PrimitiveElement pe,
break;
case PE_ScrollBarSubLine:
- if ( !r.tqcontains( d->mousePos ) && !(flags & Style_Active) )
+ if ( !r.contains( d->mousePos ) && !(flags & Style_Active) )
flags &= ~Style_MouseOver;
tqdrawPrimitive( PE_ButtonCommand, p, r, cg, flags, opt );
tqdrawPrimitive(((flags & Style_Horizontal) ? PE_ArrowLeft : PE_ArrowUp),
@@ -803,7 +803,7 @@ void TQSGIStyle::tqdrawPrimitiveBase( TQ_PrimitiveElement pe,
break;
case PE_ScrollBarAddLine:
- if ( !r.tqcontains( d->mousePos ) )
+ if ( !r.contains( d->mousePos ) )
flags &= ~Style_MouseOver;
tqdrawPrimitive( PE_ButtonCommand, p, r, cg, flags, opt );
tqdrawPrimitive(((flags & Style_Horizontal) ? PE_ArrowRight : PE_ArrowDown),
@@ -812,7 +812,7 @@ void TQSGIStyle::tqdrawPrimitiveBase( TQ_PrimitiveElement pe,
case PE_ScrollBarSubPage:
case PE_ScrollBarAddPage:
- if ( !r.tqcontains( d->mousePos ) )
+ if ( !r.contains( d->mousePos ) )
flags &= ~Style_MouseOver;
if ( r.isValid() )
qDrawShadePanel( p, x, y, w, h, cg, FALSE, 1, hot ? &cg.brush( TQColorGroup::Midlight ) : &cg.brush( TQColorGroup::Button ) );
@@ -822,7 +822,7 @@ void TQSGIStyle::tqdrawPrimitiveBase( TQ_PrimitiveElement pe,
{
if ( !r.isValid() )
break;
- if ( !(r.tqcontains( d->mousePos ) || flags & Style_Active) || !(flags & Style_Enabled ) )
+ if ( !(r.contains( d->mousePos ) || flags & Style_Active) || !(flags & Style_Enabled ) )
flags &= ~Style_MouseOver;
TQPixmap pm( r.width(), r.height() );
@@ -1056,7 +1056,7 @@ void TQSGIStyle::tqdrawControl( TQ_ControlElement element,
TQString s = mi->text();
if ( !!s ) {
- int t = s.tqfind( '\t' );
+ int t = s.find( '\t' );
int m = sgiItemVMargin;
const int text_flags = TQt::AlignVCenter | TQt::DontClip | TQt::SingleLine; //special underline for &x
@@ -1195,7 +1195,7 @@ void TQSGIStyle::tqdrawComplexControl( TQ_ComplexControl control,
}
if (( sub & SC_SliderHandle ) && handle.isValid()) {
- if ( flags & Style_MouseOver && !handle.tqcontains( d->mousePos ) && subActive != SC_SliderHandle )
+ if ( flags & Style_MouseOver && !handle.contains( d->mousePos ) && subActive != SC_SliderHandle )
flags &= ~Style_MouseOver;
tqdrawPrimitive( PE_ButtonBevel, p, handle, cg, flags );
diff --git a/tqtinterface/qt4/src/styles/tqstylefactory.cpp b/tqtinterface/qt4/src/styles/tqstylefactory.cpp
index 42f1c2f..6d72738 100644
--- a/tqtinterface/qt4/src/styles/tqstylefactory.cpp
+++ b/tqtinterface/qt4/src/styles/tqstylefactory.cpp
@@ -212,39 +212,39 @@ TQStringList TQStyleFactory::keys()
#endif //TQT_NO_COMPONENT
#ifndef TQT_NO_STYLE_WINDOWS
- if ( !list.tqcontains( "Windows" ) )
+ if ( !list.contains( "Windows" ) )
list << "Windows";
#endif
#ifndef TQT_NO_STYLE_WINDOWSXP
- if ( !list.tqcontains( "WindowsXP" ) && TQWindowsXPStyle::resolveSymbols() )
+ if ( !list.contains( "WindowsXP" ) && TQWindowsXPStyle::resolveSymbols() )
list << "WindowsXP";
#endif
#ifndef TQT_NO_STYLE_MOTIF
- if ( !list.tqcontains( "Motif" ) )
+ if ( !list.contains( "Motif" ) )
list << "Motif";
#endif
#ifndef TQT_NO_STYLE_CDE
- if ( !list.tqcontains( "CDE" ) )
+ if ( !list.contains( "CDE" ) )
list << "CDE";
#endif
#ifndef TQT_NO_STYLE_MOTIFPLUS
- if ( !list.tqcontains( "MotifPlus" ) )
+ if ( !list.contains( "MotifPlus" ) )
list << "MotifPlus";
#endif
#ifndef TQT_NO_STYLE_PLATINUM
- if ( !list.tqcontains( "Platinum" ) )
+ if ( !list.contains( "Platinum" ) )
list << "Platinum";
#endif
#ifndef TQT_NO_STYLE_SGI
- if ( !list.tqcontains( "SGI" ) )
+ if ( !list.contains( "SGI" ) )
list << "SGI";
#endif
#ifndef TQT_NO_STYLE_COMPACT
- if ( !list.tqcontains( "Compact" ) )
+ if ( !list.contains( "Compact" ) )
list << "Compact";
#endif
#ifndef TQT_NO_STYLE_ATQUA
- if ( !list.tqcontains( "Aqua" ) )
+ if ( !list.contains( "Aqua" ) )
list << "Aqua";
#endif
#if !defined( TQT_NO_STYLE_MAC ) && defined( TQ_WS_MAC )
@@ -257,7 +257,7 @@ TQStringList TQStyleFactory::keys()
if(!GetCollectionItem(c, kThemeNameTag, 0, &s, &str))
mstyle += " (" + p2qstring(str) + ")";
}
- if (!list.tqcontains(mstyle))
+ if (!list.contains(mstyle))
list << mstyle;
DisposeCollection(c);
#endif
diff --git a/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp b/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp
index aa65a5b..5a25f3d 100644
--- a/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp
+++ b/tqtinterface/qt4/src/styles/tqwindowsstyle.cpp
@@ -121,7 +121,7 @@ TQWindowsStyle::Private::Private(TQWindowsStyle *tqparent)
bool TQWindowsStyle::Private::hasSeenAlt(const TQWidget *widget) const
{
widget = widget->tqtopLevelWidget();
- return seenAlt.tqcontains(widget);
+ return seenAlt.contains(widget);
}
// Records Alt- and Focus events
@@ -137,7 +137,7 @@ bool TQWindowsStyle::Private::eventFilter(TQObject *o, TQEvent *e)
if (((TQKeyEvent*)e)->key() == Qt::Key_Alt) {
widget = widget->tqtopLevelWidget();
- // Alt has been pressed - tqfind all widgets that care
+ // Alt has been pressed - find all widgets that care
TQObjectList *l = widget->queryList("TQWidget");
TQObjectListIt it( *l );
TQWidget *w;
@@ -976,7 +976,7 @@ void TQWindowsStyle::tqdrawControl( TQ_ControlElement element,
}
TQString s = mi->text();
if ( !s.isNull() ) { // draw text
- int t = s.tqfind( '\t' );
+ int t = s.find( '\t' );
int text_flags = TQt::AlignVCenter|TQt::ShowPrefix | TQt::DontClip | TQt::SingleLine;
if (!tqstyleHint(SH_UnderlineAccelerator, widget))
text_flags |= TQt::NoAccel;
@@ -1232,7 +1232,7 @@ TQSize TQWindowsStyle::tqsizeFromContents( ContentsType contents,
2*windowsItemFrame);
}
- if (! mi->text().isNull() && mi->text().tqfind('\t') >= 0) {
+ if (! mi->text().isNull() && mi->text().find('\t') >= 0) {
if ( use2000style )
w += 20;
else
diff --git a/tqtinterface/qt4/src/table/tqtable.cpp b/tqtinterface/qt4/src/table/tqtable.cpp
index 1e2ccb7..cb1d068 100644
--- a/tqtinterface/qt4/src/table/tqtable.cpp
+++ b/tqtinterface/qt4/src/table/tqtable.cpp
@@ -214,7 +214,7 @@ static bool isRowSelection( TQTable::SelectionMode selMode )
function expands the selection rectangle to include additional
cells.
- There are various access functions to tqfind out about the area:
+ There are various access functions to find out about the area:
anchorRow() and anchorCol() return the anchor's position;
leftCol(), rightCol(), topRow() and bottomRow() return the
rectangle's four edges. All four are part of the selection.
@@ -423,7 +423,7 @@ int TQTableSelection::numCols() const
to create very large tables you may prefer an alternative approach
to using TQTableItems: see the notes on large tables.
- A TQTableItem tqcontains a cell's data, by default, a string and a
+ A TQTableItem contains a cell's data, by default, a string and a
pixmap. The table item also holds the cell's display size and how
the data should be aligned. The table item specifies the cell's
\l EditType and the editor used for in-place editing (by default a
@@ -441,7 +441,7 @@ int TQTableSelection::numCols() const
customize how your table items will sort.
Table items are inserted into a table using TQTable::setItem(). If
- you insert an item into a cell that already tqcontains a table item
+ you insert an item into a cell that already contains a table item
the original item will be deleted.
Example:
@@ -488,7 +488,7 @@ int TQTableSelection::numCols() const
}
\endcode
- By default, table items may be tqreplaced by new TQTableItems
+ By default, table items may be replaced by new TQTableItems
during the lifetime of a TQTable. Therefore, if you create your
own subclass of TQTableItem, and you want to ensure that
this does not happen, you must call setReplaceable(FALSE)
@@ -903,11 +903,11 @@ TQTableItem::EditType TQTableItem::editType() const
}
/*!
- If \a b is TRUE it is acceptable to tqreplace the contents of the
+ If \a b is TRUE it is acceptable to replace the contents of the
cell with the contents of another TQTableItem. If \a b is FALSE the
- contents of the cell may not be tqreplaced by the contents of
+ contents of the cell may not be replaced by the contents of
another table item. Table items that span more than one cell may
- not have their contents tqreplaced by another table item.
+ not have their contents replaced by another table item.
(This differs from \l EditType because EditType is concerned with
whether the \e user is able to change the contents of a cell.)
@@ -922,9 +922,9 @@ void TQTableItem::setReplaceable( bool b )
/*!
This function returns whether the contents of the cell may be
- tqreplaced with the contents of another table item. Regardless of
+ replaced with the contents of another table item. Regardless of
this setting, table items that span more than one cell may not
- have their contents tqreplaced by another table item.
+ have their contents replaced by another table item.
(This differs from \l EditType because EditType is concerned with
whether the \e user is able to change the contents of a cell.)
@@ -975,7 +975,7 @@ TQSize TQTableItem::tqsizeHint() const
}
TQString t = text();
- if ( !wordwrap && t.tqfind( '\n' ) == -1 )
+ if ( !wordwrap && t.find( '\n' ) == -1 )
return TQSize( s.width() + table()->fontMetrics().width( text() ) + 10,
TQMAX( s.height(), table()->fontMetrics().height() ) ).expandedTo( strutSize );
@@ -1215,7 +1215,7 @@ int TQComboTableItem::fakeRef = 0;
TRUE the user may type in new list items; if \a editable is FALSE
the user may only select from the list of items provided.
- By default TQComboTableItems cannot be tqreplaced by other table
+ By default TQComboTableItems cannot be replaced by other table
items since isReplaceable() returns FALSE by default.
\sa TQTable::clearCell() EditType
@@ -1350,7 +1350,7 @@ void TQComboTableItem::setCurrentItem( int i )
void TQComboTableItem::setCurrentItem( const TQString &s )
{
- int i = entries.tqfindIndex( s );
+ int i = entries.findIndex( s );
if ( i != -1 )
setCurrentItem( i );
}
@@ -2210,7 +2210,7 @@ void TQTable::setReadOnly( bool b )
void TQTable::setRowReadOnly( int row, bool ro )
{
if ( ro )
- roRows.tqreplace( row, new int( 0 ) );
+ roRows.replace( row, new int( 0 ) );
else
roRows.remove( row );
@@ -2240,7 +2240,7 @@ void TQTable::setRowReadOnly( int row, bool ro )
void TQTable::setColumnReadOnly( int col, bool ro )
{
if ( ro )
- roCols.tqreplace( col, new int( 0 ) );
+ roCols.replace( col, new int( 0 ) );
else
roCols.remove( col );
@@ -2285,7 +2285,7 @@ bool TQTable::isReadOnly() const
bool TQTable::isRowReadOnly( int row ) const
{
- return (roRows.tqfind( row ) != 0);
+ return (roRows.find( row ) != 0);
}
/*!
@@ -2301,7 +2301,7 @@ bool TQTable::isRowReadOnly( int row ) const
bool TQTable::isColumnReadOnly( int col ) const
{
- return (roCols.tqfind( col ) != 0);
+ return (roCols.find( col ) != 0);
}
void TQTable::setSelectionMode( SelectionMode mode )
@@ -2396,7 +2396,7 @@ void TQTable::updateHeaderStates()
/*!
Returns the table's top TQHeader.
- This header tqcontains the column labels.
+ This header contains the column labels.
To modify a column label use TQHeader::setLabel(), e.g.
\quotefile table/statistics/statistics.cpp
@@ -2414,7 +2414,7 @@ TQHeader *TQTable::horizontalHeader() const
/*!
Returns the table's vertical TQHeader.
- This header tqcontains the row labels.
+ This header contains the row labels.
\sa horizontalHeader() setLeftMargin() TQHeader
*/
@@ -3088,7 +3088,7 @@ TQTableItem *TQTable::item( int row, int col ) const
/*!
Inserts the table item \a item into the table at row \a row,
column \a col, and repaints the cell. If a table item already
- exists in this cell it is deleted and tqreplaced with \a item. The
+ exists in this cell it is deleted and replaced with \a item. The
table takes ownership of the table item.
If you don't use \l{TQTableItem}s you may need to reimplement this
@@ -3145,7 +3145,7 @@ void TQTable::clearCell( int row, int col )
If the cell does not contain a table item a TQTableItem is created
with an \link TQTableItem::EditType EditType\endlink of \c OnTyping,
- otherwise the existing table item's text (if any) is tqreplaced with
+ otherwise the existing table item's text (if any) is replaced with
\a text.
\sa text() setPixmap() setItem() TQTableItem::setText()
@@ -3170,7 +3170,7 @@ void TQTable::setText( int row, int col, const TQString &text )
If the cell does not contain a table item a TQTableItem is created
with an \link TQTableItem::EditType EditType\endlink of \c OnTyping,
- otherwise the existing table item's pixmap (if any) is tqreplaced
+ otherwise the existing table item's pixmap (if any) is replaced
with \a pix.
Note that \l{TQComboTableItem}s and \l{TQCheckTableItem}s don't show
@@ -3209,7 +3209,7 @@ TQString TQTable::text( int row, int col ) const
/*!
Returns the pixmap set for the cell at \a row, \a col, or a
- null-pixmap if the cell tqcontains no pixmap.
+ null-pixmap if the cell contains no pixmap.
\sa setPixmap()
*/
@@ -3557,7 +3557,7 @@ int TQTable::currentSelection() const
{
if ( !currentSel )
return -1;
- return ( (TQTable*)this )->selections.tqfindRef( currentSel );
+ return ( (TQTable*)this )->selections.findRef( currentSel );
}
/*! Selects the range starting at \a start_row and \a start_col and
@@ -3626,7 +3626,7 @@ void TQTable::contentsMousePressEventEx( TQMouseEvent* e )
{
shouldClearSelection = FALSE;
if ( isEditing() ) {
- if ( !cellGeometry( editRow, editCol ).tqcontains( e->pos() ) ) {
+ if ( !cellGeometry( editRow, editCol ).contains( e->pos() ) ) {
endEdit( editRow, editCol, TRUE, edMode != Editing );
} else {
e->ignore();
@@ -4010,7 +4010,7 @@ bool TQTable::eventFilter( TQObject *o, TQEvent *e )
int cc = TQMIN( numCols() - 1, currentColumn() + 1 );
while ( cc < numCols() ) {
TQTableItem *i = item( currentRow(), cc );
- if ( !d->hiddenCols.tqfind( cc ) && !isColumnReadOnly( cc ) && (!i || i->isEnabled()) )
+ if ( !d->hiddenCols.find( cc ) && !isColumnReadOnly( cc ) && (!i || i->isEnabled()) )
break;
++cc;
}
@@ -4021,7 +4021,7 @@ bool TQTable::eventFilter( TQObject *o, TQEvent *e )
int cc = TQMAX( 0, currentColumn() - 1 );
while ( cc >= 0 ) {
TQTableItem *i = item( currentRow(), cc );
- if ( !d->hiddenCols.tqfind( cc ) && !isColumnReadOnly( cc ) && (!i || i->isEnabled()) )
+ if ( !d->hiddenCols.find( cc ) && !isColumnReadOnly( cc ) && (!i || i->isEnabled()) )
break;
--cc;
}
@@ -4047,7 +4047,7 @@ bool TQTable::eventFilter( TQObject *o, TQEvent *e )
}
} else {
TQObjectList *l = viewport()->queryList( "TQWidget" );
- if ( l && l->tqfind( o ) != -1 ) {
+ if ( l && l->find( o ) != -1 ) {
delete l;
TQKeyEvent *ke = (TQKeyEvent*)e;
if ( ( ke->state() & ControlButton ) == ControlButton ||
@@ -4191,7 +4191,7 @@ void TQTable::keyPressEvent( TQKeyEvent* e )
int cc = TQMIN( numCols() - 1, currentColumn() + 1 );
while ( cc < numCols() ) {
TQTableItem *i = item( currentRow(), cc );
- if ( !d->hiddenCols.tqfind( cc ) && !isColumnReadOnly( cc ) && (!i || i->isEnabled()) )
+ if ( !d->hiddenCols.find( cc ) && !isColumnReadOnly( cc ) && (!i || i->isEnabled()) )
break;
++cc;
}
@@ -4202,7 +4202,7 @@ void TQTable::keyPressEvent( TQKeyEvent* e )
int cc = TQMAX( 0, currentColumn() - 1 );
while ( cc >= 0 ) {
TQTableItem *i = item( currentRow(), cc );
- if ( !d->hiddenCols.tqfind( cc ) && !isColumnReadOnly( cc ) && (!i || i->isEnabled()) )
+ if ( !d->hiddenCols.find( cc ) && !isColumnReadOnly( cc ) && (!i || i->isEnabled()) )
break;
--cc;
}
@@ -4922,7 +4922,7 @@ void TQTable::setNumRows( int r )
if (r < numRows()) {
// Removed rows are no longer hidden, and should thus be removed from "hiddenRows"
for (int rr = numRows()-1; rr >= r; --rr) {
- if (d->hiddenRows.tqfind(rr))
+ if (d->hiddenRows.find(rr))
d->hiddenRows.remove(rr);
}
}
@@ -4971,7 +4971,7 @@ void TQTable::setNumCols( int c )
if (c < numCols()) {
// Removed columns are no longer hidden, and should thus be removed from "hiddenCols"
for (int cc = numCols()-1; cc >= c; --cc) {
- if (d->hiddenCols.tqfind(cc))
+ if (d->hiddenCols.find(cc))
d->hiddenCols.remove(cc);
}
}
@@ -5026,7 +5026,7 @@ void TQTable::setColumnLabels( const TQStringList &labels )
If \a initFromCell is TRUE, the editor is used to edit the current
contents of the cell (so the editor widget should be initialized
with this content). If \a initFromCell is FALSE, the content of
- the cell is tqreplaced with the new content which the user entered
+ the cell is replaced with the new content which the user entered
into the widget created by this function.
The default functionality is as follows: if \a initFromCell is
@@ -5093,8 +5093,8 @@ TQWidget *TQTable::createEditor( int row, int col, bool initFromCell ) const
\a row, \a col. Editing is achieved by creating an editor
(createEditor() is called) and setting the cell's editor with
setCellWidget() to the newly created editor. (After editing is
- complete endEdit() will be called to tqreplace the cell's content
- with the editor's content.) If \a tqreplace is TRUE the editor will
+ complete endEdit() will be called to replace the cell's content
+ with the editor's content.) If \a replace is TRUE the editor will
start empty; otherwise it will be initialized with the cell's
content (if any), i.e. the user will be modifying the original
cell content.
@@ -5102,7 +5102,7 @@ TQWidget *TQTable::createEditor( int row, int col, bool initFromCell ) const
\sa endEdit()
*/
-TQWidget *TQTable::beginEdit( int row, int col, bool tqreplace )
+TQWidget *TQTable::beginEdit( int row, int col, bool replace )
{
if ( isReadOnly() || isRowReadOnly( row ) || isColumnReadOnly( col ) )
return 0;
@@ -5115,7 +5115,7 @@ TQWidget *TQTable::beginEdit( int row, int col, bool tqreplace )
if ( cellWidget( row, col ) )
return 0;
ensureCellVisible( row, col );
- TQWidget *e = createEditor( row, col, !tqreplace );
+ TQWidget *e = createEditor( row, col, !replace );
if ( !e )
return 0;
setCellWidget( row, col, e );
@@ -5133,13 +5133,13 @@ TQWidget *TQTable::beginEdit( int row, int col, bool tqreplace )
returns and the cell's contents are left unchanged.
If \a accept is TRUE the content of the editor must be transferred
- to the relevant cell. If \a tqreplace is TRUE the current content of
- this cell should be tqreplaced by the content of the editor (this
+ to the relevant cell. If \a replace is TRUE the current content of
+ this cell should be replaced by the content of the editor (this
means removing the current TQTableItem of the cell and creating a
new one for the cell). Otherwise (if possible) the content of the
editor should just be set to the existing TQTableItem of this cell.
- setCellContentFromEditor() is called to tqreplace the contents of
+ setCellContentFromEditor() is called to replace the contents of
the cell with the contents of the cell's editor.
Finally clearCellWidget() is called to remove the editor widget.
@@ -5147,7 +5147,7 @@ TQWidget *TQTable::beginEdit( int row, int col, bool tqreplace )
\sa setCellContentFromEditor(), beginEdit()
*/
-void TQTable::endEdit( int row, int col, bool accept, bool tqreplace )
+void TQTable::endEdit( int row, int col, bool accept, bool replace )
{
TQWidget *editor = cellWidget( row, col );
if ( !editor )
@@ -5168,7 +5168,7 @@ void TQTable::endEdit( int row, int col, bool accept, bool tqreplace )
if ( i )
oldContent = i->text();
- if ( !i || tqreplace ) {
+ if ( !i || replace ) {
setCellContentFromEditor( row, col );
i = item( row, col );
} else {
@@ -5188,7 +5188,7 @@ void TQTable::endEdit( int row, int col, bool accept, bool tqreplace )
}
/*!
- This function is called to tqreplace the contents of the cell at \a
+ This function is called to replace the contents of the cell at \a
row, \a col with the contents of the cell's editor.
If there already exists a TQTableItem for the cell,
@@ -5491,17 +5491,17 @@ TQRect TQTable::rangeGeometry( int topRow, int leftCol,
void TQTable::activateNextCell()
{
int firstRow = 0;
- while ( d->hiddenRows.tqfind( firstRow ) )
+ while ( d->hiddenRows.find( firstRow ) )
firstRow++;
int firstCol = 0;
- while ( d->hiddenCols.tqfind( firstCol ) )
+ while ( d->hiddenCols.find( firstCol ) )
firstCol++;
int nextRow = curRow;
int nextCol = curCol;
- while ( d->hiddenRows.tqfind( ++nextRow ) );
+ while ( d->hiddenRows.find( ++nextRow ) );
if ( nextRow >= numRows() ) {
nextRow = firstRow;
- while ( d->hiddenCols.tqfind( ++nextCol ) );
+ while ( d->hiddenCols.find( ++nextCol ) );
if ( nextCol >= numCols() )
nextCol = firstCol;
}
@@ -5657,9 +5657,9 @@ void TQTable::sortColumn( int col, bool ascending, bool wholeRows )
void TQTable::hideRow( int row )
{
- if ( d->hiddenRows.tqfind( row ) )
+ if ( d->hiddenRows.find( row ) )
return;
- d->hiddenRows.tqreplace( row, new int( leftHeader->sectionSize( row ) ) );
+ d->hiddenRows.replace( row, new int( leftHeader->sectionSize( row ) ) );
leftHeader->resizeSection( row, 0 );
leftHeader->setResizeEnabled( FALSE, row );
if ( isRowStretchable(row) )
@@ -5683,9 +5683,9 @@ void TQTable::hideRow( int row )
void TQTable::hideColumn( int col )
{
- if ( !numCols() || d->hiddenCols.tqfind( col ) )
+ if ( !numCols() || d->hiddenCols.find( col ) )
return;
- d->hiddenCols.tqreplace( col, new int( topHeader->sectionSize( col ) ) );
+ d->hiddenCols.replace( col, new int( topHeader->sectionSize( col ) ) );
topHeader->resizeSection( col, 0 );
topHeader->setResizeEnabled( FALSE, col );
if ( isColumnStretchable(col) )
@@ -5709,7 +5709,7 @@ void TQTable::hideColumn( int col )
void TQTable::showRow( int row )
{
- int *h = d->hiddenRows.tqfind( row );
+ int *h = d->hiddenRows.find( row );
if ( h ) {
int rh = *h;
d->hiddenRows.remove( row );
@@ -5730,7 +5730,7 @@ void TQTable::showRow( int row )
void TQTable::showColumn( int col )
{
- int *w = d->hiddenCols.tqfind( col );
+ int *w = d->hiddenCols.find( col );
if ( w ) {
int cw = *w;
d->hiddenCols.remove( col );
@@ -5751,7 +5751,7 @@ void TQTable::showColumn( int col )
*/
bool TQTable::isRowHidden( int row ) const
{
- return d->hiddenRows.tqfind( row );
+ return d->hiddenRows.find( row );
}
/*!
@@ -5762,7 +5762,7 @@ bool TQTable::isRowHidden( int row ) const
*/
bool TQTable::isColumnHidden( int col ) const
{
- return d->hiddenCols.tqfind( col );
+ return d->hiddenCols.find( col );
}
/*!
@@ -5773,9 +5773,9 @@ bool TQTable::isColumnHidden( int col ) const
void TQTable::setColumnWidth( int col, int w )
{
- int *ow = d->hiddenCols.tqfind( col );
+ int *ow = d->hiddenCols.find( col );
if ( ow ) {
- d->hiddenCols.tqreplace( col, new int( w ) );
+ d->hiddenCols.replace( col, new int( w ) );
} else {
topHeader->resizeSection( col, w );
columnWidthChanged( col );
@@ -5790,9 +5790,9 @@ void TQTable::setColumnWidth( int col, int w )
void TQTable::setRowHeight( int row, int h )
{
- int *oh = d->hiddenRows.tqfind( row );
+ int *oh = d->hiddenRows.find( row );
if ( oh ) {
- d->hiddenRows.tqreplace( row, new int( h ) );
+ d->hiddenRows.replace( row, new int( h ) );
} else {
leftHeader->resizeSection( row, h );
rowHeightChanged( row );
@@ -5801,7 +5801,7 @@ void TQTable::setRowHeight( int row, int h )
/*!
Resizes column \a col so that the column width is wide enough to
- display the widest item the column tqcontains.
+ display the widest item the column contains.
\sa adjustRow()
*/
@@ -5838,7 +5838,7 @@ void TQTable::adjustColumn( int col )
/*!
Resizes row \a row so that the row height is tall enough to
- display the tallest item the row tqcontains.
+ display the tallest item the row contains.
\sa adjustColumn()
*/
@@ -5882,7 +5882,7 @@ void TQTable::setColumnStretchable( int col, bool stretch )
{
topHeader->setSectionStretchable( col, stretch );
- if ( stretch && d->hiddenCols.tqfind(col) )
+ if ( stretch && d->hiddenCols.find(col) )
topHeader->numStretches--;
}
@@ -5902,7 +5902,7 @@ void TQTable::setRowStretchable( int row, bool stretch )
{
leftHeader->setSectionStretchable( row, stretch );
- if ( stretch && d->hiddenRows.tqfind(row) )
+ if ( stretch && d->hiddenRows.find(row) )
leftHeader->numStretches--;
}
@@ -6091,7 +6091,7 @@ void TQTable::clearCellWidget( int row, int col )
This signal is emitted when a drop event occurred on the table.
- \a e tqcontains information about the drop.
+ \a e contains information about the drop.
*/
/*!
@@ -6244,7 +6244,7 @@ void TQTable::removeRow( int row )
if ( row < 0 || row >= numRows() )
return;
if ( row < numRows() - 1 ) {
- if (d->hiddenRows.tqfind(row))
+ if (d->hiddenRows.find(row))
d->hiddenRows.remove(row);
for ( int i = row; i < numRows() - 1; ++i )
@@ -6294,7 +6294,7 @@ void TQTable::removeColumn( int col )
if ( col < 0 || col >= numCols() )
return;
if ( col < numCols() - 1 ) {
- if (d->hiddenCols.tqfind(col))
+ if (d->hiddenCols.find(col))
d->hiddenCols.remove(col);
for ( int i = col; i < numCols() - 1; ++i )
@@ -6335,7 +6335,7 @@ void TQTable::removeColumns( const TQMemArray<int> &cols )
/*!
Starts editing the cell at \a row, \a col.
- If \a tqreplace is TRUE the content of this cell will be tqreplaced by
+ If \a replace is TRUE the content of this cell will be replaced by
the content of the editor when editing is finished, i.e. the user
will be entering new data; otherwise the current content of the
cell (if any) will be modified in the editor.
@@ -6343,12 +6343,12 @@ void TQTable::removeColumns( const TQMemArray<int> &cols )
\sa beginEdit()
*/
-void TQTable::editCell( int row, int col, bool tqreplace )
+void TQTable::editCell( int row, int col, bool replace )
{
if ( row < 0 || col < 0 || row > numRows() - 1 || col > numCols() - 1 )
return;
- if ( beginEdit( row, col, tqreplace ) ) {
+ if ( beginEdit( row, col, replace ) ) {
edMode = Editing;
editRow = row;
editCol = col;
diff --git a/tqtinterface/qt4/src/table/tqtable.h b/tqtinterface/qt4/src/table/tqtable.h
index d978ad2..47b37fd 100644
--- a/tqtinterface/qt4/src/table/tqtable.h
+++ b/tqtinterface/qt4/src/table/tqtable.h
@@ -404,7 +404,7 @@ public Q_SLOTS:
virtual void removeColumn( int col );
virtual void removeColumns( const TQMemArray<int> &cols );
- virtual void editCell( int row, int col, bool tqreplace = FALSE );
+ virtual void editCell( int row, int col, bool replace = FALSE );
void setRowLabels( const TQStringList &labels );
void setColumnLabels( const TQStringList &labels );
@@ -437,8 +437,8 @@ protected:
virtual void activateNextCell();
virtual TQWidget *createEditor( int row, int col, bool initFromCell ) const;
virtual void setCellContentFromEditor( int row, int col );
- virtual TQWidget *beginEdit( int row, int col, bool tqreplace );
- virtual void endEdit( int row, int col, bool accept, bool tqreplace );
+ virtual TQWidget *beginEdit( int row, int col, bool replace );
+ virtual void endEdit( int row, int col, bool accept, bool replace );
virtual void resizeData( int len );
virtual void insertWidget( int row, int col, TQWidget *w );
diff --git a/tqtinterface/qt4/src/tools/tqasciicache.h b/tqtinterface/qt4/src/tools/tqasciicache.h
index 9a8d820..d783a95 100644
--- a/tqtinterface/qt4/src/tools/tqasciicache.h
+++ b/tqtinterface/qt4/src/tools/tqasciicache.h
@@ -75,10 +75,10 @@ public:
{ return TQGCache::remove_other(k); }
type *take( const char *k )
{ return (type *)TQGCache::take_other(k); }
- type *tqfind( const char *k, bool ref=TRUE ) const
- { return (type *)TQGCache::tqfind_other(k,ref);}
+ type *find( const char *k, bool ref=TRUE ) const
+ { return (type *)TQGCache::find_other(k,ref);}
type *operator[]( const char *k ) const
- { return (type *)TQGCache::tqfind_other(k);}
+ { return (type *)TQGCache::find_other(k);}
void statistics() const { TQGCache::statistics(); }
private:
void deleteItem( Item d );
diff --git a/tqtinterface/qt4/src/tools/tqasciidict.h b/tqtinterface/qt4/src/tools/tqasciidict.h
index fdab8b2..266d894 100644
--- a/tqtinterface/qt4/src/tools/tqasciidict.h
+++ b/tqtinterface/qt4/src/tools/tqasciidict.h
@@ -66,11 +66,11 @@ public:
void insert( const char *k, const type *d )
{ TQGDict::look_ascii(k,(Item)d,1); }
- void tqreplace( const char *k, const type *d )
+ void replace( const char *k, const type *d )
{ TQGDict::look_ascii(k,(Item)d,2); }
bool remove( const char *k ) { return TQGDict::remove_ascii(k); }
type *take( const char *k ) { return (type *)TQGDict::take_ascii(k); }
- type *tqfind( const char *k ) const
+ type *find( const char *k ) const
{ return (type *)((TQGDict*)this)->TQGDict::look_ascii(k,0,0); }
type *operator[]( const char *k ) const
{ return (type *)((TQGDict*)this)->TQGDict::look_ascii(k,0,0); }
diff --git a/tqtinterface/qt4/src/tools/tqbitarray.cpp b/tqtinterface/qt4/src/tools/tqbitarray.cpp
index a741314..93bc527 100644
--- a/tqtinterface/qt4/src/tools/tqbitarray.cpp
+++ b/tqtinterface/qt4/src/tools/tqbitarray.cpp
@@ -507,7 +507,7 @@ TQBitArray &TQBitArray::operator^=( const TQBitArray &a )
}
/*!
- Returns a bit array that tqcontains the inverted bits of this bit array.
+ Returns a bit array that contains the inverted bits of this bit array.
Example:
\code
diff --git a/tqtinterface/qt4/src/tools/tqcache.h b/tqtinterface/qt4/src/tools/tqcache.h
index 72881d4..dd50b57 100644
--- a/tqtinterface/qt4/src/tools/tqcache.h
+++ b/tqtinterface/qt4/src/tools/tqcache.h
@@ -73,10 +73,10 @@ public:
{ return TQGCache::remove_string(k); }
type *take( const TQString &k )
{ return (type *)TQGCache::take_string(k); }
- type *tqfind( const TQString &k, bool ref=TRUE ) const
- { return (type *)TQGCache::tqfind_string(k,ref);}
+ type *find( const TQString &k, bool ref=TRUE ) const
+ { return (type *)TQGCache::find_string(k,ref);}
type *operator[]( const TQString &k ) const
- { return (type *)TQGCache::tqfind_string(k);}
+ { return (type *)TQGCache::find_string(k);}
void statistics() const { TQGCache::statistics(); }
private:
void deleteItem( Item d );
diff --git a/tqtinterface/qt4/src/tools/tqcleanuphandler.h b/tqtinterface/qt4/src/tools/tqcleanuphandler.h
index a7e5ea1..47e3484 100644
--- a/tqtinterface/qt4/src/tools/tqcleanuphandler.h
+++ b/tqtinterface/qt4/src/tools/tqcleanuphandler.h
@@ -60,7 +60,7 @@ public:
void remove( Type **object ) {
if ( !cleanupObjects )
return;
- if ( cleanupObjects->tqfindRef( object ) >= 0 )
+ if ( cleanupObjects->findRef( object ) >= 0 )
(void) cleanupObjects->take();
}
diff --git a/tqtinterface/qt4/src/tools/tqcomlibrary.cpp b/tqtinterface/qt4/src/tools/tqcomlibrary.cpp
index 253f9bf..4bbeee3 100644
--- a/tqtinterface/qt4/src/tools/tqcomlibrary.cpp
+++ b/tqtinterface/qt4/src/tools/tqcomlibrary.cpp
@@ -273,11 +273,11 @@ static bool tqt_parse_pattern( const char *s, uint *version, uint *flags,
# include <sys/mman.h>
#endif // TQ_OS_FREEBSD || TQ_OS_LINUX
-static long qt_tqfind_pattern( const char *s, ulong s_len,
+static long qt_find_pattern( const char *s, ulong s_len,
const char *pattern, ulong p_len )
{
/*
- this uses the same algorithm as TQString::tqfindRev...
+ this uses the same algorithm as TQString::findRev...
we search from the end of the file because on the supported
systems, the read-only data/text segments are placed at the end
@@ -358,7 +358,7 @@ static bool tqt_unix_query( const TQString &library, uint *version, uint *flags,
// verify that the pattern is present in the plugin
const char *pattern = "pattern=TQT_UCM_VERIFICATION_DATA";
const ulong plen = tqstrlen( pattern );
- long pos = qt_tqfind_pattern( filedata, fdlen, pattern, plen );
+ long pos = qt_find_pattern( filedata, fdlen, pattern, plen );
bool ret = FALSE;
if ( pos >= 0 ) {
diff --git a/tqtinterface/qt4/src/tools/tqcomponentfactory.cpp b/tqtinterface/qt4/src/tools/tqcomponentfactory.cpp
index 800e2b6..6aea36e 100644
--- a/tqtinterface/qt4/src/tools/tqcomponentfactory.cpp
+++ b/tqtinterface/qt4/src/tools/tqcomponentfactory.cpp
@@ -318,7 +318,7 @@ bool TQComponentFactory::unregisterComponent( const TQUuid &cid )
TQString version = vName.right( vName.length() - name.length() - 1 );
TQString newVerName;
TQString newCidStr;
- if ( version.tqfind( '.' ) == -1 ) {
+ if ( version.find( '.' ) == -1 ) {
int ver = version.toInt();
// see if a lesser version is installed, and make that the CurVer
while ( ver-- ) {
diff --git a/tqtinterface/qt4/src/tools/tqcstring.cpp b/tqtinterface/qt4/src/tools/tqcstring.cpp
index f81348f..4227c82 100644
--- a/tqtinterface/qt4/src/tools/tqcstring.cpp
+++ b/tqtinterface/qt4/src/tools/tqcstring.cpp
@@ -663,7 +663,7 @@ TQCString::TQCString( const char *str )
TQCString str( "helloworld", 6 ); // assigns "hello" to str
\endcode
- If \a str tqcontains a 0 byte within the first \a maxsize bytes, the
+ If \a str contains a 0 byte within the first \a maxsize bytes, the
resulting TQCString will be terminated by this 0. If \a str is 0 a
null string is created.
@@ -736,7 +736,7 @@ TQCString &TQCString::operator=(const QByteArray &ba) {
\note However, if you ask for the data pointer of a null TQCString
by calling data(), then because the internal representation of the
- null TQCString is shared, it will be detached and tqreplaced with a
+ null TQCString is shared, it will be detached and replaced with a
non-shared, empty representation, a non-null data pointer will be
returned, and subsequent calls to isNull() will return false. But
if you ask for the data pointer of a null TQCString by calling
@@ -755,12 +755,12 @@ TQCString &TQCString::operator=(const QByteArray &ba) {
or right padded with characters using leftJustify() and
rightJustify(). Characters, strings and regular expressions can be
searched for using find() and findRev(), and counted using
- tqcontains().
+ contains().
Strings and characters can be inserted with insert() and appended
with append(). A string can be prepended with prepend().
Characters can be removed from the string with remove() and
- tqreplaced with tqreplace().
+ replaced with replace().
Portions of a string can be extracted using left(), right() and
mid(). Whitespace can be removed using stripWhiteSpace() and
@@ -784,7 +784,7 @@ TQCString &TQCString::operator=(const QByteArray &ba) {
Case insensitive operations and comparisons will be accurate if
both strings contain only ASCII characters. (If \c $LC_CTYPE is
set, most Unix systems do "the right thing".) Functions that this
- affects include tqcontains(), find(), findRev(), \l operator<(), \l
+ affects include contains(), find(), findRev(), \l operator<(), \l
operator<=(), \l operator>(), \l operator>=(), lower() and
upper().
@@ -867,37 +867,37 @@ TQCString &TQCString::operator=(const QByteArray &ba) {
*/
/*!
- \fn TQCString& TQCString::tqreplace(uint index, uint len, const char *c)
+ \fn TQCString& TQCString::replace(uint index, uint len, const char *c)
\internal
*/
/*!
- \fn TQCString& TQCString::tqreplace(char c, const TQCString &after)
+ \fn TQCString& TQCString::replace(char c, const TQCString &after)
\internal
*/
/*!
- \fn TQCString& TQCString::tqreplace(char c, const char *after)
+ \fn TQCString& TQCString::replace(char c, const char *after)
\internal
*/
/*!
- \fn TQCString& TQCString::tqreplace(const TQCString &b, const TQCString &a)
+ \fn TQCString& TQCString::replace(const TQCString &b, const TQCString &a)
\internal
*/
/*!
- \fn TQCString& TQCString::tqreplace(const char *b, const char *a)
+ \fn TQCString& TQCString::replace(const char *b, const char *a)
\internal
*/
/*!
- \fn TQCString& TQCString::tqreplace(char b, char a)
+ \fn TQCString& TQCString::replace(char b, char a)
\internal
*/
@@ -949,7 +949,7 @@ TQCString &TQCString::operator=(const QByteArray &ba) {
Example:
\snippet doc/src/snippets/code/src_qt3support_tools_q3cstring.cpp 0
- If \a str tqcontains a 0 byte within the first \a maxsize bytes, the
+ If \a str contains a 0 byte within the first \a maxsize bytes, the
resulting TQCString will be terminated by this 0. If \a str is 0 a
null string is created.
@@ -989,7 +989,7 @@ TQCString &TQCString::operator=(const QByteArray &ba) {
\note If you ask for the data pointer of a null TQCString by
calling data(), then because the internal representation of the
- null TQCString is shared, it will be detached and tqreplaced with a
+ null TQCString is shared, it will be detached and replaced with a
non-shared, empty representation, a non-null data pointer will be
returned, and subsequent calls to isNull() will return false. But
if you ask for the data pointer of a null TQCString by calling
@@ -1093,7 +1093,7 @@ TQCString &TQCString::sprintf(const char *format, ...)
/*!
Returns a string of length \a width (plus one for the terminating
- '\0') that tqcontains this string padded with the \a fill character.
+ '\0') that contains this string padded with the \a fill character.
If the length of the string exceeds \a width and \a truncate is
false (the default), then the returned string is a copy of the
@@ -1126,7 +1126,7 @@ TQCString TQCString::leftJustify(uint width, char fill, bool truncate) const
/*!
Returns a string of length \a width (plus one for the terminating
- '\0') that tqcontains zero or more of the \a fill character followed
+ '\0') that contains zero or more of the \a fill character followed
by this string.
If the length of the string exceeds \a width and \a truncate is
@@ -1829,7 +1829,7 @@ TQDataStream &operator>>( TQDataStream &s, TQCString &str )
\sa \link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqcontains( char c, bool cs ) const
+int TQCString::contains( char c, bool cs ) const
{
int count = 0;
const char *d = data();
@@ -1859,20 +1859,20 @@ int TQCString::tqcontains( char c, bool cs ) const
\code
TQString s = "banana and panama";
TQRegExp r = TQRegExp( "a[nm]a", TRUE, FALSE );
- s.tqcontains( r ); // 4 matches
+ s.contains( r ); // 4 matches
\endcode
- \sa tqfind(), tqfindRev()
+ \sa find(), findRev()
\warning If you want to apply this function repeatedly to the same
string it is more efficient to convert the string to a TQString and
apply the function to that.
*/
-int TQCString::tqcontains( const QRegExp &rx ) const
+int TQCString::contains( const QRegExp &rx ) const
{
TQString d = TQString::fromAscii( data() );
- return d.tqcontains( rx );
+ return d.contains( rx );
}
/*!
@@ -1884,19 +1884,19 @@ int TQCString::tqcontains( const QRegExp &rx ) const
if \a cs if FALSE.
This function counts overlapping substrings, for example, "banana"
- tqcontains two occurrences of "ana".
+ contains two occurrences of "ana".
- \sa tqfindRev()
+ \sa findRev()
\link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqcontains( const char *str, bool cs ) const
+int TQCString::contains( const char *str, bool cs ) const
{
int count = 0;
int i = -1;
uint l = length();
- // use tqfind for the faster hashing algorithm
- while ( ( i = tqfind ( str, i+1, cs, l ) ) != -1 )
+ // use find for the faster hashing algorithm
+ while ( ( i = find ( str, i+1, cs, l ) ) != -1 )
count++;
return count;
}
@@ -1918,7 +1918,7 @@ int TQCString::tqcontains( const char *str, bool cs ) const
\sa \link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqfind( char c, int index, bool cs ) const
+int TQCString::find( char c, int index, bool cs ) const
{
if ( (uint)index >= size() ) // index outside string
return -1;
@@ -1951,9 +1951,9 @@ int TQCString::tqfind( char c, int index, bool cs ) const
\sa \link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqfind( const char *str, int index, bool cs ) const
+int TQCString::find( const char *str, int index, bool cs ) const
{
- return tqfind( str, index, cs, length() );
+ return find( str, index, cs, length() );
}
#ifndef TQT_NO_REGEXP_CAPTURE
@@ -1971,14 +1971,14 @@ int TQCString::tqfind( const char *str, int index, bool cs ) const
apply the function to that.
*/
-int TQCString::tqfind( const QRegExp& rx, int index ) const
+int TQCString::find( const QRegExp& rx, int index ) const
{
TQString d = TQString::fromAscii( data() );
- return d.tqfind( rx, index );
+ return d.find( rx, index );
}
#endif // TQT_NO_REGEXP_CAPTURE
-int TQCString::tqfind( const char *str, int index, bool cs, uint l ) const
+int TQCString::find( const char *str, int index, bool cs, uint l ) const
{
if ( (uint)index >= size() )
return -1;
@@ -1991,10 +1991,10 @@ int TQCString::tqfind( const char *str, int index, bool cs, uint l ) const
return -1;
if ( sl == 1 )
- return tqfind( *str, index, cs );
+ return find( *str, index, cs );
/*
- See TQString::tqfind() for details.
+ See TQString::find() for details.
*/
const char* needle = str;
const char* haystack = data() + index;
@@ -2050,13 +2050,13 @@ int TQCString::tqfind( const char *str, int index, bool cs, uint l ) const
Example:
\code
TQString s = "banana";
- s.tqreplace( TQRegExp("a.*a"), "" ); // becomes "b"
+ s.replace( TQRegExp("a.*a"), "" ); // becomes "b"
s = "banana";
- s.tqreplace( TQRegExp("^[bn]a"), "X" ); // becomes "Xnana"
+ s.replace( TQRegExp("^[bn]a"), "X" ); // becomes "Xnana"
s = "banana";
- s.tqreplace( TQRegExp("^[bn]a"), "" ); // becomes "nana"
+ s.replace( TQRegExp("^[bn]a"), "" ); // becomes "nana"
\endcode
\warning If you want to apply this function repeatedly to the same
@@ -2064,11 +2064,11 @@ int TQCString::tqfind( const char *str, int index, bool cs, uint l ) const
apply the function to that.
*/
-TQCString &TQCString::tqreplace( const QRegExp &rx, const char *str )
+TQCString &TQCString::replace( const QRegExp &rx, const char *str )
{
TQString d = TQString::fromAscii( data() );
TQString r = TQString::fromAscii( str );
- d.tqreplace( rx, r );
+ d.replace( rx, r );
setStr( d.ascii() );
return *this;
}
@@ -2181,13 +2181,13 @@ QT_END_NAMESPACE
can be filled with a character using fill(). Strings can be left
or right padded with characters using leftJustify() and
rightJustify(). Characters, strings and regular expressions can be
- searched for using tqfind() and tqfindRev(), and counted using
- tqcontains().
+ searched for using find() and findRev(), and counted using
+ contains().
Strings and characters can be inserted with insert() and appended
with append(). A string can be prepended with prepend().
Characters can be removed from the string with remove() and
- tqreplaced with tqreplace().
+ replaced with replace().
Portions of a string can be extracted using left(), right() and
mid(). Whitespace can be removed using stripWhiteSpace() and
@@ -2212,7 +2212,7 @@ QT_END_NAMESPACE
Case insensitive operations and comparisons will be accurate if
both strings contain only ASCII characters. (If \c $LC_CTYPE is
set, most Unix systems do "the right thing".) Functions that this
- affects include tqcontains(), tqfind(), tqfindRev(), \l operator<(), \l
+ affects include contains(), find(), findRev(), \l operator<(), \l
operator<=(), \l operator>(), \l operator>=(), lower() and
upper().
@@ -2286,7 +2286,7 @@ TQCString::TQCString( const char *str )
TQCString str( "helloworld", 6 ); // assigns "hello" to str
\endcode
- If \a str tqcontains a 0 byte within the first \a maxsize bytes, the
+ If \a str contains a 0 byte within the first \a maxsize bytes, the
resulting TQCString will be terminated by this 0. If \a str is 0 a
null string is created.
@@ -2515,7 +2515,7 @@ bool TQCString::fill( char c, int len )
\sa \link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqfind( char c, int index, bool cs ) const
+int TQCString::find( char c, int index, bool cs ) const
{
if ( (uint)index >= size() ) // index outside string
return -1;
@@ -2553,12 +2553,12 @@ int TQCString::tqfind( char c, int index, bool cs ) const
\sa \link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqfind( const char *str, int index, bool cs ) const
+int TQCString::find( const char *str, int index, bool cs ) const
{
- return tqfind( str, index, cs, length() );
+ return find( str, index, cs, length() );
}
-int TQCString::tqfind( const char *str, int index, bool cs, uint l ) const
+int TQCString::find( const char *str, int index, bool cs, uint l ) const
{
if ( (uint)index >= size() )
return -1;
@@ -2571,10 +2571,10 @@ int TQCString::tqfind( const char *str, int index, bool cs, uint l ) const
return -1;
if ( sl == 1 )
- return tqfind( *str, index, cs );
+ return find( *str, index, cs );
/*
- See TQString::tqfind() for details.
+ See TQString::find() for details.
*/
const char* needle = str;
const char* haystack = data() + index;
@@ -2633,7 +2633,7 @@ int TQCString::tqfind( const char *str, int index, bool cs, uint l ) const
\sa \link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqfindRev( char c, int index, bool cs ) const
+int TQCString::findRev( char c, int index, bool cs ) const
{
register const char *b = data();
register const char *d;
@@ -2668,10 +2668,10 @@ int TQCString::tqfindRev( char c, int index, bool cs ) const
\sa \link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqfindRev( const char *str, int index, bool cs ) const
+int TQCString::findRev( const char *str, int index, bool cs ) const
{
/*
- See TQString::tqfind() for explanations.
+ See TQString::find() for explanations.
*/
const uint sl = tqstrlen( str );
const uint l = length();
@@ -2684,7 +2684,7 @@ int TQCString::tqfindRev( const char *str, int index, bool cs ) const
index = delta;
if ( sl == 1 )
- return tqfindRev( *str, index, cs );
+ return findRev( *str, index, cs );
const char* needle = str;
const char* haystack = data() + index;
@@ -2735,7 +2735,7 @@ int TQCString::tqfindRev( const char *str, int index, bool cs ) const
\sa \link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqcontains( char c, bool cs ) const
+int TQCString::contains( char c, bool cs ) const
{
int count = 0;
const char *d = data();
@@ -2765,25 +2765,25 @@ int TQCString::tqcontains( char c, bool cs ) const
if \a cs if FALSE.
This function counts overlapping substrings, for example, "banana"
- tqcontains two occurrences of "ana".
+ contains two occurrences of "ana".
- \sa tqfindRev()
+ \sa findRev()
\link #asciinotion Note on character comparisons \endlink
*/
-int TQCString::tqcontains( const char *str, bool cs ) const
+int TQCString::contains( const char *str, bool cs ) const
{
int count = 0;
int i = -1;
uint l = length();
- // use tqfind for the faster hashing algorithm
- while ( ( i = tqfind ( str, i+1, cs, l ) ) != -1 )
+ // use find for the faster hashing algorithm
+ while ( ( i = find ( str, i+1, cs, l ) ) != -1 )
count++;
return count;
}
/*!
- Returns a substring that tqcontains the \a len leftmost characters
+ Returns a substring that contains the \a len leftmost characters
of the string.
The whole string is returned if \a len exceeds the length of the
@@ -2814,7 +2814,7 @@ TQCString TQCString::left( uint len ) const
}
/*!
- Returns a substring that tqcontains the \a len rightmost characters
+ Returns a substring that contains the \a len rightmost characters
of the string.
The whole string is returned if \a len exceeds the length of the
@@ -2844,7 +2844,7 @@ TQCString TQCString::right( uint len ) const
}
/*!
- Returns a substring that tqcontains at most \a len characters from
+ Returns a substring that contains at most \a len characters from
this string, starting at position \a index.
Returns a null string if the string is empty or if \a index is out
@@ -2879,7 +2879,7 @@ TQCString TQCString::mid( uint index, uint len ) const
/*!
Returns a string of length \a width (plus one for the terminating
- '\0') that tqcontains this string padded with the \a fill character.
+ '\0') that contains this string padded with the \a fill character.
If the length of the string exceeds \a width and \a truncate is
FALSE (the default), then the returned string is a copy of the
@@ -2916,7 +2916,7 @@ TQCString TQCString::leftJustify( uint width, char fill, bool truncate ) const
/*!
Returns a string of length \a width (plus one for the terminating
- '\0') that tqcontains zero or more of the \a fill character followed
+ '\0') that contains zero or more of the \a fill character followed
by this string.
If the length of the string exceeds \a width and \a truncate is
@@ -3053,7 +3053,7 @@ TQCString TQCString::stripWhiteSpace() const
/*!
Returns a new string that has white space removed from the start
- and the end, plus any sequence of internal white space tqreplaced
+ and the end, plus any sequence of internal white space replaced
with a single space (ASCII 32).
White space means the decimal ASCII codes 9, 10, 11, 12, 13 and
@@ -3148,7 +3148,7 @@ TQCString &TQCString::insert( uint index, const char *s )
s.insert( 3, '!'); // s == "Yes!"
\endcode
- \sa remove(), tqreplace()
+ \sa remove(), replace()
*/
TQCString &TQCString::insert( uint index, char c ) // insert char
@@ -3180,7 +3180,7 @@ TQCString &TQCString::insert( uint index, char c ) // insert char
s.remove( 1, 4 ); // s == "Meal"
\endcode
- \sa insert(), tqreplace()
+ \sa insert(), replace()
*/
TQCString &TQCString::remove( uint index, uint len )
@@ -3206,17 +3206,17 @@ TQCString &TQCString::remove( uint index, uint len )
If \a index is out of range, nothing is removed and \a str is
appended at the end of the string. If \a index is valid, but \a
index + \a len is larger than the length of the string, \a str
- tqreplaces the rest of the string from position \a index.
+ replaces the rest of the string from position \a index.
\code
TQCString s = "Say yes!";
- s.tqreplace( 4, 3, "NO" ); // s == "Say NO!"
+ s.replace( 4, 3, "NO" ); // s == "Say NO!"
\endcode
\sa insert(), remove()
*/
-TQCString &TQCString::tqreplace( uint index, uint len, const char *str )
+TQCString &TQCString::replace( uint index, uint len, const char *str )
{
remove( index, len );
insert( index, str );
@@ -3232,16 +3232,16 @@ TQCString &TQCString::tqreplace( uint index, uint len, const char *str )
Example:
\code
TQCString s = "a,b,c";
- s.tqreplace( ',', " or " );
+ s.replace( ',', " or " );
// s == "a or b or c"
\endcode
*/
-TQCString &TQCString::tqreplace( char c, const char *after )
+TQCString &TQCString::replace( char c, const char *after )
{
char str[2];
str[0] = c;
str[1] = '\0';
- return tqreplace( str, after );
+ return replace( str, after );
}
/*! \overload
@@ -3252,12 +3252,12 @@ TQCString &TQCString::tqreplace( char c, const char *after )
Example:
\code
TQCString s = "Greek is Greek";
- s.tqreplace( "Greek", "English" );
+ s.replace( "Greek", "English" );
// s == "English is English"
\endcode
*/
-TQCString &TQCString::tqreplace( const char *before, const char *after )
+TQCString &TQCString::replace( const char *before, const char *after )
{
if ( before == after || isNull() )
return *this;
@@ -3272,7 +3272,7 @@ TQCString &TQCString::tqreplace( const char *before, const char *after )
if ( bl == al ) {
if ( bl ) {
- while( (index = tqfind( before, index, TRUE, len ) ) != -1 ) {
+ while( (index = find( before, index, TRUE, len ) ) != -1 ) {
memcpy( d+index, after, al );
index += bl;
}
@@ -3281,7 +3281,7 @@ TQCString &TQCString::tqreplace( const char *before, const char *after )
uint to = 0;
uint movestart = 0;
uint num = 0;
- while( (index = tqfind( before, index, TRUE, len ) ) != -1 ) {
+ while( (index = find( before, index, TRUE, len ) ) != -1 ) {
if ( num ) {
int msize = index - movestart;
if ( msize > 0 ) {
@@ -3312,7 +3312,7 @@ TQCString &TQCString::tqreplace( const char *before, const char *after )
uint indices[4096];
uint pos = 0;
while( pos < 4095 ) {
- index = tqfind(before, index, TRUE, len);
+ index = find(before, index, TRUE, len);
if ( index == -1 )
break;
indices[pos++] = index;
@@ -3324,7 +3324,7 @@ TQCString &TQCString::tqreplace( const char *before, const char *after )
if ( !pos )
break;
- // we have a table of tqreplacement positions, use them for fast replacing
+ // we have a table of replacement positions, use them for fast replacing
int adjust = pos*(al-bl);
// index has to be adjusted in case we get back into the loop above.
if ( index != -1 )
@@ -3357,7 +3357,7 @@ TQCString &TQCString::tqreplace( const char *before, const char *after )
Replaces every occurrence of \a c1 with the char \a c2.
Returns a reference to the string.
*/
-TQCString &TQCString::tqreplace( char c1, char c2 )
+TQCString &TQCString::replace( char c1, char c2 )
{
detach();
uint i = 0;
@@ -3387,10 +3387,10 @@ TQCString &TQCString::tqreplace( char c1, char c2 )
apply the function to that.
*/
-int TQCString::tqfind( const TQRegExp& rx, int index ) const
+int TQCString::find( const TQRegExp& rx, int index ) const
{
TQString d = TQString::fromAscii( data() );
- return d.tqfind( rx, index );
+ return d.find( rx, index );
}
/*!
@@ -3407,10 +3407,10 @@ int TQCString::tqfind( const TQRegExp& rx, int index ) const
apply the function to that.
*/
-int TQCString::tqfindRev( const TQRegExp& rx, int index ) const
+int TQCString::findRev( const TQRegExp& rx, int index ) const
{
TQString d = TQString::fromAscii( data() );
- return d.tqfindRev( rx, index );
+ return d.findRev( rx, index );
}
/*!
@@ -3422,20 +3422,20 @@ int TQCString::tqfindRev( const TQRegExp& rx, int index ) const
\code
TQString s = "banana and panama";
TQRegExp r = TQRegExp( "a[nm]a", TRUE, FALSE );
- s.tqcontains( r ); // 4 matches
+ s.contains( r ); // 4 matches
\endcode
- \sa tqfind(), tqfindRev()
+ \sa find(), findRev()
\warning If you want to apply this function repeatedly to the same
string it is more efficient to convert the string to a TQString and
apply the function to that.
*/
-int TQCString::tqcontains( const TQRegExp &rx ) const
+int TQCString::contains( const TQRegExp &rx ) const
{
TQString d = TQString::fromAscii( data() );
- return d.tqcontains( rx );
+ return d.contains( rx );
}
@@ -3448,13 +3448,13 @@ int TQCString::tqcontains( const TQRegExp &rx ) const
Example:
\code
TQString s = "banana";
- s.tqreplace( TQRegExp("a.*a"), "" ); // becomes "b"
+ s.replace( TQRegExp("a.*a"), "" ); // becomes "b"
s = "banana";
- s.tqreplace( TQRegExp("^[bn]a"), "X" ); // becomes "Xnana"
+ s.replace( TQRegExp("^[bn]a"), "X" ); // becomes "Xnana"
s = "banana";
- s.tqreplace( TQRegExp("^[bn]a"), "" ); // becomes "nana"
+ s.replace( TQRegExp("^[bn]a"), "" ); // becomes "nana"
\endcode
\warning If you want to apply this function repeatedly to the same
@@ -3462,11 +3462,11 @@ int TQCString::tqcontains( const TQRegExp &rx ) const
apply the function to that.
*/
-TQCString &TQCString::tqreplace( const TQRegExp &rx, const char *str )
+TQCString &TQCString::replace( const TQRegExp &rx, const char *str )
{
TQString d = TQString::fromAscii( data() );
TQString r = TQString::fromAscii( str );
- d.tqreplace( rx, r );
+ d.replace( rx, r );
setStr( d.ascii() );
return *this;
}
diff --git a/tqtinterface/qt4/src/tools/tqcstring.h b/tqtinterface/qt4/src/tools/tqcstring.h
index 8568713..2b6a28d 100644
--- a/tqtinterface/qt4/src/tools/tqcstring.h
+++ b/tqtinterface/qt4/src/tools/tqcstring.h
@@ -147,16 +147,16 @@ public:
inline QByteArray upper() const { return toUpper(); }
inline QByteArray stripWhiteSpace() const { return trimmed(); }
inline QByteArray simplifyWhiteSpace() const { return simplified(); }
- inline int tqfind(int c, int from = 0) const { return indexOf(c, from); }
- inline int tqfind(char c, int from = 0) const { return indexOf(c, from); }
- inline int tqfind(const char *c, int from = 0) const { return indexOf(c, from); }
- inline int tqfind(const QByteArray &ba, int from = 0) const { return indexOf(ba, from); }
- inline int tqfindRev(char c, int from = -1) const { return lastIndexOf(c, from); }
- inline int tqfindRev(const char *c, int from = -1) const { return lastIndexOf(c, from); }
- inline int tqfindRev(const QByteArray &ba, int from = -1) const { return lastIndexOf(ba, from); }
+ inline int find(int c, int from = 0) const { return indexOf(c, from); }
+ inline int find(char c, int from = 0) const { return indexOf(c, from); }
+ inline int find(const char *c, int from = 0) const { return indexOf(c, from); }
+ inline int find(const QByteArray &ba, int from = 0) const { return indexOf(ba, from); }
+ inline int findRev(char c, int from = -1) const { return lastIndexOf(c, from); }
+ inline int findRev(const char *c, int from = -1) const { return lastIndexOf(c, from); }
+ inline int findRev(const QByteArray &ba, int from = -1) const { return lastIndexOf(ba, from); }
#ifndef QT_NO_CAST_TO_ASCII
- inline int tqfind(const QString &s, int from = 0) const;
- inline int tqfindRev(const QString &s, int from = -1) const;
+ inline int find(const QString &s, int from = 0) const;
+ inline int findRev(const QString &s, int from = -1) const;
#endif
inline TQByteArray copy() const { return TQByteArray(*this); }
inline QByteRef tqat( int i ) {
@@ -311,14 +311,14 @@ public:
TQCString &append(const char *c) { QByteArray::append(c); return *this; }
TQCString &prepend(const char *c) { QByteArray::prepend(c); return *this; }
TQCString &remove(uint index, uint len) { QByteArray::remove(index, len); return *this; }
- TQCString &tqreplace(uint index, uint len, const char *c)
+ TQCString &replace(uint index, uint len, const char *c)
{ TQByteArray::replace(index, len, c); return *this; }
- TQCString &tqreplace(char c, const TQCString &after) { return tqreplace(c, after.constData()); }
- TQCString &tqreplace(char c, const char *after) { QByteArray::replace(c, after); return *this; }
- TQCString &tqreplace(const TQCString &b, const TQCString &a)
- { return tqreplace(b.constData(), a.constData()); }
- TQCString &tqreplace(const char *b, const char *a) { QByteArray::replace(b, a); return *this; }
- TQCString &tqreplace(char b, char a) { QByteArray::replace(b, a); return *this; }
+ TQCString &replace(char c, const TQCString &after) { return TQByteArray::replace(c, after.constData()); }
+ TQCString &replace(char c, const char *after) { QByteArray::replace(c, after); return *this; }
+ TQCString &replace(const TQCString &b, const TQCString &a)
+ { return TQByteArray::replace(b.constData(), a.constData()); }
+ TQCString &replace(const char *b, const char *a) { QByteArray::replace(b, a); return *this; }
+ TQCString &replace(char b, char a) { QByteArray::replace(b, a); return *this; }
short toShort(bool *ok=0) const;
ushort toUShort(bool *ok=0) const;
@@ -341,20 +341,20 @@ public:
bool setExpand(uint index, char c);
- int tqcontains( char c, bool cs=TRUE ) const;
- int tqcontains( const char *str, bool cs=TRUE ) const;
+ int contains( char c, bool cs=TRUE ) const;
+ int contains( const char *str, bool cs=TRUE ) const;
#ifndef TQT_NO_REGEXP
- int tqcontains( const QRegExp & ) const;
+ int contains( const QRegExp & ) const;
#endif
- int tqfind( char c, int index=0, bool cs=TRUE ) const;
- int tqfind( const char *str, int index=0, bool cs=TRUE ) const;
+ int find( char c, int index=0, bool cs=TRUE ) const;
+ int find( const char *str, int index=0, bool cs=TRUE ) const;
#ifndef TQT_NO_REGEXP
- int tqfind( const QRegExp &re, int index=0 ) const;
+ int find( const QRegExp &re, int index=0 ) const;
#endif
#ifndef TQT_NO_REGEXP
- TQCString &tqreplace( const QRegExp &, const char * );
+ TQCString &replace( const QRegExp &, const char * );
#endif
// inline const char * tqstringFromPos( int index ) { const char & ref = (*this)[index]; return &ref; }
@@ -369,7 +369,7 @@ public:
TQCString &operator+=( const TQCString tqcs );
private:
- int tqfind( const char *str, int index, bool cs, uint l ) const;
+ int find( const char *str, int index, bool cs, uint l ) const;
};
inline TQCString::operator const char *() const
@@ -559,20 +559,20 @@ public:
TQCString &sprintf( const char *format, ... );
- int tqfind( char c, int index=0, bool cs=TRUE ) const;
- int tqfind( const char *str, int index=0, bool cs=TRUE ) const;
+ int find( char c, int index=0, bool cs=TRUE ) const;
+ int find( const char *str, int index=0, bool cs=TRUE ) const;
#ifndef TQT_NO_REGEXP
- int tqfind( const TQRegExp &, int index=0 ) const;
+ int find( const TQRegExp &, int index=0 ) const;
#endif
- int tqfindRev( char c, int index=-1, bool cs=TRUE) const;
- int tqfindRev( const char *str, int index=-1, bool cs=TRUE) const;
+ int findRev( char c, int index=-1, bool cs=TRUE) const;
+ int findRev( const char *str, int index=-1, bool cs=TRUE) const;
#ifndef TQT_NO_REGEXP_CAPTURE
- int tqfindRev( const TQRegExp &, int index=-1 ) const;
+ int findRev( const TQRegExp &, int index=-1 ) const;
#endif
- int tqcontains( char c, bool cs=TRUE ) const;
- int tqcontains( const char *str, bool cs=TRUE ) const;
+ int contains( char c, bool cs=TRUE ) const;
+ int contains( const char *str, bool cs=TRUE ) const;
#ifndef TQT_NO_REGEXP
- int tqcontains( const TQRegExp & ) const;
+ int contains( const TQRegExp & ) const;
#endif
TQCString left( uint len ) const;
TQCString right( uint len ) const;
@@ -592,13 +592,13 @@ public:
TQCString &append( const char * );
TQCString &prepend( const char * );
TQCString &remove( uint index, uint len );
- TQCString &tqreplace( uint index, uint len, const char * );
+ TQCString &replace( uint index, uint len, const char * );
#ifndef TQT_NO_REGEXP
- TQCString &tqreplace( const TQRegExp &, const char * );
+ TQCString &replace( const TQRegExp &, const char * );
#endif
- TQCString &tqreplace( char c, const char *after );
- TQCString &tqreplace( const char *, const char * );
- TQCString &tqreplace( char, char );
+ TQCString &replace( char c, const char *after );
+ TQCString &replace( const char *, const char * );
+ TQCString &replace( char, char );
short toShort( bool *ok=0 ) const;
ushort toUShort( bool *ok=0 ) const;
@@ -630,7 +630,7 @@ public:
TQCString &operator+=( const QByteArray qba );
TQCString &operator+=( const TQCString tqcs );
private:
- int tqfind( const char *str, int index, bool cs, uint l ) const;
+ int find( const char *str, int index, bool cs, uint l ) const;
};
/*****************************************************************************
diff --git a/tqtinterface/qt4/src/tools/tqdatetime.cpp b/tqtinterface/qt4/src/tools/tqdatetime.cpp
index 4f95dd1..2b28868 100644
--- a/tqtinterface/qt4/src/tools/tqdatetime.cpp
+++ b/tqtinterface/qt4/src/tools/tqdatetime.cpp
@@ -161,7 +161,7 @@ static TQString fmtDateTime( const TQString& f, const TQTime* dt = 0, const TQDa
if ( dd && !dd->isValid() )
return TQString::null;
- bool ap = ( f.tqcontains( "AP" ) || f.tqcontains( "ap" ) );
+ bool ap = ( f.contains( "AP" ) || f.contains( "ap" ) );
TQString buf;
TQString frm;
@@ -213,7 +213,7 @@ static TQString fmtDateTime( const TQString& f, const TQTime* dt = 0, const TQDa
\ingroup time
\mainclass
- A TQDate object tqcontains a calendar date, i.e. year, month, and day
+ A TQDate object contains a calendar date, i.e. year, month, and day
numbers, in the modern Western (Gregorian) calendar. It can read
the current date from the system clock. It provides functions for
comparing dates and for manipulating dates, e.g. by adding a
@@ -270,7 +270,7 @@ static TQString fmtDateTime( const TQString& f, const TQTime* dt = 0, const TQDa
\enum TQt::TimeSpec
\value LocalTime Locale dependent time (Timezones and Daylight Savings Time)
- \value UTC Coordinated Universal Time, tqreplaces Greenwich Time
+ \value UTC Coordinated Universal Time, replaces Greenwich Time
*/
/*!
@@ -1101,8 +1101,8 @@ TQDate TQDate::fromString( const TQString& s, TQt::DateFormat f )
This will fail gracefully if the input string doesn't
contain any space.
*/
- int monthPos = s.tqfind( ' ' ) + 1;
- int dayPos = s.tqfind( ' ', monthPos ) + 1;
+ int monthPos = s.find( ' ' ) + 1;
+ int dayPos = s.find( ' ', monthPos ) + 1;
TQString monthName( s.mid(monthPos, dayPos - monthPos - 1) );
int month = -1;
@@ -1252,7 +1252,7 @@ void TQDate::julianToGregorian( uint jd, int &y, int &m, int &d )
\ingroup time
\mainclass
- A TQTime object tqcontains a clock time, i.e. the number of hours,
+ A TQTime object contains a clock time, i.e. the number of hours,
minutes, seconds, and milliseconds since midnight. It can read the
current time from the system clock and measure a span of elapsed
time. It provides functions for comparing times and for
@@ -1265,7 +1265,7 @@ void TQDate::julianToGregorian( uint jd, int &y, int &m, int &d )
A TQTime object is typically created either by giving the number of
hours, minutes, seconds, and milliseconds explicitly, or by using
the static function currentTime(), which creates a TQTime object
- that tqcontains the system's clock time. Note that the accuracy
+ that contains the system's clock time. Note that the accuracy
depends on the accuracy of the underlying operating system; not
all systems provide 1-millisecond accuracy.
@@ -1458,9 +1458,9 @@ TQString TQTime::toString( TQt::DateFormat f ) const
\row \i z \i the milliseconds without leading zeroes (0..999)
\row \i zzz \i the milliseconds with leading zeroes (000..999)
\row \i AP
- \i use AM/PM display. \e AP will be tqreplaced by either "AM" or "PM".
+ \i use AM/PM display. \e AP will be replaced by either "AM" or "PM".
\row \i ap
- \i use am/pm display. \e ap will be tqreplaced by either "am" or "pm".
+ \i use am/pm display. \e ap will be replaced by either "am" or "pm".
\endtable
All other input characters will be ignored.
@@ -1873,7 +1873,7 @@ int TQTime::elapsed() const
\ingroup time
\mainclass
- A TQDateTime object tqcontains a calendar date and a clock time (a
+ A TQDateTime object contains a calendar date and a clock time (a
"datetime"). It is a combination of the TQDate and TQTime classes.
It can read the current datetime from the system clock. It
provides functions for comparing datetimes and for manipulating a
@@ -2200,9 +2200,9 @@ TQString TQDateTime::toString( TQt::DateFormat f ) const
\row \i z \i the milliseconds without leading zeroes (0..999)
\row \i zzz \i the milliseconds with leading zeroes (000..999)
\row \i AP
- \i use AM/PM display. \e AP will be tqreplaced by either "AM" or "PM".
+ \i use AM/PM display. \e AP will be replaced by either "AM" or "PM".
\row \i ap
- \i use am/pm display. \e ap will be tqreplaced by either "am" or "pm".
+ \i use am/pm display. \e ap will be replaced by either "am" or "pm".
\endtable
All other input characters will be ignored.
@@ -2465,7 +2465,7 @@ TQDateTime TQDateTime::fromString( const TQString& s, TQt::DateFormat f )
}
#if !defined(TQT_NO_REGEXP) && !defined(TQT_NO_TEXTDATE)
else if ( f == TQt::TextDate ) {
- const int firstSpace = s.tqfind(' ');
+ const int firstSpace = s.find(' ');
TQString monthName( s.mid( firstSpace + 1, 3 ) );
int month = -1;
// Assume that English monthnames are the default
@@ -2497,7 +2497,7 @@ TQDateTime TQDateTime::fromString( const TQString& s, TQt::DateFormat f )
TQDate date( year, month, day );
TQTime time;
int hour, minute, second;
- int pivot = s.tqfind( TQRegExp(TQString::tqfromLatin1("[0-9][0-9]:[0-9][0-9]:[0-9][0-9]")) );
+ int pivot = s.find( TQRegExp(TQString::tqfromLatin1("[0-9][0-9]:[0-9][0-9]:[0-9][0-9]")) );
if ( pivot != -1 ) {
hour = s.mid( pivot, 2 ).toInt();
minute = s.mid( pivot+3, 2 ).toInt();
diff --git a/tqtinterface/qt4/src/tools/tqdict.h b/tqtinterface/qt4/src/tools/tqdict.h
index 1dc8a48..b9fab7f 100644
--- a/tqtinterface/qt4/src/tools/tqdict.h
+++ b/tqtinterface/qt4/src/tools/tqdict.h
@@ -66,11 +66,11 @@ public:
void insert( const TQString &k, const type *d )
{ TQGDict::look_string(k,(Item)d,1); }
- void tqreplace( const TQString &k, const type *d )
+ void replace( const TQString &k, const type *d )
{ TQGDict::look_string(k,(Item)d,2); }
bool remove( const TQString &k ) { return TQGDict::remove_string(k); }
type *take( const TQString &k ) { return (type *)TQGDict::take_string(k); }
- type *tqfind( const TQString &k ) const
+ type *find( const TQString &k ) const
{ return (type *)((TQGDict*)this)->TQGDict::look_string(k,0,0); }
type *operator[]( const TQString &k ) const
{ return (type *)((TQGDict*)this)->TQGDict::look_string(k,0,0); }
diff --git a/tqtinterface/qt4/src/tools/tqdir.cpp b/tqtinterface/qt4/src/tools/tqdir.cpp
index 796162d..99c9094 100644
--- a/tqtinterface/qt4/src/tools/tqdir.cpp
+++ b/tqtinterface/qt4/src/tools/tqdir.cpp
@@ -304,7 +304,7 @@ void TQDir::setPath( const TQString &path )
\fn TQString TQDir::path() const
Returns the path, this may contain symbolic links, but never
- tqcontains redundant ".", ".." or multiple separators.
+ contains redundant ".", ".." or multiple separators.
The returned path can be either absolute or relative (see
setPath()).
@@ -316,7 +316,7 @@ void TQDir::setPath( const TQString &path )
/*!
Returns the absolute path (a path that starts with "/" or with a
drive specification), which may contain symbolic links, but never
- tqcontains redundant ".", ".." or multiple separators.
+ contains redundant ".", ".." or multiple separators.
\sa setPath(), canonicalPath(), exists(), cleanDirPath(),
dirName(), absFilePath()
@@ -349,7 +349,7 @@ TQString TQDir::absPath() const
TQString TQDir::dirName() const
{
- int pos = dPath.tqfindRev( '/' );
+ int pos = dPath.findRev( '/' );
if ( pos == -1 )
return dPath;
return dPath.right( dPath.length() - pos - 1 );
@@ -465,7 +465,7 @@ TQString TQDir::convertSeparators( const TQString &pathName )
if ( n[i] == '/' )
n[i] = ':';
}
- if(n.tqcontains(':') && n.left(1) != ':')
+ if(n.contains(':') && n.left(1) != ':')
n.prepend(':');
#endif
return n;
@@ -508,7 +508,7 @@ bool TQDir::cd( const TQString &dirName, bool acceptAbsPath )
}
dPath += dirName;
- if ( dirName.tqfind('/') >= 0
+ if ( dirName.find('/') >= 0
|| old == TQString::tqfromLatin1(".")
|| dirName == TQString::tqfromLatin1("..") ) {
dPath = cleanDirPath( dPath );
@@ -1166,8 +1166,8 @@ TQValueList<TQRegExp> qt_makeFilterList( const TQString &filter )
return regExps;
TQChar sep( ';' );
- int i = filter.tqfind( sep, 0 );
- if ( i == -1 && filter.tqfind( ' ', 0 ) != -1 )
+ int i = filter.find( sep, 0 );
+ if ( i == -1 && filter.find( ' ', 0 ) != -1 )
sep = TQChar( ' ' );
TQStringList list = TQStringList::split( sep, filter );
@@ -1263,7 +1263,7 @@ TQString TQDir::cleanDirPath( const TQString &filePath )
upLevel = 0;
int len;
- while ( pos && (pos = name.tqfindRev('/', pos - 1)) != -1 ) {
+ while ( pos && (pos = name.findRev('/', pos - 1)) != -1 ) {
len = ePos - pos - 1;
if ( len == 2 && name.at(pos + 1) == '.'
&& name.at(pos + 2) == '.' ) {
diff --git a/tqtinterface/qt4/src/tools/tqfile_unix.cpp b/tqtinterface/qt4/src/tools/tqfile_unix.cpp
index b76a2aa..5e680d4 100644
--- a/tqtinterface/qt4/src/tools/tqfile_unix.cpp
+++ b/tqtinterface/qt4/src/tools/tqfile_unix.cpp
@@ -553,7 +553,7 @@ bool TQFile::at( Offset pos )
\warning We have experienced problems with some C libraries when a buffered
file is opened for both reading and writing. If a read operation takes place
- immediately after a write operation, the read buffer tqcontains garbage data.
+ immediately after a write operation, the read buffer contains garbage data.
Worse, the same garbage is written to the file. Calling flush() before
readBlock() solved this problem.
*/
diff --git a/tqtinterface/qt4/src/tools/tqfileinfo.cpp b/tqtinterface/qt4/src/tools/tqfileinfo.cpp
index fbc1278..0c937eb 100644
--- a/tqtinterface/qt4/src/tools/tqfileinfo.cpp
+++ b/tqtinterface/qt4/src/tools/tqfileinfo.cpp
@@ -128,8 +128,8 @@ extern bool qt_file_access( const TQString& fn, int t );
unfortunately not platform independent: on Unix, the rights of the owner of
the file are returned and on Windows the rights of the current user are
returned. This behavior might change in a future TQt version. If you want to
- tqfind the rights of the owner of the file, you should use the flags \c
- ReadOwner, \c WriteOwner and \c ExeOwner. If you want to tqfind out the
+ find the rights of the owner of the file, you should use the flags \c
+ ReadOwner, \c WriteOwner and \c ExeOwner. If you want to find out the
rights of the current user, you should use isReadable(), isWritable() and
isExecutable().
*/
@@ -435,7 +435,7 @@ TQString TQFileInfo::filePath() const
TQString TQFileInfo::baseName( bool complete ) const
{
TQString tmp = fileName();
- int pos = complete ? tmp.tqfindRev( '.' ) : tmp.tqfind( '.' );
+ int pos = complete ? tmp.findRev( '.' ) : tmp.find( '.' );
if ( pos == -1 )
return tmp;
else
@@ -466,7 +466,7 @@ TQString TQFileInfo::baseName( bool complete ) const
TQString TQFileInfo::extension( bool complete ) const
{
TQString s = fileName();
- int pos = complete ? s.tqfind( '.' ) : s.tqfindRev( '.' );
+ int pos = complete ? s.find( '.' ) : s.findRev( '.' );
if ( pos < 0 )
return TQString::tqfromLatin1( "" );
else
diff --git a/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp b/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp
index 3be62bf..4a08916 100644
--- a/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp
+++ b/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp
@@ -366,7 +366,7 @@ TQString TQFileInfo::dirPath( bool absPath ) const
s = absFilePath();
else
s = fn;
- int pos = s.tqfindRev( '/' );
+ int pos = s.findRev( '/' );
if ( pos == -1 ) {
return TQString::tqfromLatin1( "." );
} else {
@@ -391,7 +391,7 @@ TQString TQFileInfo::dirPath( bool absPath ) const
TQString TQFileInfo::fileName() const
{
- int p = fn.tqfindRev( '/' );
+ int p = fn.findRev( '/' );
if ( p == -1 ) {
return fn;
} else {
diff --git a/tqtinterface/qt4/src/tools/tqgarray.cpp b/tqtinterface/qt4/src/tools/tqgarray.cpp
index f0e89f9..ca26750 100644
--- a/tqtinterface/qt4/src/tools/tqgarray.cpp
+++ b/tqtinterface/qt4/src/tools/tqgarray.cpp
@@ -84,7 +84,7 @@
\internal
- It only tqcontains a reference count and member functions to increment and
+ It only contains a reference count and member functions to increment and
decrement it.
Shared classes normally have internal classes that inherit TQShared and
@@ -105,7 +105,7 @@
TQGArray is a strictly internal class that acts as base class for the
TQMemArray template array.
- It tqcontains an array of bytes and has no notion of an array element.
+ It contains an array of bytes and has no notion of an array element.
*/
@@ -364,7 +364,7 @@ TQGArray &TQGArray::assign( const TQGArray &a )
/*!
Shallow copy. Dereference the current array and references the
- array data \a d, which tqcontains \a len bytes.
+ array data \a d, which contains \a len bytes.
Returns a reference to this array.
Do not delete \a d later, because TQGArray takes care of that.
@@ -596,12 +596,12 @@ void TQGArray::resetRawData( const char *d, uint len )
This function only compares whole cells, not bytes.
*/
-int TQGArray::tqfind( const char *d, uint index, uint sz ) const
+int TQGArray::find( const char *d, uint index, uint sz ) const
{
index *= sz;
if ( index >= shd->len ) {
#if defined(TQT_CHECK_RANGE)
- qWarning( "TQGArray::tqfind: Index %d out of range", index/sz );
+ qWarning( "TQGArray::find: Index %d out of range", index/sz );
#endif
return -1;
}
@@ -657,7 +657,7 @@ int TQGArray::tqfind( const char *d, uint index, uint sz ) const
This function only compares whole cells, not bytes.
*/
-int TQGArray::tqcontains( const char *d, uint sz ) const
+int TQGArray::contains( const char *d, uint sz ) const
{
register uint i = shd->len;
int count = 0;
diff --git a/tqtinterface/qt4/src/tools/tqgarray.h b/tqtinterface/qt4/src/tools/tqgarray.h
index b581621..bfe1f86 100644
--- a/tqtinterface/qt4/src/tools/tqgarray.h
+++ b/tqtinterface/qt4/src/tools/tqgarray.h
@@ -99,8 +99,8 @@ protected:
TQGArray &setRawData( const char *d, uint len );
void resetRawData( const char *d, uint len );
- int tqfind( const char *d, uint index, uint sz ) const;
- int tqcontains( const char *d, uint sz ) const;
+ int find( const char *d, uint index, uint sz ) const;
+ int contains( const char *d, uint sz ) const;
void sort( uint sz );
int bsearch( const char *d, uint sz ) const;
diff --git a/tqtinterface/qt4/src/tools/tqgcache.cpp b/tqtinterface/qt4/src/tools/tqgcache.cpp
index 1d2d3bb..4e16ad7 100644
--- a/tqtinterface/qt4/src/tools/tqgcache.cpp
+++ b/tqtinterface/qt4/src/tools/tqgcache.cpp
@@ -106,7 +106,7 @@ public:
int inserts; // variables for statistics
int insertCosts;
int insertMisses;
- int tqfinds;
+ int finds;
int hits;
int hitCosts;
int dumps;
@@ -199,11 +199,11 @@ public:
void clear() { TQGDict::clear(); }
- TQCacheItem *tqfind_string(const TQString &key) const
+ TQCacheItem *find_string(const TQString &key) const
{ return (TQCacheItem*)((TQCDict*)this)->look_string(key, 0, 0); }
- TQCacheItem *tqfind_ascii(const char *key) const
+ TQCacheItem *find_ascii(const char *key) const
{ return (TQCacheItem*)((TQCDict*)this)->look_ascii(key, 0, 0); }
- TQCacheItem *tqfind_int(long key) const
+ TQCacheItem *find_int(long key) const
{ return (TQCacheItem*)((TQCDict*)this)->look_int(key, 0, 0); }
TQCacheItem *take_string(const TQString &key)
@@ -267,7 +267,7 @@ TQGCache::TQGCache( int maxCost, uint size, KeyType kt, bool caseSensitive,
lruList->inserts = 0;
lruList->insertCosts = 0;
lruList->insertMisses = 0;
- lruList->tqfinds = 0;
+ lruList->finds = 0;
lruList->hits = 0;
lruList->hitCosts = 0;
lruList->dumps = 0;
@@ -536,11 +536,11 @@ void TQGCache::clear()
Finds an item for \a key in the cache and adds a reference if \a ref is TRUE.
*/
-TQPtrCollection::Item TQGCache::tqfind_string( const TQString &key, bool ref ) const
+TQPtrCollection::Item TQGCache::find_string( const TQString &key, bool ref ) const
{
- TQCacheItem *ci = dict->tqfind_string( key );
+ TQCacheItem *ci = dict->find_string( key );
#if defined(TQT_DEBUG)
- lruList->tqfinds++;
+ lruList->finds++;
#endif
if ( ci ) {
#if defined(TQT_DEBUG)
@@ -559,12 +559,12 @@ TQPtrCollection::Item TQGCache::tqfind_string( const TQString &key, bool ref ) c
Finds an item for \a key in the cache and adds a reference if \a ref is TRUE.
*/
-TQPtrCollection::Item TQGCache::tqfind_other( const char *key, bool ref ) const
+TQPtrCollection::Item TQGCache::find_other( const char *key, bool ref ) const
{
- TQCacheItem *ci = keytype == AsciiKey ? dict->tqfind_ascii(key)
- : dict->tqfind_int((long)key);
+ TQCacheItem *ci = keytype == AsciiKey ? dict->find_ascii(key)
+ : dict->find_int((long)key);
#if defined(TQT_DEBUG)
- lruList->tqfinds++;
+ lruList->finds++;
#endif
if ( ci ) {
#if defined(TQT_DEBUG)
@@ -643,12 +643,12 @@ void TQGCache::statistics() const
line.fill( '*', 80 );
qDebug( line.ascii() );
qDebug( "CACHE STATISTICS:" );
- qDebug( "cache tqcontains %d item%s, with a total cost of %d",
+ qDebug( "cache contains %d item%s, with a total cost of %d",
count(), count() != 1 ? "s" : "", tCost );
qDebug( "maximum cost is %d, cache is %d%% full.",
mCost, (200*tCost + mCost) / (mCost*2) );
- qDebug( "tqfind() has been called %d time%s",
- lruList->tqfinds, lruList->tqfinds != 1 ? "s" : "" );
+ qDebug( "find() has been called %d time%s",
+ lruList->finds, lruList->finds != 1 ? "s" : "" );
qDebug( "%d of these were hits, items found had a total cost of %d.",
lruList->hits,lruList->hitCosts );
qDebug( "%d item%s %s been inserted with a total cost of %d.",
diff --git a/tqtinterface/qt4/src/tools/tqgcache.h b/tqtinterface/qt4/src/tools/tqgcache.h
index 7d54656..27887c3 100644
--- a/tqtinterface/qt4/src/tools/tqgcache.h
+++ b/tqtinterface/qt4/src/tools/tqgcache.h
@@ -82,8 +82,8 @@ protected:
TQPtrCollection::Item take_string( const TQString &key );
TQPtrCollection::Item take_other( const char *key );
- TQPtrCollection::Item tqfind_string( const TQString &key, bool ref=TRUE ) const;
- TQPtrCollection::Item tqfind_other( const char *key, bool ref=TRUE ) const;
+ TQPtrCollection::Item find_string( const TQString &key, bool ref=TRUE ) const;
+ TQPtrCollection::Item find_other( const char *key, bool ref=TRUE ) const;
void statistics() const;
diff --git a/tqtinterface/qt4/src/tools/tqgdict.cpp b/tqtinterface/qt4/src/tools/tqgdict.cpp
index c4c21d9..dc4d450 100644
--- a/tqtinterface/qt4/src/tools/tqgdict.cpp
+++ b/tqtinterface/qt4/src/tools/tqgdict.cpp
@@ -64,9 +64,9 @@
Normally, you do not have to reimplement any of these functions.
*/
-static const int op_tqfind = 0;
+static const int op_find = 0;
static const int op_insert = 1;
-static const int op_tqreplace = 2;
+static const int op_replace = 2;
class TQGDItList : public TQPtrList<TQGDictIterator>
@@ -324,7 +324,7 @@ TQGDict &TQGDict::operator=( const TQGDict &dict )
*/
/*!
- The do-it-all function; \a op is one of op_tqfind, op_insert, op_tqreplace.
+ The do-it-all function; \a op is one of op_find, op_insert, op_replace.
The key is \a key and the item is \a d.
*/
@@ -333,7 +333,7 @@ TQPtrCollection::Item TQGDict::look_string( const TQString &key, TQPtrCollection
{
TQStringBucket *n = 0;
int index = hashKeyString(key) % vlen;
- if ( op == op_tqfind ) { // tqfind
+ if ( op == op_find ) { // find
if ( cases ) {
n = (TQStringBucket*)vec[index];
while( n != 0 ) {
@@ -352,11 +352,11 @@ TQPtrCollection::Item TQGDict::look_string( const TQString &key, TQPtrCollection
}
return 0; // not found
}
- if ( op == op_tqreplace ) { // tqreplace
+ if ( op == op_replace ) { // replace
if ( vec[index] != 0 ) // maybe something there
remove_string( key );
}
- // op_insert or op_tqreplace
+ // op_insert or op_replace
n = new TQStringBucket(key,newItem(d),vec[index]);
TQ_CHECK_PTR( n );
#if defined(TQT_CHECK_NULL)
@@ -372,7 +372,7 @@ TQPtrCollection::Item TQGDict::look_ascii( const char *key, TQPtrCollection::Ite
{
TQAsciiBucket *n;
int index = hashKeyAscii(key) % vlen;
- if ( op == op_tqfind ) { // tqfind
+ if ( op == op_find ) { // find
if ( cases ) {
for ( n=(TQAsciiBucket*)vec[index]; n;
n=(TQAsciiBucket*)n->getNext() ) {
@@ -388,11 +388,11 @@ TQPtrCollection::Item TQGDict::look_ascii( const char *key, TQPtrCollection::Ite
}
return 0; // not found
}
- if ( op == op_tqreplace ) { // tqreplace
+ if ( op == op_replace ) { // replace
if ( vec[index] != 0 ) // maybe something there
remove_ascii( key );
}
- // op_insert or op_tqreplace
+ // op_insert or op_replace
n = new TQAsciiBucket(copyk ? qstrdup(key) : key,newItem(d),vec[index]);
TQ_CHECK_PTR( n );
#if defined(TQT_CHECK_NULL)
@@ -408,7 +408,7 @@ TQPtrCollection::Item TQGDict::look_int( long key, TQPtrCollection::Item d, int
{
TQIntBucket *n;
int index = (int)((ulong)key % vlen); // simple hash
- if ( op == op_tqfind ) { // tqfind
+ if ( op == op_find ) { // find
for ( n=(TQIntBucket*)vec[index]; n;
n=(TQIntBucket*)n->getNext() ) {
if ( n->getKey() == key )
@@ -416,11 +416,11 @@ TQPtrCollection::Item TQGDict::look_int( long key, TQPtrCollection::Item d, int
}
return 0; // not found
}
- if ( op == op_tqreplace ) { // tqreplace
+ if ( op == op_replace ) { // replace
if ( vec[index] != 0 ) // maybe something there
remove_int( key );
}
- // op_insert or op_tqreplace
+ // op_insert or op_replace
n = new TQIntBucket(key,newItem(d),vec[index]);
TQ_CHECK_PTR( n );
#if defined(TQT_CHECK_NULL)
@@ -436,7 +436,7 @@ TQPtrCollection::Item TQGDict::look_ptr( void *key, TQPtrCollection::Item d, int
{
TQPtrBucket *n;
int index = (int)((ulong)key % vlen); // simple hash
- if ( op == op_tqfind ) { // tqfind
+ if ( op == op_find ) { // find
for ( n=(TQPtrBucket*)vec[index]; n;
n=(TQPtrBucket*)n->getNext() ) {
if ( n->getKey() == key )
@@ -444,11 +444,11 @@ TQPtrCollection::Item TQGDict::look_ptr( void *key, TQPtrCollection::Item d, int
}
return 0; // not found
}
- if ( op == op_tqreplace ) { // tqreplace
+ if ( op == op_replace ) { // replace
if ( vec[index] != 0 ) // maybe something there
remove_ptr( key );
}
- // op_insert or op_tqreplace
+ // op_insert or op_replace
n = new TQPtrBucket(key,newItem(d),vec[index]);
TQ_CHECK_PTR( n );
#if defined(TQT_CHECK_NULL)
diff --git a/tqtinterface/qt4/src/tools/tqglist.cpp b/tqtinterface/qt4/src/tools/tqglist.cpp
index 944c27c..07851ba 100644
--- a/tqtinterface/qt4/src/tools/tqglist.cpp
+++ b/tqtinterface/qt4/src/tools/tqglist.cpp
@@ -371,7 +371,7 @@ void TQGList::inSort( TQPtrCollection::Item d )
{
int index = 0;
register TQLNode *n = firstNode;
- while ( n && compareItems(n->data,d) < 0 ){ // tqfind position in list
+ while ( n && compareItems(n->data,d) < 0 ){ // find position in list
n = n->next;
index++;
}
@@ -530,14 +530,14 @@ bool TQGList::removeNode( TQLNode *n )
}
/*!
- Removes the item \a d from the list. Uses compareItems() to tqfind the item.
+ Removes the item \a d from the list. Uses compareItems() to find the item.
If \a d is 0, removes the current item.
*/
bool TQGList::remove( TQPtrCollection::Item d )
{
- if ( d && tqfind(d) == -1 )
+ if ( d && find(d) == -1 )
return FALSE;
TQLNode *n = unlink();
if ( !n )
@@ -553,7 +553,7 @@ bool TQGList::remove( TQPtrCollection::Item d )
bool TQGList::removeRef( TQPtrCollection::Item d )
{
- if ( tqfindRef(d) == -1 )
+ if ( findRef(d) == -1 )
return FALSE;
TQLNode *n = unlink();
if ( !n )
@@ -595,7 +595,7 @@ bool TQGList::removeAt( uint index )
/*!
Replaces the item at index \a index with \a d.
*/
-bool TQGList::tqreplaceAt( uint index, TQPtrCollection::Item d )
+bool TQGList::replaceAt( uint index, TQPtrCollection::Item d )
{
TQLNode *n = locate( index );
if ( !n )
@@ -714,7 +714,7 @@ void TQGList::clear()
begins at the first node; otherwise it begins at the current node.
*/
-int TQGList::tqfindRef( TQPtrCollection::Item d, bool fromStart )
+int TQGList::findRef( TQPtrCollection::Item d, bool fromStart )
{
register TQLNode *n;
int index;
@@ -725,7 +725,7 @@ int TQGList::tqfindRef( TQPtrCollection::Item d, bool fromStart )
n = curNode;
index = curIndex;
}
- while ( n && n->data != d ) { // tqfind exact match
+ while ( n && n->data != d ) { // find exact match
n = n->next;
index++;
}
@@ -740,7 +740,7 @@ int TQGList::tqfindRef( TQPtrCollection::Item d, bool fromStart )
current node.
*/
-int TQGList::tqfind( TQPtrCollection::Item d, bool fromStart )
+int TQGList::find( TQPtrCollection::Item d, bool fromStart )
{
register TQLNode *n;
int index;
@@ -751,7 +751,7 @@ int TQGList::tqfind( TQPtrCollection::Item d, bool fromStart )
n = curNode;
index = curIndex;
}
- while ( n && compareItems(n->data,d) ){ // tqfind equal match
+ while ( n && compareItems(n->data,d) ){ // find equal match
n = n->next;
index++;
}
@@ -765,7 +765,7 @@ int TQGList::tqfind( TQPtrCollection::Item d, bool fromStart )
Counts the number item \a d occurs in the list.
*/
-uint TQGList::tqcontainsRef( TQPtrCollection::Item d ) const
+uint TQGList::containsRef( TQPtrCollection::Item d ) const
{
register TQLNode *n = firstNode;
uint count = 0;
@@ -782,7 +782,7 @@ uint TQGList::tqcontainsRef( TQPtrCollection::Item d ) const
compareItems().
*/
-uint TQGList::tqcontains( TQPtrCollection::Item d ) const
+uint TQGList::contains( TQPtrCollection::Item d ) const
{
register TQLNode *n = firstNode;
uint count = 0;
diff --git a/tqtinterface/qt4/src/tools/tqglist.h b/tqtinterface/qt4/src/tools/tqglist.h
index 4c91453..ebbd616 100644
--- a/tqtinterface/qt4/src/tools/tqglist.h
+++ b/tqtinterface/qt4/src/tools/tqglist.h
@@ -91,7 +91,7 @@ protected:
bool removeFirst(); // remove first item
bool removeLast(); // remove last item
bool removeAt( uint ); // remove item at i'th position
- bool tqreplaceAt( uint, TQPtrCollection::Item ); // tqreplace item at position i with item
+ bool replaceAt( uint, TQPtrCollection::Item ); // replace item at position i with item
TQPtrCollection::Item takeNode( TQLNode * ); // take out node
TQPtrCollection::Item take(); // take out current item
TQPtrCollection::Item takeAt( uint index ); // take out item at i'th pos
@@ -101,11 +101,11 @@ protected:
void sort(); // sort all items;
void clear(); // remove all items
- int tqfindRef( TQPtrCollection::Item, bool = TRUE ); // tqfind exact item in list
- int tqfind( TQPtrCollection::Item, bool = TRUE ); // tqfind equal item in list
+ int findRef( TQPtrCollection::Item, bool = TRUE ); // find exact item in list
+ int find( TQPtrCollection::Item, bool = TRUE ); // find equal item in list
- uint tqcontainsRef( TQPtrCollection::Item ) const; // get number of exact matches
- uint tqcontains( TQPtrCollection::Item ) const; // get number of equal matches
+ uint containsRef( TQPtrCollection::Item ) const; // get number of exact matches
+ uint contains( TQPtrCollection::Item ) const; // get number of equal matches
TQPtrCollection::Item at( uint index ); // access item at i'th pos
int at() const; // get current index
diff --git a/tqtinterface/qt4/src/tools/tqglobal.cpp b/tqtinterface/qt4/src/tools/tqglobal.cpp
index 0d548ed..dd5528b 100644
--- a/tqtinterface/qt4/src/tools/tqglobal.cpp
+++ b/tqtinterface/qt4/src/tools/tqglobal.cpp
@@ -784,7 +784,7 @@ static bool firstObsoleteWarning(const char *obj, const char *oldfunc )
TQCString s( obj );
s += "::";
s += oldfunc;
- if ( obsoleteDict->tqfind(s.data()) == 0 ) {
+ if ( obsoleteDict->find(s.data()) == 0 ) {
obsoleteDict->insert( s.data(), (int*)1 ); // anything different from 0
return TRUE;
}
@@ -842,7 +842,7 @@ void qObsolete( const char *message )
The message handler is a function that prints out debug messages,
warnings and fatal error messages. The TQt library (debug version)
- tqcontains hundreds of warning messages that are printed when
+ contains hundreds of warning messages that are printed when
internal errors (usually invalid function arguments) occur. If you
implement your own message handler, you get total control of these
messages.
@@ -898,7 +898,7 @@ TQtMsgHandler tqInstallMsgHandler( TQtMsgHandler h )
/*
- Dijkstra's bisection algorithm to tqfind the square root as an integer.
+ Dijkstra's bisection algorithm to find the square root as an integer.
Deliberately not exported as part of the TQt API, but used in both
qsimplerichtext.cpp and qgfxraster_qws.cpp
*/
diff --git a/tqtinterface/qt4/src/tools/tqglobal.h b/tqtinterface/qt4/src/tools/tqglobal.h
index 693da3f..6dbb122 100644
--- a/tqtinterface/qt4/src/tools/tqglobal.h
+++ b/tqtinterface/qt4/src/tools/tqglobal.h
@@ -603,7 +603,7 @@
/*
Some classes do not permit copies to be made of an object.
- These classes tqcontains a private copy constructor and operator=
+ These classes contains a private copy constructor and operator=
to disable copying (the compiler gives an error message).
Undefine TQ_DISABLE_COPY to turn off this checking.
*/
diff --git a/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp b/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
index ef0ab02..969d424 100644
--- a/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
+++ b/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
@@ -330,7 +330,7 @@ void TQGPluginManager::addLibraryPath( const TQString& path )
TQStringList plugins = TQDir(path).entryList( filter );
for ( TQStringList::Iterator p = plugins.begin(); p != plugins.end(); ++p ) {
TQString lib = TQDir::cleanDirPath( path + "/" + *p );
- if ( libList.tqcontains( lib ) )
+ if ( libList.contains( lib ) )
continue;
libList.append( lib );
}
@@ -376,14 +376,14 @@ const TQLibrary* TQGPluginManager::library( const TQString& feature ) const
group.sort(); // sort according to the base name
TQStringList::ConstIterator git = group.begin();
while ( git != group.end() ) {
- TQString lib = (*git).mid( (*git).tqfind( TQChar(0xfffd) ) + 1 );
- TQString basename = (*git).left( (*git).tqfind( TQChar(0xfffd) ) );
+ TQString lib = (*git).mid( (*git).find( TQChar(0xfffd) ) + 1 );
+ TQString basename = (*git).left( (*git).find( TQChar(0xfffd) ) );
++git;
TQStringList sameBasename;
while( git != group.end() &&
- basename == (*git).left( (*git).tqfind( TQChar(0xfffd) ) ) ) {
- sameBasename << (*git).mid( (*git).tqfind( TQChar(0xfffd) ) + 1 );
+ basename == (*git).left( (*git).find( TQChar(0xfffd) ) ) ) {
+ sameBasename << (*git).mid( (*git).find( TQChar(0xfffd) ) + 1 );
++git;
}
@@ -402,7 +402,7 @@ const TQLibrary* TQGPluginManager::library( const TQString& feature ) const
&& ( !bestMatch || candidate->qtVersion() > bestMatch->qtVersion() ) )
bestMatch = candidate;
if ( bestMatch ) {
- same.tqfind( bestMatch );
+ same.find( bestMatch );
that->addLibrary( same.take() );
}
}
@@ -444,7 +444,7 @@ TQStringList TQGPluginManager::featureList() const
}
}
for ( it = phase2Libs.begin(); it != phase2Libs.end(); ++it )
- if ( !phase2Deny.tqcontains( TQFileInfo( *it ).baseName() ) )
+ if ( !phase2Deny.contains( TQFileInfo( *it ).baseName() ) )
that->addLibrary( new TQComLibrary( *it ) );
for ( TQDictIterator<TQLibrary> pit( plugDict ); pit.current(); ++pit )
@@ -485,7 +485,7 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib )
TQLibrary *old = plugDict[*f];
if ( !old ) {
useful = TRUE;
- plugDict.tqreplace( *f, plugin );
+ plugDict.replace( *f, plugin );
} else {
// we have old *and* plugin, which one to pick?
TQComLibrary* first = (TQComLibrary*)old;
@@ -500,7 +500,7 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib )
}
if ( !takeFirst ) {
useful = TRUE;
- plugDict.tqreplace( *f, plugin );
+ plugDict.replace( *f, plugin );
qWarning("%s: Discarding feature %s in %s!",
(const char*) TQFile::encodeName( plugin->library()),
(*f).latin1(),
@@ -521,8 +521,8 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib )
}
if ( useful ) {
- libDict.tqreplace( plugin->library(), plugin );
- if ( !libList.tqcontains( plugin->library() ) )
+ libDict.replace( plugin->library(), plugin );
+ if ( !libList.contains( plugin->library() ) )
libList.append( plugin->library() );
return TRUE;
}
diff --git a/tqtinterface/qt4/src/tools/tqgvector.cpp b/tqtinterface/qt4/src/tools/tqgvector.cpp
index e30c172..4151d54 100644
--- a/tqtinterface/qt4/src/tools/tqgvector.cpp
+++ b/tqtinterface/qt4/src/tools/tqgvector.cpp
@@ -453,11 +453,11 @@ int TQGVector::bsearch( Item d ) const // binary search; when sorted
return mid;
}
-int TQGVector::tqfindRef( Item d, uint index) const // tqfind exact item in vector
+int TQGVector::findRef( Item d, uint index) const // find exact item in vector
{
#if defined(TQT_CHECK_RANGE)
if ( index > len ) { // range error
- qWarning( "TQGVector::tqfindRef: Index %d out of range", index );
+ qWarning( "TQGVector::findRef: Index %d out of range", index );
return -1;
}
#endif
@@ -468,11 +468,11 @@ int TQGVector::tqfindRef( Item d, uint index) const // tqfind exact item in vect
return -1;
}
-int TQGVector::tqfind( Item d, uint index ) const // tqfind equal item in vector
+int TQGVector::find( Item d, uint index ) const // find equal item in vector
{
#if defined(TQT_CHECK_RANGE)
if ( index >= len ) { // range error
- qWarning( "TQGVector::tqfind: Index %d out of range", index );
+ qWarning( "TQGVector::find: Index %d out of range", index );
return -1;
}
#endif
@@ -485,7 +485,7 @@ int TQGVector::tqfind( Item d, uint index ) const // tqfind equal item in vector
return -1;
}
-uint TQGVector::tqcontainsRef( Item d ) const // get number of exact matches
+uint TQGVector::containsRef( Item d ) const // get number of exact matches
{
uint count = 0;
for ( uint i=0; i<len; i++ ) {
@@ -495,7 +495,7 @@ uint TQGVector::tqcontainsRef( Item d ) const // get number of exact matches
return count;
}
-uint TQGVector::tqcontains( Item d ) const // get number of equal matches
+uint TQGVector::contains( Item d ) const // get number of equal matches
{
uint count = 0;
for ( uint i=0; i<len; i++ ) {
diff --git a/tqtinterface/qt4/src/tools/tqgvector.h b/tqtinterface/qt4/src/tools/tqgvector.h
index 1cc5937..ebb5e03 100644
--- a/tqtinterface/qt4/src/tools/tqgvector.h
+++ b/tqtinterface/qt4/src/tools/tqgvector.h
@@ -81,10 +81,10 @@ protected:
void sort(); // sort vector
int bsearch( Item ) const; // binary search (when sorted)
- int tqfindRef( Item, uint index ) const; // tqfind exact item in vector
- int tqfind( Item, uint index ) const; // tqfind equal item in vector
- uint tqcontainsRef( Item ) const; // get number of exact matches
- uint tqcontains( Item ) const; // get number of equal matches
+ int findRef( Item, uint index ) const; // find exact item in vector
+ int find( Item, uint index ) const; // find equal item in vector
+ uint containsRef( Item ) const; // get number of exact matches
+ uint contains( Item ) const; // get number of equal matches
Item at( uint index ) const // return indexed item
{
diff --git a/tqtinterface/qt4/src/tools/tqintcache.h b/tqtinterface/qt4/src/tools/tqintcache.h
index ed48fc3..239a40c 100644
--- a/tqtinterface/qt4/src/tools/tqintcache.h
+++ b/tqtinterface/qt4/src/tools/tqintcache.h
@@ -74,10 +74,10 @@ public:
type *take( long k )
{ return (type *)TQGCache::take_other((const char*)k);}
void clear() { TQGCache::clear(); }
- type *tqfind( long k, bool ref=TRUE ) const
- { return (type *)TQGCache::tqfind_other( (const char*)k,ref);}
+ type *find( long k, bool ref=TRUE ) const
+ { return (type *)TQGCache::find_other( (const char*)k,ref);}
type *operator[]( long k ) const
- { return (type *)TQGCache::tqfind_other( (const char*)k); }
+ { return (type *)TQGCache::find_other( (const char*)k); }
void statistics() const { TQGCache::statistics(); }
private:
void deleteItem( Item d );
diff --git a/tqtinterface/qt4/src/tools/tqintdict.h b/tqtinterface/qt4/src/tools/tqintdict.h
index dc6cc2e..35a821f 100644
--- a/tqtinterface/qt4/src/tools/tqintdict.h
+++ b/tqtinterface/qt4/src/tools/tqintdict.h
@@ -64,11 +64,11 @@ public:
bool isEmpty() const { return TQGDict::count() == 0; }
void insert( long k, const type *d )
{ TQGDict::look_int(k,(Item)d,1); }
- void tqreplace( long k, const type *d )
+ void replace( long k, const type *d )
{ TQGDict::look_int(k,(Item)d,2); }
bool remove( long k ) { return TQGDict::remove_int(k); }
type *take( long k ) { return (type*)TQGDict::take_int(k); }
- type *tqfind( long k ) const
+ type *find( long k ) const
{ return (type *)((TQGDict*)this)->TQGDict::look_int(k,0,0); }
type *operator[]( long k ) const
{ return (type *)((TQGDict*)this)->TQGDict::look_int(k,0,0); }
diff --git a/tqtinterface/qt4/src/tools/tqiodevice.cpp b/tqtinterface/qt4/src/tools/tqiodevice.cpp
index 299d949..c2e48ce 100644
--- a/tqtinterface/qt4/src/tools/tqiodevice.cpp
+++ b/tqtinterface/qt4/src/tools/tqiodevice.cpp
@@ -381,7 +381,7 @@ TQIODevice::~TQIODevice()
The I/O tqdevice status returns an error code. If open() returns
FALSE or readBlock() or writeBlock() return -1, this function can
- be called to tqfind out the reason why the operation failed.
+ be called to find out the reason why the operation failed.
\keyword IO_Ok
\keyword IO_ReadError
diff --git a/tqtinterface/qt4/src/tools/tqlibrary.cpp b/tqtinterface/qt4/src/tools/tqlibrary.cpp
index cf34295..5236cd5 100644
--- a/tqtinterface/qt4/src/tools/tqlibrary.cpp
+++ b/tqtinterface/qt4/src/tools/tqlibrary.cpp
@@ -140,7 +140,7 @@ TQLibraryPrivate::TQLibraryPrivate( TQLibrary *lib )
TQLibrary::TQLibrary( const TQString& filename )
: libfile( filename ), aunload( TRUE )
{
- libfile.tqreplace( '\\', '/' );
+ libfile.replace( '\\', '/' );
d = new TQLibraryPrivate( this );
}
@@ -399,7 +399,7 @@ TQString TQLibrary::library() const
TQString filename = libfile;
#if defined(TQ_WS_WIN)
- if ( filename.tqfindRev( '.' ) <= filename.tqfindRev( '/' ) )
+ if ( filename.findRev( '.' ) <= filename.findRev( '/' ) )
filename += ".dll";
#else
TQStringList filters = "";
@@ -421,7 +421,7 @@ TQString TQLibrary::library() const
break;
} else if(!filter.isEmpty()) {
TQString tmpfilename = filename;
- const int x = tmpfilename.tqfindRev( "/" );
+ const int x = tmpfilename.findRev( "/" );
if ( x != -1 ) {
TQString path = tmpfilename.left( x + 1 );
TQString file = tmpfilename.right( tmpfilename.length() - x - 1 );
@@ -429,7 +429,7 @@ TQString TQLibrary::library() const
} else {
tmpfilename = TQString( "lib%1" ).arg( filename );
}
- if ( !filename.tqcontains(".so") )
+ if ( !filename.contains(".so") )
tmpfilename += filter;
if(TQFile::exists(tmpfilename) || it == filters.end()) {
filename = tmpfilename;
diff --git a/tqtinterface/qt4/src/tools/tqlibrary_unix.cpp b/tqtinterface/qt4/src/tools/tqlibrary_unix.cpp
index 62c909c..271a897 100644
--- a/tqtinterface/qt4/src/tools/tqlibrary_unix.cpp
+++ b/tqtinterface/qt4/src/tools/tqlibrary_unix.cpp
@@ -95,7 +95,7 @@ void* TQLibraryPrivate::resolveSymbol( const char* symbol )
return 0;
void* address = 0;
- if ( shl_tqfindsym( (shl_t*)&pHnd, symbol, TYPE_UNDEFINED, &address ) < 0 ) {
+ if ( shl_findsym( (shl_t*)&pHnd, symbol, TYPE_UNDEFINED, &address ) < 0 ) {
#if defined(TQT_DEBUG_COMPONENT)
TQString filename = library->library();
qWarning( "%s: couldn't resolve symbol \"%s\"", filename.latin1(), symbol );
diff --git a/tqtinterface/qt4/src/tools/tqlocale.cpp b/tqtinterface/qt4/src/tools/tqlocale.cpp
index 69c8c39..e91cab8 100644
--- a/tqtinterface/qt4/src/tools/tqlocale.cpp
+++ b/tqtinterface/qt4/src/tools/tqlocale.cpp
@@ -1903,7 +1903,7 @@ const char* TQLocalePrivate::systemLocaleName()
return lang;
}
-static const TQLocalePrivate *tqfindLocale(TQLocale::Language language,
+static const TQLocalePrivate *findLocale(TQLocale::Language language,
TQLocale::Country country)
{
unsigned language_id = (unsigned)language;
@@ -1965,7 +1965,7 @@ static const TQLocalePrivate *tqfindLocale(TQLocale::Language language,
\i TQString::toDouble() interprets the string according to the default
locale. If this fails, it falls back on the "C" locale.
\i TQString::arg() uses the default locale to format a number when
- its position specifier in the format string tqcontains an 'L',
+ its position specifier in the format string contains an 'L',
e.g. "%L1".
\endlist
@@ -2504,7 +2504,7 @@ TQLocale::TQLocale(const TQString &name)
cntry = codeToCountry(name.mid(3, 2));
} while (FALSE);
- d = tqfindLocale(lang, cntry);
+ d = findLocale(lang, cntry);
}
/*!
@@ -2542,7 +2542,7 @@ TQLocale::TQLocale()
TQLocale::TQLocale(Language language, Country country)
{
- d = tqfindLocale(language, country);
+ d = findLocale(language, country);
// If not found, should default to system
if (d->languageId() == TQLocale::C && language != TQLocale::C) {
diff --git a/tqtinterface/qt4/src/tools/tqmap.h b/tqtinterface/qt4/src/tools/tqmap.h
index fe36e97..006f490 100644
--- a/tqtinterface/qt4/src/tools/tqmap.h
+++ b/tqtinterface/qt4/src/tools/tqmap.h
@@ -392,7 +392,6 @@ public:
ConstIterator end() const { return ConstIterator( header ); }
ConstIterator find(const Key& k) const;
- ConstIterator tqfind(const Key& k) const;
void remove( Iterator it ) {
NodePtr del = (NodePtr) removeAndRebalance( it.node, header->tqparent, header->left, header->right );
@@ -508,12 +507,6 @@ TQ_INLINE_TEMPLATES void TQMapPrivate<Key,T>::clear( TQ_TYPENAME TQMapPrivate<Ke
template <class Key, class T>
TQ_INLINE_TEMPLATES TQ_TYPENAME TQMapPrivate<Key,T>::ConstIterator TQMapPrivate<Key,T>::find(const Key& k) const
{
- return tqfind(k);
-}
-
-template <class Key, class T>
-TQ_INLINE_TEMPLATES TQ_TYPENAME TQMapPrivate<Key,T>::ConstIterator TQMapPrivate<Key,T>::tqfind(const Key& k) const
-{
TQMapNodeBase* y = header; // Last node
TQMapNodeBase* x = header->tqparent; // Root node.
@@ -560,7 +553,7 @@ TQ_INLINE_TEMPLATES TQ_TYPENAME TQMapPrivate<Key,T>::Iterator TQMapPrivate<Key,T
// Really bigger ?
if ( (j.node->key) < k )
return insert(x, y, k );
- // We are going to tqreplace a node
+ // We are going to replace a node
return j;
}
@@ -709,7 +702,7 @@ public:
const_iterator constBegin() const { return begin(); }
const_iterator constEnd() const { return end(); }
- iterator tqreplace( const Key& k, const T& v )
+ iterator replace( const Key& k, const T& v )
{
remove( k );
return insert( k, v );
@@ -735,21 +728,18 @@ public:
T& operator[] ( const Key& k );
void clear();
- iterator tqfind ( const Key& k )
+ iterator find ( const Key& k )
{
detach();
- return iterator( sh->tqfind( k ).node );
+ return iterator( sh->find( k ).node );
}
- const_iterator tqfind ( const Key& k ) const { return sh->tqfind( k ); }
-
- iterator find ( const Key& k ) { return tqfind(k); }
- const_iterator find ( const Key& k ) const { return tqfind(k); }
+ const_iterator find ( const Key& k ) const { return sh->find( k ); }
const T& operator[] ( const Key& k ) const
- { TQT_CHECK_INVALID_MAP_ELEMENT; return sh->tqfind( k ).data(); }
- bool tqcontains ( const Key& k ) const
- { return tqfind( k ) != end(); }
- //{ return sh->tqfind( k ) != ((const Priv*)sh)->end(); }
+ { TQT_CHECK_INVALID_MAP_ELEMENT; return sh->find( k ).data(); }
+ bool contains ( const Key& k ) const
+ { return find( k ) != end(); }
+ //{ return sh->find( k ) != ((const Priv*)sh)->end(); }
size_type count() const { return sh->node_count; }
@@ -847,7 +837,7 @@ template<class Key, class T>
TQ_INLINE_TEMPLATES void TQMap<Key,T>::erase( const Key& k )
{
detach();
- iterator it( sh->tqfind( k ).node );
+ iterator it( sh->find( k ).node );
if ( it != end() )
sh->remove( it );
}
@@ -855,7 +845,7 @@ TQ_INLINE_TEMPLATES void TQMap<Key,T>::erase( const Key& k )
template<class Key, class T>
TQ_INLINE_TEMPLATES TQ_TYPENAME TQMap<Key,T>::size_type TQMap<Key,T>::count( const Key& k ) const
{
- const_iterator it( sh->tqfind( k ).node );
+ const_iterator it( sh->find( k ).node );
if ( it != end() ) {
size_type c = 0;
while ( it != end() ) {
@@ -871,7 +861,7 @@ template<class Key, class T>
TQ_INLINE_TEMPLATES T& TQMap<Key,T>::operator[] ( const Key& k )
{
detach();
- TQMapNode<Key,T>* p = sh->tqfind( k ).node;
+ TQMapNode<Key,T>* p = sh->find( k ).node;
if ( p != sh->end().node )
return p->data;
return insert( k, T() ).data();
@@ -903,7 +893,7 @@ template<class Key, class T>
TQ_INLINE_TEMPLATES void TQMap<Key,T>::remove( const Key& k )
{
detach();
- iterator it( sh->tqfind( k ).node );
+ iterator it( sh->find( k ).node );
if ( it != end() )
sh->remove( it );
}
diff --git a/tqtinterface/qt4/src/tools/tqmemarray.h b/tqtinterface/qt4/src/tools/tqmemarray.h
index 99e00b0..df76c98 100644
--- a/tqtinterface/qt4/src/tools/tqmemarray.h
+++ b/tqtinterface/qt4/src/tools/tqmemarray.h
@@ -91,10 +91,10 @@ public:
n*sizeof(type)); }
void resetRawData( const type *a, uint n )
{ TQGArray::resetRawData((char*)a,n*sizeof(type)); }
- int tqfind( const type &d, uint i=0 ) const
- { return TQGArray::tqfind((char*)&d,i,sizeof(type)); }
- int tqcontains( const type &d ) const
- { return TQGArray::tqcontains((char*)&d,sizeof(type)); }
+ int find( const type &d, uint i=0 ) const
+ { return TQGArray::find((char*)&d,i,sizeof(type)); }
+ int contains( const type &d ) const
+ { return TQGArray::contains((char*)&d,sizeof(type)); }
void sort() { TQGArray::sort(sizeof(type)); }
int bsearch( const type &d ) const
{ return TQGArray::bsearch((const char*)&d,sizeof(type)); }
diff --git a/tqtinterface/qt4/src/tools/tqptrcollection.cpp b/tqtinterface/qt4/src/tools/tqptrcollection.cpp
index 38bbeef..481c272 100644
--- a/tqtinterface/qt4/src/tools/tqptrcollection.cpp
+++ b/tqtinterface/qt4/src/tools/tqptrcollection.cpp
@@ -114,7 +114,7 @@
if the collection has the only pointer to the items.
The default setting is FALSE, for safety. If you turn it on, be
- careful about copying the collection - you might tqfind yourself
+ careful about copying the collection - you might find yourself
with two collections deleting the same items.
Note that the auto-delete setting may also affect other functions
diff --git a/tqtinterface/qt4/src/tools/tqptrdict.h b/tqtinterface/qt4/src/tools/tqptrdict.h
index 908907d..882872e 100644
--- a/tqtinterface/qt4/src/tools/tqptrdict.h
+++ b/tqtinterface/qt4/src/tools/tqptrdict.h
@@ -64,11 +64,11 @@ public:
bool isEmpty() const { return TQGDict::count() == 0; }
void insert( void *k, const type *d )
{ TQGDict::look_ptr(k,(Item)d,1); }
- void tqreplace( void *k, const type *d )
+ void replace( void *k, const type *d )
{ TQGDict::look_ptr(k,(Item)d,2); }
bool remove( void *k ) { return TQGDict::remove_ptr(k); }
type *take( void *k ) { return (type*)TQGDict::take_ptr(k); }
- type *tqfind( void *k ) const
+ type *find( void *k ) const
{ return (type *)((TQGDict*)this)->TQGDict::look_ptr(k,0,0); }
type *operator[]( void *k ) const
{ return (type *)((TQGDict*)this)->TQGDict::look_ptr(k,0,0); }
diff --git a/tqtinterface/qt4/src/tools/tqptrlist.h b/tqtinterface/qt4/src/tools/tqptrlist.h
index 2839df6..25f7e1b 100644
--- a/tqtinterface/qt4/src/tools/tqptrlist.h
+++ b/tqtinterface/qt4/src/tools/tqptrlist.h
@@ -95,14 +95,14 @@ public:
type *takeNode( TQLNode *n ) { return (type *)TQGList::takeNode(n); }
void clear() { TQGList::clear(); }
void sort() { TQGList::sort(); }
- int tqfind( const type *d ) { return TQGList::tqfind((TQPtrCollection::Item)d); }
- int tqfindNext( const type *d ) { return TQGList::tqfind((TQPtrCollection::Item)d,FALSE); }
- int tqfindRef( const type *d ) { return TQGList::tqfindRef((TQPtrCollection::Item)d); }
- int tqfindNextRef( const type *d ){ return TQGList::tqfindRef((TQPtrCollection::Item)d,FALSE);}
- uint tqcontains( const type *d ) const { return TQGList::tqcontains((TQPtrCollection::Item)d); }
- uint tqcontainsRef( const type *d ) const
- { return TQGList::tqcontainsRef((TQPtrCollection::Item)d); }
- bool tqreplace( uint i, const type *d ) { return TQGList::tqreplaceAt( i, (TQPtrCollection::Item)d ); }
+ int find( const type *d ) { return TQGList::find((TQPtrCollection::Item)d); }
+ int findNext( const type *d ) { return TQGList::find((TQPtrCollection::Item)d,FALSE); }
+ int findRef( const type *d ) { return TQGList::findRef((TQPtrCollection::Item)d); }
+ int findNextRef( const type *d ){ return TQGList::findRef((TQPtrCollection::Item)d,FALSE);}
+ uint contains( const type *d ) const { return TQGList::contains((TQPtrCollection::Item)d); }
+ uint containsRef( const type *d ) const
+ { return TQGList::containsRef((TQPtrCollection::Item)d); }
+ bool replace( uint i, const type *d ) { return TQGList::replaceAt( i, (TQPtrCollection::Item)d ); }
type *at( uint i ) { return (type *)TQGList::at(i); }
type *tqat( uint i ) { return (type *)TQGList::at(i); }
int at() const { return TQGList::at(); }
diff --git a/tqtinterface/qt4/src/tools/tqptrvector.h b/tqtinterface/qt4/src/tools/tqptrvector.h
index 97934d4..14164ca 100644
--- a/tqtinterface/qt4/src/tools/tqptrvector.h
+++ b/tqtinterface/qt4/src/tools/tqptrvector.h
@@ -75,14 +75,14 @@ public:
{ return TQGVector::fill((Item)d,size);}
void sort() { TQGVector::sort(); }
int bsearch( const type *d ) const{ return TQGVector::bsearch((Item)d); }
- int tqfindRef( const type *d, uint i=0 ) const
- { return TQGVector::tqfindRef((Item)d,i);}
- int tqfind( const type *d, uint i= 0 ) const
- { return TQGVector::tqfind((Item)d,i); }
- uint tqcontainsRef( const type *d ) const
- { return TQGVector::tqcontainsRef((Item)d); }
- uint tqcontains( const type *d ) const
- { return TQGVector::tqcontains((Item)d); }
+ int findRef( const type *d, uint i=0 ) const
+ { return TQGVector::findRef((Item)d,i);}
+ int find( const type *d, uint i= 0 ) const
+ { return TQGVector::find((Item)d,i); }
+ uint containsRef( const type *d ) const
+ { return TQGVector::containsRef((Item)d); }
+ uint contains( const type *d ) const
+ { return TQGVector::contains((Item)d); }
type *operator[]( int i ) const { return (type *)TQGVector::at(i); }
type *at( uint i ) const { return (type *)TQGVector::at(i); }
type *tqat( uint i ) const { return (type *)TQGVector::at(i); }
diff --git a/tqtinterface/qt4/src/tools/tqregexp.cpp b/tqtinterface/qt4/src/tools/tqregexp.cpp
index cac50e5..5f73872 100644
--- a/tqtinterface/qt4/src/tools/tqregexp.cpp
+++ b/tqtinterface/qt4/src/tools/tqregexp.cpp
@@ -140,23 +140,23 @@ void TQRegExp::setCaseSensitive( bool sensitive )
\mainclass
\keyword regular expression
- Regular expressions, or "regexps", provide a way to tqfind patterns
+ Regular expressions, or "regexps", provide a way to find patterns
within text. This is useful in many contexts, for example:
\table
\row \i Validation
\i A regexp can be used to check whether a piece of text
- meets some criteria, e.g. is an integer or tqcontains no
+ meets some criteria, e.g. is an integer or contains no
whitespace.
\row \i Searching
\i Regexps provide a much more powerful means of searching
text than simple string matching does. For example we can
- create a regexp which says "tqfind one of the words 'mail',
+ create a regexp which says "find one of the words 'mail',
'letter' or 'correspondence' but not any of the words
'email', 'mailman' 'mailer', 'letterbox' etc."
\row \i Search and Replace
- \i A regexp can be used to tqreplace a pattern with a piece of
- text, for example tqreplace all occurrences of '&' with
+ \i A regexp can be used to replace a pattern with a piece of
+ text, for example replace all occurrences of '&' with
'\&amp;' except where the '&' is already followed by 'amp;'.
\row \i String Splitting
\i A regexp can be used to identify where a string should be
@@ -227,9 +227,9 @@ void TQRegExp::setCaseSensitive( bool sensitive )
If you've seen regexps elsewhere they may have looked different from
the ones above. This is because some sets of characters and some
quantifiers are so common that they have special symbols to
- represent them. <b>[0-9]</b> can be tqreplaced with the symbol
+ represent them. <b>[0-9]</b> can be replaced with the symbol
<b>\d</b>. The quantifier to match exactly one occurrence,
- <b>{1,1}</b>, can be tqreplaced with the expression itself. This means
+ <b>{1,1}</b>, can be replaced with the expression itself. This means
that <b>x{1,1}</b> is exactly the same as <b>x</b> alone. So our 0
to 99 matcher could be written <b>^\d{1,2}$</b>. Another way of
writing it would be <b>^\d\d{0,1}$</b>, i.e. from the start of the
@@ -250,8 +250,8 @@ void TQRegExp::setCaseSensitive( bool sensitive )
followed by an 'i' followed by an 'l'. The symbol '|' (bar) is
used for \e alternation, so our regexp now becomes
<b>mail|letter|correspondence</b> which means match 'mail' \e or
- 'letter' \e or 'correspondence'. Whilst this regexp will tqfind the
- words we want it will also tqfind words we don't want such as
+ 'letter' \e or 'correspondence'. Whilst this regexp will find the
+ words we want it will also find words we don't want such as
'email'. We will start by putting our regexp in parentheses,
<b>(mail|letter|correspondence)</b>. Parentheses have two effects,
firstly they group expressions together and secondly they identify
@@ -268,16 +268,16 @@ void TQRegExp::setCaseSensitive( bool sensitive )
boundary is any non-word character such as a space a newline or
the beginning or end of the string.
- For our third example we want to tqreplace ampersands with the HTML
+ For our third example we want to replace ampersands with the HTML
entity '\&amp;'. The regexp to match is simple: <b>\&</b>, i.e.
match one ampersand. Unfortunately this will mess up our text if
some of the ampersands have already been turned into HTML
- entities. So what we really want to say is tqreplace an ampersand
+ entities. So what we really want to say is replace an ampersand
providing it is not followed by 'amp;'. For this we need the
negative lookahead assertion and our regexp becomes:
<b>\&(?!amp;)</b>. The negative lookahead assertion is introduced
with '(?!' and finishes at the ')'. It means that the text it
- tqcontains, 'amp;' in our example, must \e not follow the expression
+ contains, 'amp;' in our example, must \e not follow the expression
that preceeds it.
Regexps provide a rich language that can be used in a variety of
@@ -403,7 +403,7 @@ void TQRegExp::setCaseSensitive( bool sensitive )
occurrences it will match no occurrences at all. For example
if we want to match strings that end in whitespace and use
the regexp <b>\s*$</b> we would get a match on every string.
- This is because we have said tqfind zero or more whitespace
+ This is because we have said find zero or more whitespace
followed by the end of string, so even strings that don't end
in whitespace will match. The regexp we want in this case is
<b>\s+$</b> to match strings that have at least one
@@ -439,7 +439,7 @@ void TQRegExp::setCaseSensitive( bool sensitive )
Note that quantifiers are "greedy". They will match as much text
as they can. For example, <b>0+</b> will match as many zeros as it
- can from the first zero it tqfinds, e.g. '2.<u>000</u>5'.
+ can from the first zero it finds, e.g. '2.<u>000</u>5'.
Quantifiers can be made non-greedy, see setMinimal().
\target capturing-text
@@ -605,7 +605,7 @@ void TQRegExp::setCaseSensitive( bool sensitive )
... correspond to cap(1) or capturedTexts()[1], cap(2) or
capturedTexts()[2], etc.
- To substitute a pattern use TQString::tqreplace().
+ To substitute a pattern use TQString::replace().
Perl's extended \c{/x} syntax is not supported, nor are
directives, e.g. (?i), or regexp comments, e.g. (?#comment). On
@@ -680,15 +680,15 @@ void TQRegExp::setCaseSensitive( bool sensitive )
\code
TQRegExp rx( "&(?!amp;)" ); // match ampersands but not &amp;
TQString line1 = "This & that";
- line1.tqreplace( rx, "&amp;" );
+ line1.replace( rx, "&amp;" );
// line1 == "This &amp; that"
TQString line2 = "His &amp; hers & theirs";
- line2.tqreplace( rx, "&amp;" );
+ line2.replace( rx, "&amp;" );
// line2 == "His &amp; hers &amp; theirs"
\endcode
- Here we've passed the TQRegExp to TQString's tqreplace() function to
- tqreplace the matched text with new text.
+ Here we've passed the TQRegExp to TQString's replace() function to
+ replace the matched text with new text.
\code
TQString str = "One Eric another Eirik, and an Ericsson."
@@ -847,7 +847,7 @@ static void mergeInto( TQMap<int, int> *a, const TQMap<int, int>& b )
*/
static int at( const TQMap<int, int>& m, int k )
{
- TQMap<int, int>::ConstIterator it = m.tqfind( k );
+ TQMap<int, int>::ConstIterator it = m.find( k );
if ( it == m.end() )
return 0;
else
@@ -1336,7 +1336,7 @@ void TQRegExpEngine::match( const TQString& str, int pos, bool minimal,
#ifndef TQT_NO_REGEXP_OPTIM
if ( trivial && !oneTest ) {
- mmPos = str.tqfind( goodStr, pos, cs );
+ mmPos = str.find( goodStr, pos, cs );
mmMatchLen = goodStr.length();
matched = ( mmPos != -1 );
} else
@@ -1457,7 +1457,7 @@ void TQRegExpEngine::addPlusTransitions( const TQMemArray<int>& from,
if ( st->reenter == 0 )
st->reenter = new TQMap<int, int>;
for ( int j = 0; j < (int) to.size(); j++ ) {
- if ( !st->reenter->tqcontains(to[j]) &&
+ if ( !st->reenter->contains(to[j]) &&
oldOuts.bsearch(to[j]) < 0 )
st->reenter->insert( to[j], atom );
}
@@ -1512,7 +1512,7 @@ void TQRegExpEngine::addAnchors( int from, int to, int a )
State *st = s[from];
if ( st->anchors == 0 )
st->anchors = new TQMap<int, int>;
- if ( st->anchors->tqcontains(to) )
+ if ( st->anchors->contains(to) )
a = anchorAlternation( (*st->anchors)[to], a );
st->anchors->insert( to, a );
}
@@ -1595,7 +1595,7 @@ void TQRegExpEngine::dump() const
for ( j = 0; j < (int) s[i]->outs.size(); j++ ) {
int next = s[i]->outs[j];
qDebug( " -> %d", next );
- if ( s[i]->reenter != 0 && s[i]->reenter->tqcontains(next) )
+ if ( s[i]->reenter != 0 && s[i]->reenter->contains(next) )
qDebug( " [reenter %d]", (*s[i]->reenter)[next] );
if ( s[i]->anchors != 0 && at(*s[i]->anchors, next) != 0 )
qDebug( " [anchors 0x%.8x]", (*s[i]->anchors)[next] );
@@ -1790,7 +1790,7 @@ bool TQRegExpEngine::testAnchor( int i, int a, const int *capBegin )
bool TQRegExpEngine::goodStringMatch()
{
int k = mmPos + goodEarlyStart;
- while ( (k = mmStr->tqfind(goodStr, k, cs)) != -1 ) {
+ while ( (k = mmStr->find(goodStr, k, cs)) != -1 ) {
int from = k - goodLateStart;
int to = k - goodEarlyStart;
if ( from > mmPos )
@@ -2097,7 +2097,7 @@ bool TQRegExpEngine::matchHere()
for c and n.
We go up along c's and n's ancestry until
- we tqfind x.
+ we find x.
*/
} else {
p = c;
@@ -3239,7 +3239,7 @@ void TQRegExpEngine::parseExpression( Box *box )
}
/*
- The struct TQRegExpPrivate tqcontains the private data of a regular
+ The struct TQRegExpPrivate contains the private data of a regular
expression other than the automaton. It makes it possible for many
TQRegExp objects to use the same TQRegExpEngine object with different
TQRegExpPrivate objects.
@@ -3685,7 +3685,7 @@ int TQRegExp::search( const TQString& str, int offset ) const
}
/*!
- Attempts to tqfind a match in \a str from position \a offset (0 by
+ Attempts to find a match in \a str from position \a offset (0 by
default). If \a offset is -1, the search starts at the last
character; if -2, at the next to last character; etc.
@@ -3695,9 +3695,9 @@ int TQRegExp::search( const TQString& str, int offset ) const
The \a caretMode parameter can be used to instruct whether <b>^</b>
should match at index 0 or at \a offset.
- You might prefer to use TQString::tqfind(), TQString::tqcontains() or
- even TQStringList::grep(). To tqreplace matches use
- TQString::tqreplace().
+ You might prefer to use TQString::find(), TQString::contains() or
+ even TQStringList::grep(). To replace matches use
+ TQString::replace().
Example:
\code
@@ -3735,7 +3735,7 @@ int TQRegExp::searchRev( const TQString& str, int offset ) const
}
/*!
- Attempts to tqfind a match backwards in \a str from position \a
+ Attempts to find a match backwards in \a str from position \a
offset. If \a offset is -1 (the default), the search starts at the
last character; if -2, at the next to last character; etc.
@@ -3801,7 +3801,7 @@ int TQRegExp::numCaptures() const
Returns a list of the captured text strings.
The first string in the list is the entire matched string. Each
- subsequent list element tqcontains a string that matched a
+ subsequent list element contains a string that matched a
(capturing) subexpression of the regexp.
For example:
@@ -3906,7 +3906,7 @@ TQStringList TQRegExp::capturedTexts()
pos += rx.matchedLength();
}
}
- // list tqcontains "12", "14", "99", "231", "7"
+ // list contains "12", "14", "99", "231", "7"
\endcode
\sa capturedTexts() pos() exactMatch() search() searchRev()
diff --git a/tqtinterface/qt4/src/tools/tqsettings.cpp b/tqtinterface/qt4/src/tools/tqsettings.cpp
index 3ef5e5e..d949940 100644
--- a/tqtinterface/qt4/src/tools/tqsettings.cpp
+++ b/tqtinterface/qt4/src/tools/tqsettings.cpp
@@ -150,13 +150,13 @@ static inline int qt_open( const char *pathname, int flags, mode_t mode )
\code
TQStringList keys = settings.entryList( "/MyApplication" );
- // keys tqcontains 'background color' and 'foreground color'.
+ // keys contains 'background color' and 'foreground color'.
TQStringList keys = settings.entryList( "/MyApplication/recent files" );
- // keys tqcontains '1', '2' and '3'.
+ // keys contains '1', '2' and '3'.
TQStringList subkeys = settings.subkeyList( "/MyApplication" );
- // subkeys tqcontains 'tqgeometry' and 'recent files'
+ // subkeys contains 'tqgeometry' and 'recent files'
TQStringList subkeys = settings.subkeyList( "/MyApplication/recent files" );
// subkeys is empty.
@@ -385,9 +385,9 @@ void TQSettingsHeading::parseLine(TQTextStream &stream)
if (gname[(int)gname.length() - 1] == TQChar(']'))
gname = gname.remove(gname.length() - 1, 1);
- git = tqfind(gname);
+ git = find(gname);
if (git == end())
- git = tqreplace(gname, TQSettingsGroup());
+ git = replace(gname, TQSettingsGroup());
} else {
if (git == end()) {
#if defined(TQT_CHECK_STATE)
@@ -396,7 +396,7 @@ void TQSettingsHeading::parseLine(TQTextStream &stream)
return;
}
- int i = line.tqfind('=');
+ int i = line.find('=');
if (i == -1) {
#if defined(TQT_CHECK_STATE)
qWarning("TQSettings: malformed line '%s' in group '%s'",
@@ -529,27 +529,27 @@ TQSettingsGroup TQSettingsPrivate::readGroup()
TQSettingsHeading hd;
TQSettingsGroup grp;
- TQMap<TQString,TQSettingsHeading>::Iterator headingsit = headings.tqfind(heading);
+ TQMap<TQString,TQSettingsHeading>::Iterator headingsit = headings.find(heading);
if (headingsit != headings.end())
hd = *headingsit;
- TQSettingsHeading::Iterator grpit = hd.tqfind(group);
+ TQSettingsHeading::Iterator grpit = hd.find(group);
if (grpit == hd.end()) {
TQStringList::Iterator it = searchPaths.begin();
if ( !globalScope )
++it;
while (it != searchPaths.end()) {
- TQString filebase = heading.lower().tqreplace(TQRegExp(TQString::tqfromLatin1("\\s+")), "_");
+ TQString filebase = heading.lower().replace(TQRegExp(TQString::tqfromLatin1("\\s+")), "_");
TQString fn((*it++) + "/" + filebase + "rc");
- if (! hd.tqcontains(fn + "cached")) {
+ if (! hd.contains(fn + "cached")) {
hd.read(fn);
hd.insert(fn + "cached", TQSettingsGroup());
}
}
- headings.tqreplace(heading, hd);
+ headings.replace(heading, hd);
- grpit = hd.tqfind(group);
+ grpit = hd.find(group);
if (grpit != hd.end())
grp = *grpit;
} else if (hd.count() != 0)
@@ -565,27 +565,27 @@ void TQSettingsPrivate::removeGroup(const TQString &key)
TQSettingsGroup grp;
bool found = FALSE;
- TQMap<TQString,TQSettingsHeading>::Iterator headingsit = headings.tqfind(heading);
+ TQMap<TQString,TQSettingsHeading>::Iterator headingsit = headings.find(heading);
if (headingsit != headings.end())
hd = *headingsit;
- TQSettingsHeading::Iterator grpit = hd.tqfind(group);
+ TQSettingsHeading::Iterator grpit = hd.find(group);
if (grpit == hd.end()) {
TQStringList::Iterator it = searchPaths.begin();
if ( !globalScope )
++it;
while (it != searchPaths.end()) {
- TQString filebase = heading.lower().tqreplace(TQRegExp(TQString::tqfromLatin1("\\s+")), "_");
+ TQString filebase = heading.lower().replace(TQRegExp(TQString::tqfromLatin1("\\s+")), "_");
TQString fn((*it++) + "/" + filebase + "rc");
- if (! hd.tqcontains(fn + "cached")) {
+ if (! hd.contains(fn + "cached")) {
hd.read(fn);
hd.insert(fn + "cached", TQSettingsGroup());
}
}
- headings.tqreplace(heading, hd);
+ headings.replace(heading, hd);
- grpit = hd.tqfind(group);
+ grpit = hd.find(group);
if (grpit != hd.end()) {
found = TRUE;
grp = *grpit;
@@ -599,12 +599,12 @@ void TQSettingsPrivate::removeGroup(const TQString &key)
grp.remove(key);
if (grp.count() > 0)
- hd.tqreplace(group, grp);
+ hd.replace(group, grp);
else
hd.remove(group);
if (hd.count() > 0)
- headings.tqreplace(heading, hd);
+ headings.replace(heading, hd);
else
headings.remove(heading);
@@ -618,36 +618,36 @@ void TQSettingsPrivate::writeGroup(const TQString &key, const TQString &value)
TQSettingsHeading hd;
TQSettingsGroup grp;
- TQMap<TQString,TQSettingsHeading>::Iterator headingsit = headings.tqfind(heading);
+ TQMap<TQString,TQSettingsHeading>::Iterator headingsit = headings.find(heading);
if (headingsit != headings.end())
hd = *headingsit;
- TQSettingsHeading::Iterator grpit = hd.tqfind(group);
+ TQSettingsHeading::Iterator grpit = hd.find(group);
if (grpit == hd.end()) {
TQStringList::Iterator it = searchPaths.begin();
if ( !globalScope )
++it;
while (it != searchPaths.end()) {
- TQString filebase = heading.lower().tqreplace(TQRegExp(TQString::tqfromLatin1("\\s+")), "_");
+ TQString filebase = heading.lower().replace(TQRegExp(TQString::tqfromLatin1("\\s+")), "_");
TQString fn((*it++) + "/" + filebase + "rc");
- if (! hd.tqcontains(fn + "cached")) {
+ if (! hd.contains(fn + "cached")) {
hd.read(fn);
hd.insert(fn + "cached", TQSettingsGroup());
}
}
- headings.tqreplace(heading, hd);
+ headings.replace(heading, hd);
- grpit = hd.tqfind(group);
+ grpit = hd.find(group);
if (grpit != hd.end())
grp = *grpit;
} else if (hd.count() != 0)
grp = *grpit;
grp.modified = TRUE;
- grp.tqreplace(key, value);
- hd.tqreplace(group, grp);
- headings.tqreplace(heading, hd);
+ grp.replace(key, value);
+ hd.replace(group, grp);
+ headings.replace(heading, hd);
modified = TRUE;
}
@@ -674,7 +674,7 @@ TQDateTime TQSettingsPrivate::modificationTime()
bool qt_verify_key( const TQString &key )
{
- if ( key.isEmpty() || key[0] != '/' || key.tqcontains( TQRegExp(TQString::tqfromLatin1("[=\\r\\n]")) ) )
+ if ( key.isEmpty() || key[0] != '/' || key.contains( TQRegExp(TQString::tqfromLatin1("[=\\r\\n]")) ) )
return FALSE;
return TRUE;
}
@@ -683,7 +683,7 @@ static TQString groupKey( const TQString &group, const TQString &key )
{
TQString grp_key;
if ( group.isEmpty() || ( group.length() == 1 && group[0] == '/' ) ) {
- // group is empty, or it tqcontains a single '/', so we just return the key
+ // group is empty, or it contains a single '/', so we just return the key
if ( key.startsWith( "/" ) )
grp_key = key;
else
@@ -775,7 +775,7 @@ static TQString groupKey( const TQString &group, const TQString &key )
Settings under Unix are stored in files whose names are based on the
first subkey of the key (not including the search path). The algorithm
- for creating names is essentially: lowercase the first subkey, tqreplace
+ for creating names is essentially: lowercase the first subkey, replace
spaces with underscores and add 'rc', e.g.
<tt>/MyCompany/MyApplication/background color</tt> will be stored in
<tt>myapplicationrc</tt> (assuming that <tt>/MyCompany</tt> is part of
@@ -826,7 +826,7 @@ void TQSettings::insertSearchPath( System s, const TQString &path)
realPath = defPath + path;
#endif
- TQStringList::Iterator it = d->searchPaths.tqfind(d->searchPaths.last());
+ TQStringList::Iterator it = d->searchPaths.find(d->searchPaths.last());
if (it != d->searchPaths.end()) {
d->searchPaths.insert(it, realPath);
}
@@ -958,7 +958,7 @@ bool TQSettings::sync()
if ( !d->globalScope )
++pit;
while (pit != d->searchPaths.end()) {
- TQString filebase = it.key().lower().tqreplace(TQRegExp(TQString::tqfromLatin1("\\s+")), "_");
+ TQString filebase = it.key().lower().replace(TQRegExp(TQString::tqfromLatin1("\\s+")), "_");
TQFileInfo di(*pit);
if ( !di.exists() ) {
TQDir dir;
@@ -1024,8 +1024,8 @@ bool TQSettings::sync()
if ( v.isNull() ) {
v = TQString::tqfromLatin1("\\0"); // escape null string
} else {
- v.tqreplace('\\', TQString::tqfromLatin1("\\\\")); // escape backslash
- v.tqreplace('\n', TQString::tqfromLatin1("\\n")); // escape newlines
+ v.replace('\\', TQString::tqfromLatin1("\\\\")); // escape backslash
+ v.replace('\n', TQString::tqfromLatin1("\\n")); // escape newlines
}
stream << grpit.key() << "=" << v << endl;
@@ -1290,7 +1290,7 @@ TQString TQSettings::readEntry(const TQString &key, const TQString &def, bool *o
}
TQSettingsGroup grp = d->readGroup();
- TQSettingsGroup::const_iterator it = grp.tqfind( realkey ), end = grp.end();
+ TQSettingsGroup::const_iterator it = grp.find( realkey ), end = grp.end();
TQString retval = def;
if ( it != end ) {
// found the value we needed
@@ -1401,7 +1401,7 @@ bool TQSettings::writeEntry(const TQString &key, int value)
Writes the entry specified by \a key with the string-literal \a value,
replacing any previous setting. If \a value is zero-length or null, the
- entry is tqreplaced by an empty setting.
+ entry is replaced by an empty setting.
\e NOTE: This function is provided because some compilers use the
writeEntry (const TQString &, bool) overload for this code:
@@ -1564,7 +1564,7 @@ bool TQSettings::removeEntry(const TQString &key)
In the above example, \c keys will contain 'background color' and
'foreground color'. It will not contain 'tqgeometry' because this key
- tqcontains subkeys not entries.
+ contains subkeys not entries.
To access the tqgeometry values, you could either use subkeyList()
to read the keys then read each entry, or simply read each entry
@@ -1633,7 +1633,7 @@ TQStringList TQSettings::entryList(const TQString &key) const
itkey.remove( 0, realkey.length() + 1 );
}
- if ( itkey.tqfind( '/' ) != -1 )
+ if ( itkey.find( '/' ) != -1 )
continue;
ret << itkey;
@@ -1734,7 +1734,7 @@ TQStringList TQSettings::subkeyList(const TQString &key) const
if ( subkeycount == 1 ) {
TQMap<TQString,TQSettingsHeading>::Iterator it = d->headings.begin();
while ( it != d->headings.end() ) {
- if ( it.key() != "General" && ! ret.tqcontains( it.key() ) )
+ if ( it.key() != "General" && ! ret.contains( it.key() ) )
ret << it.key();
++it;
}
@@ -1758,12 +1758,12 @@ TQStringList TQSettings::subkeyList(const TQString &key) const
itkey.remove( 0, realkey.length() + 1 );
}
- int slash = itkey.tqfind( '/' );
+ int slash = itkey.find( '/' );
if ( slash == -1 )
continue;
itkey.truncate( slash );
- if ( ! ret.tqcontains( itkey ) )
+ if ( ! ret.contains( itkey ) )
ret << itkey;
}
@@ -1868,7 +1868,7 @@ bool TQSettings::writeEntry(const TQString &key, const TQStringList &value)
if ( el.isNull() ) {
el = "^0";
} else {
- el.tqreplace("^", "^^");
+ el.replace("^", "^^");
}
s+=el;
s+="^e"; // end of element
@@ -2005,7 +2005,7 @@ void TQSettings::setPath( const TQString &domain, const TQString &product, Scope
// scope.
//
// On MacOS X, if there is no "." in domain, append ".com", then reverse the
-// order of the elements (Mac OS uses "com.apple.tqfinder" as domain+product).
+// order of the elements (Mac OS uses "com.apple.finder" as domain+product).
// The Global scope corresponds to /Library/Preferences/*.plist, while the
// User scope corresponds to ~/Library/Preferences/*.plist.
// Note that on most installations, not all users can write to the System
@@ -2013,7 +2013,7 @@ void TQSettings::setPath( const TQString &domain, const TQString &product, Scope
d->globalScope = scope == Global;
TQString actualSearchPath;
- int lastDot = domain.tqfindRev( '.' );
+ int lastDot = domain.findRev( '.' );
#if defined(TQ_WS_WIN)
actualSearchPath = "/" + domain.mid( 0, lastDot ) + "/" + product;
diff --git a/tqtinterface/qt4/src/tools/tqstring.cpp b/tqtinterface/qt4/src/tools/tqstring.cpp
index 9c31fcc..c57b539 100644
--- a/tqtinterface/qt4/src/tools/tqstring.cpp
+++ b/tqtinterface/qt4/src/tools/tqstring.cpp
@@ -86,7 +86,7 @@
// static QHash<void *, QByteArray> *asciiCache = 0;
TQT_STATIC_CONST_IMPL TQChar TQChar::null;
-TQT_STATIC_CONST_IMPL TQChar TQChar::tqreplacement((ushort)0xfffd);
+TQT_STATIC_CONST_IMPL TQChar TQChar::replacement((ushort)0xfffd);
TQT_STATIC_CONST_IMPL TQChar TQChar::byteOrderMark((ushort)0xfeff);
TQT_STATIC_CONST_IMPL TQChar TQChar::byteOrderSwapped((ushort)0xfffe);
TQT_STATIC_CONST_IMPL TQChar TQChar::nbsp((ushort)0x00a0);
@@ -610,10 +610,10 @@ struct ArgEscapeData
uint locale_occurrences; // number of occurences of the lowest escape
// sequence number which contain 'L'
uint escape_len; // total length of escape sequences which will
- // be tqreplaced
+ // be replaced
};
-static ArgEscapeData tqfindArgEscapes(const TQString &s)
+static ArgEscapeData findArgEscapes(const TQString &s)
{
const TQChar *uc_begin = s.tqunicode();
const TQChar *uc_end = uc_begin + s.length();
@@ -658,7 +658,7 @@ static ArgEscapeData tqfindArgEscapes(const TQString &s)
#if TQT_VERSION < 0x040000
// ### remove preprocessor in TQt 4.0
- /* Since in TQt < 4.0 only the first instance is tqreplaced,
+ /* Since in TQt < 4.0 only the first instance is replaced,
escape_len should hold the length of only the first escape
sequence */
if (d.occurrences == 0)
@@ -677,7 +677,7 @@ static ArgEscapeData tqfindArgEscapes(const TQString &s)
return d;
}
-static TQString tqreplaceArgEscapes(const TQString &s, const ArgEscapeData &d, int field_width,
+static TQString replaceArgEscapes(const TQString &s, const ArgEscapeData &d, int field_width,
const TQString &arg, const TQString &larg)
{
const TQChar *uc_begin = s.tqunicode();
@@ -766,7 +766,7 @@ static TQString tqreplaceArgEscapes(const TQString &s, const ArgEscapeData &d, i
}
/*!
- This function will return a string that tqreplaces the lowest
+ This function will return a string that replaces the lowest
numbered occurrence of \c %1, \c %2, ..., \c %9 with \a a.
The \a fieldWidth value specifies the minimum amount of space that
@@ -796,7 +796,7 @@ static TQString tqreplaceArgEscapes(const TQString &s, const ArgEscapeData &d, i
*/
TQString TQString::tqarg( const TQString& a, int fieldWidth ) const
{
- ArgEscapeData d = tqfindArgEscapes(*this);
+ ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
qWarning( "TQString::tqarg(): Argument missing: %s, %s", latin1(),
@@ -804,7 +804,7 @@ TQString TQString::tqarg( const TQString& a, int fieldWidth ) const
return *this;
}
- return tqreplaceArgEscapes(*this, d, fieldWidth, a, a);
+ return replaceArgEscapes(*this, d, fieldWidth, a, a);
}
/*!
@@ -813,8 +813,8 @@ TQString TQString::tqarg( const TQString& a, int fieldWidth ) const
\overload
This is the same as str.tqarg(\a a1).tqarg(\a a2), except that
- the strings are tqreplaced in one pass. This can make a difference
- if \a a1 tqcontains e.g. \c{%1}:
+ the strings are replaced in one pass. This can make a difference
+ if \a a1 contains e.g. \c{%1}:
\code
TQString str( "%1 %2" );
@@ -832,7 +832,7 @@ TQString TQString::tqarg( const TQString& a, int fieldWidth ) const
\overload
This is the same as calling str.tqarg(\a a1).tqarg(\a a2).tqarg(\a a3),
- except that the strings are tqreplaced in one pass.
+ except that the strings are replaced in one pass.
*/
/*!
@@ -842,7 +842,7 @@ TQString TQString::tqarg( const TQString& a, int fieldWidth ) const
This is the same as calling
str.tqarg(\a a1).tqarg(\a a2).tqarg(\a a3).tqarg(\a a4),
- except that the strings are tqreplaced in one pass.
+ except that the strings are replaced in one pass.
*/
/*!
@@ -857,7 +857,7 @@ TQString TQString::tqarg( const TQString& a, int fieldWidth ) const
be between 2 and 36.
The '%' can be followed by an 'L', in which case the sequence is
- tqreplaced with a localized representation of \a a. The conversion
+ replaced with a localized representation of \a a. The conversion
uses the default locale. The default locale is determined from the
system's locale settings at application startup. It can be changed
using TQLocale::setDefault(). The 'L' flag is ignored if \a base is
@@ -903,7 +903,7 @@ TQString TQString::tqarg( ulong a, int fieldWidth, int base ) const
*/
TQString TQString::tqarg( TQ_LLONG a, int fieldWidth, int base ) const
{
- ArgEscapeData d = tqfindArgEscapes(*this);
+ ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
qWarning( "TQString::tqarg(): Argument missing: %s, %lld", latin1(),
@@ -921,7 +921,7 @@ TQString TQString::tqarg( TQ_LLONG a, int fieldWidth, int base ) const
locale_arg = locale.d->longLongToString(a, -1, base, -1, TQLocalePrivate::ThousandsGroup);
}
- return tqreplaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
+ return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
}
/*!
@@ -933,7 +933,7 @@ TQString TQString::tqarg( TQ_LLONG a, int fieldWidth, int base ) const
*/
TQString TQString::tqarg( TQ_ULLONG a, int fieldWidth, int base ) const
{
- ArgEscapeData d = tqfindArgEscapes(*this);
+ ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
qWarning( "TQString::tqarg(): Argument missing: %s, %llu", latin1(),
@@ -951,7 +951,7 @@ TQString TQString::tqarg( TQ_ULLONG a, int fieldWidth, int base ) const
locale_arg = locale.d->unsLongLongToString(a, -1, base, -1, TQLocalePrivate::ThousandsGroup);
}
- return tqreplaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
+ return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
}
/*!
@@ -1049,7 +1049,7 @@ TQString TQString::tqarg( TQChar a, int fieldWidth ) const
*/
TQString TQString::tqarg( double a, int fieldWidth, char fmt, int prec ) const
{
- ArgEscapeData d = tqfindArgEscapes(*this);
+ ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
qWarning( "TQString::tqarg(): Argument missing: %s, %g", latin1(),
@@ -1094,7 +1094,7 @@ TQString TQString::tqarg( double a, int fieldWidth, char fmt, int prec ) const
locale_arg = locale.d->doubleToString(a, prec, form, -1, flags);
}
- return tqreplaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
+ return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
}
TQString TQString::tqmultiArg( int numArgs, const TQString& a1, const TQString& a2, const TQString& a3, const TQString& a4 ) const
@@ -1267,7 +1267,7 @@ TQString TQString::setUnicodeCodes( const ushort* tqunicode_as_ushorts, uint len
double d = TQString( "1,234,567.89" ).toDouble(&ok); // ok == false
\endcode
- \warning If the string tqcontains trailing whitespace this function
+ \warning If the string contains trailing whitespace this function
will fail, and set \a *ok to false if \a ok is not 0. Leading
whitespace is ignored.
@@ -1317,7 +1317,7 @@ double TQString::toDouble( bool *ok ) const
For information on how string-to-number functions in TQString handle
localized input, see toDouble().
- \warning If the string tqcontains trailing whitespace this function
+ \warning If the string contains trailing whitespace this function
will fail, settings \a *ok to false if \a ok is not 0.
Leading whitespace is ignored.
@@ -2345,8 +2345,8 @@ void TQString::compose()
// joining info is only needed for Arabic
if (format(ligature.tag(), *this, index, len)) {
//printf("using ligature 0x%x, len=%d\n",code,len);
- // tqreplace letter
- composed.tqreplace(cindex, len, TQChar(head));
+ // replace letter
+ composed.replace(cindex, len, TQChar(head));
index += len-1;
// we continue searching in case we have a final
// form because medial ones are preferred.
@@ -2541,11 +2541,11 @@ char* TQString::tqunicodeToLatin1(const TQChar *uc, uint l)
check for a non-null string rather than \c{if ( !str )}; see \l
operator!() for an explanation.
- Note that if you tqfind that you are mixing usage of \l TQCString,
+ Note that if you find that you are mixing usage of \l TQCString,
TQString, and \l TQByteArray, this causes lots of unnecessary
copying and might indicate that the true nature of the data you
are dealing with is uncertain. If the data is '\0'-terminated 8-bit
- data, use \l TQCString; if it is unterminated (i.e. tqcontains '\0's)
+ data, use \l TQCString; if it is unterminated (i.e. contains '\0's)
8-bit data, use \l TQByteArray; if it is text, use TQString.
Lists of strings are handled by the TQStringList class. You can
@@ -2618,7 +2618,7 @@ char* TQString::tqunicodeToLatin1(const TQChar *uc, uint l)
\value ExactMatch The target and search strings must match exactly.
\value BeginsWith The target string begins with the search string.
\value EndsWith The target string ends with the search string.
- \value Contains The target string tqcontains the search string.
+ \value Contains The target string contains the search string.
If you OR these flags together (excluding \c CaseSensitive), the
search criteria be applied in the following order: \c ExactMatch,
@@ -2632,7 +2632,7 @@ char* TQString::tqunicodeToLatin1(const TQChar *uc, uint l)
TQ_EXPORT TQStringData *TQString::shared_null = 0;
TQT_STATIC_CONST_IMPL TQString TQString::null;
TQT_STATIC_CONST_IMPL TQChar TQChar::null;
-TQT_STATIC_CONST_IMPL TQChar TQChar::tqreplacement((ushort)0xfffd);
+TQT_STATIC_CONST_IMPL TQChar TQChar::replacement((ushort)0xfffd);
TQT_STATIC_CONST_IMPL TQChar TQChar::byteOrderMark((ushort)0xfeff);
TQT_STATIC_CONST_IMPL TQChar TQChar::byteOrderSwapped((ushort)0xfffe);
TQT_STATIC_CONST_IMPL TQChar TQChar::nbsp((ushort)0x00a0);
@@ -3005,7 +3005,7 @@ void TQString::truncate( uint newLen )
/*!
Ensures that at least \a newLen characters are allocated to the
string, and sets the length of the string to \a newLen. Any new
- space allocated tqcontains arbitrary data.
+ space allocated contains arbitrary data.
\sa reserve(), truncate()
*/
@@ -3121,10 +3121,10 @@ struct ArgEscapeData
uint locale_occurrences; // number of occurences of the lowest escape
// sequence number which contain 'L'
uint escape_len; // total length of escape sequences which will
- // be tqreplaced
+ // be replaced
};
-static ArgEscapeData tqfindArgEscapes(const TQString &s)
+static ArgEscapeData findArgEscapes(const TQString &s)
{
const TQChar *uc_begin = s.tqunicode();
const TQChar *uc_end = uc_begin + s.length();
@@ -3169,7 +3169,7 @@ static ArgEscapeData tqfindArgEscapes(const TQString &s)
#if TQT_VERSION < 0x040000
// ### remove preprocessor in TQt 4.0
- /* Since in TQt < 4.0 only the first instance is tqreplaced,
+ /* Since in TQt < 4.0 only the first instance is replaced,
escape_len should hold the length of only the first escape
sequence */
if (d.occurrences == 0)
@@ -3188,7 +3188,7 @@ static ArgEscapeData tqfindArgEscapes(const TQString &s)
return d;
}
-static TQString tqreplaceArgEscapes(const TQString &s, const ArgEscapeData &d, int field_width,
+static TQString replaceArgEscapes(const TQString &s, const ArgEscapeData &d, int field_width,
const TQString &arg, const TQString &larg)
{
const TQChar *uc_begin = s.tqunicode();
@@ -3275,7 +3275,7 @@ static TQString tqreplaceArgEscapes(const TQString &s, const ArgEscapeData &d, i
}
/*!
- This function will return a string that tqreplaces the lowest
+ This function will return a string that replaces the lowest
numbered occurrence of \c %1, \c %2, ..., \c %9 with \a a.
The \a fieldWidth value specifies the minimum amount of space that
@@ -3305,7 +3305,7 @@ static TQString tqreplaceArgEscapes(const TQString &s, const ArgEscapeData &d, i
*/
TQString TQString::arg( const TQString& a, int fieldWidth ) const
{
- ArgEscapeData d = tqfindArgEscapes(*this);
+ ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
qWarning( "TQString::arg(): Argument missing: %s, %s", latin1(),
@@ -3313,7 +3313,7 @@ TQString TQString::arg( const TQString& a, int fieldWidth ) const
return *this;
}
- return tqreplaceArgEscapes(*this, d, fieldWidth, a, a);
+ return replaceArgEscapes(*this, d, fieldWidth, a, a);
}
/*!
@@ -3322,8 +3322,8 @@ TQString TQString::arg( const TQString& a, int fieldWidth ) const
\overload
This is the same as str.arg(\a a1).arg(\a a2), except that
- the strings are tqreplaced in one pass. This can make a difference
- if \a a1 tqcontains e.g. \c{%1}:
+ the strings are replaced in one pass. This can make a difference
+ if \a a1 contains e.g. \c{%1}:
\code
TQString str( "%1 %2" );
@@ -3341,7 +3341,7 @@ TQString TQString::arg( const TQString& a, int fieldWidth ) const
\overload
This is the same as calling str.arg(\a a1).arg(\a a2).arg(\a a3),
- except that the strings are tqreplaced in one pass.
+ except that the strings are replaced in one pass.
*/
/*!
@@ -3351,7 +3351,7 @@ TQString TQString::arg( const TQString& a, int fieldWidth ) const
This is the same as calling
str.arg(\a a1).arg(\a a2).arg(\a a3).arg(\a a4),
- except that the strings are tqreplaced in one pass.
+ except that the strings are replaced in one pass.
*/
/*!
@@ -3366,7 +3366,7 @@ TQString TQString::arg( const TQString& a, int fieldWidth ) const
be between 2 and 36.
The '%' can be followed by an 'L', in which case the sequence is
- tqreplaced with a localized representation of \a a. The conversion
+ replaced with a localized representation of \a a. The conversion
uses the default locale. The default locale is determined from the
system's locale settings at application startup. It can be changed
using TQLocale::setDefault(). The 'L' flag is ignored if \a base is
@@ -3412,7 +3412,7 @@ TQString TQString::arg( ulong a, int fieldWidth, int base ) const
*/
TQString TQString::arg( TQ_LLONG a, int fieldWidth, int base ) const
{
- ArgEscapeData d = tqfindArgEscapes(*this);
+ ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
qWarning( "TQString::arg(): Argument missing: %s, %lld", latin1(),
@@ -3430,7 +3430,7 @@ TQString TQString::arg( TQ_LLONG a, int fieldWidth, int base ) const
locale_arg = locale.d->longLongToString(a, -1, base, -1, TQLocalePrivate::ThousandsGroup);
}
- return tqreplaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
+ return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
}
/*!
@@ -3442,7 +3442,7 @@ TQString TQString::arg( TQ_LLONG a, int fieldWidth, int base ) const
*/
TQString TQString::arg( TQ_ULLONG a, int fieldWidth, int base ) const
{
- ArgEscapeData d = tqfindArgEscapes(*this);
+ ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
qWarning( "TQString::arg(): Argument missing: %s, %llu", latin1(),
@@ -3460,7 +3460,7 @@ TQString TQString::arg( TQ_ULLONG a, int fieldWidth, int base ) const
locale_arg = locale.d->unsLongLongToString(a, -1, base, -1, TQLocalePrivate::ThousandsGroup);
}
- return tqreplaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
+ return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
}
/*!
@@ -3558,7 +3558,7 @@ TQString TQString::arg( TQChar a, int fieldWidth ) const
*/
TQString TQString::arg( double a, int fieldWidth, char fmt, int prec ) const
{
- ArgEscapeData d = tqfindArgEscapes(*this);
+ ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
qWarning( "TQString::arg(): Argument missing: %s, %g", latin1(),
@@ -3603,7 +3603,7 @@ TQString TQString::arg( double a, int fieldWidth, char fmt, int prec ) const
locale_arg = locale.d->doubleToString(a, prec, form, -1, flags);
}
- return tqreplaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
+ return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg);
}
TQString TQString::multiArg( int numArgs, const TQString& a1, const TQString& a2,
@@ -3685,9 +3685,9 @@ TQString TQString::multiArg( int numArgs, const TQString& a1, const TQString& a2
\endcode
For \link TQObject::tr() translations,\endlink especially if the
- strings tqcontains more than one escape sequence, you should
+ strings contains more than one escape sequence, you should
consider using the arg() function instead. This allows the order
- of the tqreplacements to be controlled by the translator, and has
+ of the replacements to be controlled by the translator, and has
Unicode support.
The %lc escape sequence expects a tqunicode character of type ushort
@@ -3770,7 +3770,7 @@ TQString &TQString::sprintf( const char* cformat, ... )
width_str.append(*c++);
// can't be negative - started with a digit
- // tqcontains at least one digit
+ // contains at least one digit
width = width_str.toInt();
}
else if (*c == '*') {
@@ -3795,7 +3795,7 @@ TQString &TQString::sprintf( const char* cformat, ... )
precision_str.append(*c++);
// can't be negative - started with a digit
- // tqcontains at least one digit
+ // contains at least one digit
precision = precision_str.toInt();
}
else if (*c == '*') {
@@ -4080,7 +4080,7 @@ TQString& TQString::fill( TQChar c, int len )
Finds the first occurrence of the character \a c, starting at
position \a index. If \a index is -1, the search starts at the
last character; if -2, at the next to last character and so on.
- (See tqfindRev() for searching backwards.)
+ (See findRev() for searching backwards.)
If \a cs is TRUE (the default), the search is case sensitive;
otherwise the search is case insensitive.
@@ -4088,7 +4088,7 @@ TQString& TQString::fill( TQChar c, int len )
Returns the position of \a c or -1 if \a c could not be found.
*/
-int TQString::tqfind( TQChar c, int index, bool cs ) const
+int TQString::find( TQChar c, int index, bool cs ) const
{
const uint l = length();
if ( index < 0 )
@@ -4144,7 +4144,7 @@ static void bm_init_skiptable( const TQString &pattern, uint *skiptable, bool cs
}
}
-static int bm_tqfind( const TQString &str, int index, const TQString &pattern, uint *skiptable, bool cs )
+static int bm_find( const TQString &str, int index, const TQString &pattern, uint *skiptable, bool cs )
{
const uint l = str.length();
if ( pattern.isEmpty() )
@@ -4217,7 +4217,7 @@ static int bm_tqfind( const TQString &str, int index, const TQString &pattern, u
Finds the first occurrence of the string \a str, starting at
position \a index. If \a index is -1, the search starts at the
last character, if it is -2, at the next to last character and so
- on. (See tqfindRev() for searching backwards.)
+ on. (See findRev() for searching backwards.)
If \a cs is TRUE (the default), the search is case sensitive;
otherwise the search is case insensitive.
@@ -4225,7 +4225,7 @@ static int bm_tqfind( const TQString &str, int index, const TQString &pattern, u
Returns the position of \a str or -1 if \a str could not be found.
*/
-int TQString::tqfind( const TQString& str, int index, bool cs ) const
+int TQString::find( const TQString& str, int index, bool cs ) const
{
const uint l = length();
const uint sl = str.length();
@@ -4240,7 +4240,7 @@ int TQString::tqfind( const TQString& str, int index, bool cs ) const
#if defined(TQ_OS_MACX) && defined(TQT_MACOSX_VERSION) && TQT_MACOSX_VERSION >= 0x1020
if ( sl == 1 )
- return tqfind( *str.tqunicode(), index, cs );
+ return find( *str.tqunicode(), index, cs );
#endif
// we use the Boyer-Moore algorithm in cases where the overhead
@@ -4249,7 +4249,7 @@ int TQString::tqfind( const TQString& str, int index, bool cs ) const
if ( l > 500 && sl > 5 ) {
uint skiptable[0x100];
bm_init_skiptable( str, skiptable, cs );
- return bm_tqfind( *this, index, str, skiptable, cs );
+ return bm_find( *this, index, str, skiptable, cs );
}
/*
@@ -4303,17 +4303,17 @@ int TQString::tqfind( const TQString& str, int index, bool cs ) const
}
/*!
- \fn int TQString::tqfindRev( const char* str, int index ) const
+ \fn int TQString::findRev( const char* str, int index ) const
- Equivalent to tqfindRev(TQString(\a str), \a index).
+ Equivalent to findRev(TQString(\a str), \a index).
*/
/*!
- \fn int TQString::tqfind( const char* str, int index ) const
+ \fn int TQString::find( const char* str, int index ) const
\overload
- Equivalent to tqfind(TQString(\a str), \a index).
+ Equivalent to find(TQString(\a str), \a index).
*/
/*!
@@ -4331,14 +4331,14 @@ int TQString::tqfind( const TQString& str, int index, bool cs ) const
\code
TQString string( "bananas" );
- int i = string.tqfindRev( 'a' ); // i == 5
+ int i = string.findRev( 'a' ); // i == 5
\endcode
*/
-int TQString::tqfindRev( TQChar c, int index, bool cs ) const
+int TQString::findRev( TQChar c, int index, bool cs ) const
{
#if defined(TQ_OS_MACX) && defined(TQT_MACOSX_VERSION) && TQT_MACOSX_VERSION < 0x1020
- return tqfindRev( TQString( c ), index, cs );
+ return findRev( TQString( c ), index, cs );
#else
const uint l = length();
if ( index < 0 )
@@ -4374,14 +4374,14 @@ int TQString::tqfindRev( TQChar c, int index, bool cs ) const
\code
TQString string("bananas");
- int i = string.tqfindRev( "ana" ); // i == 3
+ int i = string.findRev( "ana" ); // i == 3
\endcode
*/
-int TQString::tqfindRev( const TQString& str, int index, bool cs ) const
+int TQString::findRev( const TQString& str, int index, bool cs ) const
{
/*
- See TQString::tqfind() for explanations.
+ See TQString::find() for explanations.
*/
const uint l = length();
if ( index < 0 )
@@ -4395,7 +4395,7 @@ int TQString::tqfindRev( const TQString& str, int index, bool cs ) const
#if defined(TQ_OS_MACX) && defined(TQT_MACOSX_VERSION) && TQT_MACOSX_VERSION >= 0x1020
if ( sl == 1 )
- return tqfindRev( *str.tqunicode(), index, cs );
+ return findRev( *str.tqunicode(), index, cs );
#endif
const TQChar* needle = str.tqunicode();
@@ -4718,12 +4718,12 @@ TQString TQString::section( const TQRegExp &reg, int start, int end, int flags )
\code
TQString string( "Trolltech and TQt" );
- int n = string.tqcontains( 't', FALSE );
+ int n = string.contains( 't', FALSE );
// n == 3
\endcode
*/
-int TQString::tqcontains( TQChar c, bool cs ) const
+int TQString::contains( TQChar c, bool cs ) const
{
int count = 0;
const TQChar *uc = tqunicode();
@@ -4755,19 +4755,19 @@ int TQString::tqcontains( TQChar c, bool cs ) const
If \a cs is TRUE (the default), the search is case sensitive;
otherwise the search is case insensitive.
*/
-int TQString::tqcontains( const char* str, bool cs ) const
+int TQString::contains( const char* str, bool cs ) const
{
- return tqcontains( TQString(str), cs );
+ return contains( TQString(str), cs );
}
/*!
- \fn int TQString::tqcontains( char c, bool cs ) const
+ \fn int TQString::contains( char c, bool cs ) const
\overload
*/
/*!
- \fn int TQString::tqfind( char c, int index, bool cs ) const
+ \fn int TQString::find( char c, int index, bool cs ) const
\overload
@@ -4778,7 +4778,7 @@ int TQString::tqcontains( const char* str, bool cs ) const
*/
/*!
- \fn int TQString::tqfindRev( char c, int index, bool cs ) const
+ \fn int TQString::findRev( char c, int index, bool cs ) const
\overload
@@ -4802,13 +4802,13 @@ int TQString::tqcontains( const char* str, bool cs ) const
\code
TQString str( "bananas" );
- int i = str.tqcontains( "ana" ); // i == 2
+ int i = str.contains( "ana" ); // i == 2
\endcode
- \sa tqfindRev()
+ \sa findRev()
*/
-int TQString::tqcontains( const TQString &str, bool cs ) const
+int TQString::contains( const TQString &str, bool cs ) const
{
if ( isNull() )
return 0;
@@ -4817,13 +4817,13 @@ int TQString::tqcontains( const TQString &str, bool cs ) const
bm_init_skiptable( str, skiptable, cs );
int i = -1;
// use boyer-moore for the ultimate speed experience
- while ( ( i = bm_tqfind( *this, i + 1, str, skiptable, cs ) ) != -1 )
+ while ( ( i = bm_find( *this, i + 1, str, skiptable, cs ) ) != -1 )
count++;
return count;
}
/*!
- Returns a substring that tqcontains the \a len leftmost characters
+ Returns a substring that contains the \a len leftmost characters
of the string.
The whole string is returned if \a len exceeds the length of the
@@ -4854,7 +4854,7 @@ TQString TQString::left( uint len ) const
}
/*!
- Returns a string that tqcontains the \a len rightmost characters of
+ Returns a string that contains the \a len rightmost characters of
the string.
If \a len is greater than the length of the string then the whole
@@ -4886,7 +4886,7 @@ TQString TQString::right( uint len ) const
}
/*!
- Returns a string that tqcontains the \a len characters of this
+ Returns a string that contains the \a len characters of this
string, starting at position \a index.
Returns a null string if the string is empty or \a index is out of
@@ -4922,7 +4922,7 @@ TQString TQString::mid( uint index, uint len ) const
}
/*!
- Returns a string of length \a width that tqcontains this string
+ Returns a string of length \a width that contains this string
padded by the \a fill character.
If \a truncate is FALSE and the length of the string is more than
@@ -4962,7 +4962,7 @@ TQString TQString::leftJustify( uint width, TQChar fill, bool truncate ) const
}
/*!
- Returns a string of length \a width that tqcontains the \a fill
+ Returns a string of length \a width that contains the \a fill
character followed by the string.
If \a truncate is FALSE and the length of the string is more than
@@ -5115,7 +5115,7 @@ TQString TQString::stripWhiteSpace() const
/*!
Returns a string that has whitespace removed from the start and
the end, and which has each sequence of internal whitespace
- tqreplaced with a single space.
+ replaced with a single space.
Whitespace means any character for which TQChar::isSpace() returns
TRUE. This includes Unicode characters with decimal values 9
@@ -5170,7 +5170,7 @@ TQString TQString::simplifyWhiteSpace() const
// str == "I don't like fish"
\endcode
- \sa remove(), tqreplace()
+ \sa remove(), replace()
*/
TQString &TQString::insert( uint index, const TQString &s )
@@ -5388,7 +5388,7 @@ TQString &TQString::prepend( const char *s )
string.remove( 1, 4 ); // string == "Meal"
\endcode
- \sa insert(), tqreplace()
+ \sa insert(), replace()
*/
TQString &TQString::remove( uint index, uint len )
@@ -5412,7 +5412,7 @@ TQString &TQString::remove( uint index, uint len )
Removes every occurrence of the character \a c in the string.
Returns a reference to the string.
- This is the same as tqreplace(\a c, "").
+ This is the same as replace(\a c, "").
*/
TQString &TQString::remove( TQChar c )
{
@@ -5434,7 +5434,7 @@ TQString &TQString::remove( TQChar c )
Removes every occurrence of the character \a c in the string.
Returns a reference to the string.
- This is the same as tqreplace(\a c, "").
+ This is the same as replace(\a c, "").
*/
/*! \overload
@@ -5445,7 +5445,7 @@ TQString &TQString::remove( TQChar c )
If \a cs is TRUE (the default), the search is case sensitive;
otherwise the search is case insensitive.
- This is the same as tqreplace(\a str, "", \a cs).
+ This is the same as replace(\a str, "", \a cs).
*/
TQString &TQString::remove( const TQString & str, bool cs )
{
@@ -5454,7 +5454,7 @@ TQString &TQString::remove( const TQString & str, bool cs )
real_detach();
} else {
int index = 0;
- while ( (index = tqfind(str, index, cs)) != -1 )
+ while ( (index = find(str, index, cs)) != -1 )
remove( index, str.length() );
}
return *this;
@@ -5470,7 +5470,7 @@ TQString &TQString::remove( const TQString & str )
Replaces every occurrence of \a c1 with the char \a c2. Returns a
reference to the string.
*/
-TQString &TQString::tqreplace( TQChar c1, TQChar c2 )
+TQString &TQString::replace( TQChar c1, TQChar c2 )
{
if ( isEmpty() )
return *this;
@@ -5492,12 +5492,12 @@ TQString &TQString::tqreplace( TQChar c1, TQChar c2 )
Removes every occurrence of the regular expression \a rx in the
string. Returns a reference to the string.
- This is the same as tqreplace(\a rx, "").
+ This is the same as replace(\a rx, "").
*/
TQString &TQString::remove( const TQRegExp & rx )
{
- return tqreplace( rx, TQString::null );
+ return replace( rx, TQString::null );
}
#endif
@@ -5525,7 +5525,7 @@ TQString &TQString::remove( const char *str )
\code
TQString string( "Say yes!" );
- string = string.tqreplace( 4, 3, "NO" );
+ string = string.replace( 4, 3, "NO" );
// string == "Say NO!"
\endcode
@@ -5538,24 +5538,24 @@ TQString &TQString::remove( const char *str )
\sa insert(), remove()
*/
-TQString &TQString::tqreplace( uint index, uint len, const TQString &s )
+TQString &TQString::replace( uint index, uint len, const TQString &s )
{
- return tqreplace( index, len, s.tqunicode(), s.length() );
+ return replace( index, len, s.tqunicode(), s.length() );
}
/*! \overload
- This is the same as tqreplace(\a index, \a len, TQString(\a c)).
+ This is the same as replace(\a index, \a len, TQString(\a c)).
*/
-TQString &TQString::tqreplace( uint index, uint len, TQChar c )
+TQString &TQString::replace( uint index, uint len, TQChar c )
{
- return tqreplace( index, len, &c, 1 );
+ return replace( index, len, &c, 1 );
}
/*! \overload
- \fn TQString &TQString::tqreplace( uint index, uint len, char c )
+ \fn TQString &TQString::replace( uint index, uint len, char c )
- This is the same as tqreplace(\a index, \a len, TQChar(\a c)).
+ This is the same as replace(\a index, \a len, TQChar(\a c)).
*/
/*!
@@ -5568,19 +5568,19 @@ TQString &TQString::tqreplace( uint index, uint len, TQChar c )
\sa insert(), remove()
*/
-TQString &TQString::tqreplace( uint index, uint len, const TQChar* s, uint slen )
+TQString &TQString::replace( uint index, uint len, const TQChar* s, uint slen )
{
if (index > length())
index = length();
real_detach();
if ( len == slen && index + len <= length() ) {
- // Optimized common case: tqreplace without size change
+ // Optimized common case: replace without size change
memcpy( d->tqunicode+index, s, len * sizeof(TQChar) );
} else if ( s >= d->tqunicode && (uint)(s - d->tqunicode) < d->maxl ) {
// Part of me - take a copy.
TQChar *tmp = TQT_ALLOC_TQCHAR_VEC( slen );
memcpy( tmp, s, slen * sizeof(TQChar) );
- tqreplace( index, len, tmp, slen );
+ replace( index, len, tmp, slen );
TQT_DELETE_TQCHAR_VEC( tmp );
} else {
remove( index, len );
@@ -5600,22 +5600,22 @@ TQString &TQString::tqreplace( uint index, uint len, const TQChar* s, uint slen
Example:
\code
TQString s = "a,b,c";
- s.tqreplace( TQChar(','), " or " );
+ s.replace( TQChar(','), " or " );
// s == "a or b or c"
\endcode
*/
-TQString &TQString::tqreplace( TQChar c, const TQString & after, bool cs )
+TQString &TQString::replace( TQChar c, const TQString & after, bool cs )
{
- return tqreplace( TQString( c ), after, cs );
+ return replace( TQString( c ), after, cs );
}
-TQString &TQString::tqreplace( TQChar c, const TQString & after )
+TQString &TQString::replace( TQChar c, const TQString & after )
{
- return tqreplace( TQString( c ), after, TRUE );
+ return replace( TQString( c ), after, TRUE );
}
/*! \overload
- \fn TQString &TQString::tqreplace( char c, const TQString & after, bool cs )
+ \fn TQString &TQString::replace( char c, const TQString & after, bool cs )
Replaces every occurrence of the character \a c in the string
with \a after. Returns a reference to the string.
@@ -5635,11 +5635,11 @@ TQString &TQString::tqreplace( TQChar c, const TQString & after )
Example:
\code
TQString s = "Greek is Greek";
- s.tqreplace( "Greek", "English" );
+ s.replace( "Greek", "English" );
// s == "English is English"
\endcode
*/
-TQString &TQString::tqreplace( const TQString & before, const TQString & after,
+TQString &TQString::replace( const TQString & before, const TQString & after,
bool cs )
{
if ( isEmpty() ) {
@@ -5661,7 +5661,7 @@ TQString &TQString::tqreplace( const TQString & before, const TQString & after,
if ( bl == al ) {
if ( bl ) {
const TQChar *auc = after.tqunicode();
- while ( (index = bm_tqfind(*this, index, before, skiptable, cs) ) != -1 ) {
+ while ( (index = bm_find(*this, index, before, skiptable, cs) ) != -1 ) {
memcpy( d->tqunicode + index, auc, al * sizeof(TQChar) );
index += bl;
}
@@ -5671,7 +5671,7 @@ TQString &TQString::tqreplace( const TQString & before, const TQString & after,
uint to = 0;
uint movestart = 0;
uint num = 0;
- while ( (index = bm_tqfind(*this, index, before, skiptable, cs)) != -1 ) {
+ while ( (index = bm_find(*this, index, before, skiptable, cs)) != -1 ) {
if ( num ) {
int msize = index - movestart;
if ( msize > 0 ) {
@@ -5702,7 +5702,7 @@ TQString &TQString::tqreplace( const TQString & before, const TQString & after,
uint indices[4096];
uint pos = 0;
while ( pos < 4095 ) {
- index = bm_tqfind( *this, index, before, skiptable, cs );
+ index = bm_find( *this, index, before, skiptable, cs );
if ( index == -1 )
break;
indices[pos++] = index;
@@ -5714,7 +5714,7 @@ TQString &TQString::tqreplace( const TQString & before, const TQString & after,
if ( !pos )
break;
- // we have a table of tqreplacement positions, use them for fast replacing
+ // we have a table of replacement positions, use them for fast replacing
int adjust = pos*(al-bl);
// index has to be adjusted in case we get back into the loop above.
if ( index != -1 )
@@ -5738,9 +5738,9 @@ TQString &TQString::tqreplace( const TQString & before, const TQString & after,
return *this;
}
-TQString &TQString::tqreplace( const TQString & before, const TQString & after )
+TQString &TQString::replace( const TQString & before, const TQString & after )
{
- return tqreplace( before, after, TRUE );
+ return replace( before, after, TRUE );
}
#ifndef TQT_NO_REGEXP_CAPTURE
@@ -5750,24 +5750,24 @@ TQString &TQString::tqreplace( const TQString & before, const TQString & after )
\a after. Returns a reference to the string. For example:
\code
TQString s = "banana";
- s.tqreplace( TQRegExp("an"), "" );
+ s.replace( TQRegExp("an"), "" );
// s == "ba"
\endcode
For regexps containing \link tqregexp.html#capturing-text capturing
parentheses \endlink, occurrences of <b>\\1</b>, <b>\\2</b>, ...,
- in \a after are tqreplaced with \a{rx}.cap(1), cap(2), ...
+ in \a after are replaced with \a{rx}.cap(1), cap(2), ...
\code
TQString t = "A <i>bon mot</i>.";
- t.tqreplace( TQRegExp("<i>([^<]*)</i>"), "\\emph{\\1}" );
+ t.replace( TQRegExp("<i>([^<]*)</i>"), "\\emph{\\1}" );
// t == "A \\emph{bon mot}."
\endcode
- \sa tqfind(), tqfindRev(), TQRegExp::cap()
+ \sa find(), findRev(), TQRegExp::cap()
*/
-TQString &TQString::tqreplace( const TQRegExp &rx, const TQString &after )
+TQString &TQString::replace( const TQRegExp &rx, const TQString &after )
{
TQRegExp rx2 = rx;
@@ -5823,10 +5823,10 @@ TQString &TQString::tqreplace( const TQRegExp &rx, const TQString &after )
TQString after2 = after;
for ( j = numBackRefs - 1; j >= 0; j-- )
- after2.tqreplace( capturePositions[j], 2,
+ after2.replace( capturePositions[j], 2,
rx2.cap(captureNumbers[j]) );
- tqreplace( index, rx2.matchedLength(), after2 );
+ replace( index, rx2.matchedLength(), after2 );
index += after2.length();
if ( rx2.matchedLength() == 0 ) {
@@ -5849,7 +5849,7 @@ TQString &TQString::tqreplace( const TQRegExp &rx, const TQString &after )
struct {
int pos;
int length;
- } tqreplacements[2048];
+ } replacements[2048];
uint pos = 0;
int adjust = 0;
@@ -5858,8 +5858,8 @@ TQString &TQString::tqreplace( const TQRegExp &rx, const TQString &after )
if ( index == -1 )
break;
int ml = rx2.matchedLength();
- tqreplacements[pos].pos = index;
- tqreplacements[pos++].length = ml;
+ replacements[pos].pos = index;
+ replacements[pos++].length = ml;
index += ml;
adjust += al - ml;
// avoid infinite loop
@@ -5868,11 +5868,11 @@ TQString &TQString::tqreplace( const TQRegExp &rx, const TQString &after )
}
if ( !pos )
break;
- tqreplacements[pos].pos = d->len;
+ replacements[pos].pos = d->len;
uint newlen = d->len + adjust;
// to continue searching at the right position after we did
- // the first round of tqreplacements
+ // the first round of replacements
if ( index != -1 )
index += adjust;
TQChar *newuc = TQT_ALLOC_TQCHAR_VEC( newlen + 1 );
@@ -5880,13 +5880,13 @@ TQString &TQString::tqreplace( const TQRegExp &rx, const TQString &after )
int copystart = 0;
uint i = 0;
while ( i < pos ) {
- int copyend = tqreplacements[i].pos;
+ int copyend = replacements[i].pos;
int size = copyend - copystart;
memcpy( uc, d->tqunicode + copystart, size * sizeof(TQChar) );
uc += size;
memcpy( uc, after.tqunicode(), al * sizeof(TQChar) );
uc += al;
- copystart = copyend + tqreplacements[i].length;
+ copystart = copyend + replacements[i].length;
i++;
}
memcpy( uc, d->tqunicode + copystart,
@@ -5907,20 +5907,20 @@ TQString &TQString::tqreplace( const TQRegExp &rx, const TQString &after )
Finds the first match of the regular expression \a rx, starting
from position \a index. If \a index is -1, the search starts at
the last character; if -2, at the next to last character and so
- on. (See tqfindRev() for searching backwards.)
+ on. (See findRev() for searching backwards.)
Returns the position of the first match of \a rx or -1 if no match
was found.
\code
TQString string( "bananas" );
- int i = string.tqfind( TQRegExp("an"), 0 ); // i == 1
+ int i = string.find( TQRegExp("an"), 0 ); // i == 1
\endcode
- \sa tqfindRev() tqreplace() tqcontains()
+ \sa findRev() replace() contains()
*/
-int TQString::tqfind( const TQRegExp &rx, int index ) const
+int TQString::find( const TQRegExp &rx, int index ) const
{
return rx.search( *this, index );
}
@@ -5931,19 +5931,19 @@ int TQString::tqfind( const TQRegExp &rx, int index ) const
Finds the first match of the regexp \a rx, starting at position \a
index and searching backwards. If the index is -1, the search
starts at the last character, if it is -2, at the next to last
- character and so on. (See tqfindRev() for searching backwards.)
+ character and so on. (See findRev() for searching backwards.)
Returns the position of the match or -1 if no match was found.
\code
TQString string( "bananas" );
- int i = string.tqfindRev( TQRegExp("an") ); // i == 3
+ int i = string.findRev( TQRegExp("an") ); // i == 3
\endcode
- \sa tqfind()
+ \sa find()
*/
-int TQString::tqfindRev( const TQRegExp &rx, int index ) const
+int TQString::findRev( const TQRegExp &rx, int index ) const
{
return rx.searchRev( *this, index );
}
@@ -5960,13 +5960,13 @@ int TQString::tqfindRev( const TQRegExp &rx, int index ) const
\code
TQString str = "banana and panama";
TQRegExp rxp = TQRegExp( "a[nm]a", TRUE, FALSE );
- int i = str.tqcontains( rxp ); // i == 4
+ int i = str.contains( rxp ); // i == 4
\endcode
- \sa tqfind() tqfindRev()
+ \sa find() findRev()
*/
-int TQString::tqcontains( const TQRegExp &rx ) const
+int TQString::contains( const TQRegExp &rx ) const
{
int count = 0;
int index = -1;
@@ -6376,7 +6376,7 @@ uint TQString::toUInt( bool *ok, int base ) const
double d = TQString( "1,234,567.89" ).toDouble(&ok); // ok == false
\endcode
- \warning If the string tqcontains trailing whitespace this function
+ \warning If the string contains trailing whitespace this function
will fail, and set \a *ok to false if \a ok is not 0. Leading
whitespace is ignored.
@@ -6426,7 +6426,7 @@ double TQString::toDouble( bool *ok ) const
For information on how string-to-number functions in TQString handle
localized input, see toDouble().
- \warning If the string tqcontains trailing whitespace this function
+ \warning If the string contains trailing whitespace this function
will fail, settings \a *ok to false if \a ok is not 0.
Leading whitespace is ignored.
@@ -6975,7 +6975,7 @@ TQString &TQString::operator+=( char c )
/*!
Returns a Latin-1 representation of the string. The
- returned value is undefined if the string tqcontains non-Latin-1
+ returned value is undefined if the string contains non-Latin-1
characters. If you want to convert strings into formats other than
Unicode, see the TQTextCodec classes.
diff --git a/tqtinterface/qt4/src/tools/tqstring.h b/tqtinterface/qt4/src/tools/tqstring.h
index 91ceb9d..c82af1f 100644
--- a/tqtinterface/qt4/src/tools/tqstring.h
+++ b/tqtinterface/qt4/src/tools/tqstring.h
@@ -89,7 +89,7 @@ public:
ByteOrderSwapped = ByteOrderSwapped,
// null = Null,
-// tqreplacement = ReplacementCharacter,
+// replacement = ReplacementCharacter,
// byteOrderMark = ByteOrderMark,
// byteOrderSwapped = ByteOrderSwapped,
// nbsp = Nbsp,
@@ -99,7 +99,7 @@ public:
};
TQT_STATIC_CONST TQChar null;
- TQT_STATIC_CONST TQChar tqreplacement;
+ TQT_STATIC_CONST TQChar replacement;
TQT_STATIC_CONST TQChar byteOrderMark;
TQT_STATIC_CONST TQChar byteOrderSwapped;
TQT_STATIC_CONST TQChar nbsp;
@@ -169,23 +169,23 @@ public:
TQString( const std::string &str ) : QString(str.c_str()) {}
#endif
- int tqfind( QChar c, int index=0, bool cs=TRUE ) const { return indexOf(c, index, (Qt::CaseSensitivity)cs); }
- int tqfind( char c, int index=0, bool cs=TRUE ) const { return indexOf(c, index, (Qt::CaseSensitivity)cs); }
- int tqfind( const QString &str, int index=0, bool cs=TRUE ) const { return indexOf(str, index, (Qt::CaseSensitivity)cs); }
+ int find( QChar c, int index=0, bool cs=TRUE ) const { return indexOf(c, index, (Qt::CaseSensitivity)cs); }
+ int find( char c, int index=0, bool cs=TRUE ) const { return indexOf(c, index, (Qt::CaseSensitivity)cs); }
+ int find( const QString &str, int index=0, bool cs=TRUE ) const { return indexOf(str, index, (Qt::CaseSensitivity)cs); }
#ifndef TQT_NO_REGEXP
- int tqfind( const QRegExp &qr, int index=0 ) const { return indexOf(qr, index); }
+ int find( const QRegExp &qr, int index=0 ) const { return indexOf(qr, index); }
#endif
#ifndef TQT_NO_CAST_ASCII
- int tqfind( const char* str, int index=0 ) const { return indexOf(str, index); }
+ int find( const char* str, int index=0 ) const { return indexOf(str, index); }
#endif
- int tqfindRev( QChar c, int index=-1, bool cs=TRUE) const { return lastIndexOf(c, index, (Qt::CaseSensitivity)cs); }
- int tqfindRev( char c, int index=-1, bool cs=TRUE) const { return lastIndexOf(c, index, (Qt::CaseSensitivity)cs); }
- int tqfindRev( const QString &str, int index=-1, bool cs=TRUE) const { return lastIndexOf(str, index, (Qt::CaseSensitivity)cs); }
+ int findRev( QChar c, int index=-1, bool cs=TRUE) const { return lastIndexOf(c, index, (Qt::CaseSensitivity)cs); }
+ int findRev( char c, int index=-1, bool cs=TRUE) const { return lastIndexOf(c, index, (Qt::CaseSensitivity)cs); }
+ int findRev( const QString &str, int index=-1, bool cs=TRUE) const { return lastIndexOf(str, index, (Qt::CaseSensitivity)cs); }
#ifndef TQT_NO_REGEXP
- int tqfindRev( const QRegExp &qr, int index=-1 ) const { return lastIndexOf(qr, index); }
+ int findRev( const QRegExp &qr, int index=-1 ) const { return lastIndexOf(qr, index); }
#endif
#ifndef TQT_NO_CAST_ASCII
- int tqfindRev( const char* str, int index=-1 ) const { return lastIndexOf(str, index); }
+ int findRev( const char* str, int index=-1 ) const { return lastIndexOf(str, index); }
#endif
const char* latin1() const { return latin1_helper(); }
@@ -209,53 +209,53 @@ public:
inline TQString(const Null &) : QString() {}
inline TQString &operator=(const Null &) { *this = TQString(); return *this; }
- int tqcontains( QChar c, bool cs=TRUE ) const { return count(c, (Qt::CaseSensitivity)cs); }
- int tqcontains( char c, bool cs=TRUE ) const { return tqcontains(TQChar(c), cs); }
+ int contains( QChar c, bool cs=TRUE ) const { return count(c, (Qt::CaseSensitivity)cs); }
+ int contains( char c, bool cs=TRUE ) const { return contains(TQChar(c), cs); }
#ifndef TQT_NO_CAST_ASCII
- int tqcontains( const char* str, bool cs=TRUE ) const { return count(str, (Qt::CaseSensitivity)cs); }
+ int contains( const char* str, bool cs=TRUE ) const { return count(str, (Qt::CaseSensitivity)cs); }
#endif
- int tqcontains( const QString &str, bool cs=TRUE ) const { return count(str, (Qt::CaseSensitivity)cs); }
+ int contains( const QString &str, bool cs=TRUE ) const { return count(str, (Qt::CaseSensitivity)cs); }
#ifndef TQT_NO_REGEXP
- int tqcontains( const QRegExp &re ) const { return count(re); }
+ int contains( const QRegExp &re ) const { return count(re); }
#endif
#ifndef QT_NO_CAST_TO_ASCII
inline operator const char *() const { return ascii_helper(); }
#endif
- inline bool tqstartsWith( const TQString& str ) const { return startsWith(str); }
- inline bool tqstartsWith( const TQString& str, bool cs ) const { return startsWith(str, (cs)?Qt::CaseSensitive:Qt::CaseInsensitive); }
- inline bool tqendsWith( const TQString& str ) const { return endsWith(str); }
- inline bool tqendsWith( const TQString& str, bool cs ) const { return endsWith(str, (cs)?Qt::CaseSensitive:Qt::CaseInsensitive); }
+ inline bool tqstartsWith( const TQString& str ) const { return QString::startsWith(str); }
+ inline bool tqstartsWith( const TQString& str, bool cs ) const { return QString::startsWith(str, (cs)?Qt::CaseSensitive:Qt::CaseInsensitive); }
+ inline bool tqendsWith( const TQString& str ) const { return QString::endsWith(str); }
+ inline bool tqendsWith( const TQString& str, bool cs ) const { return QString::endsWith(str, (cs)?Qt::CaseSensitive:Qt::CaseInsensitive); }
TQCString utf8() const;
inline TQChar constref(uint i) const { return tqat(i); }
- inline TQString leftJustify(int width, QChar aFill = QLatin1Char(' '), bool trunc=false) const { return leftJustified(width, aFill, trunc); }
- inline TQString rightJustify(int width, QChar aFill = QLatin1Char(' '), bool trunc=false) const { return rightJustified(width, aFill, trunc); }
+ inline TQString leftJustify(int width, QChar aFill = QLatin1Char(' '), bool trunc=false) const { return QString::leftJustified(width, aFill, trunc); }
+ inline TQString rightJustify(int width, QChar aFill = QLatin1Char(' '), bool trunc=false) const { return QString::rightJustified(width, aFill, trunc); }
inline const TQChar* tqunicode() const { if (length() > 0) return static_cast<const TQChar*>(unicode()); else return static_cast<const TQChar*>(QString().unicode()); }
TQCString local8Bit() const;
- inline TQString tqreplace(int i, int len, QChar after) { return tqreplace( i, len, &after, 1 ); }
- inline TQString tqreplace(int i, int len, const QChar *s, int slen) {
+ inline TQString replace(int i, int len, QChar after) { return QString::replace( i, len, &after, 1 ); }
+ inline TQString replace(int i, int len, const QChar *s, int slen) {
// Mimic the old (undocumented) behavior
int newindex = i;
if (newindex > length()) newindex = length();
- return replace( newindex, len, s, slen );
+ return QString::replace( newindex, len, s, slen );
}
- inline TQString tqreplace(int i, int len, const QString &after) { return tqreplace( i, len, TQString(after).tqunicode(), after.length() ); }
- inline TQString tqreplace(QChar before, QChar after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return replace( before, after, cs ); }
- inline TQString tqreplace(const QChar *before, int blen, const QChar *after, int alen, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return replace( before, blen, after, alen, cs ); }
- inline TQString tqreplace(const QLatin1String &before, const QLatin1String &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return replace( before, after, cs ); }
- inline TQString tqreplace(const QLatin1String &before, const QString &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return replace( before, after, cs ); }
- inline TQString tqreplace(const QString &before, const QLatin1String &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return replace( before, after, cs ); }
- inline TQString tqreplace(const QString &before, const QString &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return replace( before, after, cs ); }
- inline TQString tqreplace(QChar c, const QString &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return replace( c, after, cs ); }
- inline TQString tqreplace(QChar c, const QLatin1String &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return replace( c, after, cs ); }
+ inline TQString replace(int i, int len, const QString &after) { return QString::replace( i, len, TQString(after).tqunicode(), after.length() ); }
+ inline TQString replace(QChar before, QChar after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return QString::replace( before, after, cs ); }
+ inline TQString replace(const QChar *before, int blen, const QChar *after, int alen, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return QString::replace( before, blen, after, alen, cs ); }
+ inline TQString replace(const QLatin1String &before, const QLatin1String &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return QString::replace( before, after, cs ); }
+ inline TQString replace(const QLatin1String &before, const QString &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return QString::replace( before, after, cs ); }
+ inline TQString replace(const QString &before, const QLatin1String &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return QString::replace( before, after, cs ); }
+ inline TQString replace(const QString &before, const QString &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return QString::replace( before, after, cs ); }
+ inline TQString replace(QChar c, const QString &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return QString::replace( c, after, cs ); }
+ inline TQString replace(QChar c, const QLatin1String &after, Qt::CaseSensitivity cs = Qt::CaseSensitive) { return QString::replace( c, after, cs ); }
#ifndef QT_NO_REGEXP
- inline TQString tqreplace(const QRegExp &rx, const QString &after) { return replace( rx, after ); }
+ inline TQString replace(const QRegExp &rx, const QString &after) { return QString::replace( rx, after ); }
#endif
- inline TQString tqreplace(const QString &before, const QString &after, bool cs) { return tqreplace(before, after, cs?Qt::CaseSensitive:Qt::CaseInsensitive); }
+ inline TQString replace(const QString &before, const QString &after, bool cs) { return QString::replace(before, after, cs?Qt::CaseSensitive:Qt::CaseInsensitive); }
inline TQString tqsetNum( short a, int base=10 ) { return setNum(a, base); }
inline TQString tqsetNum( ushort a, int base=10 ) { return setNum(a, base); }
@@ -440,7 +440,7 @@ inline bool operator!=(const TQString &s, TQString::Null) { return !s.isNull();
#ifndef TQT_NO_CAST_ASCII
inline TQString &TQString::operator+=( const TQByteArray &s )
{
- int pos = s.tqfind( 0 );
+ int pos = s.find( 0 );
return operatorPlusEqHelper( s, pos==-1 ? s.size() : pos );
}
#endif
@@ -646,7 +646,7 @@ public:
TQChar( int rc );
TQT_STATIC_CONST TQChar null; // 0000
- TQT_STATIC_CONST TQChar tqreplacement; // FFFD
+ TQT_STATIC_CONST TQChar replacement; // FFFD
TQT_STATIC_CONST TQChar byteOrderMark; // FEFF
TQT_STATIC_CONST TQChar byteOrderSwapped; // FFFE
TQT_STATIC_CONST TQChar nbsp; // 00A0
@@ -1027,33 +1027,33 @@ public:
;
#endif
- int tqfind( TQChar c, int index=0, bool cs=TRUE ) const;
- int tqfind( char c, int index=0, bool cs=TRUE ) const;
- int tqfind( const TQString &str, int index=0, bool cs=TRUE ) const;
+ int find( TQChar c, int index=0, bool cs=TRUE ) const;
+ int find( char c, int index=0, bool cs=TRUE ) const;
+ int find( const TQString &str, int index=0, bool cs=TRUE ) const;
#ifndef TQT_NO_REGEXP
- int tqfind( const TQRegExp &, int index=0 ) const;
+ int find( const TQRegExp &, int index=0 ) const;
#endif
#ifndef TQT_NO_CAST_ASCII
- int tqfind( const char* str, int index=0 ) const;
+ int find( const char* str, int index=0 ) const;
#endif
- int tqfindRev( TQChar c, int index=-1, bool cs=TRUE) const;
- int tqfindRev( char c, int index=-1, bool cs=TRUE) const;
- int tqfindRev( const TQString &str, int index=-1, bool cs=TRUE) const;
+ int findRev( TQChar c, int index=-1, bool cs=TRUE) const;
+ int findRev( char c, int index=-1, bool cs=TRUE) const;
+ int findRev( const TQString &str, int index=-1, bool cs=TRUE) const;
#ifndef TQT_NO_REGEXP
- int tqfindRev( const TQRegExp &, int index=-1 ) const;
+ int findRev( const TQRegExp &, int index=-1 ) const;
#endif
#ifndef TQT_NO_CAST_ASCII
- int tqfindRev( const char* str, int index=-1 ) const;
+ int findRev( const char* str, int index=-1 ) const;
#endif
- int tqcontains( TQChar c, bool cs=TRUE ) const;
- int tqcontains( char c, bool cs=TRUE ) const
- { return tqcontains(TQChar(c), cs); }
+ int contains( TQChar c, bool cs=TRUE ) const;
+ int contains( char c, bool cs=TRUE ) const
+ { return contains(TQChar(c), cs); }
#ifndef TQT_NO_CAST_ASCII
- int tqcontains( const char* str, bool cs=TRUE ) const;
+ int contains( const char* str, bool cs=TRUE ) const;
#endif
- int tqcontains( const TQString &str, bool cs=TRUE ) const;
+ int contains( const TQString &str, bool cs=TRUE ) const;
#ifndef TQT_NO_REGEXP
- int tqcontains( const TQRegExp & ) const;
+ int contains( const TQRegExp & ) const;
#endif
enum SectionFlags {
@@ -1131,35 +1131,35 @@ public:
#ifndef TQT_NO_REGEXP
TQString &remove( const TQRegExp & );
#endif
- TQString &tqreplace( uint index, uint len, const TQString & );
- TQString &tqreplace( uint index, uint len, const TQChar*, uint clen );
- TQString &tqreplace( uint index, uint len, TQChar );
- TQString &tqreplace( uint index, uint len, char c )
- { return tqreplace( index, len, TQChar(c) ); }
+ TQString &replace( uint index, uint len, const TQString & );
+ TQString &replace( uint index, uint len, const TQChar*, uint clen );
+ TQString &replace( uint index, uint len, TQChar );
+ TQString &replace( uint index, uint len, char c )
+ { return replace( index, len, TQChar(c) ); }
#if defined(TQ_TQDOC)
- TQString &tqreplace( TQChar c, const TQString & after, bool cs = TRUE );
- TQString &tqreplace( char c, const TQString & after, bool cs = TRUE );
- TQString &tqreplace( const TQString & before, const TQString & after,
+ TQString &replace( TQChar c, const TQString & after, bool cs = TRUE );
+ TQString &replace( char c, const TQString & after, bool cs = TRUE );
+ TQString &replace( const TQString & before, const TQString & after,
bool cs = TRUE );
#else
// ### TQt 4.0: merge these two into one, and remove TQ_TQDOC hack
- TQString &tqreplace( TQChar c, const TQString & );
- TQString &tqreplace( TQChar c, const TQString &, bool );
+ TQString &replace( TQChar c, const TQString & );
+ TQString &replace( TQChar c, const TQString &, bool );
// ### TQt 4.0: merge these two into one, and remove TQ_TQDOC hack
- TQString &tqreplace( char c, const TQString & after )
- { return tqreplace( TQChar(c), after, TRUE ); }
- TQString &tqreplace( char c, const TQString & after, bool cs )
- { return tqreplace( TQChar(c), after, cs ); }
+ TQString &replace( char c, const TQString & after )
+ { return replace( TQChar(c), after, TRUE ); }
+ TQString &replace( char c, const TQString & after, bool cs )
+ { return replace( TQChar(c), after, cs ); }
// ### TQt 4.0: merge these two into one, and remove TQ_TQDOC hack
- TQString &tqreplace( const TQString &, const TQString & );
- TQString &tqreplace( const TQString &, const TQString &, bool );
+ TQString &replace( const TQString &, const TQString & );
+ TQString &replace( const TQString &, const TQString &, bool );
#endif
#ifndef TQT_NO_REGEXP_CAPTURE
- TQString &tqreplace( const TQRegExp &, const TQString & );
+ TQString &replace( const TQRegExp &, const TQString & );
#endif
- TQString &tqreplace( TQChar, TQChar );
+ TQString &replace( TQChar, TQChar );
short toShort( bool *ok=0, int base=10 ) const;
ushort toUShort( bool *ok=0, int base=10 ) const;
@@ -1464,7 +1464,7 @@ inline TQString &TQString::insert( uint index, const char *s )
inline TQString &TQString::insert( uint index, const TQByteArray &s )
{
- int pos = s.tqfind( 0 );
+ int pos = s.find( 0 );
return insertHelper( index, s, pos==-1 ? s.size() : pos );
}
#endif
@@ -1486,7 +1486,7 @@ inline TQString &TQString::prepend( const TQByteArray & s )
#ifndef TQT_NO_CAST_ASCII
inline TQString &TQString::operator+=( const TQByteArray &s )
{
- int pos = s.tqfind( 0 );
+ int pos = s.find( 0 );
return operatorPlusEqHelper( s, pos==-1 ? s.size() : pos );
}
#endif
@@ -1562,18 +1562,18 @@ inline TQString TQString::arg( const TQString& a1, const TQString& a2,
return multiArg( 4, a1, a2, a3, a4 );
}
-inline int TQString::tqfind( char c, int index, bool cs ) const
-{ return tqfind(TQChar(c), index, cs); }
+inline int TQString::find( char c, int index, bool cs ) const
+{ return find(TQChar(c), index, cs); }
-inline int TQString::tqfindRev( char c, int index, bool cs ) const
-{ return tqfindRev( TQChar(c), index, cs ); }
+inline int TQString::findRev( char c, int index, bool cs ) const
+{ return findRev( TQChar(c), index, cs ); }
#ifndef TQT_NO_CAST_ASCII
-inline int TQString::tqfind( const char* str, int index ) const
-{ return tqfind(TQString::fromAscii(str), index); }
+inline int TQString::find( const char* str, int index ) const
+{ return find(TQString::fromAscii(str), index); }
-inline int TQString::tqfindRev( const char* str, int index ) const
-{ return tqfindRev(TQString::fromAscii(str), index); }
+inline int TQString::findRev( const char* str, int index ) const
+{ return findRev(TQString::fromAscii(str), index); }
#endif
diff --git a/tqtinterface/qt4/src/tools/tqstringlist.cpp b/tqtinterface/qt4/src/tools/tqstringlist.cpp
index 6a10959..502b5dc 100644
--- a/tqtinterface/qt4/src/tools/tqstringlist.cpp
+++ b/tqtinterface/qt4/src/tools/tqstringlist.cpp
@@ -105,7 +105,7 @@
\endcode
You can sort the list with sort(), and extract a new list which
- tqcontains only those strings which contain a particular substring
+ contains only those strings which contain a particular substring
(or match a particular regular expression) using the grep()
functions, e.g.
\code
@@ -230,7 +230,7 @@ TQStringList TQStringList::split( const TQString &sep, const TQString &str,
TQStringList lst;
int j = 0;
- int i = str.tqfind( sep, j );
+ int i = str.find( sep, j );
while ( i != -1 ) {
if ( i > j && i <= (int)str.length() )
@@ -238,7 +238,7 @@ TQStringList TQStringList::split( const TQString &sep, const TQString &str,
else if ( allowEmptyEntries )
lst << TQString::null;
j = i + sep.length();
- i = str.tqfind( sep, sep.length() > 0 ? j : j+1 );
+ i = str.find( sep, sep.length() > 0 ? j : j+1 );
}
int l = str.length() - 1;
@@ -316,14 +316,14 @@ TQStringList TQStringList::split( const TQRegExp &sep, const TQString &str,
// list == ["Bill Gates", "Bill Clinton"]
\endcode
- \sa TQString::tqfind()
+ \sa TQString::find()
*/
TQStringList TQStringList::grep( const TQString &str, bool cs ) const
{
TQStringList res;
for ( TQStringList::ConstIterator it = begin(); it != end(); ++it )
- if ( (*it).tqcontains(str, cs) )
+ if ( (*it).contains(str, cs) )
res << *it;
return res;
@@ -336,14 +336,14 @@ TQStringList TQStringList::grep( const TQString &str, bool cs ) const
Returns a list of all the strings that match the regular
expression \a rx.
- \sa TQString::tqfind()
+ \sa TQString::find()
*/
TQStringList TQStringList::grep( const TQRegExp &rx ) const
{
TQStringList res;
for ( TQStringList::ConstIterator it = begin(); it != end(); ++it )
- if ( (*it).tqfind(rx) != -1 )
+ if ( (*it).find(rx) != -1 )
res << *it;
return res;
@@ -366,14 +366,14 @@ TQStringList TQStringList::grep( const TQRegExp &rx ) const
// list == ["olpho", "beto", "gommo", "epsilon"]
\endcode
- \sa TQString::tqreplace()
+ \sa TQString::replace()
*/
TQStringList& TQStringList::gres( const TQString &before, const TQString &after,
bool cs )
{
TQStringList::Iterator it = begin();
while ( it != end() ) {
- (*it).tqreplace( before, after, cs );
+ (*it).replace( before, after, cs );
++it;
}
return *this;
@@ -396,7 +396,7 @@ TQStringList& TQStringList::gres( const TQString &before, const TQString &after,
For regexps containing \link tqregexp.html#capturing-text
capturing parentheses \endlink, occurrences of <b>\\1</b>,
- <b>\\2</b>, ..., in \a after are tqreplaced with \a{rx}.cap(1),
+ <b>\\2</b>, ..., in \a after are replaced with \a{rx}.cap(1),
cap(2), ...
Example:
@@ -407,13 +407,13 @@ TQStringList& TQStringList::gres( const TQString &before, const TQString &after,
// list == ["Bill Clinton", "Bill Gates"]
\endcode
- \sa TQString::tqreplace()
+ \sa TQString::replace()
*/
TQStringList& TQStringList::gres( const TQRegExp &rx, const TQString &after )
{
TQStringList::Iterator it = begin();
while ( it != end() ) {
- (*it).tqreplace( rx, after );
+ (*it).replace( rx, after );
++it;
}
return *this;
diff --git a/tqtinterface/qt4/src/tools/tqtextstream.cpp b/tqtinterface/qt4/src/tools/tqtextstream.cpp
index 842cb7e..1225f7b 100644
--- a/tqtinterface/qt4/src/tools/tqtextstream.cpp
+++ b/tqtinterface/qt4/src/tools/tqtextstream.cpp
@@ -150,7 +150,7 @@
\endcode
The setprecision() function returns a TQTSManip object.
- The TQTSManip object tqcontains a pointer to a member function in
+ The TQTSManip object contains a pointer to a member function in
TQTextStream and an integer argument.
When serializing a TQTSManip into a TQTextStream, the function
is executed with the argument.
@@ -480,7 +480,7 @@ TQ_LONG TQStringBuffer::writeBlock( const char *p, TQ_ULONG len )
return -1;
}
#endif
- s->tqreplace(pos()/2, len/2, (TQChar*)p, len/2);
+ s->replace(pos()/2, len/2, (TQChar*)p, len/2);
seek(pos()+len);
return len;
}
diff --git a/tqtinterface/qt4/src/tools/tqunicodetables.cpp b/tqtinterface/qt4/src/tools/tqunicodetables.cpp
index 750dcd5..df592c8 100644
--- a/tqtinterface/qt4/src/tools/tqunicodetables.cpp
+++ b/tqtinterface/qt4/src/tools/tqunicodetables.cpp
@@ -315,7 +315,7 @@ for $lig_row ( 0..255 ) {
# we need to sort ligatures according to their length.
# long ones have to come first!
@ligature_sort = sort { $decomposition_len{$b} <=> $decomposition_len{$a} } @ligature;
-# now tqreplace each code by its position in
+# now replace each code by its position in
# the decomposition map.
undef(@lig_pos);
for $n (@ligature_sort) {
diff --git a/tqtinterface/qt4/src/tools/tqvaluelist.h b/tqtinterface/qt4/src/tools/tqvaluelist.h
index 799473a..0928f38 100644
--- a/tqtinterface/qt4/src/tools/tqvaluelist.h
+++ b/tqtinterface/qt4/src/tools/tqvaluelist.h
@@ -247,9 +247,9 @@ public:
Iterator insert( Iterator it, const T& x );
Iterator remove( Iterator it );
- NodePtr tqfind( NodePtr start, const T& x ) const;
- int tqfindIndex( NodePtr start, const T& x ) const;
- uint tqcontains( const T& x ) const;
+ NodePtr find( NodePtr start, const T& x ) const;
+ int findIndex( NodePtr start, const T& x ) const;
+ uint contains( const T& x ) const;
uint remove( const T& x );
NodePtr at( size_type i ) const;
void clear();
@@ -313,7 +313,7 @@ TQ_INLINE_TEMPLATES TQ_TYPENAME TQValueListPrivate<T>::Iterator TQValueListPriva
}
template <class T>
-TQ_INLINE_TEMPLATES TQ_TYPENAME TQValueListPrivate<T>::NodePtr TQValueListPrivate<T>::tqfind( TQ_TYPENAME TQValueListPrivate<T>::NodePtr start, const T& x ) const
+TQ_INLINE_TEMPLATES TQ_TYPENAME TQValueListPrivate<T>::NodePtr TQValueListPrivate<T>::find( TQ_TYPENAME TQValueListPrivate<T>::NodePtr start, const T& x ) const
{
ConstIterator first( start );
ConstIterator last( node );
@@ -326,7 +326,7 @@ TQ_INLINE_TEMPLATES TQ_TYPENAME TQValueListPrivate<T>::NodePtr TQValueListPrivat
}
template <class T>
-TQ_INLINE_TEMPLATES int TQValueListPrivate<T>::tqfindIndex( TQ_TYPENAME TQValueListPrivate<T>::NodePtr start, const T& x ) const
+TQ_INLINE_TEMPLATES int TQValueListPrivate<T>::findIndex( TQ_TYPENAME TQValueListPrivate<T>::NodePtr start, const T& x ) const
{
ConstIterator first( start );
ConstIterator last( node );
@@ -341,7 +341,7 @@ TQ_INLINE_TEMPLATES int TQValueListPrivate<T>::tqfindIndex( TQ_TYPENAME TQValueL
}
template <class T>
-TQ_INLINE_TEMPLATES uint TQValueListPrivate<T>::tqcontains( const T& x ) const
+TQ_INLINE_TEMPLATES uint TQValueListPrivate<T>::contains( const T& x ) const
{
uint result = 0;
Iterator first = Iterator( node->next );
@@ -543,12 +543,12 @@ public:
const_iterator at( size_type i ) const { TQT_CHECK_INVALID_LIST_ELEMENT; return const_iterator( sh->at(i) ); }
iterator tqat( size_type i ) { TQT_CHECK_INVALID_LIST_ELEMENT; detach(); return iterator( sh->at(i) ); }
const_iterator tqat( size_type i ) const { TQT_CHECK_INVALID_LIST_ELEMENT; return const_iterator( sh->at(i) ); }
- iterator tqfind ( const T& x ) { detach(); return iterator( sh->tqfind( sh->node->next, x) ); }
- const_iterator tqfind ( const T& x ) const { return const_iterator( sh->tqfind( sh->node->next, x) ); }
- iterator tqfind ( iterator it, const T& x ) { detach(); return iterator( sh->tqfind( it.node, x ) ); }
- const_iterator tqfind ( const_iterator it, const T& x ) const { return const_iterator( sh->tqfind( it.node, x ) ); }
- int tqfindIndex( const T& x ) const { return sh->tqfindIndex( sh->node->next, x) ; }
- size_type tqcontains( const T& x ) const { return sh->tqcontains( x ); }
+ iterator find ( const T& x ) { detach(); return iterator( sh->find( sh->node->next, x) ); }
+ const_iterator find ( const T& x ) const { return const_iterator( sh->find( sh->node->next, x) ); }
+ iterator find ( iterator it, const T& x ) { detach(); return iterator( sh->find( it.node, x ) ); }
+ const_iterator find ( const_iterator it, const T& x ) const { return const_iterator( sh->find( it.node, x ) ); }
+ int findIndex( const T& x ) const { return sh->findIndex( sh->node->next, x) ; }
+ size_type contains( const T& x ) const { return sh->contains( x ); }
size_type count() const { return sh->nodes; }
diff --git a/tqtinterface/qt4/src/tqmoc/README b/tqtinterface/qt4/src/tqmoc/README
index f616e7c..cf07c8a 100644
--- a/tqtinterface/qt4/src/tqmoc/README
+++ b/tqtinterface/qt4/src/tqmoc/README
@@ -1,4 +1,4 @@
-This directory tqcontains the source code for the Qt Meta Object
+This directory contains the source code for the Qt Meta Object
Compiler (tqmoc).
The files tqmoc_yacc.cpp, tqmoc_yacc.h and tqmoc_lex.cpp are generated by
diff --git a/tqtinterface/qt4/src/tqmoc/tqmoc.l b/tqtinterface/qt4/src/tqmoc/tqmoc.l
index ff715cf..d26951a 100644
--- a/tqtinterface/qt4/src/tqmoc/tqmoc.l
+++ b/tqtinterface/qt4/src/tqmoc/tqmoc.l
@@ -434,14 +434,14 @@ STRING {ALMOSTSTRING}\"
^[ \t]*#.* { /* preprocessor commands are skipped */}
"//"[^\n]* { /* C++ comment */
TQCString s = yytext;
- if ( s.tqcontains( "TQMOC_SKIP_BEGIN" ) ) {
+ if ( s.contains( "TQMOC_SKIP_BEGIN" ) ) {
skipLevel++;
if ( skipLevel == 1 ) {
lastState = YYSTATE;
BEGIN SKIP;
}
} else
- if ( s.tqcontains( "TQMOC_SKIP_END" ) ) {
+ if ( s.contains( "TQMOC_SKIP_END" ) ) {
if ( skipLevel == 0 ) {
tqmoc_warn(" TQMOC_SKIP_END without TQMOC_SKIP_BEGIN");
} else {
diff --git a/tqtinterface/qt4/src/tqmoc/tqmoc.pro b/tqtinterface/qt4/src/tqmoc/tqmoc.pro
index 559bbbc..b4762db 100644
--- a/tqtinterface/qt4/src/tqmoc/tqmoc.pro
+++ b/tqtinterface/qt4/src/tqmoc/tqmoc.pro
@@ -38,7 +38,7 @@ SOURCES = ../tools/tqbuffer.cpp \
../codecs/tqtextcodec.cpp \
../codecs/tqutfcodec.cpp
-isEmpty(TQT_PRODUCT)|tqcontains(TQT_PRODUCT, qt-internal) {
+isEmpty(TQT_PRODUCT)|contains(TQT_PRODUCT, qt-internal) {
LEXSOURCES = tqmoc.l
YACCSOURCES = tqmoc.y
} else {
diff --git a/tqtinterface/qt4/src/tqmoc/tqmoc.y b/tqtinterface/qt4/src/tqmoc/tqmoc.y
index 69ac269..927ec47 100644
--- a/tqtinterface/qt4/src/tqmoc/tqmoc.y
+++ b/tqtinterface/qt4/src/tqmoc/tqmoc.y
@@ -152,7 +152,7 @@ TQCString castToUType( TQCString ctype )
if ( ctype.right(1) == "&" )
ctype = ctype.left( ctype.length() - 1 );
if( ctype.right(1) == "]") {
- int lb = ctype.tqfindRev('[');
+ int lb = ctype.findRev('[');
if(lb != -1)
ctype = ctype.left(lb) + "*";
}
@@ -316,7 +316,7 @@ bool isVariantType( const char* type )
*/
void fixRightAngles( TQCString *str )
{
- str->tqreplace( TQRegExp(">>"), "> >" );
+ str->replace( TQRegExp(">>"), "> >" );
}
static TQCString rmWS( const char * );
@@ -433,7 +433,7 @@ class FuncList : public TQPtrList<Function> { // list of member functions
public:
FuncList( bool autoDelete = FALSE ) { setAutoDelete( autoDelete ); }
- FuncList tqfind( const char* name )
+ FuncList find( const char* name )
{
FuncList result;
for ( TQPtrListIterator<Function> it(*this); it.current(); ++it ) {
@@ -500,8 +500,8 @@ struct Property
int oredEnum; // If the enums item may be ored. That means the data type is int.
// Allowed values are 1 (True), 0 (False), and -1 (Unset)
- TQCString enumsettype; // tqcontains the set function type in case of oredEnum
- TQCString enumgettype; // tqcontains the get function type in case of oredEnum
+ TQCString enumsettype; // contains the set function type in case of oredEnum
+ TQCString enumgettype; // contains the get function type in case of oredEnum
enum Specification { Unspecified, Class, Reference, Pointer, ConstCharStar };
Specification sspec;
@@ -636,9 +636,9 @@ Access tmpAccess; // current access permission
Access subClassPerm; // current access permission
bool TQ_OBJECTdetected; // TRUE if current class
- // tqcontains the TQ_OBJECT macro
+ // contains the TQ_OBJECT macro
bool Q_PROPERTYdetected; // TRUE if current class
- // tqcontains at least one Q_PROPERTY,
+ // contains at least one Q_PROPERTY,
// TQ_OVERRIDE, TQ_SETS or TQ_ENUMS macro
bool tmpPropOverride; // current property override setting
@@ -1652,7 +1652,7 @@ parser_reg::~parser_reg()
int yyparse();
-void tqreplace( char *s, char c1, char c2 );
+void replace( char *s, char c1, char c2 );
void setDefaultIncludeFile()
{
@@ -1730,7 +1730,7 @@ int main( int argc, char **argv )
} else {
g->qtPath = opt.tqstringFromPos(1);
}
- tqreplace(g->qtPath.data(),'\\','/');
+ replace(g->qtPath.data(),'\\','/');
if ( g->qtPath.right(1) != "/" )
g->qtPath += '/';
} else if ( opt == "v" ) { // version number
@@ -1759,7 +1759,7 @@ int main( int argc, char **argv )
}
if ( autoInclude ) {
- int ppos = g->fileName.tqfindRev('.');
+ int ppos = g->fileName.findRev('.');
if ( ppos != -1 && tolower( g->fileName[ppos + 1] ) == 'h' )
g->noInclude = FALSE;
else
@@ -1920,7 +1920,7 @@ tqmoc_status do_tqmoc( CWPluginContext ctx, const TQCString &fin, const TQCStrin
return tqmoc_success;
}
#endif
-void tqreplace( char *s, char c1, char c2 )
+void replace( char *s, char c1, char c2 )
{
if ( !s )
return;
@@ -2097,7 +2097,7 @@ int openNameSpaceForMetaObject( FILE *out )
}
TQCString nm = g->className;
int pos;
- while( (pos = nm.tqfind( "::" )) != -1 ) {
+ while( (pos = nm.find( "::" )) != -1 ) {
TQCString spaceName = nm.left( pos );
nm = nm.right( nm.length() - pos - 2 );
if ( !spaceName.isEmpty() ) {
@@ -2336,10 +2336,10 @@ TQCString purestSuperClassName()
Make sure qualified template arguments (e.g., foo<bar::baz>)
don't interfere.
*/
- int pos = sc.tqfindRev( "::", sc.tqfind( '<' ) );
+ int pos = sc.findRev( "::", sc.find( '<' ) );
if ( pos != -1 ) {
sc = sc.right( sc.length() - pos - 2 );
- pos = c.tqfindRev( "::" );
+ pos = c.findRev( "::" );
if ( pos != -1 )
c = c.right( c.length() - pos - 2 );
if ( sc == c )
@@ -2351,7 +2351,7 @@ TQCString purestSuperClassName()
TQCString callablePurestSuperClassName()
{
TQCString sc = purestSuperClassName();
-// if (sc.tqfind("TQ") != 0) {
+// if (sc.find("TQ") != 0) {
return TQCString("static_cast<TQObject*>(static_cast<TQT_BASE_OBJECT_NAME*>(this))->");
// }
// else {
@@ -2367,7 +2367,7 @@ TQCString qualifiedClassName()
TQCString callableQualifiedClassName()
{
TQCString sc = qualifiedClassName();
-// if (sc.tqfind("TQ") != 0) {
+// if (sc.find("TQ") != 0) {
return TQCString("static_cast<TQObject*>(static_cast<TQT_BASE_OBJECT_NAME*>(this))->");
// }
// else {
@@ -2470,7 +2470,7 @@ int enumIndex( const char* type )
bool isEnumType( const char* type )
{
- return enumIndex( type ) >= 0 || ( g->qtEnums.tqcontains( type ) || g->qtSets.tqcontains( type ) );
+ return enumIndex( type ) >= 0 || ( g->qtEnums.contains( type ) || g->qtSets.contains( type ) );
}
bool isPropertyType( const char* type )
@@ -2526,7 +2526,7 @@ int generateProps()
// verify get function
if ( !p->get.isEmpty() ) {
- FuncList candidates = g->propfuncs.tqfind( p->get );
+ FuncList candidates = g->propfuncs.find( p->get );
for ( Function* f = candidates.first(); f; f = candidates.next() ) {
if ( f->qualifier != "const" ) // get functions must be const
continue;
@@ -2640,7 +2640,7 @@ int generateProps()
// verify set function
if ( !p->set.isEmpty() ) {
- FuncList candidates = g->propfuncs.tqfind( p->set );
+ FuncList candidates = g->propfuncs.find( p->set );
for ( Function* f = candidates.first(); f; f = candidates.next() ) {
if ( !f->args || f->args->isEmpty() )
continue;
@@ -2756,7 +2756,7 @@ int generateProps()
//
if ( g->props.count() ) {
if ( displayWarnings && !TQ_OBJECTdetected )
- tqmoc_err("The declaration of the class \"%s\" tqcontains properties"
+ tqmoc_err("The declaration of the class \"%s\" contains properties"
" but no TQ_OBJECT macro.", g->className.data());
fprintf( out, "#ifndef TQT_NO_PROPERTIES\n" );
@@ -2838,7 +2838,7 @@ int generateClassInfos()
return 0;
if ( displayWarnings && !TQ_OBJECTdetected )
- tqmoc_err("The declaration of the class \"%s\" tqcontains class infos"
+ tqmoc_err("The declaration of the class \"%s\" contains class infos"
" but no TQ_OBJECT macro.", g->className.data());
fprintf( out, " static const TQClassInfo classinfo_tbl[] = {\n" );
@@ -2869,11 +2869,11 @@ void generateClass() // generate C++ source code for a class
if ( g->tqsignals.count() == 0 && g->tqslots.count() == 0 && g->props.count() == 0 && g->infos.count() == 0 )
return;
if ( displayWarnings && (g->tqsignals.count() + g->tqslots.count()) != 0 )
- tqmoc_err("The declaration of the class \"%s\" tqcontains tqsignals "
+ tqmoc_err("The declaration of the class \"%s\" contains tqsignals "
"or tqslots\n\t but no TQ_OBJECT macro.", g->className.data());
} else {
if ( g->superClassName.isEmpty() )
- tqmoc_err("The declaration of the class \"%s\" tqcontains the\n"
+ tqmoc_err("The declaration of the class \"%s\" contains the\n"
"\tTQ_OBJECT macro but does not inherit from any class!\n"
"\tInherit from TQObject or one of its descendants"
" or remove TQ_OBJECT.", g->className.data() );
@@ -3014,7 +3014,7 @@ void generateClass() // generate C++ source code for a class
if ( isTQObject )
fprintf( out, " TQMetaObject* parentObject = staticTQtMetaObject();\n" );
else if ( !g->superClassName.isEmpty() )
- if (g->superClassName.tqfind("TQ") == 0) { // [FIXME] Verify that this will always be able to detect a TQt base class, even if intermediate classes do not start with TQ
+ if (g->superClassName.find("TQ") == 0) { // [FIXME] Verify that this will always be able to detect a TQt base class, even if intermediate classes do not start with TQ
fprintf( out, " TQMetaObject* parentObject = %s::staticMetaObject();\n", (const char*)g->superClassName );
}
else {
@@ -3102,8 +3102,8 @@ void generateClass() // generate C++ source code for a class
for ( const char* cname = g->multipleSuperClasses.first(); cname; cname = g->multipleSuperClasses.next() ) {
fprintf( out, " if ( !qstrcmp( clname, \"%s\" ) )\n", cname);
TQCString fixed(cname);
- while (fixed.tqfind(">>") != -1)
- fixed = fixed.tqreplace(">>", "> >");
+ while (fixed.find(">>") != -1)
+ fixed = fixed.replace(">>", "> >");
fprintf( out, "\treturn (%s*)this;\n", fixed.data());
}
if ( !g->superClassName.isEmpty() && !isTQObject )
@@ -3574,10 +3574,10 @@ void addEnum()
}
// Only look at types mentioned in TQ_ENUMS and TQ_SETS
- if ( g->qtEnums.tqcontains( tmpEnum->name ) || g->qtSets.tqcontains( tmpEnum->name ) )
+ if ( g->qtEnums.contains( tmpEnum->name ) || g->qtSets.contains( tmpEnum->name ) )
{
g->enums.append( tmpEnum );
- if ( g->qtSets.tqcontains( tmpEnum->name ) )
+ if ( g->qtSets.contains( tmpEnum->name ) )
tmpEnum->set = TRUE;
else
tmpEnum->set = FALSE;
diff --git a/tqtinterface/qt4/src/tqmoc/tqmoc_lex.cpp b/tqtinterface/qt4/src/tqmoc/tqmoc_lex.cpp
index 6f4f275..09016ba 100644
--- a/tqtinterface/qt4/src/tqmoc/tqmoc_lex.cpp
+++ b/tqtinterface/qt4/src/tqmoc/tqmoc_lex.cpp
@@ -2175,14 +2175,14 @@ YY_RULE_SETUP
#line 435 "tqmoc.l"
{ /* C++ comment */
TQCString s = yytext;
- if ( s.tqcontains( "TQMOC_SKIP_BEGIN" ) ) {
+ if ( s.contains( "TQMOC_SKIP_BEGIN" ) ) {
skipLevel++;
if ( skipLevel == 1 ) {
lastState = YYSTATE;
BEGIN SKIP;
}
} else
- if ( s.tqcontains( "TQMOC_SKIP_END" ) ) {
+ if ( s.contains( "TQMOC_SKIP_END" ) ) {
if ( skipLevel == 0 ) {
tqmoc_warn(" TQMOC_SKIP_END without TQMOC_SKIP_BEGIN");
} else {
diff --git a/tqtinterface/qt4/src/tqmoc/tqmoc_yacc.cpp b/tqtinterface/qt4/src/tqmoc/tqmoc_yacc.cpp
index 3d53e57..21f7dc1 100644
--- a/tqtinterface/qt4/src/tqmoc/tqmoc_yacc.cpp
+++ b/tqtinterface/qt4/src/tqmoc/tqmoc_yacc.cpp
@@ -167,7 +167,7 @@ TQCString castToUType( TQCString ctype )
if ( ctype.right(1) == "&" )
ctype = ctype.left( ctype.length() - 1 );
if( ctype.right(1) == "]") {
- int lb = ctype.tqfindRev('[');
+ int lb = ctype.findRev('[');
if(lb != -1)
ctype = ctype.left(lb) + "*";
}
@@ -331,7 +331,7 @@ bool isVariantType( const char* type )
*/
void fixRightAngles( TQCString *str )
{
- str->tqreplace( TQRegExp(">>"), "> >" );
+ str->replace( TQRegExp(">>"), "> >" );
}
static TQCString rmWS( const char * );
@@ -448,7 +448,7 @@ class FuncList : public TQPtrList<Function> { // list of member functions
public:
FuncList( bool autoDelete = FALSE ) { setAutoDelete( autoDelete ); }
- FuncList tqfind( const char* name )
+ FuncList find( const char* name )
{
FuncList result;
for ( TQPtrListIterator<Function> it(*this); it.current(); ++it ) {
@@ -515,8 +515,8 @@ struct Property
int oredEnum; // If the enums item may be ored. That means the data type is int.
// Allowed values are 1 (True), 0 (False), and -1 (Unset)
- TQCString enumsettype; // tqcontains the set function type in case of oredEnum
- TQCString enumgettype; // tqcontains the get function type in case of oredEnum
+ TQCString enumsettype; // contains the set function type in case of oredEnum
+ TQCString enumgettype; // contains the get function type in case of oredEnum
enum Specification { Unspecified, Class, Reference, Pointer, ConstCharStar };
Specification sspec;
@@ -651,9 +651,9 @@ Access tmpAccess; // current access permission
Access subClassPerm; // current access permission
bool TQ_OBJECTdetected; // TRUE if current class
- // tqcontains the TQ_OBJECT macro
+ // contains the TQ_OBJECT macro
bool Q_PROPERTYdetected; // TRUE if current class
- // tqcontains at least one Q_PROPERTY,
+ // contains at least one Q_PROPERTY,
// TQ_OVERRIDE, TQ_SETS or TQ_ENUMS macro
bool tmpPropOverride; // current property override setting
@@ -4478,7 +4478,7 @@ parser_reg::~parser_reg()
int yyparse();
-void tqreplace( char *s, char c1, char c2 );
+void replace( char *s, char c1, char c2 );
void setDefaultIncludeFile()
{
@@ -4556,7 +4556,7 @@ int main( int argc, char **argv )
} else {
g->qtPath = opt.tqstringFromPos(1);
}
- tqreplace(g->qtPath.data(),'\\','/');
+ replace(g->qtPath.data(),'\\','/');
if ( g->qtPath.right(1) != "/" )
g->qtPath += '/';
} else if ( opt == "v" ) { // version number
@@ -4585,7 +4585,7 @@ int main( int argc, char **argv )
}
if ( autoInclude ) {
- int ppos = g->fileName.tqfindRev('.');
+ int ppos = g->fileName.findRev('.');
if ( ppos != -1 && tolower( g->fileName[ppos + 1] ) == 'h' )
g->noInclude = FALSE;
else
@@ -4746,7 +4746,7 @@ tqmoc_status do_tqmoc( CWPluginContext ctx, const TQCString &fin, const TQCStrin
return tqmoc_success;
}
#endif
-void tqreplace( char *s, char c1, char c2 )
+void replace( char *s, char c1, char c2 )
{
if ( !s )
return;
@@ -4923,7 +4923,7 @@ int openNameSpaceForMetaObject( FILE *out )
}
TQCString nm = g->className;
int pos;
- while( (pos = nm.tqfind( "::" )) != -1 ) {
+ while( (pos = nm.find( "::" )) != -1 ) {
TQCString spaceName = nm.left( pos );
nm = nm.right( nm.length() - pos - 2 );
if ( !spaceName.isEmpty() ) {
@@ -5162,10 +5162,10 @@ TQCString purestSuperClassName()
Make sure qualified template arguments (e.g., foo<bar::baz>)
don't interfere.
*/
- int pos = sc.tqfindRev( "::", sc.tqfind( '<' ) );
+ int pos = sc.findRev( "::", sc.find( '<' ) );
if ( pos != -1 ) {
sc = sc.right( sc.length() - pos - 2 );
- pos = c.tqfindRev( "::" );
+ pos = c.findRev( "::" );
if ( pos != -1 )
c = c.right( c.length() - pos - 2 );
if ( sc == c )
@@ -5177,7 +5177,7 @@ TQCString purestSuperClassName()
TQCString callablePurestSuperClassName()
{
TQCString sc = purestSuperClassName();
-// if (sc.tqfind("TQ") != 0) {
+// if (sc.find("TQ") != 0) {
return TQCString("static_cast<TQObject*>(static_cast<TQT_BASE_OBJECT_NAME*>(this))->");
// }
// else {
@@ -5193,7 +5193,7 @@ TQCString qualifiedClassName()
TQCString callableQualifiedClassName()
{
TQCString sc = qualifiedClassName();
-// if (sc.tqfind("TQ") != 0) {
+// if (sc.find("TQ") != 0) {
return TQCString("static_cast<TQObject*>(static_cast<TQT_BASE_OBJECT_NAME*>(this))->");
// }
// else {
@@ -5296,7 +5296,7 @@ int enumIndex( const char* type )
bool isEnumType( const char* type )
{
- return enumIndex( type ) >= 0 || ( g->qtEnums.tqcontains( type ) || g->qtSets.tqcontains( type ) );
+ return enumIndex( type ) >= 0 || ( g->qtEnums.contains( type ) || g->qtSets.contains( type ) );
}
bool isPropertyType( const char* type )
@@ -5352,7 +5352,7 @@ int generateProps()
// verify get function
if ( !p->get.isEmpty() ) {
- FuncList candidates = g->propfuncs.tqfind( p->get );
+ FuncList candidates = g->propfuncs.find( p->get );
for ( Function* f = candidates.first(); f; f = candidates.next() ) {
if ( f->qualifier != "const" ) // get functions must be const
continue;
@@ -5466,7 +5466,7 @@ int generateProps()
// verify set function
if ( !p->set.isEmpty() ) {
- FuncList candidates = g->propfuncs.tqfind( p->set );
+ FuncList candidates = g->propfuncs.find( p->set );
for ( Function* f = candidates.first(); f; f = candidates.next() ) {
if ( !f->args || f->args->isEmpty() )
continue;
@@ -5582,7 +5582,7 @@ int generateProps()
//
if ( g->props.count() ) {
if ( displayWarnings && !TQ_OBJECTdetected )
- tqmoc_err("The declaration of the class \"%s\" tqcontains properties"
+ tqmoc_err("The declaration of the class \"%s\" contains properties"
" but no TQ_OBJECT macro.", g->className.data());
fprintf( out, "#ifndef TQT_NO_PROPERTIES\n" );
@@ -5664,7 +5664,7 @@ int generateClassInfos()
return 0;
if ( displayWarnings && !TQ_OBJECTdetected )
- tqmoc_err("The declaration of the class \"%s\" tqcontains class infos"
+ tqmoc_err("The declaration of the class \"%s\" contains class infos"
" but no TQ_OBJECT macro.", g->className.data());
fprintf( out, " static const TQClassInfo classinfo_tbl[] = {\n" );
@@ -5695,11 +5695,11 @@ void generateClass() // generate C++ source code for a class
if ( g->tqsignals.count() == 0 && g->tqslots.count() == 0 && g->props.count() == 0 && g->infos.count() == 0 )
return;
if ( displayWarnings && (g->tqsignals.count() + g->tqslots.count()) != 0 )
- tqmoc_err("The declaration of the class \"%s\" tqcontains tqsignals "
+ tqmoc_err("The declaration of the class \"%s\" contains tqsignals "
"or tqslots\n\t but no TQ_OBJECT macro.", g->className.data());
} else {
if ( g->superClassName.isEmpty() )
- tqmoc_err("The declaration of the class \"%s\" tqcontains the\n"
+ tqmoc_err("The declaration of the class \"%s\" contains the\n"
"\tTQ_OBJECT macro but does not inherit from any class!\n"
"\tInherit from TQObject or one of its descendants"
" or remove TQ_OBJECT.", g->className.data() );
@@ -5840,7 +5840,7 @@ void generateClass() // generate C++ source code for a class
if ( isTQObject )
fprintf( out, " TQMetaObject* parentObject = staticTQtMetaObject();\n" );
else if ( !g->superClassName.isEmpty() )
- if (g->superClassName.tqfind("TQ") == 0) { // [FIXME] Verify that this will always be able to detect a TQt base class, even if intermediate classes do not start with TQ
+ if (g->superClassName.find("TQ") == 0) { // [FIXME] Verify that this will always be able to detect a TQt base class, even if intermediate classes do not start with TQ
fprintf( out, " TQMetaObject* parentObject = %s::staticMetaObject();\n", (const char*)g->superClassName );
}
else {
@@ -5928,8 +5928,8 @@ void generateClass() // generate C++ source code for a class
for ( const char* cname = g->multipleSuperClasses.first(); cname; cname = g->multipleSuperClasses.next() ) {
fprintf( out, " if ( !qstrcmp( clname, \"%s\" ) )\n", cname);
TQCString fixed(cname);
- while (fixed.tqfind(">>") != -1)
- fixed = fixed.tqreplace(">>", "> >");
+ while (fixed.find(">>") != -1)
+ fixed = fixed.replace(">>", "> >");
fprintf( out, "\treturn (%s*)this;\n", fixed.data());
}
if ( !g->superClassName.isEmpty() && !isTQObject )
@@ -6400,10 +6400,10 @@ void addEnum()
}
// Only look at types mentioned in TQ_ENUMS and TQ_SETS
- if ( g->qtEnums.tqcontains( tmpEnum->name ) || g->qtSets.tqcontains( tmpEnum->name ) )
+ if ( g->qtEnums.contains( tmpEnum->name ) || g->qtSets.contains( tmpEnum->name ) )
{
g->enums.append( tmpEnum );
- if ( g->qtSets.tqcontains( tmpEnum->name ) )
+ if ( g->qtSets.contains( tmpEnum->name ) )
tmpEnum->set = TRUE;
else
tmpEnum->set = FALSE;
diff --git a/tqtinterface/qt4/src/widgets/tqaction.cpp b/tqtinterface/qt4/src/widgets/tqaction.cpp
index 8ffa773..8a65d06 100644
--- a/tqtinterface/qt4/src/widgets/tqaction.cpp
+++ b/tqtinterface/qt4/src/widgets/tqaction.cpp
@@ -210,7 +210,7 @@ TQActionPrivate::~TQActionPrivate()
while ( ( mi = itmi.current() ) ) {
++itmi;
TQPopupMenu* menu = mi->popup;
- if ( menu->tqfindItem( mi->id ) )
+ if ( menu->findItem( mi->id ) )
menu->removeItem( mi->id );
}
@@ -356,7 +356,7 @@ TQString TQActionPrivate::menuText() const
{
if ( menutext.isNull() ) {
TQString t(text);
- t.tqreplace('&', "&&");
+ t.replace('&', "&&");
return t;
}
return menutext;
@@ -1105,7 +1105,7 @@ void TQAction::addedTo( int index, TQPopupMenu *menu )
void TQAction::showtqStatusText( const TQString& text )
{
#ifndef TQT_NO_STATUSBAR
- // tqfind out whether we are clearing the status bar by the popup that actually set the text
+ // find out whether we are clearing the status bar by the popup that actually set the text
static TQPopupMenu *lastmenu = 0;
TQObject *s = (TQObject*)sender();
if ( s ) {
@@ -1363,7 +1363,7 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
continue;
int index;
- tqparent->tqfindPopup( popup, &index );
+ tqparent->findPopup( popup, &index );
int id = tqparent->idAt( index );
if ( !that->iconSet().isNull() )
tqparent->changeItem( id, that->iconSet(), that->menuText() );
@@ -1578,7 +1578,7 @@ bool TQActionGroup::usesDropDown() const
*/
void TQActionGroup::add( TQAction* action )
{
- if ( d->actions.tqcontainsRef( action ) )
+ if ( d->actions.containsRef( action ) )
return;
d->actions.append( action );
@@ -1769,14 +1769,14 @@ bool TQActionGroup::addTo( TQWidget* w )
popup = (TQPopupMenu*)w;
}
for ( TQPtrListIterator<TQAction> it( d->actions); it.current(); ++it ) {
- // #### do an addedTo( index, popup, action), need to tqfind out index
+ // #### do an addedTo( index, popup, action), need to find out index
it.current()->addTo( popup );
}
return TRUE;
}
for ( TQPtrListIterator<TQAction> it( d->actions); it.current(); ++it ) {
- // #### do an addedTo( index, popup, action), need to tqfind out index
+ // #### do an addedTo( index, popup, action), need to find out index
it.current()->addTo( w );
}
@@ -2051,7 +2051,7 @@ void TQActionGroup::internalComboBoxHighlighted( int index )
*/
void TQActionGroup::internalToggle( TQAction *a )
{
- int index = d->actions.tqfind( a );
+ int index = d->actions.find( a );
if ( index == -1 )
return;
diff --git a/tqtinterface/qt4/src/widgets/tqbutton.cpp b/tqtinterface/qt4/src/widgets/tqbutton.cpp
index c667fec..e9f8d10 100644
--- a/tqtinterface/qt4/src/widgets/tqbutton.cpp
+++ b/tqtinterface/qt4/src/widgets/tqbutton.cpp
@@ -663,7 +663,7 @@ void TQButton::setState( ToggleState s )
*/
bool TQButton::hitButton( const TQPoint &pos ) const
{
- return TQT_TQRECT_OBJECT(rect()).tqcontains( pos );
+ return TQT_TQRECT_OBJECT(rect()).contains( pos );
}
/*!
diff --git a/tqtinterface/qt4/src/widgets/tqbuttongroup.cpp b/tqtinterface/qt4/src/widgets/tqbuttongroup.cpp
index 1879a8a..41da908 100644
--- a/tqtinterface/qt4/src/widgets/tqbuttongroup.cpp
+++ b/tqtinterface/qt4/src/widgets/tqbuttongroup.cpp
@@ -84,7 +84,7 @@
\endlist
A button can be removed from the group with remove(). A pointer to
- a button with a given id can be obtained using tqfind(). The id of a
+ a button with a given id can be obtained using find(). The id of a
button is available using id(). A button can be set \e on with
setButton(). The number of buttons in the group is returned by
count().
@@ -245,7 +245,7 @@ void TQButtonGroup::setExclusive( bool enable )
other negative integer, for instance -2, a unique identifier
(negative integer \<= -2) is generated. No button has an id of -1.
- \sa tqfind(), remove(), setExclusive()
+ \sa find(), remove(), setExclusive()
*/
int TQButtonGroup::insert( TQButton *button, int id )
@@ -319,7 +319,7 @@ void TQButtonGroup::remove( TQButton *button )
the button was not found.
*/
-TQButton *TQButtonGroup::tqfind( int id ) const
+TQButton *TQButtonGroup::find( int id ) const
{
// introduce a TQButtonListIt if calling anything
for ( TQButtonItem *i=buttons->first(); i; i=buttons->next() )
@@ -477,7 +477,7 @@ void TQButtonGroup::buttonToggled( bool on )
void TQButtonGroup::setButton( int id )
{
- TQButton * b = tqfind( id );
+ TQButton * b = find( id );
if ( b )
b->setOn( TRUE );
}
diff --git a/tqtinterface/qt4/src/widgets/tqbuttongroup.h b/tqtinterface/qt4/src/widgets/tqbuttongroup.h
index edbc441..cdef0a8 100644
--- a/tqtinterface/qt4/src/widgets/tqbuttongroup.h
+++ b/tqtinterface/qt4/src/widgets/tqbuttongroup.h
@@ -78,7 +78,7 @@ public:
public:
int insert( TQButton *, int id=-1 );
void remove( TQButton * );
- TQButton *tqfind( int id ) const;
+ TQButton *find( int id ) const;
int id( TQButton * ) const;
int count() const;
diff --git a/tqtinterface/qt4/src/widgets/tqcheckbox.cpp b/tqtinterface/qt4/src/widgets/tqcheckbox.cpp
index 37e8eac..49838ec 100644
--- a/tqtinterface/qt4/src/widgets/tqcheckbox.cpp
+++ b/tqtinterface/qt4/src/widgets/tqcheckbox.cpp
@@ -218,7 +218,7 @@ printf("[WARNING] TQSharedDoubleBuffer double buffering has been disabled\n\r");
TQTextOStream os(&pmkey);
os << "$qt_check_" << tqstyle().className() << "_"
<< palette().serialNumber() << "_" << irect.width() << "x" << irect.height() << "_" << kf;
- TQPixmap *pm = TQPixmapCache::tqfind( pmkey );
+ TQPixmap *pm = TQPixmapCache::find( pmkey );
if ( pm ) { // pixmap exists
p->drawPixmap( irect.topLeft(), *pm );
drawButtonLabel( p );
@@ -362,7 +362,7 @@ bool TQCheckBox::hitButton( const TQPoint &pos ) const
} else {
r.setLeft( 0 );
}
- return r.tqcontains( pos );
+ return r.contains( pos );
}
#endif
diff --git a/tqtinterface/qt4/src/widgets/tqcombobox.cpp b/tqtinterface/qt4/src/widgets/tqcombobox.cpp
index 6305993..382258b 100644
--- a/tqtinterface/qt4/src/widgets/tqcombobox.cpp
+++ b/tqtinterface/qt4/src/widgets/tqcombobox.cpp
@@ -171,7 +171,7 @@
\value AtTop insert the string as the first item in the combobox.
- \value AtCurrent tqreplace the previously selected item with the
+ \value AtCurrent replace the previously selected item with the
string the user has entered.
\value AtBottom insert the string as the last item in the
@@ -239,7 +239,7 @@
This signal is used for editable comboboxes. It is emitted
whenever the contents of the text entry field changes. \a string
- tqcontains the new text.
+ contains the new text.
*/
/*!
@@ -356,7 +356,7 @@ public:
static inline TQString escapedComboString(const TQString &str)
{
TQString stringToReturn = str;
- return stringToReturn.tqreplace('&', "&&");
+ return stringToReturn.replace('&', "&&");
}
class TQComboBoxPopupItem : public TQCustomMenuItem
@@ -955,7 +955,7 @@ TQString TQComboBox::text( int index ) const
return d->listBox()->text( index );
} else {
TQString retText = d->popup()->text(index);
- retText.tqreplace("&&", "&");
+ retText.replace("&&", "&");
return retText;
}
}
@@ -1374,7 +1374,7 @@ void TQComboBox::mousePressEvent( TQMouseEvent *e )
// and thus has a rect that doesn't fit the button.
arrowRect.setHeight( TQMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) );
- if ( count() && ( !editable() || arrowRect.tqcontains( e->pos() ) ) ) {
+ if ( count() && ( !editable() || arrowRect.contains( e->pos() ) ) ) {
d->arrowPressed = FALSE;
if ( d->usingListBox() ) {
@@ -1383,7 +1383,7 @@ void TQComboBox::mousePressEvent( TQMouseEvent *e )
listBox()->setCurrentItem(d->current);
listBox()->blockSignals( FALSE );
popup();
- if ( arrowRect.tqcontains( e->pos() ) ) {
+ if ( arrowRect.contains( e->pos() ) ) {
d->arrowPressed = TRUE;
d->arrowDown = TRUE;
tqrepaint( FALSE );
@@ -1625,7 +1625,7 @@ void TQComboBox::popup()
lb->blockSignals( TRUE );
TQListBoxItem* currentLBItem = 0;
if ( editable() && currentText() != text( currentItem() ) )
- currentLBItem = lb->tqfindItem( currentText() );
+ currentLBItem = lb->findItem( currentText() );
currentLBItem = currentLBItem ? currentLBItem : lb->item( d->current );
@@ -1781,7 +1781,7 @@ bool TQComboBox::eventFilter( TQObject *object, TQEvent *event )
case TQEvent::MouseMove:
if ( !d->mouseWasInsidePopup ) {
TQPoint pos = e->pos();
- if ( TQT_TQRECT_OBJECT(d->listBox()->rect()).tqcontains( pos ) )
+ if ( TQT_TQRECT_OBJECT(d->listBox()->rect()).contains( pos ) )
d->mouseWasInsidePopup = TRUE;
// Check if arrow button should toggle
if ( d->arrowPressed ) {
@@ -1791,7 +1791,7 @@ bool TQComboBox::eventFilter( TQObject *object, TQEvent *event )
tqstyle().querySubControlMetrics( TQStyle::CC_ComboBox, this,
TQStyle::SC_ComboBoxArrow);
arrowRect = TQStyle::tqvisualRect(arrowRect, this);
- if ( arrowRect.tqcontains( comboPos ) ) {
+ if ( arrowRect.contains( comboPos ) ) {
if ( !d->arrowDown ) {
d->arrowDown = TRUE;
tqrepaint( FALSE );
@@ -1820,7 +1820,7 @@ bool TQComboBox::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonRelease:
- if ( TQT_TQRECT_OBJECT(d->listBox()->rect()).tqcontains( e->pos() ) ) {
+ if ( TQT_TQRECT_OBJECT(d->listBox()->rect()).contains( e->pos() ) ) {
TQMouseEvent tmp( TQEvent::MouseButtonDblClick,
e->pos(), e->button(), e->state() ) ;
// will hide popup
@@ -1840,7 +1840,7 @@ bool TQComboBox::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonDblClick:
case TQEvent::MouseButtonPress:
- if ( !TQT_TQRECT_OBJECT(d->listBox()->rect()).tqcontains( e->pos() ) ) {
+ if ( !TQT_TQRECT_OBJECT(d->listBox()->rect()).contains( e->pos() ) ) {
TQPoint globalPos = d->listBox()->mapToGlobal(e->pos());
if ( TQApplication::widgetAt( globalPos, TRUE ) == this ) {
d->discardNextMousePress = TRUE;
@@ -1892,7 +1892,7 @@ bool TQComboBox::eventFilter( TQObject *object, TQEvent *event )
break;
case TQEvent::MouseButtonDblClick:
case TQEvent::MouseButtonPress:
- if ( !TQT_TQRECT_OBJECT(d->popup()->rect()).tqcontains( e->pos() ) ) {
+ if ( !TQT_TQRECT_OBJECT(d->popup()->rect()).contains( e->pos() ) ) {
d->poppedUp = FALSE;
d->arrowDown = FALSE;
// remove filter, event will take down popup:
diff --git a/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp b/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp
index 4aaea53..346bdd3 100644
--- a/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp
+++ b/tqtinterface/qt4/src/widgets/tqdatetimeedit.cpp
@@ -150,9 +150,9 @@ static void readLocaleSettings()
*lTimeSep = ":";
#endif
TQString d = TQDate( 1999, 11, 22 ).toString( Qt::LocalDate );
- dpos = d.tqfind( "22" );
- mpos = d.tqfind( "11" );
- ypos = d.tqfind( "99" );
+ dpos = d.find( "22" );
+ mpos = d.find( "11" );
+ ypos = d.find( "99" );
if ( dpos > -1 && mpos > -1 && ypos > -1 ) {
// test for DMY, MDY, YMD, YDM
if ( dpos < mpos && mpos < ypos ) {
@@ -172,7 +172,7 @@ static void readLocaleSettings()
#ifndef TQ_WS_WIN
TQString sep = d.mid( TQMIN( dpos, mpos ) + 2, TQABS( dpos - mpos ) - 2 );
- if ( d.tqcontains( sep ) == 2 ) {
+ if ( d.contains( sep ) == 2 ) {
*lDateSep = sep;
}
#endif
@@ -180,9 +180,9 @@ static void readLocaleSettings()
#ifndef TQ_WS_WIN
TQString t = TQTime( 11, 22, 33 ).toString( Qt::LocalDate );
- dpos = t.tqfind( "11" );
- mpos = t.tqfind( "22" );
- ypos = t.tqfind( "33" );
+ dpos = t.find( "11" );
+ mpos = t.find( "22" );
+ ypos = t.find( "33" );
// We only allow hhmmss
if ( dpos > -1 && dpos < mpos && mpos < ypos ) {
TQString sep = t.mid( dpos + 2, mpos - dpos - 2 );
diff --git a/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp b/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp
index cabc7e8..bb7d5f1 100644
--- a/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp
+++ b/tqtinterface/qt4/src/widgets/tqdialogbuttons.cpp
@@ -119,7 +119,7 @@ TQDialogButtons::setButtonEnabled(Button button, bool enabled)
d->enabled |= button;
else
d->enabled ^= button;
- if(d->buttons.tqcontains(button))
+ if(d->buttons.contains(button))
d->buttons[button]->setEnabled(enabled);
}
@@ -133,11 +133,11 @@ void
TQDialogButtons::setButtonVisible(Button button, bool visible)
{
if(visible) {
- if(d->buttons.tqcontains(button))
+ if(d->buttons.contains(button))
d->buttons[button]->show();
d->visible |= button;
} else {
- if(d->buttons.tqcontains(button))
+ if(d->buttons.contains(button))
d->buttons[button]->hide();
d->visible ^= button;
}
@@ -178,12 +178,12 @@ TQDialogButtons::setDefaultButton(Button button)
}
if(d->def != button) {
#ifndef TQT_NO_PROPERTIES
- if(d->buttons.tqcontains(d->def))
+ if(d->buttons.contains(d->def))
d->buttons[d->def]->setProperty("default", TQVariant(FALSE,0));
#endif
d->def = button;
#ifndef TQT_NO_PROPERTIES
- if(d->buttons.tqcontains(d->def))
+ if(d->buttons.contains(d->def))
d->buttons[d->def]->setProperty("default", TQVariant(FALSE,0));
#endif
}
@@ -200,7 +200,7 @@ TQDialogButtons::setButtonText(Button button, const TQString &str)
{
d->text[button] = str;
#ifndef TQT_NO_PROPERTIES
- if(d->buttons.tqcontains(button))
+ if(d->buttons.contains(button))
d->buttons[button]->setProperty("text", TQVariant(str));
#endif
layoutButtons();
@@ -209,7 +209,7 @@ TQDialogButtons::setButtonText(Button button, const TQString &str)
TQString
TQDialogButtons::buttonText(Button b) const
{
- if(d->text.tqcontains(b))
+ if(d->text.contains(b))
return d->text[b];
return TQString(); //null if it is default..
}
@@ -237,7 +237,7 @@ TQDialogButtons::createButton(Button b)
{
TQPushButton *ret = new TQPushButton(this, "qdialog_button");
TQObject::connect(ret, TQT_SIGNAL(clicked()), this, TQT_SLOT(handleClicked()));
- if(d->text.tqcontains(b)) {
+ if(d->text.contains(b)) {
ret->setText(d->text[b]);
} else {
switch(b) {
@@ -391,7 +391,7 @@ TQDialogButtons::layoutButtons()
else if(rects[i] == TQStyle::SR_DialogButtonIgnore)
b = Ignore;
if(b != None) {
- if(d->buttons.tqcontains(b)) {
+ if(d->buttons.contains(b)) {
w = d->buttons[b];
if(!(d->visible & b)) {
w->hide();
@@ -437,7 +437,7 @@ TQDialogButtons::tqsizeHint(TQDialogButtons::Button button) const
{
TQWidget *w = NULL;
if(d->visible & button) {
- if(!d->buttons.tqcontains(button)) {
+ if(!d->buttons.contains(button)) {
TQDialogButtons *that = (TQDialogButtons*)this; //ick, constness..
w = that->createButton(button);
that->d->buttons.insert(button, w);
diff --git a/tqtinterface/qt4/src/widgets/tqdockarea.cpp b/tqtinterface/qt4/src/widgets/tqdockarea.cpp
index 5aed489..72f65c2 100644
--- a/tqtinterface/qt4/src/widgets/tqdockarea.cpp
+++ b/tqtinterface/qt4/src/widgets/tqdockarea.cpp
@@ -367,7 +367,7 @@ int TQDockAreaLayout::layoutItems( const TQRect &rect, bool testonly )
if ( dw->isHidden() )
continue;
++visibleWindows;
- // tqfind position for the widget: This is the maximum of the
+ // find position for the widget: This is the maximum of the
// end of the previous widget and the offset of the widget. If
// the position + the width of the widget dosn't fit into the
// dock, try moving it a bit back, if possible.
@@ -484,9 +484,9 @@ int TQDockAreaLayout::widthForHeight( int h ) const
fill the available space as compactly as possible. TQDockAreas can
contain TQToolBars since TQToolBar is a TQDockWindow subclass.
- TQMainWindow tqcontains four TQDockAreas which you can use for your
+ TQMainWindow contains four TQDockAreas which you can use for your
TQToolBars and TQDockWindows, so in most situations you do not need
- to use the TQDockArea class directly. Although TQMainWindow tqcontains
+ to use the TQDockArea class directly. Although TQMainWindow contains
support for its own dock areas it isn't convenient for adding new
TQDockAreas. If you need to create your own dock areas we suggest
that you create a subclass of TQWidget and add your TQDockAreas to
@@ -517,9 +517,9 @@ int TQDockAreaLayout::widthForHeight( int h ) const
To dock or undock a dock window use TQDockWindow::dock() and
TQDockWindow::undock() respectively. If you want to control which
dock windows can dock in a dock area use setAcceptDockWindow(). To
- see if a dock area tqcontains a particular dock window use
+ see if a dock area contains a particular dock window use
\l{hasDockWindow()}; to see how many dock windows a dock area
- tqcontains use count().
+ contains use count().
The streaming operators can write the positions of the dock
windows in the dock area to a TQTextStream. The positions can be
@@ -614,7 +614,7 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, int index )
{
invalidateFixedSizes();
TQDockWindow *dockWindow = 0;
- int dockWindowIndex = tqfindDockWindow( w );
+ int dockWindowIndex = findDockWindow( w );
if ( dockWindowIndex == -1 ) {
dockWindow = w;
dockWindow->reparent( this, TQPoint( 0, 0 ), TRUE );
@@ -643,15 +643,15 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, int index )
}
/*!
- Returns TRUE if the dock area tqcontains the dock window \a w;
+ Returns TRUE if the dock area contains the dock window \a w;
otherwise returns FALSE. If \a index is not 0 it will be set as
- follows: if the dock area tqcontains the dock window \a *index is
+ follows: if the dock area contains the dock window \a *index is
set to \a w's index position; otherwise \a *index is set to -1.
*/
bool TQDockArea::hasDockWindow( TQDockWindow *w, int *index )
{
- int i = dockWindows->tqfindRef( w );
+ int i = dockWindows->findRef( w );
if ( index )
*index = i;
return i != -1;
@@ -662,7 +662,7 @@ int TQDockArea::lineOf( int index )
TQPtrList<TQDockWindow> lineStarts = tqlayout->lineStarts();
int i = 0;
for ( TQDockWindow *w = lineStarts.first(); w; w = lineStarts.next(), ++i ) {
- if ( dockWindows->tqfind( w ) >= index )
+ if ( dockWindows->find( w ) >= index )
return i;
}
return i;
@@ -703,20 +703,20 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, const TQPoint &p, const TQRect
}
TQDockWindow *dockWindow = 0;
- int dockWindowIndex = tqfindDockWindow( w );
+ int dockWindowIndex = findDockWindow( w );
TQPtrList<TQDockWindow> lineStarts = tqlayout->lineStarts();
TQValueList<TQRect> lines = tqlayout->lineList();
bool wasAloneInLine = FALSE;
TQPoint pos = mapFromGlobal( p );
TQRect lr = *lines.at( lineOf( dockWindowIndex ) );
if ( dockWindowIndex != -1 ) {
- if ( lineStarts.tqfind( w ) != -1 &&
- ( (dockWindowIndex < (int)dockWindows->count() - 1 && lineStarts.tqfind( dockWindows->at( dockWindowIndex + 1 ) ) != -1) ||
+ if ( lineStarts.find( w ) != -1 &&
+ ( (dockWindowIndex < (int)dockWindows->count() - 1 && lineStarts.find( dockWindows->at( dockWindowIndex + 1 ) ) != -1) ||
dockWindowIndex == (int)dockWindows->count() - 1 ) )
wasAloneInLine = TRUE;
dockWindow = dockWindows->take( dockWindowIndex );
if ( !wasAloneInLine ) { // only do the pre-tqlayout if the widget isn't the only one in its line
- if ( lineStarts.tqfindRef( dockWindow ) != -1 && dockWindowIndex < (int)dockWindows->count() )
+ if ( lineStarts.findRef( dockWindow ) != -1 && dockWindowIndex < (int)dockWindows->count() )
dockWindows->at( dockWindowIndex )->setNewLine( TRUE );
tqlayout->layoutItems( TQRect( 0, 0, width(), height() ), TRUE );
}
@@ -754,7 +754,7 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, const TQPoint &p, const TQRect
bool insertLine = FALSE;
int i = 0;
TQRect lineRect;
- // tqfind the line which we touched with the mouse
+ // find the line which we touched with the mouse
for ( TQValueList<TQRect>::Iterator it = lines.begin(); it != lines.end(); ++it, ++i ) {
if ( point_pos( pos, orientation(), TRUE ) >= point_pos( (*it).topLeft(), orientation(), TRUE ) &&
point_pos( pos, orientation(), TRUE ) <= point_pos( (*it).topLeft(), orientation(), TRUE ) +
@@ -782,7 +782,7 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, const TQPoint &p, const TQRect
}
}
- if ( !insertLine && wasAloneInLine && lr.tqcontains( pos ) ) // if we are alone in a line and just moved in there, re-insert it
+ if ( !insertLine && wasAloneInLine && lr.contains( pos ) ) // if we are alone in a line and just moved in there, re-insert it
insertLine = TRUE;
#if defined(TQDOCKAREA_DEBUG)
@@ -807,14 +807,14 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, const TQPoint &p, const TQRect
for ( dw = lineStarts.first(); dw; dw = lineStarts.next() )
dw->setNewLine( TRUE );
- // tqfind the index of the first widget in the search line
+ // find the index of the first widget in the search line
int searchLine = dockLine;
#if defined(TQDOCKAREA_DEBUG)
qDebug( "search line start of %d", searchLine );
#endif
TQDockWindow *lsw = lineStarts.at( searchLine );
- int index = dockWindows->tqfind( lsw );
- if ( index == -1 ) { // the linestart widget hasn't been found, try to tqfind it harder
+ int index = dockWindows->find( lsw );
+ if ( index == -1 ) { // the linestart widget hasn't been found, try to find it harder
if ( lsw == w && dockWindowIndex <= (int)dockWindows->count())
index = dockWindowIndex;
else
@@ -826,7 +826,7 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, const TQPoint &p, const TQRect
qDebug( " which starts at %d", index );
#endif
if ( !insertLine ) { // if we insert the docking widget in the existing line
- // tqfind the index for the widget
+ // find the index for the widget
bool inc = TRUE;
bool firstTime = TRUE;
for ( dw = dockWindows->current(); dw; dw = dockWindows->next() ) {
@@ -834,7 +834,7 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, const TQPoint &p, const TQRect
dw->setFixedExtentWidth( -1 );
else
dw->setFixedExtentHeight( -1 );
- if ( !firstTime && lineStarts.tqfind( dw ) != -1 ) // we are in the next line, so break
+ if ( !firstTime && lineStarts.find( dw ) != -1 ) // we are in the next line, so break
break;
if ( point_pos( pos, orientation() ) <
point_pos( fix_pos( dw ), orientation() ) + size_extent( dw->size(), orientation() ) / 2 ) {
@@ -849,7 +849,7 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, const TQPoint &p, const TQRect
#endif
// if we insert it just before a widget which has a new line, transfer the newline to the docking widget
// but not if we didn't only mave a widget in its line which was alone in the line before
- if ( !( wasAloneInLine && lr.tqcontains( pos ) )
+ if ( !( wasAloneInLine && lr.contains( pos ) )
&& index >= 0 && index < (int)dockWindows->count() &&
dockWindows->at( index )->newLine() && lineOf( index ) == dockLine ) {
#if defined(TQDOCKAREA_DEBUG)
@@ -857,7 +857,7 @@ void TQDockArea::moveDockWindow( TQDockWindow *w, const TQPoint &p, const TQRect
#endif
dockWindows->at( index )->setNewLine( FALSE );
dockWindow->setNewLine( TRUE );
- } else if ( wasAloneInLine && lr.tqcontains( pos ) ) {
+ } else if ( wasAloneInLine && lr.contains( pos ) ) {
dockWindow->setNewLine( TRUE );
} else { // if we are somewhere in a line, get rid of the newline
dockWindow->setNewLine( FALSE );
@@ -910,13 +910,13 @@ void TQDockArea::removeDockWindow( TQDockWindow *w, bool makeFloating, bool swap
{
w->removeEventFilter( this );
TQDockWindow *dockWindow = 0;
- int i = tqfindDockWindow( w );
+ int i = findDockWindow( w );
if ( i == -1 )
return;
dockWindow = dockWindows->at( i );
dockWindows->remove( i );
TQPtrList<TQDockWindow> lineStarts = tqlayout->lineStarts();
- if ( fixNewLines && lineStarts.tqfindRef( dockWindow ) != -1 && i < (int)dockWindows->count() )
+ if ( fixNewLines && lineStarts.findRef( dockWindow ) != -1 && i < (int)dockWindows->count() )
dockWindows->at( i )->setNewLine( TRUE );
if ( makeFloating ) {
TQWidget *p = parentWidget() ? parentWidget() : tqtopLevelWidget();
@@ -929,9 +929,9 @@ void TQDockArea::removeDockWindow( TQDockWindow *w, bool makeFloating, bool swap
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Preferred ) );
}
-int TQDockArea::tqfindDockWindow( TQDockWindow *w )
+int TQDockArea::findDockWindow( TQDockWindow *w )
{
- return dockWindows ? dockWindows->tqfindRef( w ) : -1;
+ return dockWindows ? dockWindows->findRef( w ) : -1;
}
void TQDockArea::updateLayout()
@@ -964,7 +964,7 @@ bool TQDockArea::eventFilter( TQObject *o, TQEvent *e )
void TQDockArea::invalidNextOffset( TQDockWindow *dw )
{
- int i = dockWindows->tqfind( dw );
+ int i = dockWindows->find( dw );
if ( i == -1 || i >= (int)dockWindows->count() - 1 )
return;
if ( ( dw = dockWindows->at( ++i ) ) )
@@ -1020,7 +1020,7 @@ void TQDockArea::lineUp( bool keepNewLines )
TQDockArea::DockWindowData *TQDockArea::dockWindowData( TQDockWindow *w )
{
DockWindowData *data = new DockWindowData;
- data->index = tqfindDockWindow( w );
+ data->index = findDockWindow( w );
if ( data->index == -1 ) {
delete data;
return 0;
@@ -1028,7 +1028,7 @@ TQDockArea::DockWindowData *TQDockArea::dockWindowData( TQDockWindow *w )
TQPtrList<TQDockWindow> lineStarts = tqlayout->lineStarts();
int i = -1;
for ( TQDockWindow *dw = dockWindows->first(); dw; dw = dockWindows->next() ) {
- if ( lineStarts.tqfindRef( dw ) != -1 )
+ if ( lineStarts.findRef( dw ) != -1 )
++i;
if ( dw == w )
break;
@@ -1056,7 +1056,7 @@ void TQDockArea::dockWindow( TQDockWindow *dockWindow, DockWindowData *data )
TQPtrList<TQDockWindow> lineStarts = tqlayout->lineStarts();
int index = 0;
if ( (int)lineStarts.count() > data->line )
- index = dockWindows->tqfind( lineStarts.at( data->line ) );
+ index = dockWindows->find( lineStarts.at( data->line ) );
if ( index == -1 ) {
index = 0;
(void)dockWindows->at( index );
@@ -1064,7 +1064,7 @@ void TQDockArea::dockWindow( TQDockWindow *dockWindow, DockWindowData *data )
bool firstTime = TRUE;
int offset = data->offset;
for ( TQDockWindow *dw = dockWindows->current(); dw; dw = dockWindows->next() ) {
- if ( !firstTime && lineStarts.tqfind( dw ) != -1 )
+ if ( !firstTime && lineStarts.find( dw ) != -1 )
break;
if ( offset <
point_pos( fix_pos( dw ), orientation() ) + size_extent( dw->size(), orientation() ) / 2 )
@@ -1104,7 +1104,7 @@ bool TQDockArea::isDockWindowAccepted( TQDockWindow *dw )
{
if ( !dw )
return FALSE;
- if ( forbiddenWidgets.tqfindRef( dw ) != -1 )
+ if ( forbiddenWidgets.findRef( dw ) != -1 )
return FALSE;
TQMainWindow *mw = ::tqqt_cast<TQMainWindow*>(parentWidget());
@@ -1131,7 +1131,7 @@ void TQDockArea::setAcceptDockWindow( TQDockWindow *dw, bool accept )
{
if ( accept )
forbiddenWidgets.removeRef( dw );
- else if ( forbiddenWidgets.tqfindRef( dw ) == -1 )
+ else if ( forbiddenWidgets.findRef( dw ) == -1 )
forbiddenWidgets.append( dw );
}
@@ -1147,7 +1147,7 @@ void TQDockArea::invalidateFixedSizes()
int TQDockArea::maxSpace( int hint, TQDockWindow *dw )
{
- int index = tqfindDockWindow( dw );
+ int index = findDockWindow( dw );
if ( index == -1 || index + 1 >= (int)dockWindows->count() ) {
if ( orientation() == Qt::Horizontal )
return dw->width();
@@ -1224,7 +1224,7 @@ void TQDockArea::setFixedExtent( int d, TQDockWindow *dw )
bool TQDockArea::isLastDockWindow( TQDockWindow *dw )
{
- int i = dockWindows->tqfind( dw );
+ int i = dockWindows->find( dw );
if ( i == -1 || i >= (int)dockWindows->count() - 1 )
return TRUE;
TQDockWindow *w = 0;
diff --git a/tqtinterface/qt4/src/widgets/tqdockarea.h b/tqtinterface/qt4/src/widgets/tqdockarea.h
index 34c2a50..550732b 100644
--- a/tqtinterface/qt4/src/widgets/tqdockarea.h
+++ b/tqtinterface/qt4/src/widgets/tqdockarea.h
@@ -161,7 +161,7 @@ private:
TQGuardedPtr<TQDockArea> area;
};
- int tqfindDockWindow( TQDockWindow *w );
+ int findDockWindow( TQDockWindow *w );
int lineOf( int index );
DockWindowData *dockWindowData( TQDockWindow *w );
void dockWindow( TQDockWindow *dockWindow, DockWindowData *data );
diff --git a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp
index e6e6f55..fcf0821 100644
--- a/tqtinterface/qt4/src/widgets/tqdockwindow.cpp
+++ b/tqtinterface/qt4/src/widgets/tqdockwindow.cpp
@@ -767,7 +767,7 @@ void TQDockWindowTitleBar::mouseDoubleClickEvent( TQMouseEvent * )
A dock window is often used to contain a single widget. In these
cases the widget can be set by calling setWidget(). If you're
- constructing a dock window that tqcontains multiple widgets, e.g. a
+ constructing a dock window that contains multiple widgets, e.g. a
toolbar, arrange the widgets within a box tqlayout inside the dock
window. To do this use the boxLayout() function to get a pointer
to the dock window's box tqlayout, then add widgets to the tqlayout
@@ -1411,7 +1411,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos )
dockArea = 0;
TQPoint topLeft = currRect.topLeft();
TQRect screen = tqApp->desktop()->availableGeometry( topLeft );
- if ( !screen.tqcontains( topLeft ) ) {
+ if ( !screen.contains( topLeft ) ) {
topLeft.setY(TQMAX(topLeft.y(), screen.top()));
topLeft.setY(TQMIN(topLeft.y(), screen.bottom()-height()));
topLeft.setX(TQMAX(topLeft.x(), screen.left()));
@@ -1972,7 +1972,7 @@ void TQDockWindow::showEvent( TQShowEvent *e )
{
if (curPlace == OutsideDock && (tqparent() && strcmp(tqparent()->name(), "qt_hide_dock") != 0)) {
TQRect sr = tqApp->desktop()->availableGeometry( this );
- if ( !sr.tqcontains( pos() ) ) {
+ if ( !sr.contains( pos() ) ) {
int nx = TQMIN( TQMAX( x(), sr.x() ), sr.right()-width() );
int ny = TQMIN( TQMAX( y(), sr.y() ), sr.bottom()-height() );
move( nx, ny );
diff --git a/tqtinterface/qt4/src/widgets/tqframe.cpp b/tqtinterface/qt4/src/widgets/tqframe.cpp
index f49b30c..8112924 100644
--- a/tqtinterface/qt4/src/widgets/tqframe.cpp
+++ b/tqtinterface/qt4/src/widgets/tqframe.cpp
@@ -511,7 +511,7 @@ void TQFrame::paintEvent( TQPaintEvent *event )
TQPainter paint( this );
- if ( !contentsRect().tqcontains( event->rect() ) ) {
+ if ( !contentsRect().contains( event->rect() ) ) {
paint.save();
paint.setClipRegion( event->region().intersect(frameRect()) );
drawFrame( &paint );
diff --git a/tqtinterface/qt4/src/widgets/tqgridview.cpp b/tqtinterface/qt4/src/widgets/tqgridview.cpp
index 4f60903..0551c30 100644
--- a/tqtinterface/qt4/src/widgets/tqgridview.cpp
+++ b/tqtinterface/qt4/src/widgets/tqgridview.cpp
@@ -63,7 +63,7 @@
draw the contents of a cell.
With ensureCellVisible(), you can ensure a certain cell is
- visible. With rowAt() and columnAt() you can tqfind a cell based on
+ visible. With rowAt() and columnAt() you can find a cell based on
the given x- and y-coordinates.
If you need to monitor changes to the grid's dimensions (i.e. when
diff --git a/tqtinterface/qt4/src/widgets/tqgroupbox.cpp b/tqtinterface/qt4/src/widgets/tqgroupbox.cpp
index f9c341e..228204a 100644
--- a/tqtinterface/qt4/src/widgets/tqgroupbox.cpp
+++ b/tqtinterface/qt4/src/widgets/tqgroupbox.cpp
@@ -277,7 +277,7 @@ void TQGroupBox::setTitle( const TQString &title )
\brief the group box title text.
The group box title text will have a focus-change keyboard
- accelerator if the title tqcontains \&, followed by a letter.
+ accelerator if the title contains \&, followed by a letter.
\code
g->setTitle( "&User information" );
@@ -658,7 +658,7 @@ void TQGroupBox::skip()
/*!
\internal
- This private slot tqfinds a widget in this group box that can accept
+ This private slot finds a widget in this group box that can accept
focus, and gives the focus to that widget.
*/
diff --git a/tqtinterface/qt4/src/widgets/tqheader.cpp b/tqtinterface/qt4/src/widgets/tqheader.cpp
index 67fb7f0..18d813d 100644
--- a/tqtinterface/qt4/src/widgets/tqheader.cpp
+++ b/tqtinterface/qt4/src/widgets/tqheader.cpp
@@ -196,7 +196,7 @@ public:
\row \i 3 \i 1 \i 2
\endtable
- In the example above, if we wanted to tqfind out which section is at
+ In the example above, if we wanted to find out which section is at
index position 3 we'd call mapToSection(3) and get a section
number of 1 since section 1 was moved. Similarly, if we wanted to
know which index position section 2 occupied we'd call
@@ -264,7 +264,7 @@ void TQHeader::showEvent( TQShowEvent *e )
This signal is emitted when the user has changed the size of a \a
section from \a oldSize to \a newSize. This signal is typically
- connected to a slot that repaints the table or list that tqcontains
+ connected to a slot that repaints the table or list that contains
the header.
*/
@@ -499,15 +499,15 @@ void TQHeader::unMarkLine( int idx )
Use sectionAt() instead.
- Returns the index at which the section is displayed, which tqcontains
+ Returns the index at which the section is displayed, which contains
\a pos in widget coordinates, or -1 if \a pos is outside the header
sections.
*/
/*
- Tries to tqfind a line that is not a neighbor of \c handleIdx.
+ Tries to find a line that is not a neighbor of \c handleIdx.
*/
-int TQHeader::tqfindLine( int c )
+int TQHeader::findLine( int c )
{
int i = 0;
if ( c > d->lastPos || (reverse() && c < 0 )) {
@@ -716,7 +716,7 @@ void TQHeader::mouseReleaseEvent( TQMouseEvent *e )
case Pressed: {
int section = d->i2s[handleIdx];
emit released( section );
- if ( sRect( handleIdx ).tqcontains( e->pos() ) ) {
+ if ( sRect( handleIdx ).contains( e->pos() ) ) {
oldHandleIdx = handleIdx;
emit sectionClicked( handleIdx );
emit clicked( section );
@@ -747,7 +747,7 @@ void TQHeader::mouseReleaseEvent( TQMouseEvent *e )
emit released( section );
tqrepaint(); // a bit overkill, but removes the handle as well
} else {
- if ( sRect( handleIdx).tqcontains( e->pos() ) ) {
+ if ( sRect( handleIdx).contains( e->pos() ) ) {
oldHandleIdx = handleIdx;
emit released( section );
emit sectionClicked( handleIdx );
@@ -811,7 +811,7 @@ void TQHeader::mouseMoveEvent( TQMouseEvent *e )
handleColumnResize( handleIdx, c, FALSE, FALSE );
break;
case Moving: {
- int newPos = tqfindLine( pos );
+ int newPos = findLine( pos );
if ( newPos != moveToIdx ) {
if ( moveToIdx == handleIdx || moveToIdx == handleIdx + 1 )
tqrepaint( sRect(handleIdx) );
@@ -1104,7 +1104,7 @@ TQSize TQHeader::sectionSizeHint( int section, const TQFontMetrics& fm ) const
TQRect bound;
TQString *label = d->labels[section];
if ( label ) {
- int lines = label->tqcontains( '\n' ) + 1;
+ int lines = label->contains( '\n' ) + 1;
int w = 0;
if (lines > 1) {
bound.setHeight(fm.height() + fm.lineSpacing() * (lines - 1));
@@ -1733,7 +1733,7 @@ int TQHeader::sectionPos( int section ) const
}
/*!
- Returns the index of the section which tqcontains the position \a
+ Returns the index of the section which contains the position \a
pos given in pixels from the left (or top).
\sa offset()
diff --git a/tqtinterface/qt4/src/widgets/tqheader.h b/tqtinterface/qt4/src/widgets/tqheader.h
index ab0f371..24fcd25 100644
--- a/tqtinterface/qt4/src/widgets/tqheader.h
+++ b/tqtinterface/qt4/src/widgets/tqheader.h
@@ -173,7 +173,7 @@ private:
void unMarkLine( int idx );
int pPos( int i ) const;
int pSize( int i ) const;
- int tqfindLine( int );
+ int findLine( int );
int handleAt( int p );
bool reverse() const;
void calculatePositions( bool onlyVisible = FALSE, int start = 0 );
diff --git a/tqtinterface/qt4/src/widgets/tqlabel.cpp b/tqtinterface/qt4/src/widgets/tqlabel.cpp
index b29d599..491adab 100644
--- a/tqtinterface/qt4/src/widgets/tqlabel.cpp
+++ b/tqtinterface/qt4/src/widgets/tqlabel.cpp
@@ -85,7 +85,7 @@ public:
\row \i Plain text
\i Pass a TQString to setText().
\row \i Rich text
- \i Pass a TQString that tqcontains rich text to setText().
+ \i Pass a TQString that contains rich text to setText().
\row \i A pixmap
\i Pass a TQPixmap to setPixmap().
\row \i A movie
@@ -180,7 +180,7 @@ TQLabel::TQLabel( const TQString &text, TQWidget *tqparent, const char *name,
Constructs a label that displays the text \a text. The label has a
buddy widget, \a buddy.
- If the \a text tqcontains an underlined letter (a letter preceded by
+ If the \a text contains an underlined letter (a letter preceded by
an ampersand, \&), and the text is in plain text format, when the
user presses Alt+ the underlined letter, focus is passed to the
buddy widget.
@@ -419,7 +419,7 @@ void TQLabel::setNum( double num )
The tqalignment is a bitwise OR of \c TQt::AlignmentFlags and \c
TQt::TextFlags values. The \c ExpandTabs, \c SingleLine and \c
- ShowPrefix flags apply only if the label tqcontains plain text;
+ ShowPrefix flags apply only if the label contains plain text;
otherwise they are ignored. The \c DontClip flag is always
ignored. \c WordBreak applies to both rich text and plain text
labels. The \c BreakAnywhere flag is not supported in TQLabel.
@@ -430,7 +430,7 @@ void TQLabel::setNum( double num )
The default tqalignment is \c{AlignAuto | AlignVCenter | ExpandTabs}
if the label doesn't have a buddy and \c{AlignAuto | AlignVCenter
| ExpandTabs | ShowPrefix} if the label has a buddy. If the label
- tqcontains rich text, additionally \c WordBreak is turned on.
+ contains rich text, additionally \c WordBreak is turned on.
\sa TQt::AlignmentFlags, tqalignment, setBuddy(), text
*/
diff --git a/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp b/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp
index 16f225b..e84332c 100644
--- a/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp
+++ b/tqtinterface/qt4/src/widgets/tqlcdnumber.cpp
@@ -197,7 +197,7 @@ static TQString double2string( double num, int base, int ndigits, bool *oflow )
int nd = ndigits;
do {
s.sprintf( "%*.*g", ndigits, nd, num );
- int i = s.tqfind('e');
+ int i = s.find('e');
if ( i > 0 && s[i+1]=='+' ) {
s[i] = ' ';
s[i+1] = 'e';
diff --git a/tqtinterface/qt4/src/widgets/tqlineedit.cpp b/tqtinterface/qt4/src/widgets/tqlineedit.cpp
index 10c1be8..cca37a7 100644
--- a/tqtinterface/qt4/src/widgets/tqlineedit.cpp
+++ b/tqtinterface/qt4/src/widgets/tqlineedit.cpp
@@ -130,12 +130,12 @@ struct TQLineEditPrivate : public TQt
TQChar blank;
MaskInputData *maskData;
inline int nextMaskBlank( int pos ) {
- int c = tqfindInMask( pos, TRUE, FALSE );
+ int c = findInMask( pos, TRUE, FALSE );
separator |= ( c != pos );
return ( c != -1 ? c : maxLength );
}
inline int prevMaskBlank( int pos ) {
- int c = tqfindInMask( pos, FALSE, FALSE );
+ int c = findInMask( pos, FALSE, FALSE );
separator |= ( c != pos );
return ( c != -1 ? c : 0 );
}
@@ -250,7 +250,7 @@ struct TQLineEditPrivate : public TQt
TQString maskString( uint pos, const TQString &str, bool clear = FALSE ) const;
TQString clearString( uint pos, uint len ) const;
TQString stripString( const TQString &str ) const;
- int tqfindInMask( int pos, bool forward, bool tqfindSeparator, TQChar searchChar = TQChar() ) const;
+ int findInMask( int pos, bool forward, bool findSeparator, TQChar searchChar = TQChar() ) const;
// input methods
int imstart, imend, imselstart, imselend;
@@ -1842,7 +1842,7 @@ void TQLineEdit::imComposeEvent( TQIMEvent *e )
e->ignore();
return;
}
- d->text.tqreplace( d->imstart, d->imend - d->imstart, e->text() );
+ d->text.replace( d->imstart, d->imend - d->imstart, e->text() );
d->imend = d->imstart + e->text().length();
d->imselstart = d->imstart + e->cursorPos();
d->imselend = d->imselstart + e->selectionLength();
@@ -1948,11 +1948,11 @@ void TQLineEdit::drawContents( TQPainter *p )
// locate cursor position
int cix = 0;
- TQTextItem ci = d->textLayout.tqfindItem( d->cursor );
+ TQTextItem ci = d->textLayout.findItem( d->cursor );
if ( ci.isValid() ) {
if ( d->cursor != (int)d->text.length() && d->cursor == ci.from() + ci.length()
&& ci.isRightToLeft() != d->isRightToLeft() )
- ci = d->textLayout.tqfindItem( d->cursor + 1 );
+ ci = d->textLayout.findItem( d->cursor + 1 );
cix = ci.x() + ci.cursorToX( d->cursor - ci.from() );
}
@@ -2376,7 +2376,7 @@ void TQLineEditPrivate::init( const TQString& txt )
void TQLineEditPrivate::updateTextLayout()
{
- // tqreplace all non-printable characters with spaces (to avoid
+ // replace all non-printable characters with spaces (to avoid
// drawing boxes when using fonts that don't have glyphs for such
// characters)
const TQString &displayText = q->displayText();
@@ -2419,11 +2419,11 @@ TQRect TQLineEditPrivate::cursorRect() const
{
TQRect cr = q->contentsRect();
int cix = cr.x() - hscroll + innerMargin;
- TQTextItem ci = textLayout.tqfindItem( cursor );
+ TQTextItem ci = textLayout.findItem( cursor );
if ( ci.isValid() ) {
if ( cursor != (int)text.length() && cursor == ci.from() + ci.length()
&& ci.isRightToLeft() != isRightToLeft() )
- ci = textLayout.tqfindItem( cursor + 1 );
+ ci = textLayout.findItem( cursor + 1 );
cix += ci.x() + ci.cursorToX( cursor - ci.from() );
}
int ch = q->fontMetrics().height();
@@ -2560,7 +2560,7 @@ void TQLineEditPrivate::setCursorVisible( bool visible )
if ( cursorTimer )
cursorVisible = visible;
TQRect r = cursorRect();
- if ( maskData || !q->contentsRect().tqcontains( r ) )
+ if ( maskData || !q->contentsRect().contains( r ) )
q->update();
else
q->update( r );
@@ -2586,7 +2586,7 @@ void TQLineEditPrivate::insert( const TQString& s )
addCommand ( Command( DeleteSelection, cursor+i, text.at(cursor+i) ) );
addCommand( Command( Insert, cursor+i, ms.at(i) ) );
}
- text.tqreplace( cursor, ms.length(), ms );
+ text.replace( cursor, ms.length(), ms );
cursor += ms.length();
cursor = nextMaskBlank( cursor );
} else {
@@ -2603,7 +2603,7 @@ void TQLineEditPrivate::del( bool wasBackspace )
if ( cursor < (int) text.length() ) {
addCommand ( Command( (CommandType)((maskData?2:0)+(wasBackspace?Remove:Delete)), cursor, text.at(cursor) ) );
if ( maskData ) {
- text.tqreplace( cursor, 1, clearString( cursor, 1 ) );
+ text.replace( cursor, 1, clearString( cursor, 1 ) );
addCommand( Command( Insert, cursor, text.at( cursor ) ) );
} else {
text.remove( cursor, 1 );
@@ -2629,7 +2629,7 @@ void TQLineEditPrivate::removeSelectedText()
addCommand ( Command( RemoveSelection, i, text.at(i) ) );
}
if ( maskData ) {
- text.tqreplace( selstart, selend - selstart, clearString( selstart, selend - selstart ) );
+ text.replace( selstart, selend - selstart, clearString( selstart, selend - selstart ) );
for ( int i = 0; i < selend - selstart; ++i )
addCommand( Command( Insert, selstart + i, text.at( selstart + i ) ) );
} else {
@@ -2832,15 +2832,15 @@ TQString TQLineEditPrivate::maskString( uint pos, const TQString &str, bool clea
++i;
} else {
// search for separator first
- int n = tqfindInMask( i, TRUE, TRUE, str[(int)strIndex] );
+ int n = findInMask( i, TRUE, TRUE, str[(int)strIndex] );
if ( n != -1 ) {
if ( str.length() != 1 || i == 0 || (i > 0 && (!maskData[i-1].separator || maskData[i-1].maskChar != str[(int)strIndex])) ) {
s += fill.mid( i, n-i+1 );
- i = n + 1; // update i to tqfind + 1
+ i = n + 1; // update i to find + 1
}
} else {
// search for valid blank if not
- n = tqfindInMask( i, TRUE, FALSE, str[(int)strIndex] );
+ n = findInMask( i, TRUE, FALSE, str[(int)strIndex] );
if ( n != -1 ) {
s += fill.mid( i, n-i );
switch ( maskData[ n ].caseMode ) {
@@ -2853,7 +2853,7 @@ TQString TQLineEditPrivate::maskString( uint pos, const TQString &str, bool clea
default:
s += str[(int)strIndex];
}
- i = n + 1; // updates i to tqfind + 1
+ i = n + 1; // updates i to find + 1
}
}
}
@@ -2910,7 +2910,7 @@ TQString TQLineEditPrivate::stripString( const TQString &str ) const
}
/* searches forward/backward in maskData for either a separator or a blank */
-int TQLineEditPrivate::tqfindInMask( int pos, bool forward, bool tqfindSeparator, TQChar searchChar ) const
+int TQLineEditPrivate::findInMask( int pos, bool forward, bool findSeparator, TQChar searchChar ) const
{
if ( pos >= maxLength || pos < 0 )
return -1;
@@ -2920,7 +2920,7 @@ int TQLineEditPrivate::tqfindInMask( int pos, bool forward, bool tqfindSeparator
int i = pos;
while ( i != end ) {
- if ( tqfindSeparator ) {
+ if ( findSeparator ) {
if ( maskData[ i ].separator && maskData[ i ].maskChar == searchChar )
return i;
} else {
diff --git a/tqtinterface/qt4/src/widgets/tqlistbox.cpp b/tqtinterface/qt4/src/widgets/tqlistbox.cpp
index b829780..3b84d03 100644
--- a/tqtinterface/qt4/src/widgets/tqlistbox.cpp
+++ b/tqtinterface/qt4/src/widgets/tqlistbox.cpp
@@ -89,7 +89,7 @@ public:
variableWidth( FALSE ),
inMenuMode( FALSE )
{}
- int tqfindItemByName( int item, const TQString &text );
+ int findItemByName( int item, const TQString &text );
~TQListBoxPrivate();
TQListBoxItem * head, *last, *cache;
@@ -340,7 +340,7 @@ TQListBoxPrivate::~TQListBoxPrivate()
/*!
\obsolete
- \fn int TQListBox::tqfindItem( int yPos ) const
+ \fn int TQListBox::findItem( int yPos ) const
Returns the index of the item a point (0, \a yPos).
\sa index() itemAt()
*/
@@ -488,11 +488,11 @@ void TQListBoxItem::setSelectable( bool b )
{
if ( !listBox() )
return;
- bool *sel = listBox()->d->selectable.tqfind( this );
+ bool *sel = listBox()->d->selectable.find( this );
if ( !sel )
listBox()->d->selectable.insert( this, new bool( b ) );
else
- listBox()->d->selectable.tqreplace( this, new bool( b ) );
+ listBox()->d->selectable.replace( this, new bool( b ) );
}
/*!
@@ -506,7 +506,7 @@ bool TQListBoxItem::isSelectable() const
{
if ( !listBox() )
return TRUE;
- bool *sel = listBox()->d->selectable.tqfind( ( (TQListBoxItem*)this ) );
+ bool *sel = listBox()->d->selectable.find( ( (TQListBoxItem*)this ) );
if ( !sel )
return TRUE;
else
@@ -852,7 +852,7 @@ int TQListBoxPixmap::rtti() const
The TQListBox's items are TQListBoxItem objects. TQListBox provides
methods to insert new items as strings, as pixmaps, and as
TQListBoxItem * (insertItem() with various arguments), and to
- tqreplace an existing item with a new string, pixmap or TQListBoxItem
+ replace an existing item with a new string, pixmap or TQListBoxItem
(changeItem() with various arguments). You can also remove items
singly with removeItem() or clear() the entire list box. Note that
if you create a TQListBoxItem yourself and insert it, TQListBox
@@ -876,7 +876,7 @@ int TQListBoxPixmap::rtti() const
still supports this mode of operation). Everything can be done
using the new objects, and most things can be done using indexes.
- Each item in a TQListBox tqcontains a TQListBoxItem. One of the items
+ Each item in a TQListBox contains a TQListBoxItem. One of the items
can be the current item. The currentChanged() signal and the
highlighted() signal are emitted when a new item becomes current,
e.g. because the user clicks on it or TQListBox::setCurrentItem()
@@ -2260,7 +2260,7 @@ void TQListBox::mouseMoveEvent( TQMouseEvent *e )
// hack to keep the combo (and what else?) working: if we get a
// move outside the listbox without having seen a press, discard
// it.
- if ( !TQRect( 0, 0, visibleWidth(), visibleHeight() ).tqcontains( e->pos() ) &&
+ if ( !TQRect( 0, 0, visibleWidth(), visibleHeight() ).contains( e->pos() ) &&
( (d->mousePressColumn < 0 && d->mousePressRow < 0) ||
(e->state() == Qt::NoButton && !d->pressedItem) ) )
return;
@@ -2643,14 +2643,14 @@ void TQListBox::keyPressEvent( TQKeyEvent *e )
curItem = 0;
if ( !d->inputTimer->isActive() ) {
d->currInputString = e->text();
- curItem = d->tqfindItemByName( ++curItem, d->currInputString );
+ curItem = d->findItemByName( ++curItem, d->currInputString );
} else {
d->inputTimer->stop();
d->currInputString += e->text();
int oldCurItem = curItem;
- curItem = d->tqfindItemByName( curItem, d->currInputString );
+ curItem = d->findItemByName( curItem, d->currInputString );
if ( curItem < 0 ) {
- curItem = d->tqfindItemByName( ++oldCurItem, e->text() );
+ curItem = d->findItemByName( ++oldCurItem, e->text() );
d->currInputString = e->text();
}
}
@@ -3531,7 +3531,7 @@ TQListBoxItem * TQListBox::itemAt( const TQPoint& p ) const
// take into acount frame margin to get to viewport
np -= viewport()->pos();
- if (!TQT_TQRECT_OBJECT(viewport()->rect()).tqcontains(np))
+ if (!TQT_TQRECT_OBJECT(viewport()->rect()).contains(np))
return 0;
// take into account contents position
@@ -3910,7 +3910,7 @@ int TQListBox::rowAt( int y ) const
if ( y < 0 )
return -1;
- // tqfind the top item, use bsearch for speed
+ // find the top item, use bsearch for speed
int l = 0;
int r = d->rowPos.size() - 2;
if ( r < 0 )
@@ -4281,7 +4281,7 @@ void TQListBox::takeItem( const TQListBoxItem * item )
Finds the next item after start beginning with \a text.
*/
-int TQListBoxPrivate::tqfindItemByName( int start, const TQString &text )
+int TQListBoxPrivate::findItemByName( int start, const TQString &text )
{
if ( start < 0 || (uint)start >= listBox->count() )
start = 0;
@@ -4322,7 +4322,7 @@ void TQListBox::clearInputString()
\sa TQt::StringComparisonMode
*/
-TQListBoxItem *TQListBox::tqfindItem( const TQString &text, TQt::ComparisonFlags compare ) const
+TQListBoxItem *TQListBox::findItem( const TQString &text, TQt::ComparisonFlags compare ) const
{
if ( text.isEmpty() )
return 0;
@@ -4343,7 +4343,7 @@ TQListBoxItem *TQListBox::tqfindItem( const TQString &text, TQt::ComparisonFlags
TQListBoxItem *beginsWithItem = 0;
TQListBoxItem *endsWithItem = 0;
- TQListBoxItem *tqcontainsItem = 0;
+ TQListBoxItem *containsItem = 0;
if ( item ) {
for ( ; item; item = item->n ) {
@@ -4355,11 +4355,11 @@ TQListBoxItem *TQListBox::tqfindItem( const TQString &text, TQt::ComparisonFlags
if ( compare & TQt::ExactMatch && itmtxt == comtxt )
return item;
if ( compare & TQt::BeginsWith && !beginsWithItem && itmtxt.startsWith( comtxt ) )
- beginsWithItem = tqcontainsItem = item;
+ beginsWithItem = containsItem = item;
if ( compare & TQt::EndsWith && !endsWithItem && itmtxt.endsWith( comtxt ) )
- endsWithItem = tqcontainsItem = item;
- if ( compare & TQt::Contains && !tqcontainsItem && itmtxt.tqcontains( comtxt ) )
- tqcontainsItem = item;
+ endsWithItem = containsItem = item;
+ if ( compare & TQt::Contains && !containsItem && itmtxt.contains( comtxt ) )
+ containsItem = item;
}
if ( d->current && d->head ) {
@@ -4373,11 +4373,11 @@ TQListBoxItem *TQListBox::tqfindItem( const TQString &text, TQt::ComparisonFlags
if ( compare & TQt::ExactMatch && itmtxt == comtxt )
return item;
if ( compare & TQt::BeginsWith && !beginsWithItem && itmtxt.startsWith( comtxt ) )
- beginsWithItem = tqcontainsItem = item;
+ beginsWithItem = containsItem = item;
if ( compare & TQt::EndsWith && !endsWithItem && itmtxt.endsWith( comtxt ) )
- endsWithItem = tqcontainsItem = item;
- if ( compare & TQt::Contains && !tqcontainsItem && itmtxt.tqcontains( comtxt ) )
- tqcontainsItem = item;
+ endsWithItem = containsItem = item;
+ if ( compare & TQt::Contains && !containsItem && itmtxt.contains( comtxt ) )
+ containsItem = item;
}
}
}
@@ -4387,8 +4387,8 @@ TQListBoxItem *TQListBox::tqfindItem( const TQString &text, TQt::ComparisonFlags
return beginsWithItem;
else if ( endsWithItem )
return endsWithItem;
- else if ( tqcontainsItem )
- return tqcontainsItem;
+ else if ( containsItem )
+ return containsItem;
return 0;
}
diff --git a/tqtinterface/qt4/src/widgets/tqlistbox.h b/tqtinterface/qt4/src/widgets/tqlistbox.h
index 936c69a..0b464a9 100644
--- a/tqtinterface/qt4/src/widgets/tqlistbox.h
+++ b/tqtinterface/qt4/src/widgets/tqlistbox.h
@@ -141,7 +141,7 @@ public:
TQListBoxItem *item( int index ) const;
int index( const TQListBoxItem * ) const;
- TQListBoxItem *tqfindItem( const TQString &text, TQt::ComparisonFlags compare = TQt::BeginsWith ) const;
+ TQListBoxItem *findItem( const TQString &text, TQt::ComparisonFlags compare = TQt::BeginsWith ) const;
void triggerUpdate( bool doLayout );
@@ -276,7 +276,7 @@ protected:
#ifndef TQT_NO_COMPAT
bool itemYPos( int index, int *yPos ) const;
- int tqfindItem( int yPos ) const { return index(itemAt(TQPoint(0,yPos)) ); }
+ int findItem( int yPos ) const { return index(itemAt(TQPoint(0,yPos)) ); }
#endif
protected Q_SLOTS:
diff --git a/tqtinterface/qt4/src/widgets/tqlistview.cpp b/tqtinterface/qt4/src/widgets/tqlistview.cpp
index 46060c8..506ec60 100644
--- a/tqtinterface/qt4/src/widgets/tqlistview.cpp
+++ b/tqtinterface/qt4/src/widgets/tqlistview.cpp
@@ -403,7 +403,7 @@ static TQString qEllipsisText( const TQString &org, const TQFontMetrics &fm, int
you can get a pointer to any TQListViewItem in a TQListView using
TQListView::selectedItem(), TQListView::currentItem(),
TQListView::firstChild(), TQListView::lastItem() and
- TQListView::tqfindItem().
+ TQListView::findItem().
If you call \c delete on a list view item, it will be deleted as
expected, and as usual for \l{TQObject}s, if it has any child items
@@ -1115,7 +1115,7 @@ bool TQListViewItem::acceptDrop( const TQMimeSource * ) const
/*!
This function is called when something was dropped on the item. \a e
- tqcontains all the information about the drop.
+ contains all the information about the drop.
The default implementation does nothing, subclasses may need to
reimplement this function.
@@ -1611,7 +1611,7 @@ void TQListViewItem::setup()
if ( mlenabled ) {
h = ph;
for ( int c = 0; c < lv->columns(); ++c ) {
- int lines = text( c ).tqcontains( TQChar('\n') ) + 1;
+ int lines = text( c ).contains( TQChar('\n') ) + 1;
int tmph = lv->d->fontMetricsHeight
+ lv->fontMetrics().lineSpacing() * ( lines - 1 );
h = TQMAX( h, tmph );
@@ -1884,9 +1884,9 @@ void TQListViewItem::setText( int column, const TQString &text )
int newLc = 0;
if ( mlenabled ) {
if ( !l->text.isEmpty() )
- oldLc = l->text.tqcontains( TQChar( '\n' ) ) + 1;
+ oldLc = l->text.contains( TQChar( '\n' ) ) + 1;
if ( !text.isEmpty() )
- newLc = text.tqcontains( TQChar( '\n' ) ) + 1;
+ newLc = text.contains( TQChar( '\n' ) ) + 1;
}
l->dirty = TRUE;
@@ -2860,7 +2860,7 @@ void TQListView::drawContentsOffset( TQPainter * p, int ox, int oy,
while( (i = (TQListViewItem *)(it.currentKey())) != 0 ) {
++it;
TQRect ir = tqitemRect( i ).intersect( viewport()->rect() );
- if ( ir.isEmpty() || br.tqcontains( ir ) )
+ if ( ir.isEmpty() || br.contains( ir ) )
// we're painting this one, or it needs no painting: forget it
d->dirtyItems->remove( (void *)i );
}
@@ -2896,7 +2896,7 @@ void TQListView::drawContentsOffset( TQPainter * p, int ox, int oy,
// need to paint current?
if ( ih > 0 && current->y < cy+ch && current->y+ih > cy ) {
if ( fx < 0 ) {
- // tqfind first interesting column, once
+ // find first interesting column, once
x = 0;
c = 0;
cs = d->h->cellSize( 0 );
@@ -3125,7 +3125,7 @@ void TQListView::buildDrawableList() const
// down again if any tqchildren are not to be painted
if ( cur->y < d->topPixel )
d->topPixel = cur->y;
- // bottompixel is easy: the bottom item drawn tqcontains it
+ // bottompixel is easy: the bottom item drawn contains it
d->bottomPixel = cur->y + ih - 1;
}
@@ -3880,7 +3880,7 @@ bool TQListView::eventFilter( TQObject * o, TQEvent * e )
/*!
Returns a pointer to the list view containing this item.
- Note that this function traverses the items to the root to tqfind the
+ Note that this function traverses the items to the root to find the
listview. This function will return 0 for taken items - see
TQListViewItem::takeItem()
*/
@@ -3916,7 +3916,7 @@ int TQListViewItem::depth() const
that this item is visible, or can be made visible by scrolling).
This function might be relatively slow because of the tree
- traversions needed to tqfind the correct item.
+ traversions needed to find the correct item.
\sa itemBelow() TQListView::tqitemRect()
*/
@@ -4256,7 +4256,7 @@ void TQListView::contentsMousePressEventEx( TQMouseEvent * e )
d->ignoreEditAfterFocus = FALSE;
if ( currentItem() && currentItem()->renameBox &&
- !tqitemRect( currentItem() ).tqcontains( e->pos() ) ) {
+ !tqitemRect( currentItem() ).contains( e->pos() ) ) {
d->startEdit = FALSE;
if ( d->defRenameAction == Reject )
currentItem()->cancelRename( currentItem()->renameCol );
@@ -4557,7 +4557,7 @@ void TQListView::contentsMouseReleaseEventEx( TQMouseEvent * e )
if ( d->pressedColumn == 0 )
r.setLeft( r.left() + itemMargin() + ( currentItem()->depth() +
( rootIsDecorated() ? 1 : 0 ) ) * treeStepSize() - 1 );
- if ( r.tqcontains( e->pos() ) &&
+ if ( r.contains( e->pos() ) &&
!( e->state() & ( ShiftButton | ControlButton ) ) )
d->renameTimer->start( TQApplication::doubleClickInterval(), TRUE );
}
@@ -5179,7 +5179,7 @@ void TQListView::keyPressEvent( TQKeyEvent * e )
}
\endcode
- This might be interesting if you use this function to tqfind out
+ This might be interesting if you use this function to find out
where the user clicked and if you want to start a drag (which you
do not want to do if the user clicked onto the root decoration of
an item).
@@ -5948,7 +5948,7 @@ TQListViewItem * TQListView::firstChild() const
Returns the last item in the list view tree. Returns 0 if there
are no items in the TQListView.
- This function is slow because it traverses the entire tree to tqfind
+ This function is slow because it traverses the entire tree to find
the last item.
*/
@@ -5990,7 +5990,7 @@ void TQListView::repaintItem( const TQListViewItem * item ) const
d->dirtyItemTimer->start( 0, TRUE );
if ( !d->dirtyItems )
d->dirtyItems = new TQPtrDict<void>();
- d->dirtyItems->tqreplace( (void *)item, (void *)item );
+ d->dirtyItems->replace( (void *)item, (void *)item );
}
@@ -6426,7 +6426,7 @@ void TQCheckListItem::setCurrentState( ToggleState s )
void TQCheckListItem::setStoredState( ToggleState newState, void *key )
{
if ( myType == CheckBox || myType == CheckBoxController )
- d->statesDict->tqreplace( key, new ToggleState(newState) );
+ d->statesDict->replace( key, new ToggleState(newState) );
}
/*
@@ -6438,7 +6438,7 @@ TQCheckListItem::ToggleState TQCheckListItem::storedState( void *key ) const
if ( !d->statesDict )
return Off;
- ToggleState *foundState = d->statesDict->tqfind( key );
+ ToggleState *foundState = d->statesDict->find( key );
if ( foundState )
return ToggleState( *foundState );
else
@@ -6494,7 +6494,7 @@ void TQCheckListItem::activate()
TQRect r( x, y, boxsize-3, boxsize-3 );
// columns might have been swapped
r.moveBy( lv->header()->sectionPos( 0 ), 0 );
- if ( !r.tqcontains( pos ) )
+ if ( !r.contains( pos ) )
return;
}
if ( ( myType == CheckBox ) || ( myType == CheckBoxController) ) {
@@ -7444,7 +7444,7 @@ TQListViewItemIterator::TQListViewItemIterator()
}
/*!
- Constructs an iterator for the TQListView that tqcontains the \a
+ Constructs an iterator for the TQListView that contains the \a
item. The current iterator item is set to point to the \a item.
*/
@@ -7461,7 +7461,7 @@ TQListViewItemIterator::TQListViewItemIterator( TQListViewItem *item )
}
/*!
- Constructs an iterator for the TQListView that tqcontains the \a item
+ Constructs an iterator for the TQListView that contains the \a item
using the flags \a iteratorFlags. The current iterator item is set
to point to \a item or the next matching item if \a item doesn't
match the flags.
@@ -7772,7 +7772,7 @@ TQListViewItem *TQListViewItemIterator::current() const
TQListViewItemIteratorPrivate* TQListViewItemIterator::d() const
{
return qt_iteratorprivate_dict ?
- qt_iteratorprivate_dict->tqfind( (void *)this ) : 0;
+ qt_iteratorprivate_dict->find( (void *)this ) : 0;
}
void TQListViewItemIterator::init( int iteratorFlags )
@@ -8081,7 +8081,7 @@ bool TQListView::selectRange( TQListViewItem *newItem, TQListViewItem *oldItem,
The default comparison mode is case-sensitive, exact match.
*/
-TQListViewItem *TQListView::tqfindItem( const TQString& text, int column,
+TQListViewItem *TQListView::findItem( const TQString& text, int column,
TQt::ComparisonFlags compare ) const
{
if (text.isEmpty() && !(compare & TQt::ExactMatch))
@@ -8100,7 +8100,7 @@ TQListViewItem *TQListView::tqfindItem( const TQString& text, int column,
TQListViewItem *item;
TQListViewItem *beginsWithItem = 0;
TQListViewItem *endsWithItem = 0;
- TQListViewItem *tqcontainsItem = 0;
+ TQListViewItem *containsItem = 0;
for ( int pass = 0; pass < 2; pass++ ) {
while ( (item = it.current()) != sentinel ) {
@@ -8111,11 +8111,11 @@ TQListViewItem *TQListView::tqfindItem( const TQString& text, int column,
if ( compare & TQt::ExactMatch && itmtxt == comtxt )
return item;
if ( compare & TQt::BeginsWith && !beginsWithItem && itmtxt.startsWith( comtxt ) )
- beginsWithItem = tqcontainsItem = item;
+ beginsWithItem = containsItem = item;
if ( compare & TQt::EndsWith && !endsWithItem && itmtxt.endsWith( comtxt ) )
- endsWithItem = tqcontainsItem = item;
- if ( compare & TQt::Contains && !tqcontainsItem && itmtxt.tqcontains( comtxt ) )
- tqcontainsItem = item;
+ endsWithItem = containsItem = item;
+ if ( compare & TQt::Contains && !containsItem && itmtxt.contains( comtxt ) )
+ containsItem = item;
++it;
}
@@ -8128,8 +8128,8 @@ TQListViewItem *TQListView::tqfindItem( const TQString& text, int column,
return beginsWithItem;
else if ( endsWithItem )
return endsWithItem;
- else if ( tqcontainsItem )
- return tqcontainsItem;
+ else if ( containsItem )
+ return containsItem;
return 0;
}
diff --git a/tqtinterface/qt4/src/widgets/tqlistview.h b/tqtinterface/qt4/src/widgets/tqlistview.h
index 11d2110..3d6c997 100644
--- a/tqtinterface/qt4/src/widgets/tqlistview.h
+++ b/tqtinterface/qt4/src/widgets/tqlistview.h
@@ -353,7 +353,7 @@ public:
virtual void setResizeMode( ResizeMode m );
ResizeMode resizeMode() const;
- TQListViewItem * tqfindItem( const TQString& text, int column, TQt::ComparisonFlags compare = TQt::ExactMatch | TQt::CaseSensitive ) const;
+ TQListViewItem * findItem( const TQString& text, int column, TQt::ComparisonFlags compare = TQt::ExactMatch | TQt::CaseSensitive ) const;
enum RenameAction { Accept, Reject };
virtual void setDefaultRenameAction( RenameAction a );
@@ -508,7 +508,7 @@ public:
int width( const TQFontMetrics&, const TQListView*, int column) const;
void setup();
- virtual void setOn( bool ); // ### should be tqreplaced by setChecked in ver4
+ virtual void setOn( bool ); // ### should be replaced by setChecked in ver4
bool isOn() const { return on; }
Type type() const { return myType; }
TQString text() const { return TQListViewItem::text( 0 ); }
diff --git a/tqtinterface/qt4/src/widgets/tqmainwindow.cpp b/tqtinterface/qt4/src/widgets/tqmainwindow.cpp
index 1921297..6a649bc 100644
--- a/tqtinterface/qt4/src/widgets/tqmainwindow.cpp
+++ b/tqtinterface/qt4/src/widgets/tqmainwindow.cpp
@@ -1125,7 +1125,7 @@ TQToolTipGroup * TQMainWindow::toolTipGroup() const
void TQMainWindow::setDockEnabled( TQt::Dock dock, bool enable )
{
- d->docks.tqreplace( dock, enable );
+ d->docks.replace( dock, enable );
}
@@ -1180,7 +1180,7 @@ bool TQMainWindow::isDockEnabled( TQDockArea *area ) const
void TQMainWindow::setDockEnabled( TQDockWindow *dw, TQt::Dock dock, bool enable )
{
- if ( d->dockWindows.tqfind( dw ) == -1 ) {
+ if ( d->dockWindows.find( dw ) == -1 ) {
d->dockWindows.append( dw );
connect( dw, TQT_SIGNAL( placeChanged(TQDockWindow::Place) ),
this, TQT_SLOT( slotPlaceChanged() ) );
@@ -1189,7 +1189,7 @@ void TQMainWindow::setDockEnabled( TQDockWindow *dw, TQt::Dock dock, bool enable
s.sprintf( "%p_%d", (void*)dw, (int)dock );
if ( enable )
d->disabledDocks.remove( s );
- else if ( d->disabledDocks.tqfind( s ) == d->disabledDocks.end() )
+ else if ( d->disabledDocks.find( s ) == d->disabledDocks.end() )
d->disabledDocks << s;
switch ( dock ) {
case TQt::DockTop:
@@ -1251,7 +1251,7 @@ bool TQMainWindow::isDockEnabled( TQDockWindow *tb, TQt::Dock dock ) const
return FALSE;
TQString s;
s.sprintf( "%p_%d", (void*)tb, (int)dock );
- return d->disabledDocks.tqfind( s ) == d->disabledDocks.end();
+ return d->disabledDocks.find( s ) == d->disabledDocks.end();
}
@@ -1279,7 +1279,7 @@ void TQMainWindow::addDockWindow( TQDockWindow *dockWindow,
#endif
moveDockWindow( dockWindow, edge );
dockWindow->setNewLine( newLine );
- if ( d->dockWindows.tqfind( dockWindow ) == -1 ) {
+ if ( d->dockWindows.find( dockWindow ) == -1 ) {
d->dockWindows.append( dockWindow );
connect( dockWindow, TQT_SIGNAL( placeChanged(TQDockWindow::Place) ),
this, TQT_SLOT( slotPlaceChanged() ) );
@@ -1701,7 +1701,7 @@ void TQMainWindow::childEvent( TQChildEvent* e)
d->sb = ::tqqt_cast<TQStatusBar*>(e->child());
if ( d->sb ) {
if ( d->tll ) {
- if ( !d->tll->tqfindWidget( d->sb ) )
+ if ( !d->tll->findWidget( d->sb ) )
d->tll->addWidget( d->sb );
} else {
triggerLayout();
@@ -2154,7 +2154,7 @@ void TQMainWindow::setDockMenuEnabled( bool b )
}
/*!
- Creates the dock window menu which tqcontains all toolbars (if \a
+ Creates the dock window menu which contains all toolbars (if \a
dockWindows is \c OnlyToolBars ), all dock windows (if \a
dockWindows is \c NoToolBars) or all toolbars and dock windows (if
\a dockWindows is \c AllDockWindows - the default).
@@ -2198,7 +2198,7 @@ TQPopupMenu *TQMainWindow::createDockWindowMenu( DockWindows dockWindows ) const
TQPopupMenu *menu = new TQPopupMenu( (TQMainWindow*)this, "qt_customize_menu" );
menu->setCheckable( TRUE );
- d->dockWindowModes.tqreplace( menu, dockWindows );
+ d->dockWindowModes.replace( menu, dockWindows );
connect( menu, TQT_SIGNAL( aboutToShow() ), this, TQT_SLOT( menuAboutToShow() ) );
return menu;
}
@@ -2218,7 +2218,7 @@ TQPopupMenu *TQMainWindow::createDockWindowMenu( DockWindows dockWindows ) const
void TQMainWindow::menuAboutToShow()
{
TQPopupMenu *menu = (TQPopupMenu*)sender();
- TQMap<TQPopupMenu*, DockWindows>::Iterator it = d->dockWindowModes.tqfind( menu );
+ TQMap<TQPopupMenu*, DockWindows>::Iterator it = d->dockWindowModes.find( menu );
if ( it == d->dockWindowModes.end() )
return;
menu->clear();
@@ -2349,7 +2349,7 @@ TQDockArea *TQMainWindow::dockingArea( const TQPoint &p )
bool TQMainWindow::hasDockWindow( TQDockWindow *dw )
{
- return d->dockWindows.tqfindRef( dw ) != -1;
+ return d->dockWindows.findRef( dw ) != -1;
}
/*!
@@ -2451,7 +2451,7 @@ bool TQMainWindow::isCustomizable() const
bool TQMainWindow::appropriate( TQDockWindow *dw ) const
{
- TQMap<TQDockWindow*, bool>::ConstIterator it = d->appropriate.tqfind( dw );
+ TQMap<TQDockWindow*, bool>::ConstIterator it = d->appropriate.find( dw );
if ( it == d->appropriate.end() )
return TRUE;
return *it;
@@ -2474,7 +2474,7 @@ bool TQMainWindow::appropriate( TQDockWindow *dw ) const
void TQMainWindow::setAppropriate( TQDockWindow *dw, bool a )
{
- d->appropriate.tqreplace( dw, a );
+ d->appropriate.replace( dw, a );
}
#ifndef TQT_NO_TEXTSTREAM
diff --git a/tqtinterface/qt4/src/widgets/tqmenubar.cpp b/tqtinterface/qt4/src/widgets/tqmenubar.cpp
index 0a1feba..e932f18 100644
--- a/tqtinterface/qt4/src/widgets/tqmenubar.cpp
+++ b/tqtinterface/qt4/src/widgets/tqmenubar.cpp
@@ -695,7 +695,7 @@ void TQMenuBar::popupDestroyed( TQObject *o )
bool TQMenuBar::tryMouseEvent( TQPopupMenu *, TQMouseEvent *e )
{
TQPoint pos = mapFromGlobal( e->globalPos() );
- if ( !TQT_TQRECT_OBJECT(rect()).tqcontains( pos ) ) // outside
+ if ( !TQT_TQRECT_OBJECT(rect()).contains( pos ) ) // outside
return FALSE;
int item = itemAtPos( pos );
if ( item == -1 && (e->type() == TQEvent::MouseButtonPress ||
@@ -965,8 +965,8 @@ int TQMenuBar::calculateRects( int max_width )
} else {
w = fm.boundingRect( s ).width() + 2*motifItemHMargin;
}
- w -= s.tqcontains('&')*fm.width('&');
- w += s.tqcontains("&&")*fm.width('&');
+ w -= s.contains('&')*fm.width('&');
+ w += s.contains("&&")*fm.width('&');
w = TQMAX( w, TQApplication::globalStrut().width() );
if (gs == GtkStyle ) {
h = TQMAX( fm.height() + gtkItemVMargin, TQApplication::globalStrut().height() );
@@ -1106,7 +1106,7 @@ int TQMenuBar::itemAtPos( const TQPoint &pos_ )
pos.setX( TQMAX( margin, TQMIN( width() - margin, pos.x())));
pos.setY( TQMAX( margin, TQMIN( height() - margin, pos.y())));
while ( i < (int)mitems->count() ) {
- if ( !irects[i].isEmpty() && irects[i].tqcontains( pos ) ) {
+ if ( !irects[i].isEmpty() && irects[i].contains( pos ) ) {
TQMenuItem *mi = mitems->at(i);
return mi->isSeparator() ? -1 : i;
}
@@ -1219,7 +1219,7 @@ void TQMenuBar::mousePressEvent( TQMouseEvent *e )
#ifndef USE_QT4
TQFocusEvent::Reason oldReason = TQFocusEvent::reason();
#endif // USE_QT4
- TQMenuItem *mi = tqfindItem( idAt( item ) );
+ TQMenuItem *mi = findItem( idAt( item ) );
// we know that a popup will open, so set the reason to avoid
// itemviews to redraw their selections
if ( mi && mi->popup() )
@@ -1377,7 +1377,7 @@ void TQMenuBar::keyPressEvent( TQKeyEvent *e )
++it;
TQString s = m->text();
if ( !s.isEmpty() ) {
- int i = s.tqfind( '&' );
+ int i = s.find( '&' );
if ( i >= 0 )
{
if ( s[i+1].upper() == c ) {
diff --git a/tqtinterface/qt4/src/widgets/tqmenudata.cpp b/tqtinterface/qt4/src/widgets/tqmenudata.cpp
index 2f0fd80..2061254 100644
--- a/tqtinterface/qt4/src/widgets/tqmenudata.cpp
+++ b/tqtinterface/qt4/src/widgets/tqmenudata.cpp
@@ -96,7 +96,7 @@ TQMenuDataData::TQMenuDataData()
respectively. By default, newly created menu items are visible.
They can be hidden (and shown again) with setItemVisible().
- Menu items are stored in a list. Use tqfindItem() to tqfind an item by
+ Menu items are stored in a list. Use findItem() to find an item by
its list position or by its menu identifier. (See also indexOf()
and idAt().)
@@ -278,7 +278,7 @@ int TQMenuData::insertAny( const TQString *text, const TQPixmap *pixmap,
mi->text_data = text?*text:TQString();
#else
TQString newText( *text );
- newText.truncate( newText.tqfindRev( '\t' ) );
+ newText.truncate( newText.findRev( '\t' ) );
mi->text_data = newText.isEmpty()?TQString():newText;
#endif
#ifndef TQT_NO_ACCEL
@@ -308,10 +308,10 @@ int TQMenuData::insertAny( const TQString *text, const TQPixmap *pixmap,
/*!
\internal
- Internal function that tqfinds the menu item where \a popup is located,
+ Internal function that finds the menu item where \a popup is located,
storing its index at \a index if \a index is not NULL.
*/
-TQMenuItem *TQMenuData::tqfindPopup( TQPopupMenu *popup, int *index )
+TQMenuItem *TQMenuData::findPopup( TQPopupMenu *popup, int *index )
{
int i = 0;
TQMenuItem *mi = mitems->first();
@@ -329,7 +329,7 @@ TQMenuItem *TQMenuData::tqfindPopup( TQPopupMenu *popup, int *index )
void TQMenuData::removePopup( TQPopupMenu *popup )
{
int index = 0;
- TQMenuItem *mi = tqfindPopup( popup, &index );
+ TQMenuItem *mi = findPopup( popup, &index );
if ( mi ) {
mi->popup_menu = 0;
removeItemAt( index );
@@ -802,7 +802,7 @@ int TQMenuData::insertSeparator( int index )
void TQMenuData::removeItem( int id )
{
TQMenuData *tqparent;
- if ( tqfindItem( id, &tqparent ) )
+ if ( findItem( id, &tqparent ) )
tqparent->removeItemAt(tqparent->indexOf(id));
}
@@ -872,7 +872,7 @@ void TQMenuData::clear()
TQKeySequence TQMenuData::accel( int id ) const
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
if ( mi )
return mi->key();
return TQKeySequence();
@@ -883,7 +883,7 @@ TQKeySequence TQMenuData::accel( int id ) const
An accelerator key consists of a key code and a combination of the
modifiers \c SHIFT, \c CTRL, \c ALT or \c UNICODE_ACCEL (OR'ed or
- added). The header file \c tqnamespace.h tqcontains a list of key
+ added). The header file \c tqnamespace.h contains a list of key
codes.
Defining an accelerator key produces a text that is added to the
@@ -927,7 +927,7 @@ TQKeySequence TQMenuData::accel( int id ) const
void TQMenuData::setAccel( const TQKeySequence& key, int id )
{
TQMenuData *tqparent;
- TQMenuItem *mi = tqfindItem( id, &tqparent );
+ TQMenuItem *mi = findItem( id, &tqparent );
if ( mi ) {
mi->accel_key = key;
tqparent->menuContentsChanged();
@@ -945,7 +945,7 @@ void TQMenuData::setAccel( const TQKeySequence& key, int id )
TQIconSet* TQMenuData::iconSet( int id ) const
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
return mi ? mi->iconSet() : 0;
}
@@ -958,7 +958,7 @@ TQIconSet* TQMenuData::iconSet( int id ) const
TQString TQMenuData::text( int id ) const
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
return mi ? mi->text() : TQString::null;
}
@@ -971,7 +971,7 @@ TQString TQMenuData::text( int id ) const
TQPixmap *TQMenuData::pixmap( int id ) const
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
return mi ? mi->pixmap() : 0;
}
@@ -1013,7 +1013,7 @@ TQPixmap *TQMenuData::pixmap( int id ) const
void TQMenuData::changeItem( int id, const TQString &text )
{
TQMenuData *tqparent;
- TQMenuItem *mi = tqfindItem( id, &tqparent );
+ TQMenuItem *mi = findItem( id, &tqparent );
if ( mi ) { // item found
if ( mi->text_data == text ) // same string
return;
@@ -1023,7 +1023,7 @@ void TQMenuData::changeItem( int id, const TQString &text )
}
mi->text_data = text;
#ifndef TQT_NO_ACCEL
- if ( !mi->accel_key && text.tqfind( '\t' ) != -1 )
+ if ( !mi->accel_key && text.find( '\t' ) != -1 )
mi->accel_key = TQt::Key_unknown;
#endif
tqparent->menuContentsChanged();
@@ -1042,7 +1042,7 @@ void TQMenuData::changeItem( int id, const TQString &text )
void TQMenuData::changeItem( int id, const TQPixmap &pixmap )
{
TQMenuData *tqparent;
- TQMenuItem *mi = tqfindItem( id, &tqparent );
+ TQMenuItem *mi = findItem( id, &tqparent );
if ( mi ) { // item found
register TQPixmap *i = mi->pixmap_data;
bool fast_refresh = i != 0 &&
@@ -1104,7 +1104,7 @@ void TQMenuData::changeItem( int id, const TQIconSet &icon, const TQPixmap &pixm
void TQMenuData::changeItemIconSet( int id, const TQIconSet &icon )
{
TQMenuData *tqparent;
- TQMenuItem *mi = tqfindItem( id, &tqparent );
+ TQMenuItem *mi = findItem( id, &tqparent );
if ( mi ) { // item found
register TQIconSet *i = mi->iconset_data;
bool fast_refresh = i != 0;
@@ -1130,7 +1130,7 @@ void TQMenuData::changeItemIconSet( int id, const TQIconSet &icon )
bool TQMenuData::isItemEnabled( int id ) const
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
return mi ? mi->isEnabled() : FALSE;
}
@@ -1144,7 +1144,7 @@ bool TQMenuData::isItemEnabled( int id ) const
void TQMenuData::setItemEnabled( int id, bool enable )
{
TQMenuData *tqparent;
- TQMenuItem *mi = tqfindItem( id, &tqparent );
+ TQMenuItem *mi = findItem( id, &tqparent );
if ( mi && (bool)mi->is_enabled != enable ) {
mi->is_enabled = enable;
#if !defined(TQT_NO_ACCEL) && !defined(TQT_NO_POPUPMENU)
@@ -1176,7 +1176,7 @@ bool TQMenuData::isItemActive( int id ) const
bool TQMenuData::isItemChecked( int id ) const
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
return mi ? mi->isChecked() : FALSE;
}
@@ -1191,7 +1191,7 @@ bool TQMenuData::isItemChecked( int id ) const
void TQMenuData::setItemChecked( int id, bool check )
{
TQMenuData *tqparent;
- TQMenuItem *mi = tqfindItem( id, &tqparent );
+ TQMenuItem *mi = findItem( id, &tqparent );
if ( mi && (bool)mi->is_checked != check ) {
mi->is_checked = check;
#ifndef TQT_NO_POPUPMENU
@@ -1211,7 +1211,7 @@ void TQMenuData::setItemChecked( int id, bool check )
bool TQMenuData::isItemVisible( int id ) const
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
return mi ? mi->isVisible() : FALSE;
}
@@ -1225,7 +1225,7 @@ bool TQMenuData::isItemVisible( int id ) const
void TQMenuData::setItemVisible( int id, bool visible )
{
TQMenuData *tqparent;
- TQMenuItem *mi = tqfindItem( id, &tqparent );
+ TQMenuItem *mi = findItem( id, &tqparent );
if ( mi && (bool)mi->is_visible != visible ) {
mi->is_visible = visible;
tqparent->menuContentsChanged();
@@ -1245,9 +1245,9 @@ void TQMenuData::setItemVisible( int id, bool visible )
\sa indexOf()
*/
-TQMenuItem *TQMenuData::tqfindItem( int id ) const
+TQMenuItem *TQMenuData::findItem( int id ) const
{
- return tqfindItem( id, 0 );
+ return findItem( id, 0 );
}
@@ -1266,7 +1266,7 @@ TQMenuItem *TQMenuData::tqfindItem( int id ) const
\sa indexOf()
*/
-TQMenuItem * TQMenuData::tqfindItem( int id, TQMenuData ** tqparent ) const
+TQMenuItem * TQMenuData::findItem( int id, TQMenuData ** tqparent ) const
{
if ( tqparent )
*tqparent = (TQMenuData *)this; // ###
@@ -1288,7 +1288,7 @@ TQMenuItem * TQMenuData::tqfindItem( int id, TQMenuData ** tqparent ) const
TQPopupMenu *p = mi->popup_menu;
if (!p->avoid_circularity) {
p->avoid_circularity = 1;
- mi = mi->popup_menu->tqfindItem( id, tqparent );
+ mi = mi->popup_menu->findItem( id, tqparent );
p->avoid_circularity = 0;
if ( mi ) // found item
return mi;
@@ -1303,7 +1303,7 @@ TQMenuItem * TQMenuData::tqfindItem( int id, TQMenuData ** tqparent ) const
Returns the index of the menu item with identifier \a id, or -1 if
there is no item with this identifier.
- \sa idAt(), tqfindItem()
+ \sa idAt(), findItem()
*/
int TQMenuData::indexOf( int id ) const
@@ -1359,7 +1359,7 @@ void TQMenuData::setId( int index, int id )
\sa connectItem(), disconnectItem(), itemParameter()
*/
bool TQMenuData::setItemParameter( int id, int param ) {
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
if ( !mi ) // no such identifier
return FALSE;
if ( !mi->signal_data ) { // create new signal
@@ -1381,7 +1381,7 @@ bool TQMenuData::setItemParameter( int id, int param ) {
*/
int TQMenuData::itemParameter( int id ) const
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
if ( !mi || !mi->signal_data )
return id;
return mi->signal_data->value().toInt();
@@ -1401,7 +1401,7 @@ int TQMenuData::itemParameter( int id ) const
bool TQMenuData::connectItem( int id, const TQT_BASE_OBJECT_NAME *receiver,
const char* member )
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
if ( !mi ) // no such identifier
return FALSE;
if ( !mi->signal_data ) { // create new signal
@@ -1426,7 +1426,7 @@ bool TQMenuData::connectItem( int id, const TQT_BASE_OBJECT_NAME *receiver,
bool TQMenuData::disconnectItem( int id, const TQT_BASE_OBJECT_NAME *receiver,
const char* member )
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
if ( !mi || !mi->signal_data ) // no identifier or no signal
return FALSE;
return mi->signal_data->disconnect( receiver, member );
@@ -1442,7 +1442,7 @@ void TQMenuData::setWhatsThis( int id, const TQString& text )
{
TQMenuData *tqparent;
- TQMenuItem *mi = tqfindItem( id, &tqparent );
+ TQMenuItem *mi = findItem( id, &tqparent );
if ( mi ) {
mi->setWhatsThis( text );
tqparent->menuContentsChanged();
@@ -1458,7 +1458,7 @@ void TQMenuData::setWhatsThis( int id, const TQString& text )
TQString TQMenuData::whatsThis( int id ) const
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
return mi? mi->whatsThis() : TQString::null;
}
diff --git a/tqtinterface/qt4/src/widgets/tqmenudata.h b/tqtinterface/qt4/src/widgets/tqmenudata.h
index 96128c0..70f7a43 100644
--- a/tqtinterface/qt4/src/widgets/tqmenudata.h
+++ b/tqtinterface/qt4/src/widgets/tqmenudata.h
@@ -245,9 +245,9 @@ public:
bool setItemParameter( int id, int param );
int itemParameter( int id ) const;
- TQMenuItem *tqfindItem( int id ) const;
- TQMenuItem *tqfindItem( int id, TQMenuData ** tqparent ) const;
- TQMenuItem * tqfindPopup( TQPopupMenu *, int *index = 0 );
+ TQMenuItem *findItem( int id ) const;
+ TQMenuItem *findItem( int id, TQMenuData ** tqparent ) const;
+ TQMenuItem * findPopup( TQPopupMenu *, int *index = 0 );
virtual void activateItemAt( int index );
diff --git a/tqtinterface/qt4/src/widgets/tqmultilineedit.cpp b/tqtinterface/qt4/src/widgets/tqmultilineedit.cpp
index 22066bc..1dba7ed 100644
--- a/tqtinterface/qt4/src/widgets/tqmultilineedit.cpp
+++ b/tqtinterface/qt4/src/widgets/tqmultilineedit.cpp
@@ -262,7 +262,7 @@ void TQMultiLineEdit::pageUp( bool mark )
/*! Inserts \a txt at paragraph number \a line. If \a line is less
than zero, or larger than the number of paragraphs, the new text is
- put at the end. If \a txt tqcontains newline characters, several
+ put at the end. If \a txt contains newline characters, several
paragraphs are inserted.
The cursor position is not changed.
@@ -452,7 +452,7 @@ void TQMultiLineEdit::cursorWordBackward( bool mark )
*/
/*! Inserts string \a s at paragraph number \a line, after character
- number \a col in the paragraph. If \a s tqcontains newline
+ number \a col in the paragraph. If \a s contains newline
characters, new lines are inserted.
If \a mark is TRUE the inserted string will be selected.
diff --git a/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp b/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp
index 89f525a..a96b67d 100644
--- a/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp
+++ b/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp
@@ -75,7 +75,7 @@ bool tqwidget_is_popup_menu(QWidget* w) {
QWidget* tqwidget_parent_popup_menu(QWidget* w) {
TQPopupMenu* tqpm = dynamic_cast<TQPopupMenu*>(w);
if (tqpm) {
- TQMenuData *top = tqpm; // tqfind top level
+ TQMenuData *top = tqpm; // find top level
if ( top->parentMenu ) {
if (top->parentMenu->isPopupMenu == FALSE) return 0;
return (dynamic_cast<TQPopupMenu*>(top->parentMenu));
@@ -202,7 +202,7 @@ static TQMenuItem* whatsThisItem = 0;
into a popup menu (for example, a color selector).
A TQPopupMenu can also provide a tear-off menu. A tear-off menu is
- a top-level window that tqcontains a copy of the menu. This makes it
+ a top-level window that contains a copy of the menu. This makes it
possible for the user to "tear off" frequently used menus and
position them in a convenient place on the screen. If you want
that functionality for a certain menu, insert a tear-off handle
@@ -210,7 +210,7 @@ static TQMenuItem* whatsThisItem = 0;
mind that the concept isn't typically used on Microsoft Windows so
users may not be familiar with it. Consider using a TQToolBar
instead. Tear-off menus cannot contain custom widgets; if the
- original menu tqcontains a custom widget item, this item is omitted.
+ original menu contains a custom widget item, this item is omitted.
\link menu-example.html menu/menu.cpp\endlink is an example of
TQMenuBar and TQPopupMenu use.
@@ -752,7 +752,7 @@ static bool fromAccel = FALSE;
#ifndef TQT_NO_ACCEL
void TQPopupMenu::accelActivated( int id )
{
- TQMenuItem *mi = tqfindItem( id );
+ TQMenuItem *mi = findItem( id );
if ( mi && mi->isEnabledAndVisible() ) {
TQGuardedPtr<TQSignal> signal = mi->signal();
fromAccel = TRUE;
@@ -786,7 +786,7 @@ void TQPopupMenu::actSig( int id, bool inwhatsthis )
#ifndef TQT_NO_WHATSTHIS
TQRect r( itemGeometry( indexOf( id ) ) );
TQPoint p( r.center().x(), r.bottom() );
- TQString whatsThis = tqfindItem( id )->whatsThis();
+ TQString whatsThis = findItem( id )->whatsThis();
if ( whatsThis.isNull() )
whatsThis = TQWhatsThis::textFor( this, p );
TQWhatsThis::leaveWhatsThisMode( whatsThis, mapToGlobal( p ), this );
@@ -833,7 +833,7 @@ void TQPopupMenu::setFirstItemActive()
void TQPopupMenu::hideAllPopups()
{
- register TQMenuData *top = this; // tqfind top level popup
+ register TQMenuData *top = this; // find top level popup
if ( !preventAnimation )
TQTimer::singleShot( 10, this, TQT_SLOT(allowAnimation()) );
preventAnimation = TRUE;
@@ -889,7 +889,7 @@ void TQPopupMenu::hidePopups()
bool TQPopupMenu::tryMenuBar( TQMouseEvent *e )
{
- register TQMenuData *top = this; // tqfind top level
+ register TQMenuData *top = this; // find top level
while ( top->parentMenu )
top = top->parentMenu;
#ifndef TQT_NO_MENUBAR
@@ -910,7 +910,7 @@ bool TQPopupMenu::tryMouseEvent( TQPopupMenu *p, TQMouseEvent * e)
if ( p == this )
return FALSE;
TQPoint pos = mapFromGlobal( e->globalPos() );
- if ( !TQT_TQRECT_OBJECT(rect()).tqcontains( pos ) ) // outside
+ if ( !TQT_TQRECT_OBJECT(rect()).contains( pos ) ) // outside
return FALSE;
TQMouseEvent ee( e->type(), pos, e->globalPos(), e->button(), e->state() );
event( &ee );
@@ -925,7 +925,7 @@ bool TQPopupMenu::tryMouseEvent( TQPopupMenu *p, TQMouseEvent * e)
void TQPopupMenu::byeMenuBar()
{
#ifndef TQT_NO_MENUBAR
- register TQMenuData *top = this; // tqfind top level
+ register TQMenuData *top = this; // find top level
while ( top->parentMenu )
top = top->parentMenu;
#endif
@@ -945,7 +945,7 @@ void TQPopupMenu::byeMenuBar()
int TQPopupMenu::itemAtPos( const TQPoint &pos, bool ignoreSeparator ) const
{
- if ( !contentsRect().tqcontains(pos) )
+ if ( !contentsRect().contains(pos) )
return -1;
int row = 0;
@@ -988,7 +988,7 @@ int TQPopupMenu::itemAtPos( const TQPoint &pos, bool ignoreSeparator ) const
y = contentsRect().y();
x +=itemw;
}
- if ( TQRect( x, y, itemw, itemh ).tqcontains( pos ) )
+ if ( TQRect( x, y, itemw, itemh ).contains( pos ) )
break;
y += itemh;
++row;
@@ -1146,17 +1146,17 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize)
if (! mi->text().isNull()) {
TQString s = mi->text();
int t;
- if ( (t = s.tqfind('\t')) >= 0 ) { // string tqcontains tab
+ if ( (t = s.find('\t')) >= 0 ) { // string contains tab
w += fm.width( s, t );
- w -= s.tqcontains('&') * fm.width('&');
- w += s.tqcontains("&&") * fm.width('&');
+ w -= s.contains('&') * fm.width('&');
+ w += s.contains("&&") * fm.width('&');
int tw = fm.width( s.mid(t + 1) );
if ( tw > tab)
tab = tw;
} else {
w += fm.width( s );
- w -= s.tqcontains('&') * fm.width('&');
- w += s.tqcontains("&&") * fm.width('&');
+ w -= s.contains('&') * fm.width('&');
+ w += s.contains("&&") * fm.width('&');
}
} else if (mi->pixmap())
w += mi->pixmap()->width();
@@ -1280,7 +1280,7 @@ void TQPopupMenu::updateAccel( TQWidget *tqparent )
delete autoaccel;
autoaccel = 0;
} else if ( !autoaccel ) {
- // we have no tqparent. Rather than ignoring any accelerators we try to tqfind this popup's main window
+ // we have no tqparent. Rather than ignoring any accelerators we try to find this popup's main window
if ( tornOff ) {
tqparent = this;
} else {
@@ -1322,13 +1322,13 @@ void TQPopupMenu::updateAccel( TQWidget *tqparent )
}
if ( !mi->text().isNull() || mi->custom() ) {
TQString s = mi->text();
- int i = s.tqfind('\t');
+ int i = s.find('\t');
// Note: Only looking at the first key in the sequence!
if ( (int)k && (int)k != TQt::Key_unknown ) {
TQString t = (TQString)mi->key();
if ( i >= 0 )
- s.tqreplace( i+1, s.length()-i, t );
+ s.replace( i+1, s.length()-i, t );
else {
s += '\t';
s += t;
@@ -1557,7 +1557,7 @@ void TQPopupMenu::drawContents( TQPainter* p )
if(d->scroll.scrollable & TQPopupMenuPrivate::Scroll::ScrollUp) {
TQRect rect(x, y, contentsRect().width(),
tqstyle().tqpixelMetric(TQStyle::PM_PopupMenuScrollerHeight, this));
- if(!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).tqcontains(rect)) {
+ if(!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).contains(rect)) {
TQStyle::SFlags flags = TQStyle::Style_Up;
if (isEnabled())
flags |= TQStyle::Style_Enabled;
@@ -1592,7 +1592,7 @@ void TQPopupMenu::drawContents( TQPainter* p )
if ( ncols > 1 && y + itemh > contentsRect().bottom() ) {
if ( y < contentsRect().bottom() ) {
TQRect rect(x, y, itemw, contentsRect().bottom() - y);
- if(!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).tqcontains(rect)) {
+ if(!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).contains(rect)) {
flags = TQStyle::Style_Default;
if (isEnabled() && mi->isEnabledAndVisible())
flags |= TQStyle::Style_Enabled;
@@ -1603,14 +1603,14 @@ void TQPopupMenu::drawContents( TQPainter* p )
y = contentsRect().y();
x +=itemw;
}
- if (!mi->widget() && (!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).tqcontains(TQRect(x, y, itemw, itemh))))
+ if (!mi->widget() && (!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).contains(TQRect(x, y, itemw, itemh))))
drawItem( p, tab, mi, row == actItem, x, y, itemw, itemh );
y += itemh;
++row;
}
if ( y < contentsRect().bottom() ) {
TQRect rect(x, y, itemw, contentsRect().bottom() - y);
- if(!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).tqcontains(rect)) {
+ if(!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).contains(rect)) {
flags = TQStyle::Style_Default;
if ( isEnabled() )
flags |= TQStyle::Style_Enabled;
@@ -1621,7 +1621,7 @@ void TQPopupMenu::drawContents( TQPainter* p )
if( d->scroll.scrollable & TQPopupMenuPrivate::Scroll::ScrollDown ) {
int sh = tqstyle().tqpixelMetric(TQStyle::PM_PopupMenuScrollerHeight, this);
TQRect rect(x, contentsRect().height() - sh, contentsRect().width(), sh);
- if(!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).tqcontains(rect)) {
+ if(!p->hasClipping() || TQT_TQREGION_OBJECT(p->clipRegion()).contains(rect)) {
TQStyle::SFlags flags = TQStyle::Style_Down;
if (isEnabled())
flags |= TQStyle::Style_Enabled;
@@ -1668,7 +1668,7 @@ void TQPopupMenu::closeEvent( TQCloseEvent * e) {
void TQPopupMenu::mousePressEvent( TQMouseEvent *e )
{
int sh = tqstyle().tqpixelMetric(TQStyle::PM_PopupMenuScrollerHeight, this);
- if (TQT_TQRECT_OBJECT(rect()).tqcontains(e->pos()) &&
+ if (TQT_TQRECT_OBJECT(rect()).contains(e->pos()) &&
((d->scroll.scrollable & TQPopupMenuPrivate::Scroll::ScrollUp && e->pos().y() <= sh) || //up
(d->scroll.scrollable & TQPopupMenuPrivate::Scroll::ScrollDown &&
e->pos().y() >= contentsRect().height() - sh))) //down
@@ -1677,7 +1677,7 @@ void TQPopupMenu::mousePressEvent( TQMouseEvent *e )
mouseBtDn = TRUE; // mouse button down
int item = itemAtPos( e->pos() );
if ( item == -1 ) {
- if ( !TQT_TQRECT_OBJECT(rect()).tqcontains(e->pos()) && !tryMenuBar(e) ) {
+ if ( !TQT_TQRECT_OBJECT(rect()).contains(e->pos()) && !tryMenuBar(e) ) {
byeMenuBar();
}
return;
@@ -1719,7 +1719,7 @@ void TQPopupMenu::mouseReleaseEvent( TQMouseEvent *e )
// to the menubar or our parent menu
int sh = tqstyle().tqpixelMetric(TQStyle::PM_PopupMenuScrollerHeight, this);
- if ( !TQT_TQRECT_OBJECT(rect()).tqcontains( e->pos() ) && tryMenuBar(e) ) {
+ if ( !TQT_TQRECT_OBJECT(rect()).contains( e->pos() ) && tryMenuBar(e) ) {
return;
}
else if((d->scroll.scrollable & TQPopupMenuPrivate::Scroll::ScrollUp && e->pos().y() <= sh) || //up
@@ -1730,7 +1730,7 @@ void TQPopupMenu::mouseReleaseEvent( TQMouseEvent *e )
if ( actItem < 0 ) { // we do not have an active item
// if the release is inside without motion (happens with
// oversized popup menus on small screens), ignore it
- if ( TQT_TQRECT_OBJECT(rect()).tqcontains( e->pos() ) && motion < 6 )
+ if ( TQT_TQRECT_OBJECT(rect()).contains( e->pos() ) && motion < 6 )
return;
else
byeMenuBar();
@@ -1794,9 +1794,9 @@ void TQPopupMenu::mouseMoveEvent( TQMouseEvent *e )
TQPopupMenu* p = (TQPopupMenu*)parentMenu;
int myIndex;
- p->tqfindPopup( this, &myIndex );
+ p->findPopup( this, &myIndex );
TQPoint pPos = p->mapFromParent( e->globalPos() );
- if ( p->actItem != myIndex && !TQT_TQRECT_OBJECT(p->rect()).tqcontains( pPos ) )
+ if ( p->actItem != myIndex && !TQT_TQRECT_OBJECT(p->rect()).contains( pPos ) )
p->setActiveItem( myIndex );
if ( tqstyle().tqstyleHint(TQStyle::SH_PopupMenu_SloppySubMenus, this )) {
@@ -1838,7 +1838,7 @@ void TQPopupMenu::mouseMoveEvent( TQMouseEvent *e )
if ( lastActItem >= 0 )
updateRow( lastActItem );
if ( lastActItem > 0 ||
- ( !TQT_TQRECT_OBJECT(rect()).tqcontains( e->pos() ) && !tryMenuBar( e ) ) ) {
+ ( !TQT_TQRECT_OBJECT(rect()).contains( e->pos() ) && !tryMenuBar( e ) ) ) {
popupSubMenuLater(tqstyle().tqstyleHint(TQStyle::SH_PopupMenu_SubMenuPopupDelay,
this), this);
}
@@ -1863,7 +1863,7 @@ void TQPopupMenu::mouseMoveEvent( TQMouseEvent *e )
return;
if ( tqstyle().tqstyleHint(TQStyle::SH_PopupMenu_SloppySubMenus, this) &&
- d->mouseMoveBuffer.tqcontains( e->pos() ) ) {
+ d->mouseMoveBuffer.contains( e->pos() ) ) {
actItem = item;
popupSubMenuLater( tqstyle().tqstyleHint(TQStyle::SH_PopupMenu_SubMenuPopupDelay, this) * 6,
this );
@@ -2078,7 +2078,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e )
++it;
TQString s = m->text();
if ( !s.isEmpty() ) {
- int i = s.tqfind( '&' );
+ int i = s.find( '&' );
while ( i >= 0 && i < (int)s.length() - 1 ) {
if ( s[i+1].upper() == c ) {
ok_key = TRUE;
@@ -2091,7 +2091,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e )
firstAfterCurrent = m;
break;
} else if ( s[i+1] == '&' ) {
- i = s.tqfind( '&', i+2 );
+ i = s.find( '&', i+2 );
} else {
break;
}
@@ -2137,7 +2137,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e )
}
#ifndef TQT_NO_MENUBAR
if ( !ok_key ) { // send to menu bar
- register TQMenuData *top = this; // tqfind top level
+ register TQMenuData *top = this; // find top level
while ( top->parentMenu )
top = top->parentMenu;
if ( top->isMenuBar ) {
@@ -2430,7 +2430,7 @@ void TQPopupMenu::subMenuTimer() {
if ( tqstyle().tqstyleHint(TQStyle::SH_PopupMenu_SloppySubMenus, this )) {
TQPoint cur = TQCursor::pos();
- if ( r.tqcontains( mapFromGlobal( cur ) ) ) {
+ if ( r.contains( mapFromGlobal( cur ) ) ) {
TQPoint pts[4];
pts[0] = TQPoint( cur.x(), cur.y() - 2 );
pts[3] = TQPoint( cur.x(), cur.y() + 2 );
@@ -2753,7 +2753,7 @@ public:
Inserts a tear-off handle into the menu. A tear-off handle is a
special menu item that creates a copy of the menu when the menu is
selected. This "torn-off" copy lives in a separate window. It
- tqcontains the same menu items as the original menu, with the
+ contains the same menu items as the original menu, with the
exception of the tear-off handle.
The handle item is assigned the identifier \a id or an
diff --git a/tqtinterface/qt4/src/widgets/tqradiobutton.cpp b/tqtinterface/qt4/src/widgets/tqradiobutton.cpp
index 69bdedb..13ca866 100644
--- a/tqtinterface/qt4/src/widgets/tqradiobutton.cpp
+++ b/tqtinterface/qt4/src/widgets/tqradiobutton.cpp
@@ -184,7 +184,7 @@ bool TQRadioButton::hitButton( const TQPoint &pos ) const
} else {
r.setLeft( 0 );
}
- return r.tqcontains( pos );
+ return r.contains( pos );
}
@@ -223,7 +223,7 @@ printf("[WARNING] TQSharedDoubleBuffer double buffering has been disabled\n\r");
TQTextOStream os(&pmkey);
os << "$qt_radio_" << tqstyle().className() << "_"
<< palette().serialNumber() << "_" << irect.width() << "x" << irect.height() << "_" << kf;
- TQPixmap *pm = TQPixmapCache::tqfind( pmkey );
+ TQPixmap *pm = TQPixmapCache::find( pmkey );
if ( pm ) { // pixmap exists
drawButtonLabel( p );
p->drawPixmap( irect.topLeft(), *pm );
diff --git a/tqtinterface/qt4/src/widgets/tqscrollbar.cpp b/tqtinterface/qt4/src/widgets/tqscrollbar.cpp
index 09d1575..de8c74c 100644
--- a/tqtinterface/qt4/src/widgets/tqscrollbar.cpp
+++ b/tqtinterface/qt4/src/widgets/tqscrollbar.cpp
@@ -511,7 +511,7 @@ void TQScrollBar::wheelEvent( TQWheelEvent *e )
offset_owner = this;
offset = 0;
}
- if ( e->orientation() != orient && !TQT_TQRECT_OBJECT(rect()).tqcontains(e->pos()) )
+ if ( e->orientation() != orient && !TQT_TQRECT_OBJECT(rect()).contains(e->pos()) )
return;
e->accept();
int step = TQMIN( TQApplication::wheelScrollLines()*lineStep(),
@@ -765,7 +765,7 @@ void TQScrollBar::mouseMoveEvent( TQMouseEvent *e )
r.setRect( r.x() - m, r.y() - 2*m, r.width() + 2*m, r.height() + 4*m );
else
r.setRect( r.x() - 2*m, r.y() - m, r.width() + 4*m, r.height() + 2*m );
- if (! r.tqcontains( e->pos()))
+ if (! r.contains( e->pos()))
newSliderPos = sliderStartPos;
else
newSliderPos = (HORIZONTAL ? e->pos().x() :
diff --git a/tqtinterface/qt4/src/widgets/tqscrollview.cpp b/tqtinterface/qt4/src/widgets/tqscrollview.cpp
index 3ba7eec..dba2bc0 100644
--- a/tqtinterface/qt4/src/widgets/tqscrollview.cpp
+++ b/tqtinterface/qt4/src/widgets/tqscrollview.cpp
@@ -155,7 +155,7 @@ public:
}
~TQScrollViewData();
- TQSVChildRec* rec(TQWidget* w) { return childDict.tqfind(w); }
+ TQSVChildRec* rec(TQWidget* w) { return childDict.find(w); }
TQSVChildRec* ancestorRec(TQWidget* w);
TQSVChildRec* addChildRec(TQWidget* w, int x, int y )
{
@@ -1525,7 +1525,7 @@ bool TQScrollView::eventFilter( TQObject *obj, TQEvent *e )
TQRect inside_margin( autoscroll_margin, autoscroll_margin,
visibleWidth() - autoscroll_margin * 2,
visibleHeight() - autoscroll_margin * 2 );
- if ( !inside_margin.tqcontains( vp ) ) {
+ if ( !inside_margin.contains( vp ) ) {
startDragAutoScroll();
// Keep sending move events
( (TQDragMoveEvent*)e )->accept( TQRect(0,0,0,0) );
@@ -2550,7 +2550,7 @@ bool TQScrollView::focusNextPrevChild( bool next )
w = next ? f->next() : f->prev();
}
- // if we could not tqfind one, maybe super or parentWidget() can?
+ // if we could not find one, maybe super or parentWidget() can?
if ( !candidate )
return TQFrame::focusNextPrevChild( next );
diff --git a/tqtinterface/qt4/src/widgets/tqslider.cpp b/tqtinterface/qt4/src/widgets/tqslider.cpp
index 9d3ece2..4ba2515 100644
--- a/tqtinterface/qt4/src/widgets/tqslider.cpp
+++ b/tqtinterface/qt4/src/widgets/tqslider.cpp
@@ -438,7 +438,7 @@ void TQSlider::mousePressEvent( TQMouseEvent *e )
if ( e->button() == Qt::RightButton )
return;
- if ( r.tqcontains( e->pos() ) ) {
+ if ( r.contains( e->pos() ) ) {
state = Dragging;
clickOffset = (TQCOORD)( goodPart( e->pos() ) - sliderPos );
emit sliderPressed();
@@ -495,7 +495,7 @@ void TQSlider::mouseMoveEvent( TQMouseEvent *e )
else
r.setRect( r.x() - 2*m/3, r.y() - m,
r.width() + 3*m, r.height() + 2*m );
- if ( !r.tqcontains( e->pos() ) ) {
+ if ( !r.contains( e->pos() ) ) {
moveSlider( positionFromValue(d->sliderStartVal) );
return;
}
@@ -511,7 +511,7 @@ void TQSlider::mouseMoveEvent( TQMouseEvent *e )
#ifndef TQT_NO_WHEELEVENT
void TQSlider::wheelEvent( TQWheelEvent * e )
{
- if ( e->orientation() != orientation() && !TQT_TQRECT_OBJECT(rect()).tqcontains(e->pos()) )
+ if ( e->orientation() != orientation() && !TQT_TQRECT_OBJECT(rect()).contains(e->pos()) )
return;
static float offset = 0;
diff --git a/tqtinterface/qt4/src/widgets/tqspinbox.cpp b/tqtinterface/qt4/src/widgets/tqspinbox.cpp
index 579d93b..8ea1775 100644
--- a/tqtinterface/qt4/src/widgets/tqspinbox.cpp
+++ b/tqtinterface/qt4/src/widgets/tqspinbox.cpp
@@ -108,7 +108,7 @@ TQValidator::State TQSpinBoxValidator::validate( TQString& str, int& pos ) const
int corePos = pos - pref.length();
state = TQIntValidator::validate( core, corePos );
pos = corePos + pref.length();
- str.tqreplace( pref.length(), str.length() - overhead, core );
+ str.replace( pref.length(), str.length() - overhead, core );
} else {
state = TQIntValidator::validate( str, pos );
if ( state == Invalid ) {
diff --git a/tqtinterface/qt4/src/widgets/tqspinwidget.cpp b/tqtinterface/qt4/src/widgets/tqspinwidget.cpp
index 1fc4407..f035c13 100644
--- a/tqtinterface/qt4/src/widgets/tqspinwidget.cpp
+++ b/tqtinterface/qt4/src/widgets/tqspinwidget.cpp
@@ -141,9 +141,9 @@ void TQSpinWidget::mousePressEvent( TQMouseEvent *e )
uint oldButtonDown = d->buttonDown;
- if ( d->down.tqcontains( e->pos() ) && d->downEnabled )
+ if ( d->down.contains( e->pos() ) && d->downEnabled )
d->buttonDown = 1;
- else if ( d->up.tqcontains( e->pos() ) && d->upEnabled )
+ else if ( d->up.contains( e->pos() ) && d->upEnabled )
d->buttonDown = 2;
else
d->buttonDown = 0;
@@ -269,19 +269,19 @@ void TQSpinWidget::mouseMoveEvent( TQMouseEvent *e )
return;
uint oldButtonDown = d->theButton;
- if ( oldButtonDown & 1 && !d->down.tqcontains( e->pos() ) ) {
+ if ( oldButtonDown & 1 && !d->down.contains( e->pos() ) ) {
d->stopTimer();
d->theButton = 0;
tqrepaint( d->down, FALSE );
- } else if ( oldButtonDown & 2 && !d->up.tqcontains( e->pos() ) ) {
+ } else if ( oldButtonDown & 2 && !d->up.contains( e->pos() ) ) {
d->stopTimer();
d->theButton = 0;
tqrepaint( d->up, FALSE );
- } else if ( !oldButtonDown && d->up.tqcontains( e->pos() ) && d->buttonDown & 2 ) {
+ } else if ( !oldButtonDown && d->up.contains( e->pos() ) && d->buttonDown & 2 ) {
d->startTimer( 500 );
d->theButton = 2;
tqrepaint( d->up, FALSE );
- } else if ( !oldButtonDown && d->down.tqcontains( e->pos() ) && d->buttonDown & 1 ) {
+ } else if ( !oldButtonDown && d->down.contains( e->pos() ) && d->buttonDown & 1 ) {
d->startTimer( 500 );
d->theButton = 1;
tqrepaint( d->down, FALSE );
diff --git a/tqtinterface/qt4/src/widgets/tqsplitter.cpp b/tqtinterface/qt4/src/widgets/tqsplitter.cpp
index 50a4a13..b5a159b 100644
--- a/tqtinterface/qt4/src/widgets/tqsplitter.cpp
+++ b/tqtinterface/qt4/src/widgets/tqsplitter.cpp
@@ -329,7 +329,7 @@ bool TQSplitter::tqchildrenCollapsible() const
void TQSplitter::setCollapsible( TQWidget *w, bool collapse )
{
- tqfindWidget( w )->collapsible = collapse ? 1 : 0;
+ findWidget( w )->collapsible = collapse ? 1 : 0;
}
/*!
@@ -340,7 +340,7 @@ void TQSplitter::resizeEvent( TQResizeEvent * )
doResize();
}
-TQSplitterLayoutStruct *TQSplitter::tqfindWidget( TQWidget *w )
+TQSplitterLayoutStruct *TQSplitter::findWidget( TQWidget *w )
{
processChildEvents();
TQSplitterLayoutStruct *s = d->list.first();
@@ -625,7 +625,7 @@ void TQSplitter::doMove( bool backwards, int pos, int id, int delta, bool upLeft
}
}
-int TQSplitter::tqfindWidgetJustBeforeOrJustAfter( int id, int delta, int &collapsibleSize )
+int TQSplitter::findWidgetJustBeforeOrJustAfter( int id, int delta, int &collapsibleSize )
{
id += delta;
do {
@@ -648,10 +648,10 @@ void TQSplitter::getRange( int id, int *farMin, int *min, int *max, int *farMax
return;
int collapsibleSizeBefore = 0;
- int idJustBefore = tqfindWidgetJustBeforeOrJustAfter( id, -1, collapsibleSizeBefore );
+ int idJustBefore = findWidgetJustBeforeOrJustAfter( id, -1, collapsibleSizeBefore );
int collapsibleSizeAfter = 0;
- int idJustAfter = tqfindWidgetJustBeforeOrJustAfter( id, +1, collapsibleSizeAfter );
+ int idJustAfter = findWidgetJustBeforeOrJustAfter( id, +1, collapsibleSizeAfter );
int minBefore = 0;
int minAfter = 0;
@@ -953,7 +953,7 @@ void TQSplitter::recalc( bool update )
void TQSplitter::setResizeMode( TQWidget *w, ResizeMode mode )
{
- tqfindWidget( w )->resizeMode = mode;
+ findWidget( w )->resizeMode = mode;
}
@@ -1175,7 +1175,7 @@ TQValueList<int> TQSplitter::sizes() const
values set the heights of each widget going from top to bottom.
Extra values in the \a list are ignored.
- If \a list tqcontains too few values, the result is undefined but
+ If \a list contains too few values, the result is undefined but
the program will still be well-behaved.
Note that the values in \a list should be the height/width that
diff --git a/tqtinterface/qt4/src/widgets/tqsplitter.h b/tqtinterface/qt4/src/widgets/tqsplitter.h
index 7dd9a3a..18d62f9 100644
--- a/tqtinterface/qt4/src/widgets/tqsplitter.h
+++ b/tqtinterface/qt4/src/widgets/tqsplitter.h
@@ -154,13 +154,13 @@ public: //private:
int adjustPos( int, int, int *, int *, int *, int * );
bool collapsible( TQSplitterLayoutStruct * );
void processChildEvents();
- TQSplitterLayoutStruct *tqfindWidget( TQWidget * );
+ TQSplitterLayoutStruct *findWidget( TQWidget * );
TQSplitterLayoutStruct *addWidget( TQWidget *, bool prepend = FALSE );
void recalcId();
void doMove( bool backwards, int pos, int id, int delta, bool upLeft,
bool mayCollapse );
void setGeo( TQWidget *w, int pos, int size, bool splitterMoved );
- int tqfindWidgetJustBeforeOrJustAfter( int id, int delta, int &collapsibleSize );
+ int findWidgetJustBeforeOrJustAfter( int id, int delta, int &collapsibleSize );
void updateHandles();
inline TQCOORD pick( const TQPoint &p ) const
diff --git a/tqtinterface/qt4/src/widgets/tqsyntaxhighlighter.cpp b/tqtinterface/qt4/src/widgets/tqsyntaxhighlighter.cpp
index aebaa6c..b948045 100644
--- a/tqtinterface/qt4/src/widgets/tqsyntaxhighlighter.cpp
+++ b/tqtinterface/qt4/src/widgets/tqsyntaxhighlighter.cpp
@@ -127,7 +127,7 @@ TQSyntaxHighlighter::~TQSyntaxHighlighter()
that this paragraph has ended in the middle of a paragraph
spanning construct).
- To tqfind out which paragraph is highlighted, call
+ To find out which paragraph is highlighted, call
currentParagraph().
For example, if you're writing a simple C++ syntax highlighter,
diff --git a/tqtinterface/qt4/src/widgets/tqtabbar.cpp b/tqtinterface/qt4/src/widgets/tqtabbar.cpp
index dd31f44..fd02625 100644
--- a/tqtinterface/qt4/src/widgets/tqtabbar.cpp
+++ b/tqtinterface/qt4/src/widgets/tqtabbar.cpp
@@ -261,7 +261,7 @@ public:
void add( TQTab * tab, const TQString & tip )
{
- tabTips.tqreplace( tab, tip );
+ tabTips.replace( tab, tip );
}
void remove( TQTab * tab )
@@ -272,7 +272,7 @@ public:
TQString tipForTab( TQTab * tab ) const
{
TQMapConstIterator<TQTab *, TQString> it;
- it = tabTips.tqfind( tab );
+ it = tabTips.find( tab );
if ( it != tabTips.end() )
return it.data();
else
@@ -293,14 +293,14 @@ protected:
tb->d->leftB->width(), tb->d->leftB->height() );
rectR.setRect( tb->d->rightB->x(), tb->d->rightB->y(),
tb->d->rightB->width(), tb->d->rightB->height() );
- if ( tb->d->scrolls && (rectL.tqcontains( p ) || rectR.tqcontains( p )) )
+ if ( tb->d->scrolls && (rectL.contains( p ) || rectR.contains( p )) )
return;
#ifndef TQT_NO_TOOLTIP
- // tqfind and show the tool tip for the tab under the point p
+ // find and show the tool tip for the tab under the point p
TQMapIterator<TQTab *, TQString> it;
for ( it = tabTips.begin(); it != tabTips.end(); ++it ) {
- if ( it.key()->rect().tqcontains( p ) )
+ if ( it.key()->rect().contains( p ) )
tip( it.key()->rect(), it.data() );
}
#endif
@@ -387,7 +387,7 @@ TQTabBar::~TQTabBar()
Adds the tab, \a newTab, to the tab control.
Sets \a newTab's id to a new id and places the tab just to the
- right of the existing tabs. If the tab's label tqcontains an
+ right of the existing tabs. If the tab's label contains an
ampersand, the letter following the ampersand is used as an
accelerator for the tab, e.g. if the label is "Bro\&wse" then
Alt+W becomes an accelerator which will move the focus to this
@@ -408,7 +408,7 @@ int TQTabBar::addTab( TQTab * newTab )
If \a index is not specified, the tab is simply appended.
Otherwise it's inserted at the specified position.
- Sets \a newTab's id to a new id. If the tab's label tqcontains an
+ Sets \a newTab's id to a new id. If the tab's label contains an
ampersand, the letter following the ampersand is used as an
accelerator for the tab, e.g. if the label is "Bro\&wse" then
Alt+W becomes an accelerator which will move the focus to this
@@ -515,7 +515,7 @@ void TQTabBar::setTabEnabled( int id, bool enabled )
}
if ( t->enabled ) {
r = r.unite( t->r );
- l->append( l->take( l->tqfindRef( t ) ) );
+ l->append( l->take( l->findRef( t ) ) );
emit selected( t->id );
}
}
@@ -592,7 +592,7 @@ void TQTabBar::paint( TQPainter * p, TQTab * t, bool selected ) const
else if(t == d->pressed)
flags |= TQStyle::Style_Sunken;
//selection flags
- if(t->rect().tqcontains(mapFromGlobal(TQCursor::pos())))
+ if(t->rect().contains(mapFromGlobal(TQCursor::pos())))
flags |= TQStyle::Style_MouseOver;
tqstyle().tqdrawControl( TQStyle::CE_TabBarTab, p, this, t->rect(),
tqcolorGroup(), flags, TQStyleOption(t) );
@@ -608,8 +608,8 @@ void TQTabBar::paint( TQPainter * p, TQTab * t, bool selected ) const
}
TQFontMetrics fm = p->fontMetrics();
int fw = fm.width( t->label );
- fw -= t->label.tqcontains('&') * fm.width('&');
- fw += t->label.tqcontains("&&") * fm.width('&');
+ fw -= t->label.contains('&') * fm.width('&');
+ fw += t->label.contains("&&") * fm.width('&');
int w = iw + fw + 4;
int h = TQMAX(fm.height() + 4, ih );
int offset = 3;
@@ -662,7 +662,7 @@ void TQTabBar::paintLabel( TQPainter* p, const TQRect& br,
flags |= TQStyle::Style_Selected;
else if(t == d->pressed)
flags |= TQStyle::Style_Sunken;
- if(t->rect().tqcontains(mapFromGlobal(TQCursor::pos())))
+ if(t->rect().contains(mapFromGlobal(TQCursor::pos())))
flags |= TQStyle::Style_MouseOver;
tqstyle().tqdrawControl( TQStyle::CE_TabBarLabel, p, this, r,
t->isEnabled() ? tqcolorGroup(): tqpalette().disabled(),
@@ -721,8 +721,8 @@ void TQTabBar::paintEvent( TQPaintEvent * e )
/*!
This virtual function is called by the mouse event handlers to
determine which tab is pressed. The default implementation returns
- a pointer to the tab whose bounding rectangle tqcontains \a p, if
- exactly one tab's bounding rectangle tqcontains \a p. Otherwise it
+ a pointer to the tab whose bounding rectangle contains \a p, if
+ exactly one tab's bounding rectangle contains \a p. Otherwise it
returns 0.
\sa mousePressEvent() mouseReleaseEvent()
@@ -738,7 +738,7 @@ TQTab * TQTabBar::selectTab( const TQPoint & p ) const
TQTab * t = i.current();
++i;
- if ( t && t->r.tqcontains( p ) ) {
+ if ( t && t->r.contains( p ) ) {
if ( selected )
moreThanOne = TRUE;
else
@@ -866,7 +866,7 @@ void TQTabBar::setCurrentTab( TQTab * tab )
return;
TQRect r = l->last()->r;
- if ( l->tqfindRef( tab ) >= 0 )
+ if ( l->findRef( tab ) >= 0 )
l->append( l->take() );
d->focus = tab->id;
@@ -896,7 +896,7 @@ void TQTabBar::setCurrentTab( TQTab * tab )
\property TQTabBar::keyboardFocusTab
\brief the id of the tab that has the keyboard focus
- This property tqcontains the id of the tab that has the keyboard
+ This property contains the id of the tab that has the keyboard
focus or -1 if the tab bar does not have the keyboard focus.
*/
@@ -1095,8 +1095,8 @@ void TQTabBar::layoutTabs()
int offset = (t && d->scrolls) ? t->r.x() : 0;
while ( t ) {
int lw = fm.width( t->label );
- lw -= t->label.tqcontains('&') * fm.width('&');
- lw += t->label.tqcontains("&&") * fm.width('&');
+ lw -= t->label.contains('&') * fm.width('&');
+ lw += t->label.contains("&&") * fm.width('&');
int iw = 0;
int ih = 0;
if ( t->iconset != 0 ) {
diff --git a/tqtinterface/qt4/src/widgets/tqtabwidget.cpp b/tqtinterface/qt4/src/widgets/tqtabwidget.cpp
index 5fab113..e1afe3d 100644
--- a/tqtinterface/qt4/src/widgets/tqtabwidget.cpp
+++ b/tqtinterface/qt4/src/widgets/tqtabwidget.cpp
@@ -96,7 +96,7 @@
The current page is available as an index position with
currentPageIndex() or as a wiget pointer with currentPage(). You
can retrieve a pointer to a page with a given index using page(),
- and can tqfind the index position of a page with indexOf(). Use
+ and can find the index position of a page with indexOf(). Use
setCurrentPage() to show a particular page by index, or showPage()
to show a page by widget pointer.
@@ -266,7 +266,7 @@ TQTabWidget::~TQTabWidget()
the label is shown on-screen and may vary according to language
and other factors.
- If the tab's \a label tqcontains an ampersand, the letter following
+ If the tab's \a label contains an ampersand, the letter following
the ampersand is used as an accelerator for the tab, e.g. if the
label is "Bro\&wse" then Alt+W becomes an accelerator which will
move the focus to this tab.
@@ -322,7 +322,7 @@ void TQTabWidget::addTab( TQWidget *child, TQTab* tab )
the label is shown on-screen and may vary according to language
and other factors.
- If the tab's \a label tqcontains an ampersand, the letter following
+ If the tab's \a label contains an ampersand, the letter following
the ampersand is used as an accelerator for the tab, e.g. if the
label is "Bro\&wse" then Alt+W becomes an accelerator which will
move the focus to this tab.
diff --git a/tqtinterface/qt4/src/widgets/tqtextbrowser.cpp b/tqtinterface/qt4/src/widgets/tqtextbrowser.cpp
index af1b078..81cf7de 100644
--- a/tqtinterface/qt4/src/widgets/tqtextbrowser.cpp
+++ b/tqtinterface/qt4/src/widgets/tqtextbrowser.cpp
@@ -234,7 +234,7 @@ void TQTextBrowser::setSource(const TQString& name)
d->textOrSourceChanged = TRUE;
TQString source = name;
TQString mark;
- int hash = name.tqfind('#');
+ int hash = name.find('#');
if ( hash != -1) {
source = name.left( hash );
mark = name.mid( hash+1 );
@@ -259,8 +259,8 @@ void TQTextBrowser::setSource(const TQString& name)
}
}
if ( isVisible() ) {
- TQString firstTag = txt.left( txt.tqfind( '>' ) + 1 );
- if ( firstTag.left( 3 ) == "<qt" && firstTag.tqcontains( "type" ) && firstTag.tqcontains( "detail" ) ) {
+ TQString firstTag = txt.left( txt.find( '>' ) + 1 );
+ if ( firstTag.left( 3 ) == "<qt" && firstTag.contains( "type" ) && firstTag.contains( "detail" ) ) {
popupDetail( txt, TQCursor::pos() );
#ifndef TQT_NO_CURSOR
tqApp->restoreOverrideCursor();
@@ -471,7 +471,7 @@ void TQTextBrowser::popupDetail( const TQString& contents, const TQPoint& pos )
popup->resize( w + shadowWidth, h + shadowWidth );
- // okay, now to tqfind a suitable location
+ // okay, now to find a suitable location
//###### we need a global fancy popup positioning somewhere
popup->move(pos - popup->rect().center());
if (popup->tqgeometry().right() > TQApplication::desktop()->width())
diff --git a/tqtinterface/qt4/src/widgets/tqtextedit.cpp b/tqtinterface/qt4/src/widgets/tqtextedit.cpp
index c2c3141..7900d3c 100644
--- a/tqtinterface/qt4/src/widgets/tqtextedit.cpp
+++ b/tqtinterface/qt4/src/widgets/tqtextedit.cpp
@@ -283,7 +283,7 @@ static bool block_set_tqalignment = FALSE;
\i \e{current format} --
this is the format at the current cursor position, \e and it
is the format of the selected text if any.
- \i \e{current paragraph} -- the paragraph which tqcontains the
+ \i \e{current paragraph} -- the paragraph which contains the
cursor.
\endlist
@@ -325,8 +325,8 @@ static bool block_set_tqalignment = FALSE;
TQTextEdit can display a large HTML subset, including tables and
images.
- The text is set or tqreplaced using setText() which deletes any
- existing text and tqreplaces it with the text passed in the
+ The text is set or replaced using setText() which deletes any
+ existing text and replaces it with the text passed in the
setText() call. If you call setText() with legacy HTML (with
setTextFormat(RichText) in force), and then call text(), the text
that is returned may have different markup, but will render the
@@ -384,8 +384,8 @@ static bool block_set_tqalignment = FALSE;
length().
You can scroll to an anchor in the text, e.g.
- \c{<a name="anchor">} with scrollToAnchor(). The tqfind() function
- can be used to tqfind and select a given string within the text.
+ \c{<a name="anchor">} with scrollToAnchor(). The find() function
+ can be used to find and select a given string within the text.
A read-only TQTextEdit provides the same functionality as the
(obsolete) TQTextView. (TQTextView is still supplied for
@@ -490,7 +490,7 @@ static bool block_set_tqalignment = FALSE;
Use setSelection() to select text. The setSelectionAttributes()
function is used to indicate how selected text should be
- displayed. Use hasSelectedText() to tqfind out if any text is
+ displayed. Use hasSelectedText() to find out if any text is
selected. The currently selected text's position is available
using getSelection() and the selected text itself is returned by
selectedText(). The selection can be copied to the clipboard with
@@ -850,7 +850,7 @@ static bool block_set_tqalignment = FALSE;
\fn void TQTextEdit::cursorPositionChanged( int para, int pos )
This signal is emitted if the position of the cursor has changed.
- \a para tqcontains the paragraph index and \a pos tqcontains the
+ \a para contains the paragraph index and \a pos contains the
character position within the paragraph.
\sa setCursorPosition()
@@ -910,7 +910,7 @@ TQTextEdit::TQTextEdit( TQWidget *tqparent, const char *name )
uses to resolve the locations of files and images. It is passed to
the mimeSourceFactory() when quering data.
- For example if the text tqcontains an image tag,
+ For example if the text contains an image tag,
\c{<img src="image.png">}, and the context is "path/to/look/in", the
TQMimeSourceFactory will try to load the image from
"path/to/look/in/image.png". If the tag was
@@ -2546,12 +2546,12 @@ void TQTextEdit::contentsMouseDoubleClickEvent( TQMouseEvent * e )
int startIdx = index, endIdx = index, i;
if ( !str[ index ].isSpace() ) {
i = startIdx;
- // tqfind start of word
+ // find start of word
while ( i >= 0 && !str[ i ].isSpace() ) {
startIdx = i--;
}
i = endIdx;
- // tqfind end of word..
+ // find end of word..
while ( (uint) i < str.length() && !str[ i ].isSpace() ) {
endIdx = ++i;
}
@@ -3053,9 +3053,9 @@ void TQTextEdit::insert( const TQString &text, bool indent,
RedoIndentation is set, the paragraph is re-indented. If \c
CheckNewLines is set, newline characters in \a text result in hard
line breaks (i.e. new paragraphs). If \c checkNewLine is not set,
- the behaviour of the editor is undefined if the \a text tqcontains
+ the behaviour of the editor is undefined if the \a text contains
newlines. (It is not possible to change TQTextEdit's newline handling
- behavior, but you can use TQString::tqreplace() to preprocess text
+ behavior, but you can use TQString::replace() to preprocess text
before inserting it.) If \c RemoveSelected is set, any selected
text (in selection 0) is removed before the text is inserted.
@@ -4040,10 +4040,10 @@ void TQTextEdit::setText( const TQString &text, const TQString &context )
modify the cursor position.
Using the \a para and \a index parameters will not work correctly
- in case the document tqcontains tables.
+ in case the document contains tables.
*/
-bool TQTextEdit::tqfind( const TQString &expr, bool cs, bool wo, bool forward,
+bool TQTextEdit::find( const TQString &expr, bool cs, bool wo, bool forward,
int *para, int *index )
{
#ifdef TQT_TEXTEDIT_OPTIMIZATION
@@ -4054,29 +4054,29 @@ bool TQTextEdit::tqfind( const TQString &expr, bool cs, bool wo, bool forward,
#ifndef TQT_NO_CURSOR
viewport()->setCursor( isReadOnly() ? Qt::ArrowCursor : Qt::IBeamCursor );
#endif
- TQTextCursor tqfindcur = *cursor;
+ TQTextCursor findcur = *cursor;
if ( para && index ) {
if ( doc->paragAt( *para ) )
- tqfindcur.gotoPosition( doc->paragAt(*para), *index );
+ findcur.gotoPosition( doc->paragAt(*para), *index );
else
- tqfindcur.gotoEnd();
+ findcur.gotoEnd();
} else if ( doc->hasSelection( TQTextDocument::Standard ) ){
- // maks sure we do not tqfind the same selection again
+ // maks sure we do not find the same selection again
if ( forward )
- tqfindcur.gotoNextLetter();
+ findcur.gotoNextLetter();
else
- tqfindcur.gotoPreviousLetter();
- } else if (!forward && tqfindcur.index() == 0 && tqfindcur.paragraph() == tqfindcur.topParagraph()) {
- tqfindcur.gotoEnd();
+ findcur.gotoPreviousLetter();
+ } else if (!forward && findcur.index() == 0 && findcur.paragraph() == findcur.topParagraph()) {
+ findcur.gotoEnd();
}
removeSelection( TQTextDocument::Standard );
- bool found = doc->tqfind( tqfindcur, expr, cs, wo, forward );
+ bool found = doc->find( findcur, expr, cs, wo, forward );
if ( found ) {
if ( para )
- *para = tqfindcur.paragraph()->paragId();
+ *para = findcur.paragraph()->paragId();
if ( index )
- *index = tqfindcur.index();
- *cursor = tqfindcur;
+ *index = findcur.index();
+ *cursor = findcur;
repaintChanged();
ensureCursorVisible();
}
@@ -4146,7 +4146,7 @@ void TQTextEdit::getCursorPosition( int *para, int *index ) const
Any existing selections which have a different id (\a selNum) are
left alone, but if an existing selection has the same id as \a
- selNum it is removed and tqreplaced by this selection.
+ selNum it is removed and replaced by this selection.
Uses the selection settings of selection \a selNum. If \a selNum
is 0, this is the default selection.
@@ -5003,7 +5003,7 @@ void TQTextEdit::scrollToAnchor( const TQString& name )
if( c->isAnchor() ) {
TQString a = c->anchorName();
if ( a == name ||
- (a.tqcontains( '#' ) && TQStringList::split( '#', a ).tqcontains( name ) ) ) {
+ (a.contains( '#' ) && TQStringList::split( '#', a ).contains( name ) ) ) {
setContentsPos( contentsX(), TQMIN( cursor.paragraph()->rect().top() + cursor.totalOffsetY(), contentsHeight() - visibleHeight() ) );
break;
}
@@ -5125,9 +5125,9 @@ void TQTextEdit::pasteSubType( const TQCString& subtype, TQMimeSource *m )
return;
if ( st == "application/x-qrichtext" ) {
int start;
- if ( (start = t.tqfind( "<!--StartFragment-->" )) != -1 ) {
+ if ( (start = t.find( "<!--StartFragment-->" )) != -1 ) {
start += 20;
- int end = t.tqfind( "<!--EndFragment-->" );
+ int end = t.find( "<!--EndFragment-->" );
TQTextCursor oldC = *cursor;
// during the setRichTextInternal() call the cursors
@@ -5200,10 +5200,10 @@ void TQTextEdit::pasteSubType( const TQCString& subtype, TQMimeSource *m )
} else {
#if defined(TQ_OS_WIN32)
// Need to convert CRLF to LF
- t.tqreplace( "\r\n", "\n" );
+ t.replace( "\r\n", "\n" );
#elif defined(TQ_OS_MAC)
//need to convert CR to LF
- t.tqreplace( '\r', '\n' );
+ t.replace( '\r', '\n' );
#endif
TQChar *uc = (TQChar *)t.tqunicode();
for ( int i=0; (uint) i<t.length(); i++ ) {
@@ -5241,12 +5241,12 @@ TQCString TQTextEdit::pickSpecial( TQMimeSource* ms, bool always_ask, const TQPo
int n = 0;
TQDict<void> done;
for (int i = 0; !( fmt = ms->format( i ) ).isNull(); i++) {
- int semi = fmt.tqfind( ";" );
+ int semi = fmt.find( ";" );
if ( semi >= 0 )
fmt = fmt.left( semi );
if ( fmt.left( 5 ) == "text/" ) {
fmt = fmt.mid( 5 );
- if ( !done.tqfind( fmt ) ) {
+ if ( !done.find( fmt ) ) {
done.insert( fmt,(void*)1 );
popup.insertItem( fmt, i );
n++;
@@ -5261,7 +5261,7 @@ TQCString TQTextEdit::pickSpecial( TQMimeSource* ms, bool always_ask, const TQPo
#else
TQString fmt;
for (int i = 0; !( fmt = ms->format( i ) ).isNull(); i++) {
- int semi = fmt.tqfind( ";" );
+ int semi = fmt.find( ";" );
if ( semi >= 0 )
fmt = fmt.left( semi );
if ( fmt.left( 5 ) == "text/" ) {
@@ -6220,7 +6220,7 @@ TQString TQTextEdit::optimText() const
} else {
tmp = d->od->lines[ LOGOFFSET(i) ] + "\n";
// inject the tags for this line
- if ( (it = d->od->tagIndex.tqfind( LOGOFFSET(i) )) != d->od->tagIndex.end() )
+ if ( (it = d->od->tagIndex.find( LOGOFFSET(i) )) != d->od->tagIndex.end() )
ftag = it.data();
offset = 0;
while ( ftag && ftag->line == i ) {
@@ -6286,7 +6286,7 @@ TQTextEditOptimPrivate::Tag * TQTextEdit::optimAppendTag( int index, const TQStr
d->od->lastTag = t;
tmp = d->od->tagIndex[ LOGOFFSET(t->line) ];
if ( !tmp || (tmp && tmp->index > t->index) ) {
- d->od->tagIndex.tqreplace( LOGOFFSET(t->line), t );
+ d->od->tagIndex.replace( LOGOFFSET(t->line), t );
}
return t;
}
@@ -6311,9 +6311,9 @@ TQTextEditOptimPrivate::Tag *TQTextEdit::optimInsertTag(int line, int index, con
t->next = 0;
t->prev = 0;
- // tqfind insertion pt. in tag struct.
+ // find insertion pt. in tag struct.
TQMap<int,TQTextEditOptimPrivate::Tag *>::ConstIterator it;
- if ((it = d->od->tagIndex.tqfind(LOGOFFSET(line))) != d->od->tagIndex.end()) {
+ if ((it = d->od->tagIndex.find(LOGOFFSET(line))) != d->od->tagIndex.end()) {
tmp = *it;
if (tmp->index >= index) { // the exisiting tag may be placed AFTER the one we want to insert
tmp = tmp->prev;
@@ -6338,7 +6338,7 @@ TQTextEditOptimPrivate::Tag *TQTextEdit::optimInsertTag(int line, int index, con
tmp = d->od->tagIndex[LOGOFFSET(t->line)];
if (!tmp || (tmp && tmp->index >= t->index)) {
- d->od->tagIndex.tqreplace(LOGOFFSET(t->line), t);
+ d->od->tagIndex.replace(LOGOFFSET(t->line), t);
}
return t;
}
@@ -6405,7 +6405,7 @@ void TQTextEdit::optimParseTags( TQString * line, int lineNo, int indexOffset )
c = '>';
else if ( esc == "&amp;" )
c = '&';
- line->tqreplace( escIndex, i - escIndex + 1, c );
+ line->replace( escIndex, i - escIndex + 1, c );
len = line->length();
i -= i-escIndex;
escIndex = -1;
@@ -6518,7 +6518,7 @@ void TQTextEdit::optimParseTags( TQString * line, int lineNo, int indexOffset )
// calculate the width of a string in pixels inc. tabs
static int qStrWidth(const TQString& str, int tabWidth, const TQFontMetrics& fm)
{
- int tabs = str.tqcontains('\t');
+ int tabs = str.contains('\t');
if (!tabs)
return fm.width(str);
@@ -6528,7 +6528,7 @@ static int qStrWidth(const TQString& str, int tabWidth, const TQFontMetrics& fm)
int strWidth = 0;
int tn;
for (tn = 1; tn <= tabs; ++tn) {
- newIdx = str.tqfind('\t', newIdx);
+ newIdx = str.find('\t', newIdx);
strWidth += fm.width(str.mid(lastIdx, newIdx - lastIdx));
if (strWidth >= tn * tabWidth) {
int u = tn;
@@ -6549,7 +6549,7 @@ bool TQTextEdit::optimHasBoldMetrics(int line)
{
TQTextEditOptimPrivate::Tag *t;
TQMapConstIterator<int,TQTextEditOptimPrivate::Tag *> it;
- if ((it = d->od->tagIndex.tqfind(line)) != d->od->tagIndex.end()) {
+ if ((it = d->od->tagIndex.find(line)) != d->od->tagIndex.end()) {
t = *it;
while (t && t->line == line) {
if (t->bold)
@@ -6564,7 +6564,7 @@ bool TQTextEdit::optimHasBoldMetrics(int line)
/*! \internal
- Append \a str to the current text buffer. Parses each line to tqfind
+ Append \a str to the current text buffer. Parses each line to find
formatting tags.
*/
void TQTextEdit::optimAppend( const TQString &str )
@@ -6628,7 +6628,7 @@ static void qStripTags(TQString *line)
c = '>';
else if ( esc == "&amp;" )
c = '&';
- line->tqreplace( escIndex, i - escIndex + 1, c );
+ line->replace( escIndex, i - escIndex + 1, c );
len = line->length();
i -= i-escIndex;
escIndex = -1;
@@ -6685,7 +6685,7 @@ void TQTextEdit::optimInsert(const TQString& text, int line, int index)
qStripTags( &stripped );
d->od->lines[LOGOFFSET(line)].insert(index, stripped);
// move the tag indices following the insertion pt.
- if ((ii = d->od->tagIndex.tqfind(LOGOFFSET(line))) != d->od->tagIndex.end()) {
+ if ((ii = d->od->tagIndex.find(LOGOFFSET(line))) != d->od->tagIndex.end()) {
tag = *ii;
while (tag && (LOGOFFSET(tag->line) == line && tag->index < index))
tag = tag->next;
@@ -6710,7 +6710,7 @@ void TQTextEdit::optimInsert(const TQString& text, int line, int index)
// fix the tag index and the tag line/index numbers - this
// might take a while..
for (x = line; x < d->od->numLines; x++) {
- if ((ii = d->od->tagIndex.tqfind(LOGOFFSET(line))) != d->od->tagIndex.end()) {
+ if ((ii = d->od->tagIndex.find(LOGOFFSET(line))) != d->od->tagIndex.end()) {
tag = ii.data();
if (LOGOFFSET(tag->line) == line)
while (tag && (LOGOFFSET(tag->line) == line && tag->index < index))
@@ -6731,7 +6731,7 @@ void TQTextEdit::optimInsert(const TQString& text, int line, int index)
d->od->tagIndex.clear();
tag = d->od->tags;
while (tag) {
- if (!((ii = d->od->tagIndex.tqfind(LOGOFFSET(tag->line))) != d->od->tagIndex.end()))
+ if (!((ii = d->od->tagIndex.find(LOGOFFSET(tag->line))) != d->od->tagIndex.end()))
d->od->tagIndex[LOGOFFSET(tag->line)] = tag;
tag = tag->next;
}
@@ -6739,7 +6739,7 @@ void TQTextEdit::optimInsert(const TQString& text, int line, int index)
// update the tag indices on the spliced line - needs to be done before new tags are added
TQString stripped = strl[strl.count() - 1];
qStripTags(&stripped);
- if ((ii = d->od->tagIndex.tqfind(LOGOFFSET(line + numNewLines))) != d->od->tagIndex.end()) {
+ if ((ii = d->od->tagIndex.find(LOGOFFSET(line + numNewLines))) != d->od->tagIndex.end()) {
tag = *ii;
while (tag && (LOGOFFSET(tag->line) == line + numNewLines)) {
tag->index += stripped.length();
@@ -6794,7 +6794,7 @@ TQTextEditOptimPrivate::Tag * TQTextEdit::optimPreviousLeftTag( int line )
{
TQTextEditOptimPrivate::Tag * ftag = 0;
TQMapConstIterator<int,TQTextEditOptimPrivate::Tag *> it;
- if ( (it = d->od->tagIndex.tqfind( LOGOFFSET(line) )) != d->od->tagIndex.end() )
+ if ( (it = d->od->tagIndex.find( LOGOFFSET(line) )) != d->od->tagIndex.end() )
ftag = it.data();
if ( !ftag ) {
// start searching for an open tag
@@ -6823,7 +6823,7 @@ TQTextEditOptimPrivate::Tag * TQTextEdit::optimPreviousLeftTag( int line )
/*! \internal
Set the format for the string starting at index \a start and ending
- at \a end according to \a tag. If \a tag is a Format tag, tqfind the
+ at \a end according to \a tag. If \a tag is a Format tag, find the
first open color tag appearing before \a tag and use that tag to
color the string.
*/
@@ -6854,7 +6854,7 @@ void TQTextEdit::optimSetTextFormat( TQTextDocument * td, TQTextCursor * cur,
if ( tag ) {
TQString col = tag->tag.simplifyWhiteSpace();
if ( col.left( 10 ) == "font color" ) {
- int i = col.tqfind( '=', 10 );
+ int i = col.find( '=', 10 );
col = TQT_TQSTRING(col.mid( i + 1 )).simplifyWhiteSpace();
if ( col[0] == '\"' )
col = col.mid( 1, col.length() - 2 );
@@ -6923,10 +6923,10 @@ void TQTextEdit::optimDrawContents( TQPainter * p, int clipx, int clipy,
TQMapConstIterator<int,TQTextEditOptimPrivate::Tag *> it;
TQTextEditOptimPrivate::Tag * tag = 0, * tmp = 0;
TQTextCursor cur( td );
- // Step 1 - tqfind previous left-tag
+ // Step 1 - find previous left-tag
tmp = optimPreviousLeftTag( i );
for ( ; i < startLine + nLines; i++ ) {
- if ( (it = d->od->tagIndex.tqfind( LOGOFFSET(i) )) != d->od->tagIndex.end() )
+ if ( (it = d->od->tagIndex.find( LOGOFFSET(i) )) != d->od->tagIndex.end() )
tag = it.data();
// Step 2 - iterate over tags on the current line
int lastIndex = 0;
@@ -7124,7 +7124,7 @@ void TQTextEdit::optimDoAutoScroll()
int xx = contentsX() + pos.x();
int yy = contentsY() + pos.y();
- // tqfind out how much we have to scroll in either dir.
+ // find out how much we have to scroll in either dir.
if ( pos.x() < 0 || pos.x() > viewport()->width() ||
pos.y() < 0 || pos.y() > viewport()->height() ) {
int my = yy;
@@ -7201,7 +7201,7 @@ int TQTextEdit::optimCharIndex( const TQString &str, int mx ) const
int strWidth;
mx = mx - 4; // ### get the real margin from somewhere
- if (!str.tqcontains('\t') && mx > fm.width(str))
+ if (!str.contains('\t') && mx > fm.width(str))
return str.length();
while (i < str.length()) {
@@ -7296,8 +7296,8 @@ bool TQTextEdit::optimFind( const TQString & expr, bool cs, bool /*wo*/,
return FALSE;
for ( i = parag; fw ? i < d->od->numLines : i >= 0; fw ? i++ : i-- ) {
- idx = fw ? d->od->lines[ LOGOFFSET(i) ].tqfind( expr, idx, cs ) :
- d->od->lines[ LOGOFFSET(i) ].tqfindRev( expr, idx, cs );
+ idx = fw ? d->od->lines[ LOGOFFSET(i) ].find( expr, idx, cs ) :
+ d->od->lines[ LOGOFFSET(i) ].findRev( expr, idx, cs );
if ( idx != -1 ) {
found = TRUE;
break;
@@ -7413,11 +7413,11 @@ void TQTextEdit::optimCheckLimit( const TQString& str )
}
// ...in the tag index as well
TQMapIterator<int, TQTextEditOptimPrivate::Tag *> idx;
- if ( (idx = d->od->tagIndex.tqfind( d->logOffset )) != d->od->tagIndex.end() )
+ if ( (idx = d->od->tagIndex.find( d->logOffset )) != d->od->tagIndex.end() )
d->od->tagIndex.remove( idx );
TQMapIterator<int,TQString> it;
- if ( (it = d->od->lines.tqfind( d->logOffset )) != d->od->lines.end() ) {
+ if ( (it = d->od->lines.find( d->logOffset )) != d->od->lines.end() ) {
d->od->len -= (*it).length();
d->od->lines.remove( it );
d->od->numLines--;
diff --git a/tqtinterface/qt4/src/widgets/tqtextedit.h b/tqtinterface/qt4/src/widgets/tqtextedit.h
index ebca634..a69b434 100644
--- a/tqtinterface/qt4/src/widgets/tqtextedit.h
+++ b/tqtinterface/qt4/src/widgets/tqtextedit.h
@@ -235,7 +235,7 @@ public:
void getSelection( int *paraFrom, int *indexFrom,
int *paraTo, int *indexTo, int selNum = 0 ) const;
- virtual bool tqfind( const TQString &expr, bool cs, bool wo, bool forward = TRUE,
+ virtual bool find( const TQString &expr, bool cs, bool wo, bool forward = TRUE,
int *para = 0, int *index = 0 );
int paragraphs() const;
diff --git a/tqtinterface/qt4/src/widgets/tqtitlebar.cpp b/tqtinterface/qt4/src/widgets/tqtitlebar.cpp
index ed7cd51..84ec7b9 100644
--- a/tqtinterface/qt4/src/widgets/tqtitlebar.cpp
+++ b/tqtinterface/qt4/src/widgets/tqtitlebar.cpp
@@ -407,7 +407,7 @@ void TQTitleBar::mouseMoveEvent( TQMouseEvent * e)
TQWorkspace *workspace = ::tqqt_cast<TQWorkspace*>(d->window->parentWidget()->parentWidget());
if(workspace) {
p = workspace->mapFromGlobal( e->globalPos() );
- if ( !TQT_TQRECT_OBJECT(workspace->rect()).tqcontains(p) ) {
+ if ( !TQT_TQRECT_OBJECT(workspace->rect()).contains(p) ) {
if ( p.x() < 0 )
p.rx() = 0;
if ( p.y() < 0 )
diff --git a/tqtinterface/qt4/src/widgets/tqtoolbar.cpp b/tqtinterface/qt4/src/widgets/tqtoolbar.cpp
index 0701c6a..e7ff8f4 100644
--- a/tqtinterface/qt4/src/widgets/tqtoolbar.cpp
+++ b/tqtinterface/qt4/src/widgets/tqtoolbar.cpp
@@ -221,7 +221,7 @@ void TQToolBarSeparator::paintEvent( TQPaintEvent * )
\ingroup application
\mainclass
- A toolbar is a panel that tqcontains a set of controls, usually
+ A toolbar is a panel that contains a set of controls, usually
represented by small icons. It's purpose is to provide quick
access to frequently used commands or options. Within a
TQMainWindow the user can drag toolbars within and between the
diff --git a/tqtinterface/qt4/src/widgets/tqtoolbox.cpp b/tqtinterface/qt4/src/widgets/tqtoolbox.cpp
index 5950b1c..b082f56 100644
--- a/tqtinterface/qt4/src/widgets/tqtoolbox.cpp
+++ b/tqtinterface/qt4/src/widgets/tqtoolbox.cpp
@@ -508,7 +508,7 @@ TQWidget *TQToolBox::item( int index ) const
int TQToolBox::indexOf( TQWidget *item ) const
{
TQToolBoxPrivate::Page *c = d->page(item);
- return c ? d->pageList.tqfindIndex( *c ) : -1;
+ return c ? d->pageList.findIndex( *c ) : -1;
}
/*!
diff --git a/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp b/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp
index 2cfd962..8c84a59 100644
--- a/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp
+++ b/tqtinterface/qt4/src/widgets/tqtoolbutton.cpp
@@ -581,7 +581,7 @@ void TQToolButton::mousePressEvent( TQMouseEvent *e )
TQRect popupr =
TQStyle::tqvisualRect( tqstyle().querySubControlMetrics(TQStyle::CC_ToolButton, this,
TQStyle::SC_ToolButtonMenu), this );
- d->instantPopup = (popupr.isValid() && popupr.tqcontains(e->pos()));
+ d->instantPopup = (popupr.isValid() && popupr.contains(e->pos()));
#ifndef TQT_NO_POPUPMENU
if ( d->discardNextMouseEvent ) {
@@ -702,8 +702,8 @@ TQIconSet TQToolButton::offIconSet( ) const
\obsolete
- Since TQt 3.0, TQIconSet tqcontains both the On and Off icons. There is
- now an \l TQToolButton::iconSet property that tqreplaces both \l
+ Since TQt 3.0, TQIconSet contains both the On and Off icons. There is
+ now an \l TQToolButton::iconSet property that replaces both \l
TQToolButton::onIconSet and \l TQToolButton::offIconSet.
For ease of porting, this property is a synonym for \l
@@ -729,8 +729,8 @@ void TQToolButton::setOnIconSet( const TQIconSet& set )
\obsolete
- Since TQt 3.0, TQIconSet tqcontains both the On and Off icons. There is
- now an \l TQToolButton::iconSet property that tqreplaces both \l
+ Since TQt 3.0, TQIconSet contains both the On and Off icons. There is
+ now an \l TQToolButton::iconSet property that replaces both \l
TQToolButton::onIconSet and \l TQToolButton::offIconSet.
For ease of porting, this property is a synonym for \l
@@ -775,7 +775,7 @@ void TQToolButton::setIconSet( const TQIconSet & set )
/*! \overload
\obsolete
- Since TQt 3.0, TQIconSet tqcontains both the On and Off icons.
+ Since TQt 3.0, TQIconSet contains both the On and Off icons.
For ease of porting, this function ignores the \a on parameter and
sets the \l iconSet property. If you relied on the \a on parameter,
@@ -820,7 +820,7 @@ TQIconSet TQToolButton::iconSet() const
/*! \overload
\obsolete
- Since TQt 3.0, TQIconSet tqcontains both the On and Off icons.
+ Since TQt 3.0, TQIconSet contains both the On and Off icons.
For ease of porting, this function ignores the \a on parameter and
returns the \l iconSet property. If you relied on the \a on
diff --git a/tqtinterface/qt4/src/widgets/tqtooltip.cpp b/tqtinterface/qt4/src/widgets/tqtooltip.cpp
index 1c82b0e..411487d 100644
--- a/tqtinterface/qt4/src/widgets/tqtooltip.cpp
+++ b/tqtinterface/qt4/src/widgets/tqtooltip.cpp
@@ -115,7 +115,7 @@ public:
void hideTipAndSleep();
- TQString tqfind( TQWidget *, const TQPoint& );
+ TQString find( TQWidget *, const TQPoint& );
void setWakeUpDelay(int);
public Q_SLOTS:
@@ -231,7 +231,7 @@ void TQTipManager::add( const TQRect &gm, TQWidget *w,
tips->insert( w, t );
- if ( a && t->rect.tqcontains( pos ) && (!g || g->enabled()) ) {
+ if ( a && t->rect.contains( pos ) && (!g || g->enabled()) ) {
removeTimer->stop();
showTip();
}
@@ -426,7 +426,7 @@ bool TQTipManager::eventFilter( TQObject *obj, TQEvent *e )
TQMouseEvent * m = (TQMouseEvent *)e;
TQPoint mousePos = w->mapFromGlobal( m->globalPos() );
- if ( currentTip && !currentTip->rect.tqcontains( mousePos ) ) {
+ if ( currentTip && !currentTip->rect.contains( mousePos ) ) {
hideTip();
if ( m->state() == 0 )
return FALSE;
@@ -484,7 +484,7 @@ void TQTipManager::showTip()
return;
TQTipManager::Tip *t = (*tips)[ widget ];
- while ( t && !t->rect.tqcontains( pos ) )
+ while ( t && !t->rect.contains( pos ) )
t = t->next;
if ( t == 0 )
return;
@@ -637,10 +637,10 @@ void TQTipManager::allowAnimation()
preventAnimation = FALSE;
}
-TQString TQTipManager::tqfind( TQWidget *w, const TQPoint& pos )
+TQString TQTipManager::find( TQWidget *w, const TQPoint& pos )
{
Tip *t = (*tips)[ w ];
- while ( t && !t->rect.tqcontains( pos ) )
+ while ( t && !t->rect.contains( pos ) )
t = t->next;
return t ? t->text : TQString::null;
@@ -938,7 +938,7 @@ void TQToolTip::remove( TQWidget * widget, const TQRect & rect )
TQString TQToolTip::textFor( TQWidget *widget, const TQPoint& pos )
{
if ( tipManager )
- return tipManager->tqfind( widget, pos );
+ return tipManager->find( widget, pos );
return TQString::null;
}
diff --git a/tqtinterface/qt4/src/widgets/tqvalidator.cpp b/tqtinterface/qt4/src/widgets/tqvalidator.cpp
index e238ab0..423e837 100644
--- a/tqtinterface/qt4/src/widgets/tqvalidator.cpp
+++ b/tqtinterface/qt4/src/widgets/tqvalidator.cpp
@@ -184,7 +184,7 @@ void TQValidator::fixup( TQString & ) const
/*!
\class TQIntValidator
\brief The TQIntValidator class provides a validator which ensures
- that a string tqcontains a valid integer within a specified range.
+ that a string contains a valid integer within a specified range.
\ingroup misc
@@ -408,10 +408,10 @@ TQDoubleValidator::~TQDoubleValidator()
/*!
- Returns \c Acceptable if the string \a input tqcontains a double
+ Returns \c Acceptable if the string \a input contains a double
that is within the valid range and is in the correct format.
- Returns \c Intermediate if \a input tqcontains a double that is
+ Returns \c Intermediate if \a input contains a double that is
outside the range or is in the wrong format, e.g. with too many
digits after the decimal point or is empty.
@@ -431,7 +431,7 @@ TQValidator::State TQDoubleValidator::validate( TQString & input, int & ) const
return Intermediate;
bool ok = TRUE;
double entered = input.toDouble( &ok );
- int nume = input.tqcontains( 'e', FALSE );
+ int nume = input.contains( 'e', FALSE );
if ( !ok ) {
// explicit exponent regexp
TQRegExp expexpexp( TQString::tqfromLatin1("[Ee][+-]?\\d*$") );
@@ -448,7 +448,7 @@ TQValidator::State TQDoubleValidator::validate( TQString & input, int & ) const
}
}
- int i = input.tqfind( '.' );
+ int i = input.find( '.' );
if ( i >= 0 && nume == 0 ) {
// has decimal point (but no E), now count digits after that
i++;
@@ -524,7 +524,7 @@ void TQDoubleValidator::setDecimals( int decimals )
\ingroup misc
- TQRegExpValidator tqcontains a regular expression, "regexp", used to
+ TQRegExpValidator contains a regular expression, "regexp", used to
determine whether an input string is \c Acceptable, \c
Intermediate or \c Invalid.
diff --git a/tqtinterface/qt4/src/widgets/tqwhatsthis.cpp b/tqtinterface/qt4/src/widgets/tqwhatsthis.cpp
index 80e984c..3ada619 100644
--- a/tqtinterface/qt4/src/widgets/tqwhatsthis.cpp
+++ b/tqtinterface/qt4/src/widgets/tqwhatsthis.cpp
@@ -311,7 +311,7 @@ void TQWhatsThat::hide()
void TQWhatsThat::mousePressEvent( TQMouseEvent* e )
{
pressed = TRUE;
- if ( e->button() == Qt::LeftButton && TQT_TQRECT_OBJECT(rect()).tqcontains( e->pos() ) ) {
+ if ( e->button() == Qt::LeftButton && TQT_TQRECT_OBJECT(rect()).contains( e->pos() ) ) {
#ifndef TQT_NO_RICHTEXT
if ( doc )
anchor = doc->anchorAt( e->pos() - TQPoint( hMargin, vMargin) );
@@ -326,14 +326,14 @@ void TQWhatsThat::mouseReleaseEvent( TQMouseEvent* e )
if ( !pressed )
return;
#ifndef TQT_NO_RICHTEXT
- if ( e->button() == Qt::LeftButton && doc && TQT_TQRECT_OBJECT(rect()).tqcontains( e->pos() ) ) {
+ if ( e->button() == Qt::LeftButton && doc && TQT_TQRECT_OBJECT(rect()).contains( e->pos() ) ) {
TQString a = doc->anchorAt( e->pos() - TQPoint( hMargin, vMargin ) );
TQString href;
if ( anchor == a )
href = a;
anchor = TQString::null;
if ( widget && wt && wt->dict ) {
- TQWhatsThisPrivate::WhatsThisItem * i = wt->dict->tqfind( widget );
+ TQWhatsThisPrivate::WhatsThisItem * i = wt->dict->find( widget );
if ( i && i->whatsthis && !i->whatsthis->clicked( href ) )
return;
}
@@ -545,7 +545,7 @@ bool TQWhatsThisPrivate::eventFilter( TQObject * o, TQEvent * e )
TQMouseEvent* me = (TQMouseEvent*) e;
TQPoint p = me->pos();
while( w && !i ) {
- i = dict->tqfind( w );
+ i = dict->find( w );
if ( !i ) {
p += w->pos();
w = w->parentWidget( TRUE );
@@ -670,7 +670,7 @@ void TQWhatsThisPrivate::say( TQWidget * widget, const TQString &text, const TQP
"automatic what's this? widget" );
- // okay, now to tqfind a suitable location
+ // okay, now to find a suitable location
int scr = ( widget ?
TQApplication::desktop()->screenNumber( widget ) :
@@ -735,13 +735,13 @@ void TQWhatsThisPrivate::say( TQWidget * widget, const TQString &text, const TQP
TQWhatsThisPrivate::WhatsThisItem* TQWhatsThisPrivate::newItem( TQWidget * widget )
{
- WhatsThisItem * i = dict->tqfind( (void *)widget );
+ WhatsThisItem * i = dict->find( (void *)widget );
if ( i )
TQWhatsThis::remove( widget );
i = new WhatsThisItem;
dict->insert( (void *)widget, i );
TQWidget * t = widget->tqtopLevelWidget();
- if ( !tlw->tqfind( (void *)t ) ) {
+ if ( !tlw->find( (void *)t ) ) {
tlw->insert( (void *)t, t );
t->installEventFilter( this );
}
@@ -764,7 +764,7 @@ void TQWhatsThisPrivate::add( TQWidget * widget, const TQString &text )
/*!
Adds \a text as "What's this" help for \a widget. If the text is
- rich text formatted (i.e. it tqcontains markup) it will be rendered
+ rich text formatted (i.e. it contains markup) it will be rendered
with the default stylesheet TQStyleSheet::defaultSheet().
The text is destroyed if the widget is later destroyed, so it need
@@ -790,7 +790,7 @@ void TQWhatsThis::add( TQWidget * widget, const TQString &text )
void TQWhatsThis::remove( TQWidget * widget )
{
TQWhatsThisPrivate::setUpWhatsThis();
- TQWhatsThisPrivate::WhatsThisItem * i = wt->dict->tqfind( (void *)widget );
+ TQWhatsThisPrivate::WhatsThisItem * i = wt->dict->find( (void *)widget );
if ( !i )
return;
@@ -804,7 +804,7 @@ void TQWhatsThis::remove( TQWidget * widget )
/*!
Returns the what's this text for widget \a w or TQString::null if
- there is no "What's this?" help for the widget. \a pos tqcontains
+ there is no "What's this?" help for the widget. \a pos contains
the mouse position; this is useful, for example, if you've
subclassed to make the text that is displayed position dependent.
@@ -819,7 +819,7 @@ TQString TQWhatsThis::textFor( TQWidget * w, const TQPoint& pos, bool includePar
TQWhatsThisPrivate::WhatsThisItem * i = 0;
TQPoint p = pos;
while( w && !i ) {
- i = wt->dict->tqfind( w );
+ i = wt->dict->find( w );
if ( !includeParents )
break;
if ( !i ) {
diff --git a/tqtinterface/qt4/src/widgets/tqwidgetplugin.cpp b/tqtinterface/qt4/src/widgets/tqwidgetplugin.cpp
index d4aa8fc..9b4d106 100644
--- a/tqtinterface/qt4/src/widgets/tqwidgetplugin.cpp
+++ b/tqtinterface/qt4/src/widgets/tqwidgetplugin.cpp
@@ -714,7 +714,7 @@ TQWidgetList TQWidgetContainerPlugin::pages( const TQString &, TQWidget * ) cons
return widget + "->addTab( " + page + ", \"" + pageName + "\" )";
\endcode
- Warning: If the code returned by this function tqcontains invalid
+ Warning: If the code returned by this function contains invalid
C++ syntax, the generated \c uic code will not compile.
*/
diff --git a/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp b/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp
index b9b576a..d09353d 100644
--- a/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp
+++ b/tqtinterface/qt4/src/widgets/tqwidgetresizehandler.cpp
@@ -127,7 +127,7 @@ bool TQWidgetResizeHandler::eventFilter( TQObject *o, TQEvent *ee )
case TQEvent::MouseButtonPress: {
if ( w->isMaximized() )
break;
- if ( !TQT_TQRECT_OBJECT(widget->rect()).tqcontains( widget->mapFromGlobal( e->globalPos() ) ) )
+ if ( !TQT_TQRECT_OBJECT(widget->rect()).contains( widget->mapFromGlobal( e->globalPos() ) ) )
return FALSE;
if ( e->button() == Qt::LeftButton ) {
emit activate();
@@ -214,7 +214,7 @@ void TQWidgetResizeHandler::mouseMoveEvent( TQMouseEvent *e )
TQPoint globalPos = widget->parentWidget( TRUE ) ?
widget->parentWidget( TRUE )->mapFromGlobal( e->globalPos() ) : e->globalPos();
- if ( widget->parentWidget( TRUE ) && !TQT_TQRECT_OBJECT(widget->parentWidget( TRUE )->rect()).tqcontains( globalPos ) ) {
+ if ( widget->parentWidget( TRUE ) && !TQT_TQRECT_OBJECT(widget->parentWidget( TRUE )->rect()).contains( globalPos ) ) {
if ( globalPos.x() < 0 )
globalPos.rx() = 0;
if ( globalPos.y() < 0 )
diff --git a/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp b/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp
index 4bf824e..ff78a7b 100644
--- a/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp
+++ b/tqtinterface/qt4/src/widgets/tqwidgetstack.cpp
@@ -177,7 +177,7 @@ int TQWidgetStack::addWidget(TQWidget * w, int id)
// prevent duplicates
removeWidget(w);
- if (id >= 0 && dict->tqfind(id))
+ if (id >= 0 && dict->find(id))
id = -2;
if (id < -1)
id = d->nextNegativeID--;
@@ -196,7 +196,7 @@ int TQWidgetStack::addWidget(TQWidget * w, int id)
if (f) {
if (!focusWidgets)
focusWidgets = new TQPtrDict<TQWidget>(17);
- focusWidgets->tqreplace(w, TQT_TQWIDGET(w->focusWidget()));
+ focusWidgets->replace(w, TQT_TQWIDGET(w->focusWidget()));
}
w->hide();
@@ -241,7 +241,7 @@ void TQWidgetStack::raiseWidget(int id)
{
if (id == -1)
return;
- TQWidget * w = dict->tqfind(id);
+ TQWidget * w = dict->find(id);
if (w)
raiseWidget(w);
}
@@ -415,7 +415,7 @@ void TQWidgetStack::setVisible(bool visible)
TQWidget * TQWidgetStack::widget(int id) const
{
- return id != -1 ? dict->tqfind(id) : 0;
+ return id != -1 ? dict->find(id) : 0;
}
@@ -785,7 +785,7 @@ int TQWidgetStack::addWidget( TQWidget * w, int id )
// prevent duplicates
removeWidget( w );
- if ( id >= 0 && dict->tqfind( id ) )
+ if ( id >= 0 && dict->find( id ) )
id = -2;
if ( id < -1 )
id = nseq_no--;
@@ -804,7 +804,7 @@ int TQWidgetStack::addWidget( TQWidget * w, int id )
if ( f ) {
if ( !tqfocusWidgets )
tqfocusWidgets = new TQPtrDict<TQWidget>( 17 );
- tqfocusWidgets->tqreplace( w, w->tqfocusWidget() );
+ tqfocusWidgets->replace( w, w->tqfocusWidget() );
}
w->hide();
@@ -850,7 +850,7 @@ void TQWidgetStack::raiseWidget( int id )
{
if ( id == -1 )
return;
- TQWidget * w = dict->tqfind( id );
+ TQWidget * w = dict->find( id );
if ( w )
raiseWidget( w );
}
@@ -913,9 +913,9 @@ void TQWidgetStack::raiseWidget( TQWidget *w )
if ( p == topWidget ) { // focus was on old page
if ( !tqfocusWidgets )
tqfocusWidgets = new TQPtrDict<TQWidget>( 17 );
- tqfocusWidgets->tqreplace( topWidget, fw );
+ tqfocusWidgets->replace( topWidget, fw );
fw->clearFocus();
- // look for the best focus widget we can tqfind
+ // look for the best focus widget we can find
// best == what we had (which may be deleted)
fw = tqfocusWidgets->take( w );
if ( isChildOf( fw, w ) ) {
@@ -1036,7 +1036,7 @@ void TQWidgetStack::show()
TQWidget * TQWidgetStack::widget( int id ) const
{
- return id != -1 ? dict->tqfind( id ) : 0;
+ return id != -1 ? dict->find( id ) : 0;
}
diff --git a/tqtinterface/qt4/src/workspace/tqworkspace.cpp b/tqtinterface/qt4/src/workspace/tqworkspace.cpp
index 164a670..a4e2687 100644
--- a/tqtinterface/qt4/src/workspace/tqworkspace.cpp
+++ b/tqtinterface/qt4/src/workspace/tqworkspace.cpp
@@ -87,7 +87,7 @@
MDI (multiple document interface) applications typically have one
main window with a menu bar and toolbar, and a central widget that
- is a TQWorkspace. The workspace itself tqcontains zero, one or more
+ is a TQWorkspace. The workspace itself contains zero, one or more
document windows, each of which is a widget.
The workspace itself is an ordinary TQt widget. It has a standard
@@ -127,7 +127,7 @@
larger than the actual workspace, set the scrollBarsEnabled
property to TRUE.
- If the top-level window tqcontains a menu bar and a document window
+ If the top-level window contains a menu bar and a document window
is maximised, TQWorkspace moves the document window's minimize,
restore and close buttons from the document window's frame to the
workspace window's menu bar. It then inserts a window operations
@@ -418,7 +418,7 @@ void TQWorkspace::childEvent( TQChildEvent * e)
if (e->inserted() && e->child()->isWidgetType()) {
TQWidget* w = static_cast<TQWidget*>(static_cast<QWidget*>(e->child()));
if ( !w || !w->testWFlags( (WFlags)(TQt::WStyle_Title | TQt::WStyle_NormalBorder | TQt::WStyle_DialogBorder) ) || w->testWFlags(TQt::WType_Dialog)
- || d->icons.tqcontains( w ) || w == d->vbar || w == d->hbar || w == d->corner )
+ || d->icons.contains( w ) || w == d->vbar || w == d->hbar || w == d->corner )
return; // nothing to do
bool wasMaximized = w->isMaximized();
@@ -469,7 +469,7 @@ void TQWorkspace::childEvent( TQChildEvent * e)
updateWorkspace();
} else if (e->removed() ) {
- if ( d->windows.tqcontains( (TQWorkspaceChild*)e->child() ) ) {
+ if ( d->windows.contains( (TQWorkspaceChild*)e->child() ) ) {
d->windows.removeRef( (TQWorkspaceChild*)e->child() );
d->focus.removeRef( (TQWorkspaceChild*)e->child() );
if (d->maxWindow == e->child())
@@ -564,7 +564,7 @@ void TQWorkspace::activateWindow( TQWidget* w, bool change_focus )
}
if ( change_focus ) {
- if ( d->focus.tqfind( d->active ) >=0 ) {
+ if ( d->focus.find( d->active ) >=0 ) {
d->focus.removeRef( d->active );
d->focus.append( d->active );
}
@@ -729,7 +729,7 @@ void TQWorkspace::place( TQWidget* w)
void TQWorkspace::insertIcon( TQWidget* w )
{
- if ( !w || d->icons.tqcontains( w ) )
+ if ( !w || d->icons.contains( w ) )
return;
d->icons.append( w );
if (w->parentWidget() != this )
@@ -763,7 +763,7 @@ void TQWorkspace::insertIcon( TQWidget* w )
void TQWorkspace::removeIcon( TQWidget* w)
{
- if ( !d->icons.tqcontains( w ) )
+ if ( !d->icons.contains( w ) )
return;
d->icons.remove( w );
w->hide();
@@ -888,7 +888,7 @@ void TQWorkspace::handleUndock(TQDockWindow *w)
if ( l != w && l->tqgeometry().intersects(TQRect(sc_pt, w->size())))
sc.o++;
}
- if(maxRect.tqcontains(TQRect(sc_pt, w->size())) &&
+ if(maxRect.contains(TQRect(sc_pt, w->size())) &&
(!possible || (sc.o < score.o) ||
((score.o || sc.o == score.o) && score.x < sc.x))) {
wpos = sc_pt;
@@ -924,7 +924,7 @@ void TQWorkspace::dockWindowsShow()
TQPtrList<TQDockWindow> lst = d->newdocks;
d->newdocks.clear();
for(TQPtrListIterator<TQDockWindow> dw_it(lst); (*dw_it); ++dw_it) {
- if(d->dockwindows.tqfind((*dw_it)) != -1)
+ if(d->dockwindows.find((*dw_it)) != -1)
continue;
handleUndock((*dw_it));
d->dockwindows.append((*dw_it));
@@ -1016,7 +1016,7 @@ void TQWorkspace::showEvent( TQShowEvent *e )
} else if(::tqqt_cast<TQStatusBar*>(w)) {
if(activeWindow()) {
TQWorkspaceChild *c;
- if ( ( c = tqfindChild(activeWindow()) ) )
+ if ( ( c = findChild(activeWindow()) ) )
c->setqStatusBar((TQStatusBar*)w);
}
} else if(::tqqt_cast<TQWorkspaceChild*>(w)) {
@@ -1086,7 +1086,7 @@ void TQWorkspace::hideEvent( TQHideEvent * )
void TQWorkspace::minimizeWindow( TQWidget* w)
{
- TQWorkspaceChild* c = tqfindChild( w );
+ TQWorkspaceChild* c = findChild( w );
if ( !w || (w && (!w->testWFlags( TQt::WStyle_Minimize ) || w->testWFlags( TQt::WStyle_Tool) )) )
return;
@@ -1135,7 +1135,7 @@ void TQWorkspace::minimizeWindow( TQWidget* w)
void TQWorkspace::normalizeWindow( TQWidget* w)
{
- TQWorkspaceChild* c = tqfindChild( w );
+ TQWorkspaceChild* c = findChild( w );
if ( !w )
return;
if ( c ) {
@@ -1183,14 +1183,14 @@ void TQWorkspace::normalizeWindow( TQWidget* w)
void TQWorkspace::maximizeWindow( TQWidget* w)
{
- TQWorkspaceChild* c = tqfindChild( w );
+ TQWorkspaceChild* c = findChild( w );
if ( !w || (w && (!w->testWFlags( TQt::WStyle_Maximize ) || w->testWFlags( TQt::WStyle_Tool) )) )
return;
if ( c ) {
setUpdatesEnabled( FALSE );
- if (c->iconw && d->icons.tqcontains( c->iconw->parentWidget() ) )
+ if (c->iconw && d->icons.contains( c->iconw->parentWidget() ) )
normalizeWindow( w );
TQWorkspace *fake = (TQWorkspace*)w;
@@ -1250,7 +1250,7 @@ void TQWorkspace::showWindow( TQWidget* w)
}
-TQWorkspaceChild* TQWorkspace::tqfindChild( TQWidget* w)
+TQWorkspaceChild* TQWorkspace::findChild( TQWidget* w)
{
TQPtrListIterator<TQWorkspaceChild> it( d->windows );
while ( it.current () ) {
@@ -1320,7 +1320,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
return FALSE;
}
TQDockWindow *w = (TQDockWindow*)ce->child();
- if(d->newdocks.tqfind(w) == -1 && d->dockwindows.tqfind(w) == -1) {
+ if(d->newdocks.find(w) == -1 && d->dockwindows.find(w) == -1) {
if(::tqqt_cast<TQToolBar*>(w))
d->newdocks.prepend(w);
else
@@ -1372,7 +1372,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
if ( !o->isA( "TQWorkspaceChild" ) || !isVisible() || e->spontaneous() )
break;
if ( TQT_BASE_OBJECT(d->active) == TQT_BASE_OBJECT(o) ) {
- int a = d->focus.tqfind( d->active );
+ int a = d->focus.find( d->active );
if (a < 0) {
printf("[WARNING] In TQWorkspace TQEvent::HideToParent handler: Expected active window to be present in focus list but this was not the case! Avoiding infinite loop but the root cause of this problem should be repaired. d->focus.count(): %d\n\r", d->focus.count());
break;
@@ -1382,7 +1382,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
a = d->focus.count()-1;
TQWorkspaceChild* c = d->focus.at( a );
if ( !c || TQT_BASE_OBJECT(c) == TQT_BASE_OBJECT(o) ) {
- if ( c && c->iconw && d->icons.tqcontains( c->iconw->parentWidget() ) )
+ if ( c && c->iconw && d->icons.contains( c->iconw->parentWidget() ) )
break;
activateWindow( 0 );
break;
@@ -1421,7 +1421,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
updateWorkspace();
break;
case TQEvent::Show:
- if ( o->isA("TQWorkspaceChild") && !d->focus.tqcontainsRef( (TQWorkspaceChild*)o ) ) {
+ if ( o->isA("TQWorkspaceChild") && !d->focus.containsRef( (TQWorkspaceChild*)o ) ) {
d->focus.append( (TQWorkspaceChild*)o );
}
updateWorkspace();
@@ -1791,7 +1791,7 @@ void TQWorkspace::activateNextWindow()
return;
}
- int a = d->focus.tqfind( d->active ) + 1;
+ int a = d->focus.find( d->active ) + 1;
a = a % d->focus.count();
@@ -1824,7 +1824,7 @@ void TQWorkspace::activatePrevWindow()
return;
}
- int a = d->focus.tqfind( d->active ) - 1;
+ int a = d->focus.find( d->active ) - 1;
if ( a < 0 )
a = d->focus.count()-1;
@@ -2328,7 +2328,7 @@ bool TQWorkspaceChild::eventFilter( TQObject * o, TQEvent * e)
switch ( e->type() ) {
case TQEvent::Show:
- if ( ((TQWorkspace*)parentWidget())->d->focus.tqfind( this ) < 0 )
+ if ( ((TQWorkspace*)parentWidget())->d->focus.find( this ) < 0 )
((TQWorkspace*)parentWidget())->d->focus.append( this );
if ( isVisibleTo( parentWidget() ) )
break;
@@ -2463,7 +2463,7 @@ bool TQWorkspaceChild::focusNextPrevChild( bool next )
if ( candidate ) {
TQObjectList *ol = queryList();
- bool ischild = ol->tqfindRef( TQT_TQOBJECT(candidate) ) != -1;
+ bool ischild = ol->findRef( TQT_TQOBJECT(candidate) ) != -1;
delete ol;
if ( !ischild ) {
startingPoint = f->home();
@@ -2475,7 +2475,7 @@ bool TQWorkspaceChild::focusNextPrevChild( bool next )
if ( ( candidate->focusPolicy() & Qt::TabFocus ) == Qt::TabFocus
&& candidate->isEnabled() &&!candidate->focusProxy() && candidate->isVisible() )
lastValid = candidate;
- if ( ol2->tqfindRef( TQT_TQOBJECT(nw) ) == -1 ) {
+ if ( ol2->findRef( TQT_TQOBJECT(nw) ) == -1 ) {
candidate = lastValid;
break;
}
@@ -2577,7 +2577,7 @@ void TQWorkspaceChild::setActive( bool b )
for ( o = ol->first(); o; o = ol->next() )
o->removeEventFilter( this );
if ( !hasFocus ) {
- if ( lastfocusw && ol->tqcontains( TQT_TQOBJECT(lastfocusw) ) &&
+ if ( lastfocusw && ol->contains( TQT_TQOBJECT(lastfocusw) ) &&
lastfocusw->focusPolicy() != Qt::NoFocus ) {
// this is a bug if lastfocusw has been deleted, a new
// widget has been created, and the new one is a child
@@ -2587,7 +2587,7 @@ void TQWorkspaceChild::setActive( bool b )
} else if ( childWidget->focusPolicy() != Qt::NoFocus ) {
childWidget->setFocus();
} else {
- // tqfind something, anything, that accepts focus, and use that.
+ // find something, anything, that accepts focus, and use that.
o = ol->first();
while( o && ((TQWidget*)o)->focusPolicy() == Qt::NoFocus )
o = ol->next();
diff --git a/tqtinterface/qt4/src/workspace/tqworkspace.h b/tqtinterface/qt4/src/workspace/tqworkspace.h
index 2b128ec..b48f7fe 100644
--- a/tqtinterface/qt4/src/workspace/tqworkspace.h
+++ b/tqtinterface/qt4/src/workspace/tqworkspace.h
@@ -140,7 +140,7 @@ private:
void removeIcon( TQWidget* w);
void place( TQWidget* );
- TQWorkspaceChild* tqfindChild( TQWidget* w);
+ TQWorkspaceChild* findChild( TQWidget* w);
void showMaximizeControls();
void hideMaximizeControls();
void activateWindow( TQWidget* w, bool change_focus = TRUE );
diff --git a/tqtinterface/qt4/src/xml/tqdom.cpp b/tqtinterface/qt4/src/xml/tqdom.cpp
index ef453c3..4b85e22 100644
--- a/tqtinterface/qt4/src/xml/tqdom.cpp
+++ b/tqtinterface/qt4/src/xml/tqdom.cpp
@@ -82,7 +82,7 @@
*/
static void qt_split_namespace( TQString& prefix, TQString& name, const TQString& qName, bool hasURI )
{
- int i = qName.tqfind( ':' );
+ int i = qName.find( ':' );
if ( i == -1 ) {
if ( hasURI )
prefix = "";
@@ -134,7 +134,7 @@ public:
virtual bool hasAttributes() { return FALSE; }
virtual TQDomNodePrivate* insertBefore( TQDomNodePrivate* newChild, TQDomNodePrivate* refChild );
virtual TQDomNodePrivate* insertAfter( TQDomNodePrivate* newChild, TQDomNodePrivate* refChild );
- virtual TQDomNodePrivate* tqreplaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild );
+ virtual TQDomNodePrivate* replaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild );
virtual TQDomNodePrivate* removeChild( TQDomNodePrivate* oldChild );
virtual TQDomNodePrivate* appendChild( TQDomNodePrivate* newChild );
@@ -219,8 +219,8 @@ public:
TQDomNodePrivate* removeNamedItem( const TQString& name );
TQDomNodePrivate* item( int index ) const;
uint length() const;
- bool tqcontains( const TQString& name ) const;
- bool tqcontainsNS( const TQString& nsURI, const TQString & localName ) const;
+ bool contains( const TQString& name ) const;
+ bool containsNS( const TQString& nsURI, const TQString & localName ) const;
/**
* Remove all tqchildren from the map.
@@ -233,7 +233,7 @@ public:
* If TRUE, then the node will redirect insert/remove calls
* to its tqparent by calling TQDomNodePrivate::appendChild or removeChild.
* In addition the map wont increase or decrease the reference count
- * of the nodes it tqcontains.
+ * of the nodes it contains.
*
* By default this value is FALSE and the map will handle reference counting
* by itself.
@@ -265,7 +265,7 @@ public:
TQDomNodePrivate* cloneNode( bool deep = TRUE );
TQDomNodePrivate* insertBefore( TQDomNodePrivate* newChild, TQDomNodePrivate* refChild );
TQDomNodePrivate* insertAfter( TQDomNodePrivate* newChild, TQDomNodePrivate* refChild );
- TQDomNodePrivate* tqreplaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild );
+ TQDomNodePrivate* replaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild );
TQDomNodePrivate* removeChild( TQDomNodePrivate* oldChild );
TQDomNodePrivate* appendChild( TQDomNodePrivate* newChild );
@@ -307,7 +307,7 @@ public:
void appendData( const TQString& arg );
void insertData( unsigned long offset, const TQString& arg );
void deleteData( unsigned long offset, unsigned long count );
- void tqreplaceData( unsigned long offset, unsigned long count, const TQString& arg );
+ void replaceData( unsigned long offset, unsigned long count, const TQString& arg );
// Reimplemented from TQDomNodePrivate
bool isCharacterData() { return TRUE; }
@@ -1332,7 +1332,7 @@ TQDomNodePrivate* TQDomNodePrivate::insertAfter( TQDomNodePrivate* newChild, TQD
return newChild;
}
-TQDomNodePrivate* TQDomNodePrivate::tqreplaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild )
+TQDomNodePrivate* TQDomNodePrivate::replaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild )
{
if ( oldChild->tqparent() != this )
return 0;
@@ -1541,7 +1541,7 @@ void TQDomNodePrivate::save( TQTextStream& s, int depth, int indent ) const
Many functions in the DOM return a TQDomNode.
- You can tqfind out the type of a node using isAttr(),
+ You can find out the type of a node using isAttr(),
isCDATASection(), isDocumentFragment(), isDocument(),
isDocumentType(), isElement(), isEntityReference(), isText(),
isEntity(), isNotation(), isProcessingInstruction(),
@@ -1561,15 +1561,15 @@ void TQDomNodePrivate::save( TQTextStream& s, int depth, int indent ) const
independent (deep) copy of the node with cloneNode().
Nodes are inserted with insertBefore(), insertAfter() or
- appendChild(). You can tqreplace one node with another using
- tqreplaceChild() and remove a node with removeChild().
+ appendChild(). You can replace one node with another using
+ replaceChild() and remove a node with removeChild().
To traverse nodes use firstChild() to get a node's first child (if
any), and nextSibling() to traverse. TQDomNode also provides
- lastChild(), previousSibling() and parentNode(). To tqfind the first
+ lastChild(), previousSibling() and parentNode(). To find the first
child node with a particular node name use namedItem().
- To tqfind out if a node has tqchildren use hasChildNodes() and to get
+ To find out if a node has tqchildren use hasChildNodes() and to get
a list of all of a node's tqchildren use childNodes().
The node's name and value (the meaning of which varies depending
@@ -2086,7 +2086,7 @@ bool TQDomNode::hasAttributes() const
Returns a new reference to \a newChild on success or a \link
isNull() null node\endlink on failure.
- \sa insertAfter() tqreplaceChild() removeChild() appendChild()
+ \sa insertAfter() replaceChild() removeChild() appendChild()
*/
TQDomNode TQDomNode::insertBefore( const TQDomNode& newChild, const TQDomNode& refChild )
{
@@ -2116,7 +2116,7 @@ TQDomNode TQDomNode::insertBefore( const TQDomNode& newChild, const TQDomNode& r
Returns a new reference to \a newChild on success or a \link
isNull() null node\endlink on failure.
- \sa insertBefore() tqreplaceChild() removeChild() appendChild()
+ \sa insertBefore() replaceChild() removeChild() appendChild()
*/
TQDomNode TQDomNode::insertAfter( const TQDomNode& newChild, const TQDomNode& refChild )
{
@@ -2138,14 +2138,14 @@ TQDomNode TQDomNode::insertAfter( const TQDomNode& newChild, const TQDomNode& re
position in the list of tqchildren is changed.
If \a newChild is a TQDomDocumentFragment, then \a oldChild is
- tqreplaced by all of the tqchildren of the fragment.
+ replaced by all of the tqchildren of the fragment.
Returns a new reference to \a oldChild on success or a \link
isNull() null node\endlink an failure.
\sa insertBefore() insertAfter() removeChild() appendChild()
*/
-TQDomNode TQDomNode::tqreplaceChild( const TQDomNode& newChild, const TQDomNode& oldChild )
+TQDomNode TQDomNode::replaceChild( const TQDomNode& newChild, const TQDomNode& oldChild )
{
if ( !impl ) {
if (nodeType() == DocumentNode)
@@ -2153,7 +2153,7 @@ TQDomNode TQDomNode::tqreplaceChild( const TQDomNode& newChild, const TQDomNode&
else
return TQDomNode();
}
- return TQDomNode( IMPL->tqreplaceChild( newChild.impl, oldChild.impl ) );
+ return TQDomNode( IMPL->replaceChild( newChild.impl, oldChild.impl ) );
}
/*!
@@ -2163,7 +2163,7 @@ TQDomNode TQDomNode::tqreplaceChild( const TQDomNode& newChild, const TQDomNode&
Returns a new reference to \a oldChild on success or a \link
isNull() null node\endlink on failure.
- \sa insertBefore() insertAfter() tqreplaceChild() appendChild()
+ \sa insertBefore() insertAfter() replaceChild() appendChild()
*/
TQDomNode TQDomNode::removeChild( const TQDomNode& oldChild )
{
@@ -2188,7 +2188,7 @@ TQDomNode TQDomNode::removeChild( const TQDomNode& oldChild )
Returns a new reference to \a newChild.
- \sa insertBefore() insertAfter() tqreplaceChild() removeChild()
+ \sa insertBefore() insertAfter() replaceChild() removeChild()
*/
TQDomNode TQDomNode::appendChild( const TQDomNode& newChild )
{
@@ -2621,12 +2621,12 @@ uint TQDomNamedNodeMapPrivate::length() const
return map.count();
}
-bool TQDomNamedNodeMapPrivate::tqcontains( const TQString& name ) const
+bool TQDomNamedNodeMapPrivate::contains( const TQString& name ) const
{
return ( map[ name ] != 0 );
}
-bool TQDomNamedNodeMapPrivate::tqcontainsNS( const TQString& nsURI, const TQString & localName ) const
+bool TQDomNamedNodeMapPrivate::containsNS( const TQString& nsURI, const TQString & localName ) const
{
return ( namedItemNS( nsURI, localName ) != 0 );
}
@@ -2642,7 +2642,7 @@ bool TQDomNamedNodeMapPrivate::tqcontainsNS( const TQString& nsURI, const TQStri
/*!
\class TQDomNamedNodeMap tqdom.h
\reentrant
- \brief The TQDomNamedNodeMap class tqcontains a collection of nodes
+ \brief The TQDomNamedNodeMap class contains a collection of nodes
that can be accessed by name.
\if defined(commercial)
It is part of the <a href="commercialeditions.html">TQt Enterprise Edition</a>.
@@ -2672,7 +2672,7 @@ bool TQDomNamedNodeMapPrivate::tqcontainsNS( const TQString& nsURI, const TQStri
returns. Nodes are retrieved using namedItem(), namedItemNS() or
item(). New nodes are inserted with setNamedItem() or
setNamedItemNS() and removed with removeNamedItem() or
- removeNamedItemNS(). Use tqcontains() to see if an item with the
+ removeNamedItemNS(). Use contains() to see if an item with the
given name is in the named node map. The number of items is
returned by length().
@@ -2767,8 +2767,8 @@ TQDomNode TQDomNamedNodeMap::namedItem( const TQString& name ) const
by the map is the node name of \a newNode as returned by
TQDomNode::nodeName().
- If the new node tqreplaces an existing node, i.e. the map tqcontains a
- node with the same name, the tqreplaced node is returned.
+ If the new node replaces an existing node, i.e. the map contains a
+ node with the same name, the replaced node is returned.
\sa namedItem() removeNamedItem() setNamedItemNS()
*/
@@ -2829,8 +2829,8 @@ TQDomNode TQDomNamedNodeMap::namedItemNS( const TQString& nsURI, const TQString&
/*!
Inserts the node \a newNode in the map. If a node with the same
namespace URI and the same local name already exists in the map,
- it is tqreplaced by \a newNode. If the new node tqreplaces an existing
- node, the tqreplaced node is returned.
+ it is replaced by \a newNode. If the new node replaces an existing
+ node, the replaced node is returned.
\sa namedItemNS() removeNamedItemNS() setNamedItem()
*/
@@ -2883,14 +2883,14 @@ uint TQDomNamedNodeMap::length() const
*/
/*!
- Returns TRUE if the map tqcontains a node called \a name; otherwise
+ Returns TRUE if the map contains a node called \a name; otherwise
returns FALSE.
*/
-bool TQDomNamedNodeMap::tqcontains( const TQString& name ) const
+bool TQDomNamedNodeMap::contains( const TQString& name ) const
{
if ( !impl )
return FALSE;
- return IMPL->tqcontains( name );
+ return IMPL->contains( name );
}
#undef IMPL
@@ -2977,10 +2977,10 @@ TQDomNodePrivate* TQDomDocumentTypePrivate::insertAfter( TQDomNodePrivate* newCh
return p;
}
-TQDomNodePrivate* TQDomDocumentTypePrivate::tqreplaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild )
+TQDomNodePrivate* TQDomDocumentTypePrivate::replaceChild( TQDomNodePrivate* newChild, TQDomNodePrivate* oldChild )
{
// Call the origianl implementation
- TQDomNodePrivate* p = TQDomNodePrivate::tqreplaceChild( newChild, oldChild );
+ TQDomNodePrivate* p = TQDomNodePrivate::replaceChild( newChild, oldChild );
// Update the maps
if ( p ) {
if ( oldChild && oldChild->isEntity() )
@@ -3275,7 +3275,7 @@ TQDomNodePrivate* TQDomDocumentFragmentPrivate::cloneNode( bool deep)
The most important feature of TQDomDocumentFragment is that it is
treated in a special way by TQDomNode::insertAfter(),
- TQDomNode::insertBefore(), TQDomNode::tqreplaceChild() and
+ TQDomNode::insertBefore(), TQDomNode::replaceChild() and
TQDomNode::appendChild(): instead of inserting the fragment itself, all
the fragment's tqchildren are inserted.
*/
@@ -3397,9 +3397,9 @@ void TQDomCharacterDataPrivate::deleteData( unsigned long offset, unsigned long
value.remove( offset, n );
}
-void TQDomCharacterDataPrivate::tqreplaceData( unsigned long offset, unsigned long n, const TQString& arg )
+void TQDomCharacterDataPrivate::replaceData( unsigned long offset, unsigned long n, const TQString& arg )
{
- value.tqreplace( offset, n, arg );
+ value.replace( offset, n, arg );
}
void TQDomCharacterDataPrivate::appendData( const TQString& arg )
@@ -3434,7 +3434,7 @@ void TQDomCharacterDataPrivate::appendData( const TQString& arg )
You can retrieve a portion of the data string using
substringData(). Extra data can be appended with appendData(), or
inserted with insertData(). Portions of the data string can be
- deleted with deleteData() or tqreplaced with tqreplaceData(). The
+ deleted with deleteData() or replaced with replaceData(). The
length of the data string is returned by length().
The node type of the node containing this character data is
@@ -3559,10 +3559,10 @@ void TQDomCharacterData::deleteData( unsigned long offset, unsigned long count )
Replaces the substring of length \a count starting at position \a
offset with the string \a arg.
*/
-void TQDomCharacterData::tqreplaceData( unsigned long offset, unsigned long count, const TQString& arg )
+void TQDomCharacterData::replaceData( unsigned long offset, unsigned long count, const TQString& arg )
{
if ( impl )
- IMPL->tqreplaceData( offset, count, arg );
+ IMPL->replaceData( offset, count, arg );
}
/*!
@@ -3669,25 +3669,25 @@ static TQString encodeAttr( const TQString& str )
uint i = 0;
while ( i < len ) {
if ( tmp[(int)i] == '<' ) {
- tmp.tqreplace( i, 1, "&lt;" );
+ tmp.replace( i, 1, "&lt;" );
len += 3;
i += 4;
} else if ( tmp[(int)i] == '"' ) {
- tmp.tqreplace( i, 1, "&quot;" );
+ tmp.replace( i, 1, "&quot;" );
len += 5;
i += 6;
} else if ( tmp[(int)i] == '&' ) {
- tmp.tqreplace( i, 1, "&amp;" );
+ tmp.replace( i, 1, "&amp;" );
len += 4;
i += 5;
} else if ( tmp[(int)i] == '>' && i>=2 && tmp[(int)i-1]==']' && tmp[(int)i-2]==']' ) {
- tmp.tqreplace( i, 1, "&gt;" );
+ tmp.replace( i, 1, "&gt;" );
len += 3;
i += 4;
} else if (!isXmlChar(tmp[(int)i])) {
TQString repl = "&#x" + TQString::number(tmp[(int)i].tqunicode(), 16) + ';';
qWarning("TQDom: saving invalid character %s, the document will not be well-formed", repl.latin1());
- tmp.tqreplace(i, 1, repl);
+ tmp.replace(i, 1, repl);
len += repl.length() - 1;
i += repl.length();
} else {
@@ -4034,12 +4034,12 @@ TQDomAttrPrivate* TQDomElementPrivate::removeAttributeNode( TQDomAttrPrivate* ol
bool TQDomElementPrivate::hasAttribute( const TQString& aname )
{
- return m_attr->tqcontains( aname );
+ return m_attr->contains( aname );
}
bool TQDomElementPrivate::hasAttributeNS( const TQString& nsURI, const TQString& localName )
{
- return m_attr->tqcontainsNS( nsURI, localName );
+ return m_attr->containsNS( nsURI, localName );
}
TQString TQDomElementPrivate::text()
@@ -4146,8 +4146,8 @@ void TQDomElementPrivate::save( TQTextStream& s, int depth, int indent ) const
//...
TQString s = e.text()
\endcode
- The text() function operates recursively to tqfind the text (since
- not all elements contain text). If you want to tqfind all the text
+ The text() function operates recursively to find the text (since
+ not all elements contain text). If you want to find all the text
in all of a node's tqchildren, iterate over the tqchildren looking for
TQDomText nodes, e.g.
\code
@@ -4271,7 +4271,7 @@ TQString TQDomElement::attribute( const TQString& name, const TQString& defValu
/*!
Adds an attribute called \a name with value \a value. If an
- attribute with the same name exists, its value is tqreplaced by \a
+ attribute with the same name exists, its value is replaced by \a
value.
\sa attribute() setAttributeNode() setAttributeNS()
@@ -4367,7 +4367,7 @@ TQDomAttr TQDomElement::attributeNode( const TQString& name)
Adds the attribute \a newAttr to this element.
If the element has another attribute that has the same name as \a
- newAttr, this function tqreplaces that attribute and returns it;
+ newAttr, this function replaces that attribute and returns it;
otherwise the function returns a \link TQDomNode::isNull() null
attribute\endlink.
@@ -4454,11 +4454,11 @@ TQString TQDomElement::attributeNS( const TQString nsURI, const TQString& localN
Adds an attribute with the qualified name \a qName and the
namespace URI \a nsURI with the value \a value. If an attribute
with the same local name and namespace URI exists, its prefix is
- tqreplaced by the prefix of \a qName and its value is repaced by \a
+ replaced by the prefix of \a qName and its value is repaced by \a
value.
Although \a qName is the qualified name, the local name is used to
- decide if an existing attribute's value should be tqreplaced.
+ decide if an existing attribute's value should be replaced.
\sa attributeNS() setAttributeNodeNS() setAttribute()
*/
@@ -4558,7 +4558,7 @@ TQDomAttr TQDomElement::attributeNodeNS( const TQString& nsURI, const TQString&
Adds the attribute \a newAttr to this element.
If the element has another attribute that has the same local name
- and namespace URI as \a newAttr, this function tqreplaces that
+ and namespace URI as \a newAttr, this function replaces that
attribute and returns it; otherwise the function returns a \link
TQDomNode::isNull() null attribute\endlink.
@@ -5261,20 +5261,20 @@ static TQCString encodeEntity( const TQCString& str )
const char* d = tmp.data();
while ( i < len ) {
if ( d[i] == '%' ){
- tmp.tqreplace( i, 1, "&#60;" );
+ tmp.replace( i, 1, "&#60;" );
d = tmp.data();
len += 4;
i += 5;
}
else if ( d[i] == '"' ) {
- tmp.tqreplace( i, 1, "&#34;" );
+ tmp.replace( i, 1, "&#34;" );
d = tmp.data();
len += 4;
i += 5;
} else if ( d[i] == '&' && i + 1 < len && d[i+1] == '#' ) {
// Dont encode &lt; or &quot; or &custom;.
// Only encode character references
- tmp.tqreplace( i, 1, "&#38;" );
+ tmp.replace( i, 1, "&#38;" );
d = tmp.data();
len += 4;
i += 5;
@@ -5329,7 +5329,7 @@ void TQDomEntityPrivate::save( TQTextStream& s, int, int ) const
DOM does not support editing entity nodes; if a user wants to make
changes to the contents of an entity, every related
- TQDomEntityReference node must be tqreplaced in the DOM tree by a
+ TQDomEntityReference node must be replaced in the DOM tree by a
clone of the entity's contents, and then the desired changes must
be made to each of the clones instead. All the descendents of an
entity node are read-only.
@@ -6060,7 +6060,7 @@ void TQDomDocumentPrivate::save( TQTextStream& s, int, int indent ) const
Since elements, text nodes, comments, processing instructions,
etc., cannot exist outside the context of a document, the document
- class also tqcontains the factory functions needed to create these
+ class also contains the factory functions needed to create these
objects. The node objects created have an ownerDocument() function
which associates them with the document within whose context they
were created. The DOM classes that will be used most often are
@@ -6580,7 +6580,7 @@ TQDomEntityReference TQDomDocument::createEntityReference( const TQString& name
}
/*!
- Returns a TQDomNodeList, that tqcontains all the elements in the
+ Returns a TQDomNodeList, that contains all the elements in the
document with the name \a tagname. The order of the node list is
the order they are encountered in a preorder traversal of the
element tree.
@@ -6655,7 +6655,7 @@ TQDomNodeList TQDomDocument::elementsByTagName( const TQString& tagname ) const
\endtable
\sa TQDomElement::setAttribute() TQDomNode::insertBefore()
- TQDomNode::insertAfter() TQDomNode::tqreplaceChild() TQDomNode::removeChild()
+ TQDomNode::insertAfter() TQDomNode::replaceChild() TQDomNode::removeChild()
TQDomNode::appendChild()
*/
TQDomNode TQDomDocument::importNode( const TQDomNode& importedNode, bool deep )
@@ -6698,7 +6698,7 @@ TQDomAttr TQDomDocument::createAttributeNS( const TQString& nsURI, const TQStrin
}
/*!
- Returns a TQDomNodeList that tqcontains all the elements in the
+ Returns a TQDomNodeList that contains all the elements in the
document with the local name \a localName and a namespace URI of
\a nsURI. The order of the node list is the order they are
encountered in a preorder traversal of the element tree.
diff --git a/tqtinterface/qt4/src/xml/tqdom.h b/tqtinterface/qt4/src/xml/tqdom.h
index f0cc43f..f73a823 100644
--- a/tqtinterface/qt4/src/xml/tqdom.h
+++ b/tqtinterface/qt4/src/xml/tqdom.h
@@ -153,7 +153,7 @@ public:
// DOM functions
virtual TQDomNode insertBefore( const TQDomNode& newChild, const TQDomNode& refChild );
virtual TQDomNode insertAfter( const TQDomNode& newChild, const TQDomNode& refChild );
- virtual TQDomNode tqreplaceChild( const TQDomNode& newChild, const TQDomNode& oldChild );
+ virtual TQDomNode replaceChild( const TQDomNode& newChild, const TQDomNode& oldChild );
virtual TQDomNode removeChild( const TQDomNode& oldChild );
virtual TQDomNode appendChild( const TQDomNode& newChild );
virtual bool hasChildNodes() const;
@@ -370,7 +370,7 @@ public:
uint count() const { return length(); } // TQt API consitancy
// TQt extension
- bool tqcontains( const TQString& name ) const;
+ bool contains( const TQString& name ) const;
private:
TQDomNamedNodeMapPrivate* impl;
@@ -413,7 +413,7 @@ public:
virtual void appendData( const TQString& arg );
virtual void insertData( unsigned long offset, const TQString& arg );
virtual void deleteData( unsigned long offset, unsigned long count );
- virtual void tqreplaceData( unsigned long offset, unsigned long count, const TQString& arg );
+ virtual void replaceData( unsigned long offset, unsigned long count, const TQString& arg );
// DOM read only attributes
virtual uint length() const;
diff --git a/tqtinterface/qt4/src/xml/tqsvgdevice.cpp b/tqtinterface/qt4/src/xml/tqsvgdevice.cpp
index cda8c4f..3f3c863 100644
--- a/tqtinterface/qt4/src/xml/tqsvgdevice.cpp
+++ b/tqtinterface/qt4/src/xml/tqsvgdevice.cpp
@@ -193,7 +193,7 @@ bool TQSvgDevice::play( TQPainter *painter )
TQDomNode svg = doc.namedItem( "svg" );
if ( svg.isNull() || !svg.isElement() ) {
- qWarning( "TQSvgDevice::play: Couldn't tqfind any svg element." );
+ qWarning( "TQSvgDevice::play: Couldn't find any svg element." );
return FALSE;
}
@@ -206,9 +206,9 @@ bool TQSvgDevice::play( TQPainter *painter )
int y = lenToInt( attr, "y" );
brect.setX( x );
brect.setY( y );
- TQString wstr = attr.tqcontains( "width" )
+ TQString wstr = attr.contains( "width" )
? attr.namedItem( "width" ).nodeValue() : TQString( "100%" );
- TQString hstr = attr.tqcontains( "height" )
+ TQString hstr = attr.contains( "height" )
? attr.namedItem( "height" ).nodeValue() : TQString( "100%" );
double width = parseLen( wstr, 0, TRUE );
double height = parseLen( hstr, 0, FALSE );
@@ -217,7 +217,7 @@ bool TQSvgDevice::play( TQPainter *painter )
brect.setHeight( int(height) - y );
painter->setClipRect( brect, TQPainter::CoordPainter );
- if ( attr.tqcontains( "viewBox" ) ) {
+ if ( attr.contains( "viewBox" ) ) {
TQRegExp re( TQString::tqfromLatin1("\\s*(\\S+)\\s*,?\\s*(\\S+)\\s*,?"
"\\s*(\\S+)\\s*,?\\s*(\\S+)\\s*") );
if ( re.search( attr.namedItem( "viewBox" ).nodeValue() ) < 0 ) {
@@ -809,10 +809,10 @@ bool TQSvgDevice::play( const TQDomNode &node )
pt->setPen( p );
}
TQDomNamedNodeMap attr = node.attributes();
- if ( attr.tqcontains( "style" ) )
+ if ( attr.contains( "style" ) )
setStyle( attr.namedItem( "style" ).nodeValue() );
// ### might have to exclude more elements from transform
- if ( t != SvgElement && attr.tqcontains( "transform" ) )
+ if ( t != SvgElement && attr.contains( "transform" ) )
setTransform( attr.namedItem( "transform" ).nodeValue() );
uint i = attr.length();
if ( i > 0 ) {
@@ -842,8 +842,8 @@ bool TQSvgDevice::play( const TQDomNode &node )
h = lenToInt( attr, "height" );
if ( w == 0 || h == 0 ) // prevent div by zero below
break;
- x2 = (int)attr.tqcontains( "rx" ); // tiny abuse of x2 and y2
- y2 = (int)attr.tqcontains( "ry" );
+ x2 = (int)attr.contains( "rx" ); // tiny abuse of x2 and y2
+ y2 = (int)attr.contains( "ry" );
if ( x2 )
rx = lenToInt( attr, "rx" );
if ( y2 )
@@ -926,9 +926,9 @@ bool TQSvgDevice::play( const TQDomNode &node )
case TSpanElement:
case TextElement:
{
- if ( attr.tqcontains( "x" ) )
+ if ( attr.contains( "x" ) )
curr->textx = lenToInt( attr, "x" );
- if ( attr.tqcontains( "y" ) )
+ if ( attr.contains( "y" ) )
curr->texty = lenToInt( attr, "y" );
if ( t == TSpanElement ) {
curr->textx += lenToInt( attr, "dx" );
@@ -1081,11 +1081,11 @@ TQColor TQSvgDevice::parseColor( const TQString &col )
}
// a keyword ?
- if ( qSvgColMap->tqcontains ( col ) )
+ if ( qSvgColMap->contains ( col ) )
return TQColor( (*qSvgColMap)[ col ] );
// in rgb(r,g,b) form ?
TQString c = col;
- c.tqreplace( TQRegExp( TQString::tqfromLatin1("\\s*") ), "" );
+ c.replace( TQRegExp( TQString::tqfromLatin1("\\s*") ), "" );
TQRegExp reg( TQString::tqfromLatin1("^rgb\\((\\d+)(%?),(\\d+)(%?),(\\d+)(%?)\\)$") );
if ( reg.search( c ) >= 0 ) {
int comp[3];
@@ -1161,7 +1161,7 @@ double TQSvgDevice::parseLen( const TQString &str, bool *ok, bool horiz ) const
int TQSvgDevice::lenToInt( const TQDomNamedNodeMap &map, const TQString &attr,
int def ) const
{
- if ( map.tqcontains( attr ) ) {
+ if ( map.contains( attr ) ) {
bool ok;
double dbl = parseLen( map.namedItem( attr ).nodeValue(), &ok );
if ( ok )
@@ -1173,7 +1173,7 @@ int TQSvgDevice::lenToInt( const TQDomNamedNodeMap &map, const TQString &attr,
double TQSvgDevice::lenToDouble( const TQDomNamedNodeMap &map, const TQString &attr,
int def ) const
{
- if ( map.tqcontains( attr ) ) {
+ if ( map.contains( attr ) ) {
bool ok;
double d = parseLen( map.namedItem( attr ).nodeValue(), &ok );
if ( ok )
@@ -1285,7 +1285,7 @@ void TQSvgDevice::setStyle( const TQString &s )
TQStringList::ConstIterator it = rules.begin();
for ( ; it != rules.end(); it++ ) {
- int col = (*it).tqfind( ':' );
+ int col = (*it).find( ':' );
if ( col > 0 ) {
TQString prop = TQT_TQSTRING((*it).left( col )).simplifyWhiteSpace();
TQString val = (*it).right( (*it).length() - col - 1 );
@@ -1363,7 +1363,7 @@ void TQSvgDevice::drawPath( const TQString &data )
if ( ch.isSpace() )
continue;
TQChar chUp = ch.upper();
- int cmd = commands.tqfind( chUp );
+ int cmd = commands.find( chUp );
if ( cmd >= 0 ) {
// switch to new command mode
mode = cmd;
diff --git a/tqtinterface/qt4/src/xml/tqxml.cpp b/tqtinterface/qt4/src/xml/tqxml.cpp
index 9462b33..fa98822 100644
--- a/tqtinterface/qt4/src/xml/tqxml.cpp
+++ b/tqtinterface/qt4/src/xml/tqxml.cpp
@@ -173,7 +173,7 @@ static const signed char charLookupTable[256]={
/*
This function strips the TextDecl [77] ("<?xml ...?>") from the string \a
- str. The stripped version is stored in \a str. If this function tqfinds an
+ str. The stripped version is stored in \a str. If this function finds an
invalid TextDecl, it returns FALSE, otherwise TRUE.
This function is used for external entities since those can include an
@@ -190,7 +190,7 @@ static bool stripTextDecl( TQString& str )
"(encoding\\s*=\\s*((['\"])[A-Za-z][-a-zA-Z0-9_.]*\\6))?"
"\\s*\\?>"
));
- TQString strTmp = str.tqreplace( textDecl, "" );
+ TQString strTmp = str.replace( textDecl, "" );
if ( strTmp.length() != str.length() )
return FALSE; // external entity has wrong TextDecl
str = strTmp;
@@ -476,7 +476,7 @@ TQString TQXmlNamespaceSupport::uri( const TQString& prefix ) const
void TQXmlNamespaceSupport::splitName( const TQString& qname,
TQString& prefix, TQString& localname ) const
{
- int pos = qname.tqfind(':');
+ int pos = qname.find(':');
if (pos == -1)
pos = qname.length();
@@ -691,7 +691,7 @@ void TQXmlNamespaceSupport::reset()
*/
int TQXmlAttributes::index( const TQString& qName ) const
{
- return qnameList.tqfindIndex( qName );
+ return qnameList.findIndex( qName );
}
/*!
@@ -908,10 +908,10 @@ void TQXmlAttributes::append( const TQString &qName, const TQString &uri, const
class.
This class recognizes the encoding of the data by reading the
- encoding declaration in the XML file if it tqfinds one, and reading
- the data using the corresponding encoding. If it does not tqfind an
+ encoding declaration in the XML file if it finds one, and reading
+ the data using the corresponding encoding. If it does not find an
encoding declaration, then it assumes that the data is either in
- UTF-8 or UTF-16, depending on whether it can tqfind a byte-order
+ UTF-8 or UTF-16, depending on whether it can find a byte-order
mark.
There are two ways to populate the input source with data: you can
@@ -953,7 +953,7 @@ void TQXmlInputSource::init()
}
/*!
- Constructs an input source which tqcontains no data.
+ Constructs an input source which contains no data.
\sa setData()
*/
@@ -1048,7 +1048,7 @@ void TQXmlInputSource::reset()
}
/*!
- Returns the data the input source tqcontains or TQString::null if the
+ Returns the data the input source contains or TQString::null if the
input source does not contain any data.
\sa setData() TQXmlInputSource() fetchData()
@@ -1061,7 +1061,7 @@ TQString TQXmlInputSource::data()
/*!
Sets the data of the input source to \a dat.
- If the input source already tqcontains data, this function deletes
+ If the input source already contains data, this function deletes
that data first.
\sa data()
@@ -1091,7 +1091,7 @@ void TQXmlInputSource::setData( const TQByteArray& dat )
construction. If the input source already contained data, this
function deletes that data first.
- This object tqcontains no data after a call to this function if the
+ This object contains no data after a call to this function if the
object was constructed without a tqdevice to read data from or if
this function was not able to get more data from the tqdevice.
@@ -1165,10 +1165,10 @@ TQString TQXmlInputSource::fromRawData( const TQByteArray &data, bool beginning
TQString input = encMapper->toUnicode( data.data(), data.size() );
// ### unexpected EOF? (for incremental parsing)
// starts the document with an XML declaration?
- if ( input.tqfind("<?xml") == 0 ) {
- // try to tqfind out if there is an encoding
- int endPos = input.tqfind( ">" );
- int pos = input.tqfind( "encoding" );
+ if ( input.find("<?xml") == 0 ) {
+ // try to find out if there is an encoding
+ int endPos = input.find( ">" );
+ int pos = input.find( "encoding" );
if ( pos < endPos && pos != -1 ) {
TQString encoding;
do {
@@ -1302,7 +1302,7 @@ TQString TQXmlInputSource::fromRawData( const TQByteArray &data, bool beginning
The reader calls this function to signal the begin of a prefix-URI
namespace mapping scope. This information is not necessary for
normal namespace processing since the reader automatically
- tqreplaces prefixes for element and attribute names.
+ replaces prefixes for element and attribute names.
Note that startPrefixMapping() and endPrefixMapping() calls are
not guaranteed to be properly nested relative to each other: all
@@ -1350,8 +1350,8 @@ TQString TQXmlInputSource::fromRawData( const TQByteArray &data, bool beginning
cause a startElement() call to be immediately followed by an
endElement() call.
- The attribute list provided only tqcontains attributes with explicit
- values. The attribute list tqcontains attributes used for namespace
+ The attribute list provided only contains attributes with explicit
+ values. The attribute list contains attributes used for namespace
declaration (i.e. attributes starting with xmlns) only if the
namespace-prefix property of the reader is TRUE.
@@ -1575,7 +1575,7 @@ TQString TQXmlInputSource::fromRawData( const TQByteArray &data, bool beginning
/*!
\fn bool TQXmlDTDHandler::unparsedEntityDecl( const TQString& name, const TQString& publicId, const TQString& systemId, const TQString& notationName )
- The reader calls this function when it tqfinds an unparsed entity
+ The reader calls this function when it finds an unparsed entity
declaration.
The argument \a name is the unparsed entity's name, \a publicId is
@@ -3537,7 +3537,7 @@ bool TQXmlSimpleReader::processElementEmptyTag()
// call the handler for prefix mapping
prefixesAfter = d->namespaceSupport.prefixes();
for ( TQStringList::Iterator it = prefixesBefore.begin(); it != prefixesBefore.end(); ++it ) {
- if ( prefixesAfter.tqcontains(*it) == 0 ) {
+ if ( prefixesAfter.contains(*it) == 0 ) {
if ( !contentHnd->endPrefixMapping( *it ) ) {
reportParseError( contentHnd->errorString() );
return FALSE;
@@ -3597,7 +3597,7 @@ bool TQXmlSimpleReader::processElementETagBegin2()
prefixesAfter = d->namespaceSupport.d->ns;
if (prefixesBefore.size() != prefixesAfter.size()) {
for (NamespaceMap::const_iterator it = prefixesBefore.constBegin(); it != prefixesBefore.constEnd(); ++it) {
- if (!it.key().isEmpty() && !prefixesAfter.tqcontains(it.key())) {
+ if (!it.key().isEmpty() && !prefixesAfter.contains(it.key())) {
if (!contentHnd->endPrefixMapping(it.key())) {
reportParseError(contentHnd->errorString());
return FALSE;
@@ -4963,13 +4963,13 @@ bool TQXmlSimpleReader::parsePEReference()
TQString xmlRefString;
TQMap<TQString,TQString>::Iterator it;
- it = d->parameterEntities.tqfind( ref() );
+ it = d->parameterEntities.find( ref() );
if ( it != d->parameterEntities.end() ) {
skipIt = FALSE;
xmlRefString = it.data();
} else if ( entityRes ) {
TQMap<TQString,TQXmlSimpleReaderPrivate::ExternParameterEntity>::Iterator it2;
- it2 = d->externParameterEntities.tqfind( ref() );
+ it2 = d->externParameterEntities.find( ref() );
TQXmlInputSource *ret = 0;
if ( it2 != d->externParameterEntities.end() ) {
if ( !entityRes->resolveEntity( it2.data().publicId, it2.data().systemId, ret ) ) {
@@ -6666,8 +6666,8 @@ bool TQXmlSimpleReader::parseComment()
of the attribute (i.e. all whitespaces are already parsed).
The head stand on the next character after the end quotes. The
- variable name tqcontains the name of the attribute and the variable
- string tqcontains the value of the attribute.
+ variable name contains the name of the attribute and the variable
+ string contains the value of the attribute.
*/
bool TQXmlSimpleReader::parseAttribute()
{
@@ -6950,7 +6950,7 @@ bool TQXmlSimpleReader::parseNmtoken()
parseReference_charDataRead is set to FALSE if the reference must be parsed.
The charachter(s) which the reference mapped to are inserted at the reference
- position. The head stands on the first character of the tqreplacement).
+ position. The head stands on the first character of the replacement).
*/
bool TQXmlSimpleReader::parseReference()
{
@@ -7115,7 +7115,7 @@ bool TQXmlSimpleReader::parseReference()
whereby undefined entities in attribute values would be appended after the
element that contained them.
- The solution is not perfect - the undefined entity reference is tqreplaced by
+ The solution is not perfect - the undefined entity reference is replaced by
an empty string. The propper fix will come in TQt4, when SAX will be extended
so that attribute values can be made up of multiple tqchildren, rather than just
a single string value.
@@ -7178,7 +7178,7 @@ bool TQXmlSimpleReader::processReference()
d->parseReference_charDataRead = TRUE;
} else {
TQMap<TQString,TQString>::Iterator it;
- it = d->entities.tqfind( reference );
+ it = d->entities.find( reference );
if ( it != d->entities.end() ) {
// "Internal General"
switch ( d->parseReference_context ) {
@@ -7213,7 +7213,7 @@ bool TQXmlSimpleReader::processReference()
}
} else {
TQMap<TQString,TQXmlSimpleReaderPrivate::ExternEntity>::Iterator itExtern;
- itExtern = d->externEntities.tqfind( reference );
+ itExtern = d->externEntities.find( reference );
if ( itExtern == d->externEntities.end() ) {
// entity not declared
// ### check this case for conformance
@@ -7379,7 +7379,7 @@ bool TQXmlSimpleReader::insertXmlRef( const TQString &data, const TQString &name
{
if ( inLiteral ) {
TQString tmp = data;
- d->xmlRef.push( TQT_TQSTRING(tmp.tqreplace( "\"", "&quot;" )).tqreplace( "'", "&apos;" ) );
+ d->xmlRef.push( TQT_TQSTRING(tmp.replace( "\"", "&quot;" )).replace( "'", "&apos;" ) );
} else {
d->xmlRef.push( data );
}
@@ -7509,10 +7509,10 @@ void TQXmlSimpleReader::initData()
*/
bool TQXmlSimpleReader::entityExist( const TQString& e ) const
{
- if ( d->parameterEntities.tqfind(e) == d->parameterEntities.end() &&
- d->externParameterEntities.tqfind(e) == d->externParameterEntities.end() &&
- d->externEntities.tqfind(e) == d->externEntities.end() &&
- d->entities.tqfind(e) == d->entities.end() ) {
+ if ( d->parameterEntities.find(e) == d->parameterEntities.end() &&
+ d->externParameterEntities.find(e) == d->externParameterEntities.end() &&
+ d->externEntities.find(e) == d->externEntities.end() &&
+ d->entities.find(e) == d->entities.end() ) {
return FALSE;
} else {
return TRUE;