From b6edfe41c9395f2e20784cbf0e630af6426950a3 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- chalk/chalkcolor/kis_abstract_colorspace.cc | 2 +- .../chalkcolor/kis_colorspace_factory_registry.cc | 6 +- chalk/chalkcolor/kis_colorspace_factory_registry.h | 2 +- chalk/colorspaces/wet/kis_wet_colorspace.cc | 2 +- .../wetsticky/ws/GNU Public Licence.txt | 4 +- chalk/core/createdcop.py | 20 ++-- chalk/core/kis_exif_info.h | 2 +- chalk/core/kis_filter_configuration.cc | 6 +- chalk/core/kis_group_layer.cc | 2 +- chalk/core/kis_imagepipe_brush.cc | 4 +- chalk/core/kis_layer.cc | 2 +- chalk/core/kis_paint_device.h | 4 +- chalk/core/kis_palette.cc | 2 +- chalk/core/kis_pattern.cc | 2 +- chalk/core/kis_perspective_grid.cpp | 4 +- chalk/core/kis_perspective_grid.h | 2 +- chalk/core/kis_selection.cc | 4 +- chalk/core/kis_thread_pool.cc | 6 +- chalk/core/tiles/kis_tile.h | 2 +- chalk/core/tiles/kis_tileddatamanager.cc | 6 +- chalk/core/tiles/kis_tilemanager.cc | 4 +- chalk/doc/brush.txt | 2 +- chalk/doc/chalk.xmi | 24 ++-- chalk/doc/controller.xmi | 6 +- chalk/doc/histograms.xmi | 6 +- chalk/plugins/filters/cimg/CImg.h | 2 +- .../kis_brightness_contrast_filter.cc | 2 +- .../filters/colorsfilters/kis_perchannel_filter.cc | 2 +- .../filters/oilpaintfilter/kis_oilpaint_filter.cc | 2 +- .../tools/defaulttools/kis_tool_colorpicker.cc | 2 +- chalk/plugins/tools/defaulttools/kis_tool_fill.cc | 2 +- chalk/plugins/tools/tool_crop/kis_tool_crop.cc | 18 +-- .../tools/tool_curves/kis_curve_framework.cc | 20 ++-- .../tools/tool_curves/kis_curve_framework.h | 28 ++--- chalk/plugins/tools/tool_curves/kis_tool_bezier.cc | 4 +- chalk/plugins/tools/tool_curves/kis_tool_curve.cc | 12 +- .../kis_tool_perspectivegrid.cc | 2 +- .../kis_tool_perspectivetransform.cc | 2 +- .../viewplugins/dropshadow/kis_dropshadow.cc | 2 +- .../viewplugins/screenshot/regiongrabber.cpp | 2 +- chalk/sdk/kis_shared_ptr_vector.h | 2 +- chalk/ui/kis_cmb_composite.cc | 2 +- chalk/ui/kis_cmb_idlist.cc | 2 +- chalk/ui/kis_dlg_image_properties.cc | 2 +- chalk/ui/kis_dlg_preferences.cc | 2 +- chalk/ui/kis_filter_manager.cc | 24 ++-- chalk/ui/kis_filters_listview.cc | 2 +- chalk/ui/kis_gradient_slider_widget.cc | 12 +- chalk/ui/kis_layerbox.cc | 10 +- chalk/ui/kis_paintop_box.cc | 6 +- chalk/ui/kis_part_layer.cc | 2 +- chalk/ui/kis_resource_mediator.cc | 2 +- chalk/ui/kis_resourceserver.cc | 2 +- chalk/ui/kis_tool_freehand.cc | 4 +- chalk/ui/kis_tool_paint.cc | 2 +- chalk/ui/kis_view.cc | 4 +- chalk/ui/kobirdeyepanel.cpp | 14 +-- chalk/ui/layerlist.cpp | 10 +- chalk/ui/layerlist.h | 2 +- chalk/ui/squeezedcombobox.cpp | 2 +- chalk/ui/squeezedcombobox.h | 2 +- .../chalk/gmagick/kis_image_magick_converter.cc | 8 +- filters/chalk/jpeg/iccjpeg.c | 2 +- filters/chalk/magick/kis_image_magick_converter.cc | 8 +- filters/chalk/xcf/xcf/xcf-load.cc | 2 +- filters/karbon/ai/aiparserbase.cc | 16 +-- .../karbon/applixgraphics/applixgraphicimport.cc | 4 +- filters/karbon/eps/pscommentlexer.cc | 4 +- filters/karbon/oodraw/oodrawimport.cc | 8 +- filters/karbon/svg/svgimport.cc | 42 +++---- filters/karbon/xaml/xamlimport.cc | 42 +++---- filters/kpresenter/magicpoint/mgp2kpr.py | 22 ++-- filters/kpresenter/ooimpress/ooimpressexport.cc | 2 +- filters/kpresenter/ooimpress/ooimpressimport.cc | 10 +- filters/kpresenter/powerpoint/libppt/objects.cpp | 2 +- filters/kpresenter/powerpoint/libppt/ustring.cpp | 2 +- filters/kpresenter/powerpoint/libppt/ustring.h | 2 +- filters/kspread/applixspread/applixspreadimport.cc | 36 +++--- filters/kspread/csv/csvdialog.cpp | 2 +- filters/kspread/csv/csvexport.cc | 12 +- filters/kspread/csv/csvimport.cc | 4 +- filters/kspread/excel/import/excelimport.cc | 2 +- filters/kspread/excel/sidewinder/excel.cpp | 20 ++-- filters/kspread/excel/sidewinder/excel.h | 2 +- filters/kspread/excel/sidewinder/ustring.cpp | 2 +- filters/kspread/excel/sidewinder/ustring.h | 2 +- filters/kspread/gnumeric/gnumericexport.cc | 18 +-- filters/kspread/gnumeric/gnumericimport.cc | 40 +++---- filters/kspread/html/htmlexport.cc | 10 +- filters/kspread/opencalc/opencalcexport.cc | 4 +- filters/kspread/opencalc/opencalcimport.cc | 98 ++++++++--------- filters/kspread/qpro/libqpro/src/formula.cc | 4 +- filters/kword/abiword/ImportHelpers.cc | 4 +- filters/kword/abiword/ImportStyle.cc | 6 +- filters/kword/abiword/abiwordexport.cc | 14 +-- filters/kword/abiword/abiwordimport.cc | 8 +- filters/kword/applixword/applixwordimport.cc | 20 ++-- filters/kword/ascii/asciiexport.cc | 4 +- filters/kword/ascii/asciiimport.cc | 14 +-- filters/kword/hancomword/hancomwordimport.cpp | 2 +- filters/kword/html/export/ExportCss.cc | 2 +- filters/kword/html/export/ExportDocStruct.cc | 4 +- filters/kword/html/export/ExportFilter.cc | 8 +- filters/kword/kword1.3/import/kword13document.cpp | 4 +- filters/kword/kword1.3/import/kword13formatone.cpp | 2 +- filters/kword/kword1.3/import/kword13layout.cpp | 2 +- filters/kword/kword1.3/import/kword13parser.cpp | 2 +- filters/kword/kword1.3/import/kword13picture.cpp | 2 +- filters/kword/latex/export/pixmapFrame.cc | 4 +- filters/kword/latex/export/textzone.cc | 6 +- filters/kword/latex/import/parser/command.cc | 8 +- filters/kword/latex/import/parser/env.cc | 2 +- filters/kword/libexport/KWEFKWordLeader.cc | 2 +- filters/kword/libexport/TagProcessing.h | 4 +- filters/kword/msword/texthandler.cpp | 4 +- filters/kword/mswrite/mswriteexport.cc | 8 +- filters/kword/mswrite/mswriteimport.cc | 10 +- filters/kword/mswrite/structures_private.cpp | 2 +- filters/kword/oowriter/ExportFilter.cc | 22 ++-- filters/kword/oowriter/oowriterimport.cc | 10 +- filters/kword/palmdoc/palmdocimport.cc | 12 +- filters/kword/pdf/misc.cpp | 20 ++-- filters/kword/pdf/xpdf/goo/GHash.cc | 12 +- filters/kword/pdf/xpdf/goo/GHash.h | 4 +- filters/kword/pdf/xpdf/xpdf/CMap.cc | 2 +- filters/kword/pdf/xpdf/xpdf/CMap.h | 2 +- filters/kword/pdf/xpdf/xpdf/Dict.cc | 8 +- filters/kword/pdf/xpdf/xpdf/Dict.h | 2 +- filters/kword/pdf/xpdf/xpdf/JBIG2Stream.cc | 10 +- filters/kword/pdf/xpdf/xpdf/Link.cc | 2 +- filters/kword/pdf/xpdf/xpdf/Link.h | 2 +- filters/kword/pdf/xpdf/xpdf/PDFDoc.h | 2 +- filters/kword/pdf/xpdf/xpdf/XPDFCore.cc | 4 +- filters/kword/pdf/xpdf/xpdf/XPDFCore.h | 4 +- filters/kword/pdf/xpdf/xpdf/XPDFViewer.cc | 10 +- filters/kword/pdf/xpdf/xpdf/XPDFViewer.h | 2 +- filters/kword/rtf/export/ExportFilter.cc | 56 +++++----- filters/kword/rtf/import/rtfimport.cpp | 24 ++-- filters/kword/rtf/import/rtfimport_dom.cpp | 12 +- filters/kword/wml/wmlimport.cc | 6 +- filters/kword/wordperfect/import/kwordfilter.cpp | 10 +- filters/olefilters/lib/klaola.cc | 2 +- filters/olefilters/lib/klaola.h | 2 +- filters/olefilters/olefilter.cc | 28 ++--- filters/olefilters/powerpoint97/powerpoint.cc | 4 +- filters/olefilters/powerpoint97/pptxml.cc | 10 +- filters/xsltfilter/export/xsltexportdia.cc | 4 +- filters/xsltfilter/import/xsltimportdia.cc | 4 +- karbon/commands/vcommand.cc | 10 +- karbon/commands/vreplacingcmd.h | 2 +- karbon/core/vcomposite.cc | 4 +- karbon/core/vdocument.cc | 14 +-- karbon/core/vgroup.cc | 2 +- karbon/core/vlayer.cc | 2 +- karbon/core/vpath.cc | 2 +- karbon/core/vselection.cc | 4 +- karbon/core/vtext.cc | 2 +- karbon/dockers/vdocumentdocker.cc | 8 +- karbon/plugins/roundcorners/roundcornersplugin.cc | 2 +- karbon/render/vkopainter.cc | 12 +- karbon/shapes/vpolygon.cc | 2 +- karbon/shapes/vpolyline.cc | 2 +- karbon/tools/vcurvefit.cc | 2 +- karbon/tools/vgradienttool.cc | 8 +- karbon/tools/vpatterntool.cc | 6 +- karbon/tools/vselectnodestool.cc | 12 +- karbon/tools/vselecttool.cc | 6 +- karbon/tools/vtexttool.cc | 4 +- karbon/visitors/vselectnodes.cc | 6 +- karbon/visitors/vselectobjects.cc | 14 +-- karbon/vtoolcontroller.cc | 2 +- karbon/widgets/vgradientwidget.cc | 6 +- kchart/csvimportdialog.cc | 2 +- kchart/kchartBackgroundPixmapConfigPage.cc | 20 ++-- kchart/kchartWizardSelectChartTypePage.cc | 2 +- kchart/kdchart/KDChart.cpp | 2 +- kchart/kdchart/KDChart.h | 2 +- kchart/kdchart/KDChartAxesPainter.cpp | 14 +-- kchart/kdchart/KDChartAxisParams.cpp | 10 +- kchart/kdchart/KDChartBWPainter.cpp | 4 +- kchart/kdchart/KDChartDataIntern.h | 4 +- kchart/kdchart/KDChartDataRegion.h | 10 +- kchart/kdchart/KDChartLinesPainter.cpp | 8 +- kchart/kdchart/KDChartPainter.cpp | 8 +- kchart/kdchart/KDChartParams.cpp | 38 +++---- kchart/kdchart/KDChartParams.h | 8 +- kchart/kdchart/KDChartParams_io.cpp | 2 +- kchart/kdchart/KDChartPiePainter.cpp | 10 +- kchart/kdchart/KDChartRingPainter.cpp | 4 +- kchart/kdchart/KDChartWidget.cpp | 4 +- kchart/kdchart/KDDrawText.cpp | 6 +- kchart/kdchart/LICENSE | 4 +- kdgantt/KDGanttMinimizeSplitter.cpp | 2 +- kdgantt/KDGanttView.cpp | 2 +- kdgantt/KDGanttViewItem.cpp | 10 +- kdgantt/KDGanttViewItem.h | 2 +- kdgantt/KDGanttViewTaskLink.cpp | 6 +- kdgantt/KDGanttViewTaskLinkGroup.cpp | 10 +- kdgantt/KDGanttViewTaskLinkGroup.h | 2 +- kexi/3rdparty/kexisql/src/btree.c | 4 +- kexi/3rdparty/kexisql/src/btree_rb.c | 2 +- kexi/3rdparty/kexisql/src/encode.c | 6 +- kexi/3rdparty/kexisql/src/insert.c | 2 +- kexi/3rdparty/kexisql/src/os.c | 2 +- kexi/3rdparty/kexisql/src/pager.c | 2 +- kexi/3rdparty/kexisql/src/select.c | 2 +- kexi/3rdparty/kexisql/src/sqlite.h | 2 +- kexi/3rdparty/kexisql/src/tclsqlite.c | 2 +- kexi/3rdparty/kexisql/src/vdbe.c | 6 +- kexi/3rdparty/kexisql/src/vdbeInt.h | 2 +- kexi/3rdparty/kexisql/src/where.c | 2 +- kexi/3rdparty/kexisql/tool/lemon.c | 30 ++--- kexi/3rdparty/kexisql/tool/lempar.c | 2 +- kexi/3rdparty/kexisql3/src/btree.c | 4 +- kexi/3rdparty/kexisql3/src/build.c | 2 +- kexi/3rdparty/kexisql3/src/insert.c | 2 +- kexi/3rdparty/kexisql3/src/os_unix.c | 2 +- kexi/3rdparty/kexisql3/src/pager.c | 2 +- kexi/3rdparty/kexisql3/src/select.c | 2 +- kexi/3rdparty/kexisql3/src/tclsqlite.c | 8 +- kexi/3rdparty/kexisql3/src/vdbe.c | 4 +- kexi/3rdparty/kexisql3/src/vdbeInt.h | 2 +- kexi/3rdparty/kexisql3/src/vdbeaux.c | 2 +- kexi/3rdparty/kexisql3/src/where.c | 2 +- kexi/3rdparty/kolibs/koGlobal.cc | 8 +- kexi/3rdparty/kolibs/koUnit.cc | 2 +- kexi/core/kexi.cpp | 2 +- kexi/core/kexiactioncategories.cpp | 10 +- kexi/core/kexiactionproxy.cpp | 2 +- kexi/core/kexiblobbuffer.cpp | 10 +- kexi/core/kexidbconnectionset.cpp | 8 +- kexi/core/kexipartmanager.cpp | 6 +- kexi/core/kexiproject.cpp | 2 +- kexi/core/kexisearchandreplaceiface.h | 6 +- kexi/core/kexisharedactionhost.cpp | 2 +- kexi/data/kde34compat/sqlite.magic | 2 +- .../handbook/html.tmp/05_04_00_form_designing.html | 2 +- kexi/formeditor/commands.cpp | 2 +- kexi/formeditor/container.cpp | 8 +- kexi/formeditor/factories/containerfactory.cpp | 2 +- kexi/formeditor/factories/stdwidgetfactory.cpp | 2 +- kexi/formeditor/form.cpp | 6 +- kexi/formeditor/formIO.cpp | 22 ++-- kexi/formeditor/formmanager.cpp | 12 +- kexi/formeditor/objecttree.cpp | 6 +- kexi/formeditor/objecttreeview.cpp | 2 +- kexi/formeditor/scripting/scriptIO.h | 2 +- kexi/formeditor/utils.cpp | 2 +- kexi/formeditor/widgetfactory.cpp | 12 +- kexi/formeditor/widgetlibrary.cpp | 32 +++--- kexi/formeditor/widgetpropertyset.cpp | 60 +++++----- kexi/formeditor/widgetpropertyset.h | 2 +- .../widgetwithsubpropertiesinterface.cpp | 12 +- kexi/kexidb/alter.cpp | 12 +- kexi/kexidb/connection.cpp | 18 +-- kexi/kexidb/connection.h | 4 +- kexi/kexidb/driver.cpp | 14 +-- kexi/kexidb/drivermanager.cpp | 14 +-- kexi/kexidb/drivers/mySQL/mySQL.pro | 4 +- kexi/kexidb/drivers/mySQL/mysqlconnection_p.cpp | 2 +- kexi/kexidb/drivers/mySQL/mysqldriver.cpp | 10 +- kexi/kexidb/drivers/pqxx/pqxxdriver.cpp | 4 +- kexi/kexidb/drivers/sqlite/sqliteconnection.cpp | 4 +- kexi/kexidb/drivers/sqlite/sqliteconnection.h | 2 +- kexi/kexidb/drivers/sqlite/sqlitedriver.cpp | 8 +- kexi/kexidb/expression.cpp | 4 +- kexi/kexidb/field.cpp | 6 +- kexi/kexidb/fieldlist.h | 4 +- kexi/kexidb/indexschema.cpp | 12 +- kexi/kexidb/parser/parser.cpp | 2 +- kexi/kexidb/parser/parser_p.cpp | 4 +- kexi/kexidb/parser/sqlparser.cpp | 2 +- kexi/kexidb/parser/sqlparser.h | 2 +- kexi/kexidb/queryschema.cpp | 28 ++--- kexi/kexidb/queryschema.h | 2 +- kexi/kexidb/relationship.cpp | 2 +- kexi/kexidb/roweditbuffer.cpp | 6 +- kexi/kexidb/roweditbuffer.h | 2 +- kexi/kexidb/tableschema.cpp | 6 +- kexi/kexidb/utils.cpp | 44 ++++---- kexi/kexiutils/identifier.cpp | 8 +- kexi/kexiutils/utils.cpp | 2 +- kexi/main/kexifinddialog.cpp | 6 +- kexi/main/kexifinddialog.h | 6 +- kexi/main/kexifinddialogbase.ui | 2 +- kexi/main/keximainwindowimpl.cpp | 28 ++--- kexi/main/keximainwindowimpl_p.h | 18 +-- kexi/main/startup/KexiStartup.cpp | 2 +- kexi/main/startup/KexiStartupFileDialog.cpp | 12 +- kexi/main/startup/KexiStartupFileDialog_win.cpp | 12 +- kexi/migration/importwizard.cpp | 10 +- kexi/migration/keximigrate.cpp | 10 +- kexi/migration/migratemanager.cpp | 10 +- kexi/migration/mysql/mysqlmigrate.cpp | 4 +- kexi/plugins/forms/kexiactionselectiondialog.cpp | 4 +- kexi/plugins/forms/kexidataprovider.cpp | 10 +- kexi/plugins/forms/kexidatasourcepage.cpp | 12 +- kexi/plugins/forms/kexiformeventhandler.cpp | 2 +- kexi/plugins/forms/kexiformmanager.cpp | 14 +-- kexi/plugins/forms/kexiformpart.cpp | 2 +- kexi/plugins/forms/kexiformscrollview.cpp | 4 +- kexi/plugins/forms/kexiformscrollview.h | 2 +- kexi/plugins/forms/kexiformview.cpp | 12 +- kexi/plugins/forms/widgets/kexidbcombobox.cpp | 12 +- kexi/plugins/forms/widgets/kexidbform.cpp | 4 +- kexi/plugins/forms/widgets/kexidblabel.cpp | 2 +- kexi/plugins/forms/widgets/kexidbsubform.cpp | 2 +- .../importexport/csv/kexicsv_importexportpart.cpp | 2 +- kexi/plugins/importexport/csv/kexicsvexport.cpp | 12 +- .../importexport/csv/kexicsvexportwizard.cpp | 6 +- .../importexport/csv/kexicsvimportdialog.cpp | 8 +- .../plugins/macros/kexiactions/datatableaction.cpp | 2 +- .../macros/kexiactions/objectnamevariable.h | 2 +- kexi/plugins/macros/kexiactions/openaction.cpp | 2 +- .../macros/kexipart/keximacrodesignview.cpp | 6 +- kexi/plugins/macros/lib/action.cpp | 10 +- kexi/plugins/macros/lib/context.cpp | 8 +- kexi/plugins/macros/lib/macroitem.cpp | 8 +- kexi/plugins/macros/lib/manager.cpp | 16 +-- kexi/plugins/macros/lib/manager.h | 2 +- kexi/plugins/macros/lib/metamethod.cpp | 12 +- kexi/plugins/macros/tests/xmlhandlertests.cpp | 6 +- .../plugins/queries/kexiquerydesignerguieditor.cpp | 18 +-- .../queries/kexiquerydesignersqlhistory.cpp | 16 +-- kexi/plugins/scripting/kexidb.doxyfile | 2 +- kexi/plugins/scripting/kexidb/kexidbcursor.cpp | 4 +- kexi/plugins/scripting/kexidb/kexidbschema.cpp | 6 +- .../kexiscripting/kexiscriptdesignview.cpp | 2 +- .../scripting/scripts/copycenter/CopyCenter.py | 4 +- .../scripting/scripts/exportxhtml/ExportXHTML.py | 2 +- kexi/plugins/tables/kexitabledesignerview.cpp | 12 +- kexi/tests/gui/finddialog/kexifinddialog.cpp | 2 +- kexi/tests/gui/finddialog/kexifinddialog.h | 4 +- kexi/tests/gui/finddialog/kexifinddialogbase.ui | 2 +- kexi/tests/newapi/main.cpp | 4 +- kexi/tools/delete_column/kexi_delete_column | 2 +- kexi/widget/kexibrowser.cpp | 4 +- kexi/widget/kexidataawareview.cpp | 16 +-- kexi/widget/kexidataawareview.h | 4 +- kexi/widget/kexidatasourcecombobox.cpp | 2 +- kexi/widget/kexidbdrivercombobox.cpp | 4 +- kexi/widget/kexieditor.cpp | 2 +- kexi/widget/kexifieldcombobox.cpp | 6 +- kexi/widget/kexipropertyeditorview.cpp | 8 +- kexi/widget/kexiscrollview.cpp | 10 +- kexi/widget/pixmapcollection.cpp | 14 +-- kexi/widget/pixmapcollection.h | 2 +- kexi/widget/relations/kexirelationview.cpp | 4 +- .../relations/kexirelationviewconnection.cpp | 2 +- kexi/widget/relations/kexirelationviewtable.cpp | 2 +- kexi/widget/relations/kexirelationwidget.cpp | 2 +- kexi/widget/tableview/kexicelleditorfactory.cpp | 2 +- kexi/widget/tableview/kexicomboboxtableedit.cpp | 2 +- kexi/widget/tableview/kexidataawareobjectiface.cpp | 16 +-- kexi/widget/tableview/kexidataawareobjectiface.h | 8 +- kexi/widget/tableview/kexidataawarepropertyset.cpp | 4 +- kexi/widget/tableview/kexidatetableedit.cpp | 2 +- kexi/widget/tableview/kexiinputtableedit.cpp | 2 +- kexi/widget/tableview/kexitableedit.h | 4 +- kexi/widget/tableview/kexitableview.cpp | 4 +- kexi/widget/tableview/kexitableviewdata.h | 2 +- kexi/widget/tableview/kexitextformatter.cpp | 2 +- kexi/widget/utils/kexicontextmenuutils.cpp | 2 +- kexi/widget/utils/kexidatetimeformatter.cpp | 80 +++++++------- kexi/widget/utils/kexigradientwidget.cpp | 12 +- kformula/kformula_doc.cc | 2 +- kivio/LICENSE | 4 +- kivio/kivio.spec | 6 +- kivio/kiviopart/kivio_doc.cpp | 12 +- kivio/kiviopart/kivio_map.cpp | 8 +- kivio/kiviopart/kivio_page.cpp | 14 +-- kivio/kiviopart/kivio_page.h | 2 +- kivio/kiviopart/kivio_view.cpp | 2 +- kivio/kiviopart/kivio_zoomaction.cpp | 6 +- kivio/kiviopart/kiviosdk/kivio_common.cpp | 4 +- .../kiviosdk/kivio_dia_stencil_spawner.cpp | 8 +- kivio/kiviopart/kiviosdk/kivio_group_stencil.cpp | 2 +- kivio/kiviopart/kiviosdk/kivio_layer.cpp | 10 +- kivio/kiviopart/kiviosdk/kivio_stencil.cpp | 4 +- .../kiviosdk/kivio_stencil_spawner_set.cpp | 14 +-- .../kiviopart/kiviosdk/kivio_stencil_spawner_set.h | 2 +- .../kiviopart/kiviosdk/kiviopolylineconnector.cpp | 2 +- kivio/kiviopart/kiviostencilsetaction.cpp | 2 +- kivio/kiviopart/stencilbarbutton.cpp | 4 +- kivio/kiviopart/stencilbardockmanager.cpp | 16 +-- kivio/kiviopart/ui/export_page_dialog_base.ui | 2 +- kivio/kiviopart/ui/kivio_birdeye_panel.cpp | 10 +- kivio/kiviopart/ui/kivio_layer_panel.cpp | 4 +- koshell/koshell_shell.cc | 2 +- kplato/kptaccount.cc | 8 +- kplato/kptaccountspanel.cc | 2 +- kplato/kptcalendar.h | 6 +- kplato/kptcanvasitem.cc | 48 ++++---- kplato/kptcanvasitem.h | 12 +- kplato/kptcommand.cc | 4 +- kplato/kptdatetable.cc | 22 ++-- kplato/kptdoublelistviewbase.cc | 4 +- kplato/kptdurationwidget.ui.h | 4 +- kplato/kpteffortcostmap.h | 6 +- kplato/kptmap.h | 18 +-- kplato/kptnode.cc | 32 +++--- kplato/kptpertcanvas.cc | 6 +- kplato/kptproject.cc | 2 +- kplato/kptproject.h | 10 +- kplato/kptreportview.cc | 16 +-- kplato/kptrequestresourcespanel.cc | 2 +- kplato/kptresource.cc | 14 +-- kplato/kptresource.h | 8 +- kplato/kptresourcespanel.cc | 4 +- kplato/kptresourceview.cc | 8 +- kplato/kptschedule.cc | 4 +- kplato/kpttask.cc | 2 +- kplato/kptwbsdefinition.cc | 2 +- kpresenter/KPrAutoformObject.cpp | 6 +- kpresenter/KPrBackground.cpp | 14 +-- kpresenter/KPrCanvas.cpp | 32 +++--- kpresenter/KPrCommand.cpp | 4 +- kpresenter/KPrConfig.cpp | 8 +- kpresenter/KPrCustomSlideShowDia.cpp | 2 +- kpresenter/KPrDocument.cpp | 60 +++++----- kpresenter/KPrDocument.h | 2 +- kpresenter/KPrEffectHandler.cpp | 4 +- kpresenter/KPrFindReplace.h | 4 +- kpresenter/KPrGotoPage.cpp | 2 +- kpresenter/KPrImportStyleDia.cpp | 2 +- kpresenter/KPrNoteBar.cpp | 2 +- kpresenter/KPrObject.cpp | 6 +- kpresenter/KPrObject.h | 6 +- kpresenter/KPrPage.cpp | 28 ++--- kpresenter/KPrPixmapObject.cpp | 8 +- kpresenter/KPrSideBar.cpp | 22 ++-- kpresenter/KPrTextObject.cpp | 6 +- kpresenter/KPrView.cpp | 36 +++--- kpresenter/KPrWebPresentation.cpp | 4 +- kpresenter/autoformEdit/ATFInterpreter.cpp | 2 +- kspread/Doxyfile | 2 +- kspread/KSpreadViewIface.cc | 8 +- kspread/KSpreadViewIface.h | 4 +- kspread/OASIS.txt | 2 +- kspread/dependencies.cc | 22 ++-- kspread/dialogs/kspread_dlg_cons.cc | 8 +- kspread/dialogs/kspread_dlg_database.cc | 24 ++-- kspread/dialogs/kspread_dlg_formula.cc | 18 +-- kspread/dialogs/kspread_dlg_layout.cc | 20 ++-- kspread/dialogs/kspread_dlg_paperlayout.cc | 8 +- kspread/dialogs/kspread_dlg_reference.cc | 2 +- kspread/dialogs/kspread_dlg_sort.cc | 2 +- kspread/dialogs/kspread_dlg_styles.cc | 4 +- kspread/dialogs/kspread_dlg_subtotal.cc | 2 +- kspread/dialogs/link.cc | 10 +- kspread/formula.cc | 2 +- kspread/formula.h | 2 +- kspread/functions.cc | 6 +- kspread/ksploadinginfo.h | 2 +- kspread/kspread_autofill.cc | 74 ++++++------- kspread/kspread_canvas.cc | 60 +++++----- kspread/kspread_cell.cc | 122 ++++++++++----------- kspread/kspread_cell.h | 2 +- kspread/kspread_condition.cc | 18 +-- kspread/kspread_doc.cc | 26 ++--- kspread/kspread_editors.cc | 12 +- kspread/kspread_format.cc | 10 +- kspread/kspread_functions_engineering.cc | 70 ++++++------ kspread/kspread_functions_math.cc | 2 +- kspread/kspread_functions_text.cc | 30 ++--- kspread/kspread_genvalidationstyle.cc | 4 +- kspread/kspread_map.cc | 8 +- kspread/kspread_numformat.cc | 18 +-- kspread/kspread_object.cc | 10 +- kspread/kspread_sheet.cc | 66 +++++------ kspread/kspread_sheet.h | 4 +- kspread/kspread_sheetprint.cc | 62 +++++------ kspread/kspread_sheetprint.h | 4 +- kspread/kspread_style.cc | 24 ++-- kspread/kspread_style_manager.cc | 8 +- kspread/kspread_undo.cc | 4 +- kspread/kspread_util.cc | 28 ++--- kspread/kspread_util.h | 2 +- kspread/kspread_view.cc | 120 ++++++++++---------- kspread/kspread_view.h | 6 +- kspread/ksprsavinginfo.h | 2 +- kspread/manipulator.cc | 20 ++-- kspread/manipulator_data.cc | 2 +- kspread/plugins/calculator/kcalc_core.cpp | 2 +- .../scripting/scripts/scripteditor/ScriptEditor.py | 2 +- kspread/region.cc | 34 +++--- kspread/region.h | 14 +-- kspread/selection.cc | 4 +- kspread/tests/generate-openformula-tests | 2 +- kspread/tests/inspector.cc | 2 +- kspread/tests/testrunner.cc | 2 +- kspread/valueconverter.cc | 4 +- kspread/valueformatter.cc | 12 +- kspread/valueparser.cc | 26 ++--- kugar/kudesigner_lib/band.cpp | 2 +- kugar/kudesigner_lib/reportitem.cpp | 22 ++-- kugar/kudesigner_lib/structurewidget.cpp | 6 +- kugar/kudesigner_lib/view.cpp | 10 +- kugar/lib/inputmask.cpp | 4 +- kugar/lib/mfieldobject.cpp | 4 +- kugar/lib/mreportengine.cpp | 30 ++--- kugar/part/kugar_part.cpp | 2 +- kword/DESIGN | 2 +- kword/HACKING | 2 +- kword/KWCanvas.cpp | 10 +- kword/KWCommand.cpp | 6 +- kword/KWConfig.cpp | 8 +- kword/KWCreateBookmarkDia.cpp | 2 +- kword/KWDocStruct.cpp | 22 ++-- kword/KWDocument.cpp | 42 +++---- kword/KWDocument.h | 2 +- kword/KWEditPersonnalExpression.cpp | 20 ++-- kword/KWFindReplace.h | 4 +- kword/KWFootNoteDia.cpp | 2 +- kword/KWFrameDia.cpp | 12 +- kword/KWFrameList.cpp | 2 +- kword/KWFrameSet.cpp | 18 +-- kword/KWFrameStyle.cpp | 2 +- kword/KWFrameStyleManager.cpp | 6 +- kword/KWFrameView.cpp | 2 +- kword/KWFrameView.h | 4 +- kword/KWFrameViewManager.cpp | 2 +- kword/KWImportStyleDia.cpp | 8 +- kword/KWOasisLoader.cpp | 2 +- kword/KWPageManager.cpp | 2 +- kword/KWPictureFrameSet.cpp | 2 +- kword/KWTableFrameSet.cpp | 2 +- kword/KWTableFrameSet.h | 2 +- kword/KWTableStyle.cpp | 2 +- kword/KWTableStyleManager.cpp | 12 +- kword/KWTableTemplateSelector.cpp | 2 +- kword/KWTextDocument.cpp | 2 +- kword/KWTextFrameSet.cpp | 20 ++-- kword/KWTextFrameSet.h | 2 +- kword/KWView.cpp | 72 ++++++------ kword/mailmerge/kabc/KWMailMergeKABCConfig.cpp | 26 ++--- kword/mailmerge/sql/KWQtSqlEasyFilter.cpp | 2 +- .../mailmerge/sql/KWQtSqlPowerSerialDataSource.cpp | 2 +- kword/mailmerge/sql/KWQtSqlSerialDataSource.cpp | 2 +- kword/tests/FrameViewTester.cpp | 6 +- lib/kformula/basicelement.cc | 18 +-- lib/kformula/fontstyle.cc | 6 +- lib/kformula/formulacursor.cc | 2 +- lib/kformula/formulacursor.h | 2 +- lib/kformula/formulaelement.cc | 2 +- lib/kformula/kformulacommand.cc | 4 +- lib/kformula/kformulacommand.h | 2 +- lib/kformula/kformulaconfigpage.cc | 10 +- lib/kformula/kformuladocument.cc | 6 +- lib/kformula/kformulamathmlread.cc | 2 +- lib/kformula/matrixelement.cc | 26 ++--- lib/kformula/oasiscreationstrategy.cc | 2 +- lib/kformula/paddedelement.cc | 26 ++--- lib/kformula/prototype/gensymbolfontmap.py | 2 +- lib/kformula/prototype/unicode.py | 2 +- lib/kformula/scripts/bycodes.py | 10 +- lib/kformula/scripts/bynames.py | 8 +- lib/kformula/scripts/oper-dict.py | 8 +- lib/kformula/sequenceelement.cc | 20 ++-- lib/kformula/sequenceelement.h | 2 +- lib/kformula/sequenceparser.cc | 2 +- lib/kformula/symboltable.cc | 6 +- lib/kformula/symboltable.h | 2 +- lib/kofficecore/KoApplication.cpp | 2 +- lib/kofficecore/KoChild.cpp | 22 ++-- lib/kofficecore/KoChild.h | 2 +- lib/kofficecore/KoDetailsPane.cpp | 2 +- lib/kofficecore/KoDocument.cpp | 12 +- lib/kofficecore/KoDocumentChild.cpp | 4 +- lib/kofficecore/KoDocumentInfo.cpp | 2 +- lib/kofficecore/KoDocumentInfoDlg.cpp | 2 +- lib/kofficecore/KoFilter.cpp | 4 +- lib/kofficecore/KoFilterManager.cpp | 12 +- lib/kofficecore/KoFrame.cpp | 24 ++-- lib/kofficecore/KoGenStyles.cpp | 16 +-- lib/kofficecore/KoGenStyles.h | 4 +- lib/kofficecore/KoGlobal.cpp | 8 +- lib/kofficecore/KoMainWindow.cpp | 18 +-- lib/kofficecore/KoMainWindow.h | 2 +- lib/kofficecore/KoOasisStore.cpp | 2 +- lib/kofficecore/KoOasisStyles.cpp | 6 +- lib/kofficecore/KoPictureCollection.cpp | 6 +- lib/kofficecore/KoPictureShared.cpp | 4 +- lib/kofficecore/KoQueryTrader.h | 6 +- lib/kofficecore/KoRect.cpp | 6 +- lib/kofficecore/KoRect.h | 6 +- lib/kofficecore/KoSpeaker.cpp | 26 ++--- lib/kofficecore/KoStyleStack.h | 4 +- lib/kofficecore/KoTemplates.cpp | 8 +- lib/kofficecore/KoTemplates.h | 4 +- lib/kofficecore/KoUnit.cpp | 2 +- lib/kofficecore/KoView.cpp | 10 +- lib/kofficecore/KoXmlReader.cpp | 12 +- lib/kofficecore/THOUGHTS | 2 +- lib/kofficecore/kkbdaccessextensions.cpp | 6 +- lib/kofficecore/tests/filter_graph.cpp | 6 +- lib/kofficeui/KoCommandHistory.cpp | 18 +-- lib/kofficeui/KoContextCelp.cpp | 2 +- lib/kofficeui/KoGuides.cpp | 10 +- lib/kofficeui/KoGuides.h | 2 +- lib/kofficeui/KoInsertLink.cpp | 16 +-- lib/kofficeui/KoPartSelectAction.cpp | 2 +- lib/kofficeui/KoRuler.cpp | 2 +- lib/kofficeui/KoTabBar.cpp | 12 +- lib/kofficeui/KoTemplateChooseDia.cpp | 2 +- lib/kofficeui/KoTemplateCreateDia.cpp | 14 +-- lib/kofficeui/KoToolBox.cpp | 2 +- lib/kofficeui/KoTooluButton.cpp | 10 +- lib/kofficeui/KoZoomAction.cpp | 6 +- lib/kofficeui/tktoolbarbutton.cpp | 2 +- lib/kopainter/koIconChooser.cc | 4 +- lib/kopainter/kogradientmanager.cc | 10 +- lib/kopainter/svgpathparser.cc | 2 +- lib/kopalette/kopalettemanager.cc | 70 ++++++------ lib/kopalette/kotabpalette.cc | 14 +-- lib/kopalette/kotoolboxpalette.cc | 10 +- lib/koproperty/editor.cpp | 4 +- lib/koproperty/editoritem.cpp | 2 +- lib/koproperty/editors/combobox.cpp | 6 +- lib/koproperty/editors/pixmapedit.cpp | 2 +- lib/koproperty/editors/spinbox.cpp | 2 +- lib/koproperty/factory.cpp | 14 +-- lib/koproperty/property.cpp | 6 +- lib/koproperty/set.cpp | 22 ++-- lib/koproperty/set.h | 6 +- lib/kotext/DateFormatWidget.cpp | 2 +- lib/kotext/KFontDialog_local.cpp | 30 ++--- lib/kotext/KoAutoFormat.cpp | 116 ++++++++++---------- lib/kotext/KoAutoFormat.h | 14 +-- lib/kotext/KoAutoFormatDia.cpp | 122 ++++++++++----------- lib/kotext/KoAutoFormatDia.h | 6 +- lib/kotext/KoCompletionDia.cpp | 2 +- lib/kotext/KoComplexText.cpp | 4 +- lib/kotext/KoCreateStyleDia.cpp | 2 +- lib/kotext/KoCustomVariablesDia.cpp | 2 +- lib/kotext/KoLanguageTab.cpp | 2 +- lib/kotext/KoParagDia.cpp | 12 +- lib/kotext/KoParagLayout.cpp | 2 +- lib/kotext/KoParagStyle.cpp | 2 +- lib/kotext/KoRichText.cpp | 10 +- lib/kotext/KoSearchDia.cpp | 90 +++++++-------- lib/kotext/KoSearchDia.h | 26 ++--- lib/kotext/KoStyleManager.cpp | 8 +- lib/kotext/KoTextCustomItem.cpp | 2 +- lib/kotext/KoTextDocument.cpp | 42 +++---- lib/kotext/KoTextDocument.h | 4 +- lib/kotext/KoTextFormat.cpp | 10 +- lib/kotext/KoTextIterator.cpp | 4 +- lib/kotext/KoTextObject.cpp | 36 +++--- lib/kotext/KoTextObject.h | 2 +- lib/kotext/KoTextParag.cpp | 20 ++-- lib/kotext/KoTextView.cpp | 8 +- lib/kotext/KoUserStyleCollection.h | 2 +- lib/kotext/KoVariable.cpp | 18 +-- lib/kotext/TimeFormatWidget.cpp | 2 +- lib/kotext/kohyphen/hyphdicts/hyph_da.dic | 2 +- lib/kotext/kohyphen/hyphdicts/hyph_hu.dic | 2 +- lib/kotext/kohyphen/hyphdicts/hyph_nl.dic | 2 +- lib/kotext/kohyphen/kohyphen.cpp | 18 +-- lib/kotext/kohyphen/kohyphentest.cpp | 2 +- lib/kross/api/callable.cpp | 4 +- lib/kross/api/event.h | 16 +-- lib/kross/api/eventsignal.cpp | 2 +- lib/kross/api/eventslot.cpp | 6 +- lib/kross/api/interpreter.cpp | 2 +- lib/kross/api/qtobject.cpp | 16 +-- lib/kross/main/manager.cpp | 26 ++--- lib/kross/main/scriptaction.h | 2 +- lib/kross/main/scriptcontainer.cpp | 4 +- lib/kross/main/scriptguiclient.cpp | 12 +- lib/kross/python/pythonextension.cpp | 2 +- lib/kross/python/pythonmodule.cpp | 2 +- lib/kross/python/pythonobject.cpp | 2 +- lib/kross/python/pythonscript.cpp | 4 +- lib/kross/python/scripts/gui.py | 2 +- lib/kross/ruby/rubyextension.cpp | 2 +- lib/kross/ruby/rubyinterpreter.cpp | 2 +- lib/store/KoDirectoryStore.cpp | 4 +- lib/store/KoStore.cpp | 8 +- lib/store/KoXmlWriter.cpp | 2 +- lib/store/tests/xmlwritertest.h | 4 +- tools/kfile-plugins/abiword/kfile_abiword.cpp | 2 +- tools/kfile-plugins/ooo/kfile_ooo.cpp | 4 +- tools/thesaurus/main.cc | 30 ++--- tools/thesaurus/main.h | 2 +- tools/thesaurus/thesaurus.txt | 78 ++++++------- 686 files changed, 3211 insertions(+), 3211 deletions(-) diff --git a/chalk/chalkcolor/kis_abstract_colorspace.cc b/chalk/chalkcolor/kis_abstract_colorspace.cc index 66b8e1ad..f532f18e 100644 --- a/chalk/chalkcolor/kis_abstract_colorspace.cc +++ b/chalk/chalkcolor/kis_abstract_colorspace.cc @@ -232,7 +232,7 @@ bool KisAbstractColorSpace::convertPixelsTo(const TQ_UINT8 * src, if (!tf && m_profile && dstColorSpace->getProfile()) { - if (!m_transforms.tqcontains(dstColorSpace)) { + if (!m_transforms.contains(dstColorSpace)) { tf = createTransform(dstColorSpace, m_profile, dstColorSpace->getProfile(), diff --git a/chalk/chalkcolor/kis_colorspace_factory_registry.cc b/chalk/chalkcolor/kis_colorspace_factory_registry.cc index 6758f7d5..424e346d 100644 --- a/chalk/chalkcolor/kis_colorspace_factory_registry.cc +++ b/chalk/chalkcolor/kis_colorspace_factory_registry.cc @@ -100,7 +100,7 @@ KisColorSpaceFactoryRegistry::~KisColorSpaceFactoryRegistry() KisProfile * KisColorSpaceFactoryRegistry::getProfileByName(const TQString & name) { - if (m_profileMap.tqfind(name) == m_profileMap.end()) { + if (m_profileMap.find(name) == m_profileMap.end()) { return 0; } @@ -160,7 +160,7 @@ KisColorSpace * KisColorSpaceFactoryRegistry::getColorSpace(const KisID & csID, TQString name = csID.id() + "" + profileName; - if (m_csMap.tqfind(name) == m_csMap.end()) { + if (m_csMap.find(name) == m_csMap.end()) { KisColorSpaceFactory *csf = get(csID); if(!csf) return 0; @@ -175,7 +175,7 @@ KisColorSpace * KisColorSpaceFactoryRegistry::getColorSpace(const KisID & csID, m_csMap[name] = cs; } - if(m_csMap.tqcontains(name)) + if(m_csMap.contains(name)) return m_csMap[name]; else return 0; diff --git a/chalk/chalkcolor/kis_colorspace_factory_registry.h b/chalk/chalkcolor/kis_colorspace_factory_registry.h index 104c99aa..1ecff87a 100644 --- a/chalk/chalkcolor/kis_colorspace_factory_registry.h +++ b/chalk/chalkcolor/kis_colorspace_factory_registry.h @@ -27,7 +27,7 @@ class TQStringList; class KisPaintDeviceAction; /** - * This class tqcontains: + * This class contains: * - a registry of colorspace instantiated with specific profiles. * - a registry of singleton colorspace factories. * - a registry of icc profiles diff --git a/chalk/colorspaces/wet/kis_wet_colorspace.cc b/chalk/colorspaces/wet/kis_wet_colorspace.cc index edb09289..7d8d84ab 100644 --- a/chalk/colorspaces/wet/kis_wet_colorspace.cc +++ b/chalk/colorspaces/wet/kis_wet_colorspace.cc @@ -190,7 +190,7 @@ void KisWetColorSpace::fromTQColor(const TQColor& c, TQ_UINT8 *dst, KisProfile * } // Translate the special TQCOlors from our paintbox to wetpaint paints. - if (m_conversionMap.tqcontains(key)) { + if (m_conversionMap.contains(key)) { (*p).paint = m_conversionMap[key]; (*p).adsorb = m_conversionMap[key]; // or maybe best add water here? } else { diff --git a/chalk/colorspaces/wetsticky/ws/GNU Public Licence.txt b/chalk/colorspaces/wetsticky/ws/GNU Public Licence.txt index 5e79907b..a3f2100e 100644 --- a/chalk/colorspaces/wetsticky/ws/GNU Public Licence.txt +++ b/chalk/colorspaces/wetsticky/ws/GNU Public Licence.txt @@ -59,7 +59,7 @@ modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - 0. This License applies to any program or other work which tqcontains + 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" @@ -154,7 +154,7 @@ Sections 1 and 2 above provided that you also do one of the following: The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source -code means all the source code for all modules it tqcontains, plus any +code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include diff --git a/chalk/core/createdcop.py b/chalk/core/createdcop.py index bac48f33..de773270 100755 --- a/chalk/core/createdcop.py +++ b/chalk/core/createdcop.py @@ -84,10 +84,10 @@ dcopiface_template = """/* def parseHeader(headerfile, classname): # parse the source class header to get a list of functions we're going to wrap functions = [] - if (headerfile.tqfind("private:") > -1): - lines = headerfile[headerfile.tqfind(classname):headerfile.tqfind("private")].splitlines() + if (headerfile.find("private:") > -1): + lines = headerfile[headerfile.find(classname):headerfile.find("private")].splitlines() else: - lines = headerfile[headerfile.tqfind(classname):headerfile.tqfind("#endif")].splitlines() + lines = headerfile[headerfile.find(classname):headerfile.find("#endif")].splitlines() i = 0 while i < len(lines): line = lines[i].strip() @@ -100,7 +100,7 @@ def parseHeader(headerfile, classname): line.startswith("#") or line.startswith("}") or line.startswith("public Q_SLOTS:") or - line.tqfind("~") != -1 or + line.find("~") != -1 or len(line) == 0 ): i+=1 @@ -112,17 +112,17 @@ def parseHeader(headerfile, classname): function = line complete = 0 # strip the inline implementation - if (line.tqfind("{") > -1): - function = line[:line.tqfind("{")] - if function.tqfind("}") > -1: - function += line[line.tqfind("}") + 1:] + if (line.find("{") > -1): + function = line[:line.find("{")] + if function.find("}") > -1: + function += line[line.find("}") + 1:] complete = 1 else: i += 1 # search for the missing } on the next lines while i < len(lines): - if (lines[i].tqfind("}") > -1): - function += lines[i][lines[i].tqfind("}") + 1:] + if (lines[i].find("}") > -1): + function += lines[i][lines[i].find("}") + 1:] complete = 1 i += 1 else: diff --git a/chalk/core/kis_exif_info.h b/chalk/core/kis_exif_info.h index d3fa3428..090d58c6 100644 --- a/chalk/core/kis_exif_info.h +++ b/chalk/core/kis_exif_info.h @@ -36,7 +36,7 @@ class KisExifInfo bool getValue(TQString name, ExifValue& value) { - if ( m_values.tqfind( name ) == m_values.end() ) { + if ( m_values.find( name ) == m_values.end() ) { return false; } else { diff --git a/chalk/core/kis_filter_configuration.cc b/chalk/core/kis_filter_configuration.cc index b25dcb24..c1dec978 100644 --- a/chalk/core/kis_filter_configuration.cc +++ b/chalk/core/kis_filter_configuration.cc @@ -109,7 +109,7 @@ TQ_INT32 KisFilterConfiguration::version() const void KisFilterConfiguration::setProperty(const TQString & name, const TQVariant & value) { - if ( m_properties.tqfind( name ) == m_properties.end() ) { + if ( m_properties.find( name ) == m_properties.end() ) { m_properties.insert( name, value ); } else { @@ -119,7 +119,7 @@ void KisFilterConfiguration::setProperty(const TQString & name, const TQVariant bool KisFilterConfiguration::getProperty(const TQString & name, TQVariant & value) { - if ( m_properties.tqfind( name ) == m_properties.end() ) { + if ( m_properties.find( name ) == m_properties.end() ) { return false; } else { @@ -130,7 +130,7 @@ bool KisFilterConfiguration::getProperty(const TQString & name, TQVariant & valu TQVariant KisFilterConfiguration::getProperty(const TQString & name) { - if ( m_properties.tqfind( name ) == m_properties.end() ) { + if ( m_properties.find( name ) == m_properties.end() ) { return TQVariant(); } else { diff --git a/chalk/core/kis_group_layer.cc b/chalk/core/kis_group_layer.cc index a3a35339..ea8d0213 100644 --- a/chalk/core/kis_group_layer.cc +++ b/chalk/core/kis_group_layer.cc @@ -163,7 +163,7 @@ void KisGroupLayer::setIndex(KisLayerSP layer, int index) bool KisGroupLayer::addLayer(KisLayerSP newLayer, int x) { if (x < 0 || kClamp(uint(x), uint(0), childCount()) != uint(x) || - newLayer->tqparent() || m_layers.tqcontains(newLayer)) + newLayer->tqparent() || m_layers.contains(newLayer)) { kdWarning() << "invalid input to KisGroupLayer::addLayer(KisLayerSP newLayer, int x)!" << endl; return false; diff --git a/chalk/core/kis_imagepipe_brush.cc b/chalk/core/kis_imagepipe_brush.cc index 5cef04d6..9b71c83d 100644 --- a/chalk/core/kis_imagepipe_brush.cc +++ b/chalk/core/kis_imagepipe_brush.cc @@ -228,8 +228,8 @@ bool KisImagePipeBrush::init() } TQString paramline = TQString::fromUtf8((&line2[0]), line2.size()); - TQ_UINT32 m_numOfBrushes = paramline.left(paramline.tqfind(' ')).toUInt(); - m_parasite = paramline.mid(paramline.tqfind(' ') + 1); + TQ_UINT32 m_numOfBrushes = paramline.left(paramline.find(' ')).toUInt(); + m_parasite = paramline.mid(paramline.find(' ') + 1); i++; // Skip past the second newline TQ_UINT32 numOfBrushes = 0; diff --git a/chalk/core/kis_layer.cc b/chalk/core/kis_layer.cc index cac178e5..752159c0 100644 --- a/chalk/core/kis_layer.cc +++ b/chalk/core/kis_layer.cc @@ -311,7 +311,7 @@ void KisLayer::setClean(const TQRect & rect) // XXX: We should only set the parts clean that were actually cleaned. However, extent and exactBounds conspire // to make that very hard atm. - //if (rect.tqcontains(m_dirtyRect)) m_dirtyRect = TQRect(); + //if (rect.contains(m_dirtyRect)) m_dirtyRect = TQRect(); m_dirtyRect = TQRect(); } diff --git a/chalk/core/kis_paint_device.h b/chalk/core/kis_paint_device.h index 6c8d7331..7fe6250b 100644 --- a/chalk/core/kis_paint_device.h +++ b/chalk/core/kis_paint_device.h @@ -137,12 +137,12 @@ public: /** * Returns true of x,y is within the extent of this paint device */ - bool tqcontains(TQ_INT32 x, TQ_INT32 y) const; + bool contains(TQ_INT32 x, TQ_INT32 y) const; /** * Convenience method for the above */ - bool tqcontains(const TQPoint& pt) const; + bool contains(const TQPoint& pt) const; /** * Retrieve the bounds of the paint device. The size is not exact, diff --git a/chalk/core/kis_palette.cc b/chalk/core/kis_palette.cc index daf8d84d..161a4ff8 100644 --- a/chalk/core/kis_palette.cc +++ b/chalk/core/kis_palette.cc @@ -238,7 +238,7 @@ bool KisPalette::init() } else if (!lines[i].isEmpty()) { - TQStringList a = TQStringList::split(" ", lines[i].tqreplace(TQChar('\t'), " ")); + TQStringList a = TQStringList::split(" ", lines[i].replace(TQChar('\t'), " ")); if (a.count() < 3) { diff --git a/chalk/core/kis_pattern.cc b/chalk/core/kis_pattern.cc index 516d3d8b..72130db6 100644 --- a/chalk/core/kis_pattern.cc +++ b/chalk/core/kis_pattern.cc @@ -277,7 +277,7 @@ bool KisPattern::init() KisPaintDeviceSP KisPattern::image(KisColorSpace * colorSpace) { // Check if there's already a pattern prepared for this colorspace - TQMap::const_iterator it = m_colorspaces.tqfind(colorSpace->id().id()); + TQMap::const_iterator it = m_colorspaces.find(colorSpace->id().id()); if (it != m_colorspaces.end()) return (*it); diff --git a/chalk/core/kis_perspective_grid.cpp b/chalk/core/kis_perspective_grid.cpp index 6eb5fbe8..597f1d40 100644 --- a/chalk/core/kis_perspective_grid.cpp +++ b/chalk/core/kis_perspective_grid.cpp @@ -27,7 +27,7 @@ KisSubPerspectiveGrid::KisSubPerspectiveGrid(KisPerspectiveGridNodeSP topLeft, K } -bool KisSubPerspectiveGrid::tqcontains(const KisPoint p) const +bool KisSubPerspectiveGrid::contains(const KisPoint p) const { return true; KisPerspectiveMath::LineEquation d1 = KisPerspectiveMath::computeLineEquation( topLeft(), topRight() ); @@ -90,7 +90,7 @@ KisSubPerspectiveGrid* KisPerspectiveGrid::gridAt(KisPoint p) { for( TQValueList::const_iterator it = begin(); it != end(); ++it) { - if( (*it)->tqcontains(p) ) + if( (*it)->contains(p) ) { return *it; } diff --git a/chalk/core/kis_perspective_grid.h b/chalk/core/kis_perspective_grid.h index 4bd22815..81ec2966 100644 --- a/chalk/core/kis_perspective_grid.h +++ b/chalk/core/kis_perspective_grid.h @@ -67,7 +67,7 @@ class KisSubPerspectiveGrid { /** * @return true if the point p is contain by the grid */ - bool tqcontains(const KisPoint p) const; + bool contains(const KisPoint p) const; private: inline KisPoint computeVanishingPoint(KisPerspectiveGridNodeSP p11, KisPerspectiveGridNodeSP p12, KisPerspectiveGridNodeSP p21, KisPerspectiveGridNodeSP p22) { diff --git a/chalk/core/kis_selection.cc b/chalk/core/kis_selection.cc index 10e96a05..b5cd8e6e 100644 --- a/chalk/core/kis_selection.cc +++ b/chalk/core/kis_selection.cc @@ -204,9 +204,9 @@ void KisSelection::startCachingExactRect() void KisSelection::paintUniformSelectionRegion(TQImage img, const TQRect& imageRect, const TQRegion& uniformRegion) { Q_ASSERT(img.size() == imageRect.size()); - Q_ASSERT(imageRect.tqcontains(uniformRegion.boundingRect())); + Q_ASSERT(imageRect.contains(uniformRegion.boundingRect())); - if (img.isNull() || img.size() != imageRect.size() || !imageRect.tqcontains(uniformRegion.boundingRect())) { + if (img.isNull() || img.size() != imageRect.size() || !imageRect.contains(uniformRegion.boundingRect())) { return; } diff --git a/chalk/core/kis_thread_pool.cc b/chalk/core/kis_thread_pool.cc index e617c8cb..2f80a0ae 100644 --- a/chalk/core/kis_thread_pool.cc +++ b/chalk/core/kis_thread_pool.cc @@ -115,18 +115,18 @@ void KisThreadPool::dequeue(KisThread * thread) m_poolMutex.lock(); - int i = m_threads.tqfindRef(thread); + int i = m_threads.findRef(thread); if (i >= 0) { t = m_threads.take(i); m_numberOfQueuedThreads--; } else { - i = m_runningThreads.tqfindRef(thread); + i = m_runningThreads.findRef(thread); if (i >= 0) { t = m_runningThreads.take(i); m_numberOfRunningThreads--; } else { - i = m_oldThreads.tqfindRef(thread); + i = m_oldThreads.findRef(thread); if (i >= 0) { t = m_oldThreads.take(i); } diff --git a/chalk/core/tiles/kis_tile.h b/chalk/core/tiles/kis_tile.h index f2d6f1e9..2a0b3a22 100644 --- a/chalk/core/tiles/kis_tile.h +++ b/chalk/core/tiles/kis_tile.h @@ -25,7 +25,7 @@ class KisTiledDataManager; class KisTiledIterator; /** - * Provides abstraction to a tile. A tile tqcontains + * Provides abstraction to a tile. A tile contains * a part of a PaintDevice, but only the individual pixels * are accesable and that only via iterators. */ diff --git a/chalk/core/tiles/kis_tileddatamanager.cc b/chalk/core/tiles/kis_tileddatamanager.cc index 629b1b38..2dd633fd 100644 --- a/chalk/core/tiles/kis_tileddatamanager.cc +++ b/chalk/core/tiles/kis_tileddatamanager.cc @@ -245,7 +245,7 @@ void KisTiledDataManager::setExtent(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 //printRect("oldRect", oldRect); // Do nothing if the desired size is bigger than we currently are: that is handled by the autoextending automatically - if (newRect.tqcontains(oldRect)) return; + if (newRect.contains(oldRect)) return; // Loop through all tiles, if a tile is wholly outside the extent, add to the memento, then delete it, // if the tile is partially outside the extent, clear the outside pixels to the default pixel. @@ -259,7 +259,7 @@ void KisTiledDataManager::setExtent(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 TQRect tileRect = TQRect(tile->getCol() * KisTile::WIDTH, tile->getRow() * KisTile::HEIGHT, KisTile::WIDTH, KisTile::HEIGHT); //printRect("tileRect", tileRect); - if (newRect.tqcontains(tileRect)) { + if (newRect.contains(tileRect)) { // Completely inside, do nothing previousTile = tile; tile = tile->getNext(); @@ -279,7 +279,7 @@ void KisTiledDataManager::setExtent(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 tile->addReader(); for (int y = 0; y < KisTile::HEIGHT; ++y) { for (int x = 0; x < KisTile::WIDTH; ++x) { - if (!intersection.tqcontains(x,y)) { + if (!intersection.contains(x,y)) { TQ_UINT8 * ptr = tile->data(x, y); memcpy(ptr, m_defPixel, m_pixelSize); } diff --git a/chalk/core/tiles/kis_tilemanager.cc b/chalk/core/tiles/kis_tilemanager.cc index dc9811e9..2c3fed8e 100644 --- a/chalk/core/tiles/kis_tilemanager.cc +++ b/chalk/core/tiles/kis_tilemanager.cc @@ -157,11 +157,11 @@ void KisTileManager::deregisterTile(KisTile* tile) { m_swapMutex->lock(); - if (!m_tileMap.tqcontains(tile)) { + if (!m_tileMap.contains(tile)) { m_swapMutex->unlock(); return; } - // Q_ASSERT(m_tileMap.tqcontains(tile)); + // Q_ASSERT(m_tileMap.contains(tile)); TileInfo* info = m_tileMap[tile]; diff --git a/chalk/doc/brush.txt b/chalk/doc/brush.txt index 17df4b48..739194c7 100644 --- a/chalk/doc/brush.txt +++ b/chalk/doc/brush.txt @@ -6,7 +6,7 @@ sources: * The old Chalk brush code (http://webcvs.kde.org/cgi-bin/cvsweb.cgi/koffice/chalk/tools/kis_tool_brush.cc?rev=1.58&content-type=text/x-cvsweb-markup) * Peter Jodda's Perico (http://software.jodda.de/perico.html) -* The source of the Gimp (both current and 0.99.11 -- the oldest version I could tqfind) (http://www.gimp.org) +* The source of the Gimp (both current and 0.99.11 -- the oldest version I could find) (http://www.gimp.org) * David Hodson's article on Gimp brushes (http://members.ozemail.com.au/~hodsond/gimpbrush.html) * Raph Levien's article on Gimp brushes (http://www.levien.com/gimp/brush-arch.html) diff --git a/chalk/doc/chalk.xmi b/chalk/doc/chalk.xmi index ec204a76..df763e02 100644 --- a/chalk/doc/chalk.xmi +++ b/chalk/doc/chalk.xmi @@ -342,7 +342,7 @@ data to rbg for screen rendering." visibility="public" xmi.id="259" name="CMYK" - + @@ -650,7 +650,7 @@ of tile in x and y." visibility="public" xmi.id="408" type="void" name="tileCoor - @@ -1059,7 +1059,7 @@ pixels in the brush." visibility="public" xmi.id="705" type="virtual KisAlphaMas - + @@ -1208,7 +1208,7 @@ pixels in the brush." visibility="public" xmi.id="705" type="virtual KisAlphaMas - + @@ -1906,11 +1906,11 @@ cannot be abstract, because otherwise this class would be abstract." visibility= - + - + @@ -3629,7 +3629,7 @@ in the constructor, you have to call loadAsync. - + @@ -3714,7 +3714,7 @@ in the constructor, you have to call loadAsync. - + @@ -3838,7 +3838,7 @@ in the constructor, you have to call loadAsync. - + @@ -4116,8 +4116,8 @@ in the constructor, you have to call loadAsync. - - + + @@ -29680,7 +29680,7 @@ in the constructor, you have to call loadAsync.
- +
diff --git a/chalk/doc/controller.xmi b/chalk/doc/controller.xmi index 18ac49f0..2f64556e 100644 --- a/chalk/doc/controller.xmi +++ b/chalk/doc/controller.xmi @@ -933,14 +933,14 @@ below this layer, remove the specified layer." isSpecification="false" isLeaf="f
- + - + @@ -2243,7 +2243,7 @@ and the clipboard." isSpecification="false" isLeaf="false" visibility="public" x - + diff --git a/chalk/doc/histograms.xmi b/chalk/doc/histograms.xmi index 209a795d..5cd0f484 100644 --- a/chalk/doc/histograms.xmi +++ b/chalk/doc/histograms.xmi @@ -1208,14 +1208,14 @@ there is no guarantee that the iterator will work scanline by scanline." isSpeci - + - + @@ -2699,7 +2699,7 @@ Doubles are in the 0-1 range, use the producer's positionToString function to di - diff --git a/chalk/plugins/filters/cimg/CImg.h b/chalk/plugins/filters/cimg/CImg.h index f69fe2a1..8d6a24f6 100644 --- a/chalk/plugins/filters/cimg/CImg.h +++ b/chalk/plugins/filters/cimg/CImg.h @@ -5144,7 +5144,7 @@ namespace cimg_library { \par Image structure - The \ref CImg<\c T> structure tqcontains \a five fields : + The \ref CImg<\c T> structure contains \a five fields : - \ref width defines the number of \a columns of the image (size along the X-axis). - \ref height defines the number of \a rows of the image (size along the Y-axis). - \ref depth defines the number of \a slices of the image (size along the Z-axis). diff --git a/chalk/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc b/chalk/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc index d89db6ae..e9280425 100644 --- a/chalk/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc +++ b/chalk/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc @@ -87,7 +87,7 @@ void KisBrightnessContrastFilterConfiguration::fromXML( const TQString& s ) curve.clear(); // XXX TQPtrList, sure I won't leak stuff here? for (TQStringList::Iterator it = pairStart; it != pairEnd; ++it) { TQString pair = * it; - if (pair.tqfind(",") > -1) { + if (pair.find(",") > -1) { TQPair *p = new TQPair; p->first = pair.section(",", 0, 0).toDouble(); p->second = pair.section(",", 1, 1).toDouble(); diff --git a/chalk/plugins/filters/colorsfilters/kis_perchannel_filter.cc b/chalk/plugins/filters/colorsfilters/kis_perchannel_filter.cc index 5c5a1b2c..1eaa1417 100644 --- a/chalk/plugins/filters/colorsfilters/kis_perchannel_filter.cc +++ b/chalk/plugins/filters/colorsfilters/kis_perchannel_filter.cc @@ -86,7 +86,7 @@ curvesElement.text() ); TQStringList::Iterator pairEnd = data.end(); for (TQStringList::Iterator it = pairStart; it != pairEnd; ++it) { TQString pair = * it; - if (pair.tqfind(",") > -1) { + if (pair.find(",") > -1) { TQPair *p = new TQPair; p->first = pair.section(",", 0, 0).toDouble(); p->second = pair.section(",", 1, 1).toDouble(); diff --git a/chalk/plugins/filters/oilpaintfilter/kis_oilpaint_filter.cc b/chalk/plugins/filters/oilpaintfilter/kis_oilpaint_filter.cc index fc96b991..a658b863 100644 --- a/chalk/plugins/filters/oilpaintfilter/kis_oilpaint_filter.cc +++ b/chalk/plugins/filters/oilpaintfilter/kis_oilpaint_filter.cc @@ -159,7 +159,7 @@ uint KisOilPaintFilter::MostFrequentColor (KisPaintDeviceSP src, const TQRect& b while (!it.isDone()) { - if (bounds.tqcontains(it.x(), it.y())) { + if (bounds.contains(it.x(), it.y())) { // XXX: COLORSPACE_INDEPENDENCE diff --git a/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cc b/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cc index 32dbcf9d..b238e746 100644 --- a/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cc +++ b/chalk/plugins/tools/defaulttools/kis_tool_colorpicker.cc @@ -104,7 +104,7 @@ void KisToolColorPicker::buttonPress(KisButtonPressEvent *e) TQPoint pos = TQPoint(e->pos().floorX(), e->pos().floorY()); - if (!img->bounds().tqcontains(pos)) { + if (!img->bounds().contains(pos)) { return; } diff --git a/chalk/plugins/tools/defaulttools/kis_tool_fill.cc b/chalk/plugins/tools/defaulttools/kis_tool_fill.cc index 1e2b82c5..5a919771 100644 --- a/chalk/plugins/tools/defaulttools/kis_tool_fill.cc +++ b/chalk/plugins/tools/defaulttools/kis_tool_fill.cc @@ -151,7 +151,7 @@ void KisToolFill::buttonRelease(KisButtonReleaseEvent *e) int x, y; x = m_startPos.floorX(); y = m_startPos.floorY(); - if (!m_currentImage->bounds().tqcontains(x, y)) { + if (!m_currentImage->bounds().contains(x, y)) { return; } flood(x, y); diff --git a/chalk/plugins/tools/tool_crop/kis_tool_crop.cc b/chalk/plugins/tools/tool_crop/kis_tool_crop.cc index 30709fd7..0d7d9728 100644 --- a/chalk/plugins/tools/tool_crop/kis_tool_crop.cc +++ b/chalk/plugins/tools/tool_crop/kis_tool_crop.cc @@ -818,7 +818,7 @@ TQ_INT32 KisToolCrop::mouseOnHandle(TQPoint currentViewPoint) endy=start.y(); } - if ( toTQRect ( startx - m_handleSize / 2.0, starty - m_handleSize / 2.0, m_handleSize, m_handleSize ).tqcontains( currentViewPoint ) ) + if ( toTQRect ( startx - m_handleSize / 2.0, starty - m_handleSize / 2.0, m_handleSize, m_handleSize ).contains( currentViewPoint ) ) { if( !m_selecting ) { @@ -827,7 +827,7 @@ TQ_INT32 KisToolCrop::mouseOnHandle(TQPoint currentViewPoint) } return UpperLeft; } - else if ( toTQRect ( startx - m_handleSize / 2.0, endy - m_handleSize / 2.0, m_handleSize, m_handleSize ).tqcontains( currentViewPoint ) ) + else if ( toTQRect ( startx - m_handleSize / 2.0, endy - m_handleSize / 2.0, m_handleSize, m_handleSize ).contains( currentViewPoint ) ) { if( !m_selecting ) { @@ -836,7 +836,7 @@ TQ_INT32 KisToolCrop::mouseOnHandle(TQPoint currentViewPoint) } return LowerLeft; } - else if ( toTQRect ( endx - m_handleSize / 2.0, starty - m_handleSize / 2.0, m_handleSize, m_handleSize ).tqcontains( currentViewPoint ) ) + else if ( toTQRect ( endx - m_handleSize / 2.0, starty - m_handleSize / 2.0, m_handleSize, m_handleSize ).contains( currentViewPoint ) ) { if( !m_selecting ) { @@ -845,7 +845,7 @@ TQ_INT32 KisToolCrop::mouseOnHandle(TQPoint currentViewPoint) } return UpperRight; } - else if ( toTQRect ( endx - m_handleSize / 2.0, endy - m_handleSize / 2.0, m_handleSize, m_handleSize ).tqcontains( currentViewPoint ) ) + else if ( toTQRect ( endx - m_handleSize / 2.0, endy - m_handleSize / 2.0, m_handleSize, m_handleSize ).contains( currentViewPoint ) ) { if( !m_selecting ) { @@ -854,7 +854,7 @@ TQ_INT32 KisToolCrop::mouseOnHandle(TQPoint currentViewPoint) } return LowerRight; } - else if ( toTQRect ( startx + ( endx - startx - m_handleSize ) / 2.0, starty - m_handleSize / 2.0, m_handleSize, m_handleSize ).tqcontains( currentViewPoint ) ) + else if ( toTQRect ( startx + ( endx - startx - m_handleSize ) / 2.0, starty - m_handleSize / 2.0, m_handleSize, m_handleSize ).contains( currentViewPoint ) ) { if( !m_selecting ) { @@ -862,7 +862,7 @@ TQ_INT32 KisToolCrop::mouseOnHandle(TQPoint currentViewPoint) } return Upper; } - else if ( toTQRect ( startx + ( endx - startx - m_handleSize ) / 2.0, endy - m_handleSize / 2, m_handleSize, m_handleSize ).tqcontains( currentViewPoint ) ) + else if ( toTQRect ( startx + ( endx - startx - m_handleSize ) / 2.0, endy - m_handleSize / 2, m_handleSize, m_handleSize ).contains( currentViewPoint ) ) { if( !m_selecting ) { @@ -870,7 +870,7 @@ TQ_INT32 KisToolCrop::mouseOnHandle(TQPoint currentViewPoint) } return Lower; } - else if ( toTQRect ( startx - m_handleSize / 2.0, starty + ( endy - starty - m_handleSize ) / 2.0, m_handleSize, m_handleSize ).tqcontains( currentViewPoint ) ) + else if ( toTQRect ( startx - m_handleSize / 2.0, starty + ( endy - starty - m_handleSize ) / 2.0, m_handleSize, m_handleSize ).contains( currentViewPoint ) ) { if( !m_selecting ) { @@ -878,7 +878,7 @@ TQ_INT32 KisToolCrop::mouseOnHandle(TQPoint currentViewPoint) } return Left; } - else if ( toTQRect ( endx - m_handleSize / 2.0 , starty + ( endy - starty - m_handleSize ) / 2.0, m_handleSize, m_handleSize ).tqcontains( currentViewPoint ) ) + else if ( toTQRect ( endx - m_handleSize / 2.0 , starty + ( endy - starty - m_handleSize ) / 2.0, m_handleSize, m_handleSize ).contains( currentViewPoint ) ) { if( !m_selecting ) { @@ -886,7 +886,7 @@ TQ_INT32 KisToolCrop::mouseOnHandle(TQPoint currentViewPoint) } return Right; } - else if ( toTQRect ( startx , starty, endx - startx , endy - starty ).tqcontains( currentViewPoint ) ) + else if ( toTQRect ( startx , starty, endx - startx , endy - starty ).contains( currentViewPoint ) ) { return Inside; } diff --git a/chalk/plugins/tools/tool_curves/kis_curve_framework.cc b/chalk/plugins/tools/tool_curves/kis_curve_framework.cc index 416d3bfd..8a9b4c88 100644 --- a/chalk/plugins/tools/tool_curves/kis_curve_framework.cc +++ b/chalk/plugins/tools/tool_curves/kis_curve_framework.cc @@ -79,12 +79,12 @@ KisCurve KisCurve::selectedPivots(bool selected) KisCurve KisCurve::subCurve(const KisPoint& tend) { - return subCurve(tqfind(tend).previousPivot(),tqfind(tend)); + return subCurve(find(tend).previousPivot(),find(tend)); } KisCurve KisCurve::subCurve(const CurvePoint& tend) { - return subCurve(tqfind(tend).previousPivot(),tqfind(tend)); + return subCurve(find(tend).previousPivot(),find(tend)); } KisCurve KisCurve::subCurve(iterator tend) @@ -94,12 +94,12 @@ KisCurve KisCurve::subCurve(iterator tend) KisCurve KisCurve::subCurve(const KisPoint& tstart, const KisPoint& tend) { - return subCurve(tqfind(tstart),tqfind(tend)); + return subCurve(find(tstart),find(tend)); } KisCurve KisCurve::subCurve(const CurvePoint& tstart, const CurvePoint& tend) { - return subCurve(tqfind(tstart),tqfind(tend)); + return subCurve(find(tstart),find(tend)); } KisCurve KisCurve::subCurve(iterator tstart, iterator tend) @@ -137,7 +137,7 @@ KisCurve::iterator KisCurve::deleteCurve (const KisPoint& pos1, const KisPoint& KisCurve::iterator KisCurve::deleteCurve (const CurvePoint& pos1, const CurvePoint& pos2) { - return deleteCurve (tqfind(pos1),tqfind(pos2)); + return deleteCurve (find(pos1),find(pos2)); } KisCurve::iterator KisCurve::deleteCurve (KisCurve::iterator pos1, KisCurve::iterator pos2) @@ -154,12 +154,12 @@ KisCurve::iterator KisCurve::deleteCurve (KisCurve::iterator pos1, KisCurve::ite KisCurve::iterator KisCurve::selectPivot(const KisPoint& pt, bool isSelected) { - return selectPivot(tqfind(CurvePoint(pt,true)),isSelected); + return selectPivot(find(CurvePoint(pt,true)),isSelected); } KisCurve::iterator KisCurve::selectPivot(const CurvePoint& pt, bool isSelected) { - return selectPivot(tqfind(pt),isSelected); + return selectPivot(find(pt),isSelected); } KisCurve::iterator KisCurve::selectPivot(KisCurve::iterator it, bool isSelected) @@ -171,7 +171,7 @@ KisCurve::iterator KisCurve::selectPivot(KisCurve::iterator it, bool isSelected) } KisCurve selected = pivots(); for (iterator i = selected.begin(); i != selected.end(); i++) - (*tqfind((*i))).setSelected(sel); + (*find((*i))).setSelected(sel); (*it).setSelected(isSelected); return it; @@ -184,7 +184,7 @@ KisCurve::iterator KisCurve::movePivot(const KisPoint& oldPt, const KisPoint& ne KisCurve::iterator KisCurve::movePivot(const CurvePoint& oldPt, const KisPoint& newPt) { - return movePivot(tqfind(oldPt), newPt); + return movePivot(find(oldPt), newPt); } KisCurve::iterator KisCurve::movePivot(KisCurve::iterator it, const KisPoint& newPt) @@ -213,7 +213,7 @@ void KisCurve::deletePivot (const KisPoint& pt) void KisCurve::deletePivot (const CurvePoint& pt) { - deletePivot(tqfind(pt)); + deletePivot(find(pt)); } void KisCurve::deletePivot (KisCurve::iterator it) diff --git a/chalk/plugins/tools/tool_curves/kis_curve_framework.h b/chalk/plugins/tools/tool_curves/kis_curve_framework.h index c27369aa..614d51ff 100644 --- a/chalk/plugins/tools/tool_curves/kis_curve_framework.h +++ b/chalk/plugins/tools/tool_curves/kis_curve_framework.h @@ -130,10 +130,10 @@ public: iterator begin() const; iterator lastIterator() const; iterator end() const; - iterator tqfind(const CurvePoint& pt); - iterator tqfind(const KisPoint& pt); - iterator tqfind(iterator it, const CurvePoint& pt); - iterator tqfind(iterator it, const KisPoint& pt); + iterator find(const CurvePoint& pt); + iterator find(const KisPoint& pt); + iterator find(iterator it, const CurvePoint& pt); + iterator find(iterator it, const KisPoint& pt); KisCurve pivots(); KisCurve selectedPivots(bool = true); @@ -312,34 +312,34 @@ inline KisCurve::iterator KisCurve::end() const return iterator(*this,m_curve.end()); } -inline KisCurve::iterator KisCurve::tqfind (const CurvePoint& pt) +inline KisCurve::iterator KisCurve::find (const CurvePoint& pt) { - return iterator(*this,m_curve.tqfind(pt)); + return iterator(*this,m_curve.find(pt)); } -inline KisCurve::iterator KisCurve::tqfind (const KisPoint& pt) +inline KisCurve::iterator KisCurve::find (const KisPoint& pt) { - return iterator(*this,m_curve.tqfind(CurvePoint(pt))); + return iterator(*this,m_curve.find(CurvePoint(pt))); } -inline KisCurve::iterator KisCurve::tqfind (KisCurve::iterator it, const CurvePoint& pt) +inline KisCurve::iterator KisCurve::find (KisCurve::iterator it, const CurvePoint& pt) { - return iterator(*this,m_curve.tqfind(it.position(),pt)); + return iterator(*this,m_curve.find(it.position(),pt)); } -inline KisCurve::iterator KisCurve::tqfind (iterator it, const KisPoint& pt) +inline KisCurve::iterator KisCurve::find (iterator it, const KisPoint& pt) { - return iterator(*this,m_curve.tqfind(it.position(),CurvePoint(pt))); + return iterator(*this,m_curve.find(it.position(),CurvePoint(pt))); } inline void KisCurve::calculateCurve(const KisPoint& start, const KisPoint& end, KisCurve::iterator it) { - calculateCurve(tqfind(CurvePoint(start)),tqfind(CurvePoint(end)),it); + calculateCurve(find(CurvePoint(start)),find(CurvePoint(end)),it); } inline void KisCurve::calculateCurve(const CurvePoint& start, const CurvePoint& end, KisCurve::iterator it) { - calculateCurve(tqfind(start),tqfind(end),it); + calculateCurve(find(start),find(end),it); } inline void KisCurve::calculateCurve(KisCurve::iterator, KisCurve::iterator, KisCurve::iterator) diff --git a/chalk/plugins/tools/tool_curves/kis_tool_bezier.cc b/chalk/plugins/tools/tool_curves/kis_tool_bezier.cc index e3baf49c..e18b096c 100644 --- a/chalk/plugins/tools/tool_curves/kis_tool_bezier.cc +++ b/chalk/plugins/tools/tool_curves/kis_tool_bezier.cc @@ -289,7 +289,7 @@ KisCurve::iterator KisToolBezier::handleUnderMouse(const TQPoint& pos) continue; if (hint == BEZIERENDHINT && (m_actionOptions & SHIFTOPTION)) continue; - if (pivotRect(qpos).tqcontains(pos)) { + if (pivotRect(qpos).contains(pos)) { inHandle.pushPoint((*it)); if (hint == BEZIERENDHINT && !(m_actionOptions & SHIFTOPTION)) break; @@ -300,7 +300,7 @@ KisCurve::iterator KisToolBezier::handleUnderMouse(const TQPoint& pos) if (inHandle.isEmpty()) return m_curve->end(); - return m_curve->tqfind(inHandle.last()); + return m_curve->find(inHandle.last()); } KisCurve::iterator KisToolBezier::drawPoint (KisCanvasPainter& gc, KisCurve::iterator point) diff --git a/chalk/plugins/tools/tool_curves/kis_tool_curve.cc b/chalk/plugins/tools/tool_curves/kis_tool_curve.cc index f98d2c72..08becf67 100644 --- a/chalk/plugins/tools/tool_curves/kis_tool_curve.cc +++ b/chalk/plugins/tools/tool_curves/kis_tool_curve.cc @@ -124,7 +124,7 @@ void KisToolCurve::buttonPress(KisButtonPressEvent *event) m_curve->selectAll(false); draw(true, true); draw(m_curve->end()); - m_previous = m_curve->tqfind(m_curve->last()); + m_previous = m_curve->find(m_curve->last()); m_current = m_curve->pushPivot(event->pos()); if (m_curve->pivots().count() > 1) m_curve->calculateCurve(m_previous,m_current,m_current); @@ -158,7 +158,7 @@ void KisToolCurve::keyPress(TQKeyEvent *event) draw(false); m_dragging = false; m_curve->deleteSelected(); - m_current = m_curve->tqfind(m_curve->last()); + m_current = m_curve->find(m_curve->last()); m_previous = m_curve->selectPivot(m_current); draw(false); } @@ -250,12 +250,12 @@ KisCurve::iterator KisToolCurve::handleUnderMouse(const TQPoint& pos) KisCurve pivs = m_curve->pivots(), inHandle; KisCurve::iterator it; for (it = pivs.begin(); it != pivs.end(); it++) { - if (pivotRect(m_subject->canvasController()->windowToView((*it).point().toTQPoint())).tqcontains(pos)) + if (pivotRect(m_subject->canvasController()->windowToView((*it).point().toTQPoint())).contains(pos)) inHandle.pushPoint((*it)); } if (inHandle.isEmpty()) return m_curve->end(); - return m_curve->tqfind(inHandle.last()); + return m_curve->find(inHandle.last()); } KisCurve::iterator KisToolCurve::selectByMouse(KisCurve::iterator it) @@ -344,8 +344,8 @@ void KisToolCurve::draw(KisCurve::iterator inf, bool pivotonly, bool minimal) return; } for (KisCurve::iterator i = sel.begin(); i != sel.end(); i++) { - it = m_curve->tqfind(*i).previousPivot(); - finish = m_curve->tqfind(*i).nextPivot(); + it = m_curve->find(*i).previousPivot(); + finish = m_curve->find(*i).nextPivot(); if ((*finish).isSelected()) finish = finish.previousPivot(); while (it != finish) { diff --git a/chalk/plugins/tools/tool_perspectivegrid/kis_tool_perspectivegrid.cc b/chalk/plugins/tools/tool_perspectivegrid/kis_tool_perspectivegrid.cc index 3a21e72e..061db881 100644 --- a/chalk/plugins/tools/tool_perspectivegrid/kis_tool_perspectivegrid.cc +++ b/chalk/plugins/tools/tool_perspectivegrid/kis_tool_perspectivegrid.cc @@ -97,7 +97,7 @@ void KisToolPerspectiveGrid::update (KisCanvasSubject *subject) bool KisToolPerspectiveGrid::mouseNear(const TQPoint& mousep, const TQPoint point) { - return (TQRect( (point.x() - m_handleHalfSize), (point.y() - m_handleHalfSize), m_handleSize, m_handleSize).tqcontains(mousep) ); + return (TQRect( (point.x() - m_handleHalfSize), (point.y() - m_handleHalfSize), m_handleSize, m_handleSize).contains(mousep) ); } void KisToolPerspectiveGrid::buttonPress(KisButtonPressEvent *event) diff --git a/chalk/plugins/tools/tool_perspectivetransform/kis_tool_perspectivetransform.cc b/chalk/plugins/tools/tool_perspectivetransform/kis_tool_perspectivetransform.cc index 809d1a7d..dbcfd74c 100644 --- a/chalk/plugins/tools/tool_perspectivetransform/kis_tool_perspectivetransform.cc +++ b/chalk/plugins/tools/tool_perspectivetransform/kis_tool_perspectivetransform.cc @@ -240,7 +240,7 @@ void KisToolPerspectiveTransform::paint(KisCanvasPainter& gc, const TQRect& rc) bool KisToolPerspectiveTransform::mouseNear(const TQPoint& mousep, const TQPoint point) { - return (TQRect( (point.x() - m_handleHalfSize), (point.y() - m_handleHalfSize), m_handleSize, m_handleSize).tqcontains(mousep) ); + return (TQRect( (point.x() - m_handleHalfSize), (point.y() - m_handleHalfSize), m_handleSize, m_handleSize).contains(mousep) ); } void KisToolPerspectiveTransform::buttonPress(KisButtonPressEvent *event) diff --git a/chalk/plugins/viewplugins/dropshadow/kis_dropshadow.cc b/chalk/plugins/viewplugins/dropshadow/kis_dropshadow.cc index 207c86c3..15e21400 100644 --- a/chalk/plugins/viewplugins/dropshadow/kis_dropshadow.cc +++ b/chalk/plugins/viewplugins/dropshadow/kis_dropshadow.cc @@ -133,7 +133,7 @@ void KisDropshadow::dropshadow(KisProgressDisplayInterface * progress, TQ_INT32 { TQRect shadowBounds = shadowDev->exactBounds(); - if (!image->bounds().tqcontains(shadowBounds)) { + if (!image->bounds().contains(shadowBounds)) { TQRect newImageSize = image->bounds() | shadowBounds; image->resize(newImageSize.width(), newImageSize.height()); diff --git a/chalk/plugins/viewplugins/screenshot/regiongrabber.cpp b/chalk/plugins/viewplugins/screenshot/regiongrabber.cpp index 1d3a451d..f4511554 100644 --- a/chalk/plugins/viewplugins/screenshot/regiongrabber.cpp +++ b/chalk/plugins/viewplugins/screenshot/regiongrabber.cpp @@ -60,7 +60,7 @@ void SizeTip::positionTip( const TQRect &rect ) TQRect deskR = KGlobalSettings::desktopGeometry( TQPoint( 0, 0 ) ); tipRect.moveCenter( TQPoint( deskR.width()/2, deskR.height()/2 ) ); - if ( !rect.tqcontains( tipRect, true ) && rect.intersects( tipRect ) ) + if ( !rect.contains( tipRect, true ) && rect.intersects( tipRect ) ) tipRect.moveBottomRight( tqgeometry().bottomRight() ); } diff --git a/chalk/sdk/kis_shared_ptr_vector.h b/chalk/sdk/kis_shared_ptr_vector.h index 679bdd9f..ee7961ae 100644 --- a/chalk/sdk/kis_shared_ptr_vector.h +++ b/chalk/sdk/kis_shared_ptr_vector.h @@ -57,7 +57,7 @@ public: return super::erase(first, last); } - bool tqcontains(KSharedPtr ptr) const + bool contains(KSharedPtr ptr) const { for (int i = 0, n = super::count(); i < n; ++i) if (super::at(i) == ptr) diff --git a/chalk/ui/kis_cmb_composite.cc b/chalk/ui/kis_cmb_composite.cc index 54c4b643..754e69da 100644 --- a/chalk/ui/kis_cmb_composite.cc +++ b/chalk/ui/kis_cmb_composite.cc @@ -55,7 +55,7 @@ KisCompositeOp KisCmbComposite::currentItem() const void KisCmbComposite::setCurrentItem(const KisCompositeOp& op) { - if (m_list.tqfind(op) != m_list.end()) { + if (m_list.find(op) != m_list.end()) { super::setCurrentText(op.id().name()); } } diff --git a/chalk/ui/kis_cmb_idlist.cc b/chalk/ui/kis_cmb_idlist.cc index bdd6f09b..0936350e 100644 --- a/chalk/ui/kis_cmb_idlist.cc +++ b/chalk/ui/kis_cmb_idlist.cc @@ -57,7 +57,7 @@ KisID KisCmbIDList::currentItem() const void KisCmbIDList::setCurrent(const KisID id) { - if (m_list.tqfind(id) != m_list.end()) + if (m_list.find(id) != m_list.end()) super::setCurrentText(id.name()); else { m_list.push_back(id); diff --git a/chalk/ui/kis_dlg_image_properties.cc b/chalk/ui/kis_dlg_image_properties.cc index 72c26ec5..29d221a0 100644 --- a/chalk/ui/kis_dlg_image_properties.cc +++ b/chalk/ui/kis_dlg_image_properties.cc @@ -72,7 +72,7 @@ KisDlgImageProperties::KisDlgImageProperties(KisImageSP image, TQWidget *tqparen //m_page->cmbColorSpaces->hide(); //m_page->lblColorSpaces->setText(image->colorSpace()->id().name()); KisIDList colorSpaces = KisMetaRegistry::instance()->csRegistry()->listKeys(); - KisIDList::iterator i = colorSpaces.tqfind(KisID("WET","")); + KisIDList::iterator i = colorSpaces.find(KisID("WET","")); if (i != colorSpaces.end()) { colorSpaces.remove(i); } diff --git a/chalk/ui/kis_dlg_preferences.cc b/chalk/ui/kis_dlg_preferences.cc index 9f82c0d7..941e033e 100644 --- a/chalk/ui/kis_dlg_preferences.cc +++ b/chalk/ui/kis_dlg_preferences.cc @@ -130,7 +130,7 @@ ColorSettingsTab::ColorSettingsTab(TQWidget *tqparent, const char *name ) refillMonitorProfiles(KisID("RGBA", "")); refillPrintProfiles(KisID(cfg.printerColorSpace(), "")); - if(m_page->cmbMonitorProfile->tqcontains(cfg.monitorProfile())) + if(m_page->cmbMonitorProfile->contains(cfg.monitorProfile())) m_page->cmbMonitorProfile->setCurrentText(cfg.monitorProfile()); if(m_page->cmbPrintProfile->contains(cfg.printerProfile())) m_page->cmbPrintProfile->setCurrentText(cfg.printerProfile()); diff --git a/chalk/ui/kis_filter_manager.cc b/chalk/ui/kis_filter_manager.cc index a5b145da..e8bf5ba8 100644 --- a/chalk/ui/kis_filter_manager.cc +++ b/chalk/ui/kis_filter_manager.cc @@ -95,57 +95,57 @@ void KisFilterManager::setup(KActionCollection * ac) if (!f) break; TQString s = f->menuCategory(); - if (s == "adjust" && !m_filterActionMenus.tqfind("adjust")) { + if (s == "adjust" && !m_filterActionMenus.find("adjust")) { am = new KActionMenu(i18n("Adjust"), ac, "adjust_filters"); m_filterActionMenus.insert("adjust", am); } - else if (s == "artistic" && !m_filterActionMenus.tqfind("artistic")) { + else if (s == "artistic" && !m_filterActionMenus.find("artistic")) { am = new KActionMenu(i18n("Artistic"), ac, "artistic_filters"); m_filterActionMenus.insert("artistic", am); } - else if (s == "blur" && !m_filterActionMenus.tqfind("blur")) { + else if (s == "blur" && !m_filterActionMenus.find("blur")) { am = new KActionMenu(i18n("Blur"), ac, "blur_filters"); m_filterActionMenus.insert("blur", am); } - else if (s == "colors" && !m_filterActionMenus.tqfind("colors")) { + else if (s == "colors" && !m_filterActionMenus.find("colors")) { am = new KActionMenu(i18n("Colors"), ac, "color_filters"); m_filterActionMenus.insert("colors", am); } - else if (s == "decor" && !m_filterActionMenus.tqfind("decor")) { + else if (s == "decor" && !m_filterActionMenus.find("decor")) { am = new KActionMenu(i18n("Decor"), ac, "decor_filters"); m_filterActionMenus.insert("decor", am); } - else if (s == "edge" && !m_filterActionMenus.tqfind("edge")) { + else if (s == "edge" && !m_filterActionMenus.find("edge")) { am = new KActionMenu(i18n("Edge Detection"), ac, "edge_filters"); m_filterActionMenus.insert("edge", am); } - else if (s == "emboss" && !m_filterActionMenus.tqfind("emboss")) { + else if (s == "emboss" && !m_filterActionMenus.find("emboss")) { am = new KActionMenu(i18n("Emboss"), ac, "emboss_filters"); m_filterActionMenus.insert("emboss", am); } - else if (s == "enhance" && !m_filterActionMenus.tqfind("enhance")) { + else if (s == "enhance" && !m_filterActionMenus.find("enhance")) { am = new KActionMenu(i18n("Enhance"), ac, "enhance_filters"); m_filterActionMenus.insert("enhance", am); } - else if (s == "map" && !m_filterActionMenus.tqfind("map")) { + else if (s == "map" && !m_filterActionMenus.find("map")) { am = new KActionMenu(i18n("Map"), ac, "map_filters"); m_filterActionMenus.insert("map", am); } - else if (s == "nonphotorealistic" && !m_filterActionMenus.tqfind("nonphotorealistic")) { + else if (s == "nonphotorealistic" && !m_filterActionMenus.find("nonphotorealistic")) { am = new KActionMenu(i18n("Non-photorealistic"), ac, "nonphotorealistic_filters"); m_filterActionMenus.insert("nonphotorealistic", am); } - else if (s == "other" && !m_filterActionMenus.tqfind("other")) { + else if (s == "other" && !m_filterActionMenus.find("other")) { other = new KActionMenu(i18n("Other"), ac, "misc_filters"); m_filterActionMenus.insert("other", other); } @@ -171,7 +171,7 @@ void KisFilterManager::setup(KActionCollection * ac) TQString("chalk_filter_%1").tqarg((*it) . id()).ascii()); // Add action to the right submenu - KActionMenu * m = m_filterActionMenus.tqfind( f->menuCategory() ); + KActionMenu * m = m_filterActionMenus.find( f->menuCategory() ); if (m) { m->insert(a); } diff --git a/chalk/ui/kis_filters_listview.cc b/chalk/ui/kis_filters_listview.cc index 788a787d..163c88a4 100644 --- a/chalk/ui/kis_filters_listview.cc +++ b/chalk/ui/kis_filters_listview.cc @@ -173,7 +173,7 @@ void KisFiltersListView::setLayer(KisLayerSP layer) { void KisFiltersListView::setCurrentFilter(KisID filter) { - setCurrentItem(tqfindItem(filter.name())); + setCurrentItem(findItem(filter.name())); } void KisFiltersListView::buildPreview() diff --git a/chalk/ui/kis_gradient_slider_widget.cc b/chalk/ui/kis_gradient_slider_widget.cc index 3777a214..0547bdb5 100644 --- a/chalk/ui/kis_gradient_slider_widget.cc +++ b/chalk/ui/kis_gradient_slider_widget.cc @@ -132,20 +132,20 @@ void KisGradientSliderWidget::mousePressEvent( TQMouseEvent * e ) // Change the activation order of the handles to avoid deadlocks if( t > 0.5 ) { - if( leftHandle.tqcontains( e->pos() ) ) + if( leftHandle.contains( e->pos() ) ) m_drag = LEFT_DRAG; - else if( middleHandle.tqcontains( e->pos() ) ) + else if( middleHandle.contains( e->pos() ) ) m_drag = MIDDLE_DRAG; - else if( rightHandle.tqcontains( e->pos() ) ) + else if( rightHandle.contains( e->pos() ) ) m_drag = RIGHT_DRAG; } else { - if( rightHandle.tqcontains( e->pos() ) ) + if( rightHandle.contains( e->pos() ) ) m_drag = RIGHT_DRAG; - else if( middleHandle.tqcontains( e->pos() ) ) + else if( middleHandle.contains( e->pos() ) ) m_drag = MIDDLE_DRAG; - else if( leftHandle.tqcontains( e->pos() ) ) + else if( leftHandle.contains( e->pos() ) ) m_drag = LEFT_DRAG; } diff --git a/chalk/ui/kis_layerbox.cc b/chalk/ui/kis_layerbox.cc index e257e2b0..cfdc6acd 100644 --- a/chalk/ui/kis_layerbox.cc +++ b/chalk/ui/kis_layerbox.cc @@ -499,7 +499,7 @@ void KisLayerBox::slotAddMenuActivated(int type) void KisLayerBox::slotRmClicked() { TQValueList l = list()->selectedLayerIDs(); - if (l.count() < 2 && list()->activeLayer() && !l.tqcontains(list()->activeLayer()->id())) + if (l.count() < 2 && list()->activeLayer() && !l.contains(list()->activeLayer()->id())) { l.clear(); l.append(list()->activeLayer()->id()); @@ -515,7 +515,7 @@ void KisLayerBox::slotRmClicked() void KisLayerBox::slotRaiseClicked() { TQValueList l = list()->selectedLayerIDs(); - if (l.count() < 2 && list()->activeLayer() && !l.tqcontains(list()->activeLayer()->id())) + if (l.count() < 2 && list()->activeLayer() && !l.contains(list()->activeLayer()->id())) { l.clear(); l.append(list()->activeLayer()->id()); @@ -542,7 +542,7 @@ void KisLayerBox::slotRaiseClicked() void KisLayerBox::slotLowerClicked() { TQValueList l = list()->selectedLayers(); - if (l.count() < 2 && list()->activeLayer() && !l.tqcontains(list()->activeLayer())) + if (l.count() < 2 && list()->activeLayer() && !l.contains(list()->activeLayer())) { l.clear(); l.append(list()->activeLayer()); @@ -594,7 +594,7 @@ TQPixmap KisLayerBox::loadPixmap(const TQString& filename, const KIconLoader& TQPixmap pixmap = il.loadIcon(filename, KIcon::NoGroup, size); if (pixmap.isNull()) - KMessageBox::error(0, i18n("Cannot tqfind %1").tqarg(filename), + KMessageBox::error(0, i18n("Cannot find %1").tqarg(filename), i18n("Canvas")); return pixmap; @@ -612,7 +612,7 @@ void KisLayerBox::markModified(KisLayer* layer) layer = layer->tqparent(); } for (int i = v.count() - 1; i >= 0; --i) - if (!m_modified.tqcontains(v[i])) + if (!m_modified.contains(v[i])) m_modified.append(v[i]); } diff --git a/chalk/ui/kis_paintop_box.cc b/chalk/ui/kis_paintop_box.cc index 9f8ac9de..ad4dbabb 100644 --- a/chalk/ui/kis_paintop_box.cc +++ b/chalk/ui/kis_paintop_box.cc @@ -126,7 +126,7 @@ void KisPaintopBox::colorSpaceChanged(KisColorSpace *cs) } } - int index = m_displayedOps->tqfindIndex(currentPaintop()); + int index = m_displayedOps->findIndex(currentPaintop()); if (index == -1) { // Must change the paintop as the current one is not supported @@ -162,7 +162,7 @@ void KisPaintopBox::slotInputDeviceChanged(const KisInputDevice & inputDevice) paintop = (*it).second; } - int index = m_displayedOps->tqfindIndex(paintop); + int index = m_displayedOps->findIndex(paintop); if (index == -1) { // Must change the paintop as the current one is not supported @@ -238,7 +238,7 @@ const KisPaintOpSettings *KisPaintopBox::paintopSettings(const KisID & paintop, settingsArray = (*it).second; } - const int index = m_paintops->tqfindIndex(paintop); + const int index = m_paintops->findIndex(paintop); if (index >= 0 && index < (int)settingsArray.count()) return settingsArray[index]; else diff --git a/chalk/ui/kis_part_layer.cc b/chalk/ui/kis_part_layer.cc index 459770d1..ace29965 100644 --- a/chalk/ui/kis_part_layer.cc +++ b/chalk/ui/kis_part_layer.cc @@ -129,7 +129,7 @@ void KisPartLayerImpl::paintSelection(TQImage &img, TQ_INT32 x, TQ_INT32 y, TQ_I for (int y2 = y; y2 < h + y; ++y2) { for (int x2 = x; x2 < w + x; ++x2) { - if (!rect.tqcontains(x2, y2)) { + if (!rect.contains(x2, y2)) { TQ_UINT8 g = (*(j + 0) + *(j + 1 ) + *(j + 2 )) / 9; *(j+0) = 165+g; *(j+1) = 128+g; diff --git a/chalk/ui/kis_resource_mediator.cc b/chalk/ui/kis_resource_mediator.cc index 204a1033..d4993807 100644 --- a/chalk/ui/kis_resource_mediator.cc +++ b/chalk/ui/kis_resource_mediator.cc @@ -64,7 +64,7 @@ KisResource *KisResourceMediator::currentResource() const KisIconItem *KisResourceMediator::itemFor(KisResource *r) const { - if(m_items.tqcontains(r)) + if(m_items.contains(r)) { return m_items[r]; } diff --git a/chalk/ui/kis_resourceserver.cc b/chalk/ui/kis_resourceserver.cc index d464e1bc..e7593ceb 100644 --- a/chalk/ui/kis_resourceserver.cc +++ b/chalk/ui/kis_resourceserver.cc @@ -64,7 +64,7 @@ void KisResourceServerBase::loadResources(TQStringList filenames) // XXX: Don't load resources with the same filename. Actually, we should look inside // the resource to find out whether they are really the same, but for now this // will prevent the same brush etc. showing up twice. - if (uniqueFiles.empty() || uniqueFiles.tqfind(fname) == uniqueFiles.end()) { + if (uniqueFiles.empty() || uniqueFiles.find(fname) == uniqueFiles.end()) { uniqueFiles.append(fname); KisResource *resource; resource = createResource(front); diff --git a/chalk/ui/kis_tool_freehand.cc b/chalk/ui/kis_tool_freehand.cc index 5885c433..bbe575d1 100644 --- a/chalk/ui/kis_tool_freehand.cc +++ b/chalk/ui/kis_tool_freehand.cc @@ -87,7 +87,7 @@ void KisToolFreehand::buttonPress(KisButtonPressEvent *e) // People complain that they can't start brush strokes outside of the image boundaries. // This makes sense, especially when combined with BUG:132759, so commenting out the // next line makes sense. - //if (!m_currentImage->bounds().tqcontains(e->pos().floorTQPoint())) return; + //if (!m_currentImage->bounds().contains(e->pos().floorTQPoint())) return; initPaint(e); paintAt(e->pos(), e->pressure(), e->xTilt(), e->yTilt()); @@ -309,7 +309,7 @@ void KisToolFreehand::paintOutline(const KisPoint& point) { KisCanvasController *controller = m_subject->canvasController(); - if (currentImage() && !currentImage()->bounds().tqcontains(point.floorTQPoint())) { + if (currentImage() && !currentImage()->bounds().contains(point.floorTQPoint())) { if (m_paintedOutline) { controller->kiscanvas()->update(); m_paintedOutline = false; diff --git a/chalk/ui/kis_tool_paint.cc b/chalk/ui/kis_tool_paint.cc index d8d19f36..aa1bf7a7 100644 --- a/chalk/ui/kis_tool_paint.cc +++ b/chalk/ui/kis_tool_paint.cc @@ -244,7 +244,7 @@ void KisToolPaint::updateCompositeOpComboBox() KisCompositeOpList compositeOps = device->colorSpace()->userVisiblecompositeOps(); m_cmbComposite->setCompositeOpList(compositeOps); - if (compositeOps.tqfind(m_compositeOp) == compositeOps.end()) { + if (compositeOps.find(m_compositeOp) == compositeOps.end()) { m_compositeOp = COMPOSITE_OVER; } m_cmbComposite->setCurrentItem(m_compositeOp); diff --git a/chalk/ui/kis_view.cc b/chalk/ui/kis_view.cc index e3500f97..0b288da5 100644 --- a/chalk/ui/kis_view.cc +++ b/chalk/ui/kis_view.cc @@ -2281,7 +2281,7 @@ void KisView::canvasGotButtonPressEvent(KisButtonPressEvent *e) // m_currentGuide = 0; // // if ((e->state() & ~TQt::ShiftButton) == Qt::NoButton) { -// KisGuideSP gd = mgr->tqfind(static_cast(pt.x() / zoom()), static_cast(pt.y() / zoom()), TQMAX(2.0, 2.0 / zoom())); +// KisGuideSP gd = mgr->find(static_cast(pt.x() / zoom()), static_cast(pt.y() / zoom()), TQMAX(2.0, 2.0 / zoom())); // // if (gd) { // m_currentGuide = gd; @@ -3544,7 +3544,7 @@ bool KisView::eventFilter(TQObject *o, TQEvent *e) mgr = img->guides(); if (e->type() == TQEvent::MouseMove && (me->state() & Qt::LeftButton)) { - bool flag = tqgeometry().tqcontains(pt); + bool flag = tqgeometry().contains(pt); KisGuideSP gd; if (m_currentGuide == 0 && flag) { diff --git a/chalk/ui/kobirdeyepanel.cpp b/chalk/ui/kobirdeyepanel.cpp index 0cd835b1..34dd043f 100644 --- a/chalk/ui/kobirdeyepanel.cpp +++ b/chalk/ui/kobirdeyepanel.cpp @@ -362,23 +362,23 @@ KoBirdEyePanel::enumDragHandle KoBirdEyePanel::dragHandleAt(TQPoint p) TQRect top = TQRect(m_visibleAreaInThumbnail.left()-1, m_visibleAreaInThumbnail.top()-1, m_visibleAreaInThumbnail.width()+2, 3); TQRect bottom = TQRect(m_visibleAreaInThumbnail.left()-1, m_visibleAreaInThumbnail.bottom()-1, m_visibleAreaInThumbnail.width()+2, 3); - if (left.tqcontains(p)) { + if (left.contains(p)) { return DragHandleLeft; } - if (right.tqcontains(p)) { + if (right.contains(p)) { return DragHandleRight; } - if (top.tqcontains(p)) { + if (top.contains(p)) { return DragHandleTop; } - if (bottom.tqcontains(p)) { + if (bottom.contains(p)) { return DragHandleBottom; } - if (m_visibleAreaInThumbnail.tqcontains(p)) { + if (m_visibleAreaInThumbnail.contains(p)) { return DragHandleCentre; } @@ -403,7 +403,7 @@ void KoBirdEyePanel::handleMouseMove(TQPoint p) break; default: case DragHandleNone: - if (TQT_TQRECT_OBJECT(m_thumbnail.rect()).tqcontains(p)) { + if (TQT_TQRECT_OBJECT(m_thumbnail.rect()).contains(p)) { cursor = TQt::PointingHandCursor; } else { cursor = TQt::arrowCursor; @@ -462,7 +462,7 @@ void KoBirdEyePanel::handleMousePress(TQPoint p) enumDragHandle dragHandle = dragHandleAt(p); if (dragHandle == DragHandleNone) { - if (TQT_TQRECT_OBJECT(m_thumbnail.rect()).tqcontains(p)) { + if (TQT_TQRECT_OBJECT(m_thumbnail.rect()).contains(p)) { // Snap visible area centre to p and begin a centre drag. diff --git a/chalk/ui/layerlist.cpp b/chalk/ui/layerlist.cpp index 059d4e35..6f7cb4e2 100644 --- a/chalk/ui/layerlist.cpp +++ b/chalk/ui/layerlist.cpp @@ -681,7 +681,7 @@ void LayerList::contentsMouseDoubleClickEvent( TQMouseEvent *e ) super::contentsMouseDoubleClickEvent( e ); if( LayerItem *layer = static_cast( itemAt( contentsToViewport( e->pos() ) ) ) ) { - if( !layer->iconsRect().tqcontains( layer->mapFromListView( e->pos() ) ) ) + if( !layer->iconsRect().contains( layer->mapFromListView( e->pos() ) ) ) { emit requestLayerProperties( layer ); emit requestLayerProperties( layer->id() ); @@ -867,7 +867,7 @@ void LayerItem::init() LayerItem::~LayerItem() { - if (listView() && (listView()->activeLayer() == this || tqcontains(listView()->activeLayer()))) + if (listView() && (listView()->activeLayer() == this || contains(listView()->activeLayer()))) listView()->setActiveLayer( static_cast( 0 ) ); delete d; } @@ -885,7 +885,7 @@ bool LayerItem::isFolder() const return d->isFolder; } -bool LayerItem::tqcontains(const LayerItem *item) +bool LayerItem::contains(const LayerItem *item) { TQListViewItemIterator it(this); @@ -1180,7 +1180,7 @@ bool LayerItem::mousePressEvent( TQMouseEvent *e ) const TQRect ir = iconsRect(), tr = textRect(); - if( ir.tqcontains( e->pos() ) ) + if( ir.contains( e->pos() ) ) { const int iconWidth = iconSize().width(); int x = e->pos().x() - ir.left(); @@ -1201,7 +1201,7 @@ bool LayerItem::mousePressEvent( TQMouseEvent *e ) return true; } - else if( tr.tqcontains( e->pos() ) && isSelected() && !listView()->renameLineEdit()->isVisible() ) + else if( tr.contains( e->pos() ) && isSelected() && !listView()->renameLineEdit()->isVisible() ) { listView()->rename( this, 0 ); TQRect r( listView()->contentsToViewport( mapToListView( tr.topLeft() ) ), tr.size() ); diff --git a/chalk/ui/layerlist.h b/chalk/ui/layerlist.h index 58c2a4bb..5c75b6b7 100644 --- a/chalk/ui/layerlist.h +++ b/chalk/ui/layerlist.h @@ -178,7 +178,7 @@ public: // Returns true if this item is the given item or the tree rooted at // this item contains the given item. - bool tqcontains(const LayerItem *item); + bool contains(const LayerItem *item); int id() const; diff --git a/chalk/ui/squeezedcombobox.cpp b/chalk/ui/squeezedcombobox.cpp index 96929450..1c58f1dd 100644 --- a/chalk/ui/squeezedcombobox.cpp +++ b/chalk/ui/squeezedcombobox.cpp @@ -76,7 +76,7 @@ SqueezedComboBox::~SqueezedComboBox() delete m_timer; } -bool SqueezedComboBox::tqcontains( const TQString& _text ) const +bool SqueezedComboBox::contains( const TQString& _text ) const { if ( _text.isEmpty() ) return false; diff --git a/chalk/ui/squeezedcombobox.h b/chalk/ui/squeezedcombobox.h index 66758335..0ca7bb41 100644 --- a/chalk/ui/squeezedcombobox.h +++ b/chalk/ui/squeezedcombobox.h @@ -97,7 +97,7 @@ public: */ virtual ~SqueezedComboBox(); - bool tqcontains(const TQString & text) const; + bool contains(const TQString & text) const; /** * This inserts a item to the list. See TQComboBox::insertItem() diff --git a/filters/chalk/gmagick/kis_image_magick_converter.cc b/filters/chalk/gmagick/kis_image_magick_converter.cc index a0545569..2118e376 100644 --- a/filters/chalk/gmagick/kis_image_magick_converter.cc +++ b/filters/chalk/gmagick/kis_image_magick_converter.cc @@ -1025,7 +1025,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB description = info -> description; kdDebug(41008) << "Found import filter for: " << name << "\n"; - if (!description.isEmpty() && !description.tqcontains('/')) { + if (!description.isEmpty() && !description.contains('/')) { all += "*." + name.lower() + " *." + name + " "; s += "*." + name.lower() + " *." + name + "|"; s += i18n(description.utf8()); @@ -1042,7 +1042,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB description = mi -> description; kdDebug(41008) << "Found import filter for: " << name << "\n"; - if (!description.isEmpty() && !description.tqcontains('/')) { + if (!description.isEmpty() && !description.contains('/')) { all += "*." + name.lower() + " *." + name + " "; s += "*." + name.lower() + " *." + name + "|"; s += i18n(description.utf8()); @@ -1102,7 +1102,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB description = info -> description; - if (!description.isEmpty() && !description.tqcontains('/')) { + if (!description.isEmpty() && !description.contains('/')) { all += "*." + name.lower() + " *." + name + " "; s += "*." + name.lower() + " *." + name + "|"; s += i18n(description.utf8()); @@ -1121,7 +1121,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB description = mi -> description; - if (!description.isEmpty() && !description.tqcontains('/')) { + if (!description.isEmpty() && !description.contains('/')) { all += "*." + name.lower() + " *." + name + " "; s += "*." + name.lower() + " *." + name + "|"; s += i18n(description.utf8()); diff --git a/filters/chalk/jpeg/iccjpeg.c b/filters/chalk/jpeg/iccjpeg.c index 7abe1ff4..fefa9509 100644 --- a/filters/chalk/jpeg/iccjpeg.c +++ b/filters/chalk/jpeg/iccjpeg.c @@ -133,7 +133,7 @@ write_icc_profile (j_compress_ptr cinfo, void setup_read_icc_profile (j_decompress_ptr cinfo) { - /* Tell the library to keep any APP2 data it may tqfind */ + /* Tell the library to keep any APP2 data it may find */ jpeg_save_markers(cinfo, ICC_MARKER, 0xFFFF); } diff --git a/filters/chalk/magick/kis_image_magick_converter.cc b/filters/chalk/magick/kis_image_magick_converter.cc index ee6267ad..16140414 100644 --- a/filters/chalk/magick/kis_image_magick_converter.cc +++ b/filters/chalk/magick/kis_image_magick_converter.cc @@ -970,7 +970,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB description = info -> description; kdDebug(41008) << "Found import filter for: " << name << "\n"; - if (!description.isEmpty() && !description.tqcontains('/')) { + if (!description.isEmpty() && !description.contains('/')) { all += "*." + name.lower() + " *." + name + " "; s += "*." + name.lower() + " *." + name + "|"; s += i18n(description.utf8()); @@ -987,7 +987,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB description = mi -> description; kdDebug(41008) << "Found import filter for: " << name << "\n"; - if (!description.isEmpty() && !description.tqcontains('/')) { + if (!description.isEmpty() && !description.contains('/')) { all += "*." + name.lower() + " *." + name + " "; s += "*." + name.lower() + " *." + name + "|"; s += i18n(description.utf8()); @@ -1047,7 +1047,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB description = info -> description; - if (!description.isEmpty() && !description.tqcontains('/')) { + if (!description.isEmpty() && !description.contains('/')) { all += "*." + name.lower() + " *." + name + " "; s += "*." + name.lower() + " *." + name + "|"; s += i18n(description.utf8()); @@ -1066,7 +1066,7 @@ KisImageBuilder_Result KisImageMagickConverter::decode(const KURL& uri, bool isB description = mi -> description; - if (!description.isEmpty() && !description.tqcontains('/')) { + if (!description.isEmpty() && !description.contains('/')) { all += "*." + name.lower() + " *." + name + " "; s += "*." + name.lower() + " *." + name + "|"; s += i18n(description.utf8()); diff --git a/filters/chalk/xcf/xcf/xcf-load.cc b/filters/chalk/xcf/xcf/xcf-load.cc index cf1152c6..670bec0a 100644 --- a/filters/chalk/xcf/xcf/xcf-load.cc +++ b/filters/chalk/xcf/xcf/xcf-load.cc @@ -128,7 +128,7 @@ xcf_load_image (XcfInfo * info) goto hard_error; /* check for a GimpGrid parasite */ - parasite = gimp_image_parasite_tqfind (GIMP_IMAGE (gimage), + parasite = gimp_image_parasite_find (GIMP_IMAGE (gimage), gimp_grid_parasite_name ()); if (parasite) { diff --git a/filters/karbon/ai/aiparserbase.cc b/filters/karbon/ai/aiparserbase.cc index 6e9ff040..817c3d7e 100644 --- a/filters/karbon/ai/aiparserbase.cc +++ b/filters/karbon/ai/aiparserbase.cc @@ -791,16 +791,16 @@ void AIParserBase::_handleDocumentProcessColors(const char *data) { signed int index; - index = tmp.tqfind ("Cyan"); + index = tmp.find ("Cyan"); if (index > 0) colorSet |= PC_Cyan; - index = tmp.tqfind ("Magenta"); + index = tmp.find ("Magenta"); if (index > 0) colorSet |= PC_Magenta; - index = tmp.tqfind ("Yellow"); + index = tmp.find ("Yellow"); if (index > 0) colorSet |= PC_Yellow; - index = tmp.tqfind ("Black"); + index = tmp.find ("Black"); if (index > 0) colorSet |= PC_Black; if (m_documentHandler) m_documentHandler->gotProcessColors (colorSet); @@ -945,7 +945,7 @@ void AIParserBase::gotToken (const char *value) { TQString string(value); - if (m_modules.tqfindIndex(string) != -1) + if (m_modules.findIndex(string) != -1) { AIElement element (string, AIElement::Reference); handleElement (element); @@ -1067,7 +1067,7 @@ CommentOperation AIParserBase::getCommentOperation (const char *command) { for(;;) { CommentOperationMapping map = commentMappings[i]; if (map.op == NULL) return CO_Other; - index = data.tqfind (map.op); + index = data.find (map.op); if (index >= 0) return map.action; i++; } @@ -1088,7 +1088,7 @@ void GStateHandlerBase::gotStrokePattern (const char *pname, double px, double p const char *AIParserBase::getValue (const char *input) { TQString data(input); - signed int index = data.tqfind (':'); + signed int index = data.find (':'); if (index < 0) return ""; index++; while (data.at(index) == ' ') index++; @@ -1099,7 +1099,7 @@ bool AIParserBase::getRectangle (const char* input, int &llx, int &lly, int &urx if (input == NULL) return false; TQString s(input); - if (s.tqcontains ("(atend)")) return false; + if (s.contains ("(atend)")) return false; TQStringList values = TQStringList::split (" ", input); if (values.size() < 5) return false; llx = values[1].toInt(); diff --git a/filters/karbon/applixgraphics/applixgraphicimport.cc b/filters/karbon/applixgraphics/applixgraphicimport.cc index 8a433ec9..b3df1581 100644 --- a/filters/karbon/applixgraphics/applixgraphicimport.cc +++ b/filters/karbon/applixgraphics/applixgraphicimport.cc @@ -231,11 +231,11 @@ KoFilter::ConversiontqStatus APPLIXGRAPHICImport::convert( const TQCString& from //mystr.remove (0, 7); - //remove_pos = mystr.tqfind ('('); + //remove_pos = mystr.find ('('); //mystr.remove (0, remove_pos); //agLine.offX= mystr.toInt(); - //remove_pos = mystr.tqfind (','); + //remove_pos = mystr.find (','); //mystr.remove (0, remove_pos); //agLine.offY= mystr.toInt(); rueck = sscanf ((const char *) mystr.latin1(), "(%d,%d)", diff --git a/filters/karbon/eps/pscommentlexer.cc b/filters/karbon/eps/pscommentlexer.cc index dc0a67a1..04aa9aaa 100644 --- a/filters/karbon/eps/pscommentlexer.cc +++ b/filters/karbon/eps/pscommentlexer.cc @@ -298,7 +298,7 @@ BoundingBoxExtractor::~BoundingBoxExtractor() {} void BoundingBoxExtractor::gotComment (const char *value) { TQString data (value); - if (data.tqfind("%BoundingBox:")==-1) return; + if (data.find("%BoundingBox:")==-1) return; getRectangle (value, m_llx, m_lly, m_urx, m_ury); } @@ -308,7 +308,7 @@ bool BoundingBoxExtractor::getRectangle (const char* input, int &llx, int &lly, if (input == NULL) return false; TQString s(input); - if (s.tqcontains ("(atend)")) return false; + if (s.contains ("(atend)")) return false; TQString s2 = s.remove("%BoundingBox:"); TQStringList values = TQStringList::split (" ", s2.latin1()); diff --git a/filters/karbon/oodraw/oodrawimport.cc b/filters/karbon/oodraw/oodrawimport.cc index d571762b..ef90c93d 100644 --- a/filters/karbon/oodraw/oodrawimport.cc +++ b/filters/karbon/oodraw/oodrawimport.cc @@ -659,7 +659,7 @@ OoDrawImport::parseViewBox( const TQDomElement& object ) { // allow for viewbox def with ',' or whitespace TQString viewbox( object.attributeNS( ooNS::svg, "viewBox", TQString() ) ); - TQStringList points = TQStringList::split( ' ', viewbox.tqreplace( ',', ' ').simplifyWhiteSpace() ); + TQStringList points = TQStringList::split( ' ', viewbox.replace( ',', ' ').simplifyWhiteSpace() ); rect.setX( points[0].toFloat() ); rect.setY( points[1].toFloat() ); @@ -715,19 +715,19 @@ OoDrawImport::parseColor( VColor &color, const TQString &s ) TQString g = colors[1]; TQString b = colors[2].left( ( colors[2].length() - 1 ) ); - if( r.tqcontains( "%" ) ) + if( r.contains( "%" ) ) { r = r.left( r.length() - 1 ); r = TQString::number( int( ( double( 255 * r.toDouble() ) / 100.0 ) ) ); } - if( g.tqcontains( "%" ) ) + if( g.contains( "%" ) ) { g = g.left( g.length() - 1 ); g = TQString::number( int( ( double( 255 * g.toDouble() ) / 100.0 ) ) ); } - if( b.tqcontains( "%" ) ) + if( b.contains( "%" ) ) { b = b.left( b.length() - 1 ); b = TQString::number( int( ( double( 255 * b.toDouble() ) / 100.0 ) ) ); diff --git a/filters/karbon/svg/svgimport.cc b/filters/karbon/svg/svgimport.cc index b8b580f7..5a5e90aa 100644 --- a/filters/karbon/svg/svgimport.cc +++ b/filters/karbon/svg/svgimport.cc @@ -63,7 +63,7 @@ KoFilter::ConversiontqStatus SvgImport::convert(const TQCString& from, const TQC //Find the last extension TQString strExt; TQString fileIn ( m_chain->inputFile() ); - const int result=fileIn.tqfindRev('.'); + const int result=fileIn.findRev('.'); if (result>=0) strExt=fileIn.mid(result).lower(); @@ -143,7 +143,7 @@ void SvgImport::convert() { // allow for viewbox def with ',' or whitespace TQString viewbox( docElem.attribute( "viewBox" ) ); - TQStringList points = TQStringList::split( ' ', viewbox.tqreplace( ',', ' ').simplifyWhiteSpace() ); + TQStringList points = TQStringList::split( ' ', viewbox.replace( ',', ' ').simplifyWhiteSpace() ); gc->matrix.scale( width / points[2].toFloat() , height / points[3].toFloat() ); m_outerRect.setWidth( m_outerRect.width() * ( points[2].toFloat() / width ) ); @@ -310,11 +310,11 @@ VObject* SvgImport::findObject( const TQString &name ) SvgImport::GradientHelper* SvgImport::findGradient( const TQString &id, const TQString &href) { // check if gradient was already parsed, and return it - if( m_gradients.tqcontains( id ) ) + if( m_gradients.contains( id ) ) return &m_gradients[ id ]; // check if gradient was stored for later parsing - if( !m_defs.tqcontains( id ) ) + if( !m_defs.contains( id ) ) return 0L; TQDomElement e = m_defs[ id ]; @@ -322,7 +322,7 @@ SvgImport::GradientHelper* SvgImport::findGradient( const TQString &id, const TQ { TQString mhref = e.attribute("xlink:href").mid(1); - if(m_defs.tqcontains(mhref)) + if(m_defs.contains(mhref)) return findGradient(mhref, id); else return 0L; @@ -340,7 +340,7 @@ SvgImport::GradientHelper* SvgImport::findGradient( const TQString &id, const TQ else n = href; - if( m_gradients.tqcontains( n ) ) + if( m_gradients.contains( n ) ) return &m_gradients[ n ]; else return 0L; @@ -456,19 +456,19 @@ void SvgImport::parseColor( VColor &color, const TQString &s ) TQString g = colors[1]; TQString b = colors[2].left( ( colors[2].length() - 1 ) ); - if( r.tqcontains( "%" ) ) + if( r.contains( "%" ) ) { r = r.left( r.length() - 1 ); r = TQString::number( int( ( double( 255 * r.toDouble() ) / 100.0 ) ) ); } - if( g.tqcontains( "%" ) ) + if( g.contains( "%" ) ) { g = g.left( g.length() - 1 ); g = TQString::number( int( ( double( 255 * g.toDouble() ) / 100.0 ) ) ); } - if( b.tqcontains( "%" ) ) + if( b.contains( "%" ) ) { b = b.left( b.length() - 1 ); b = TQString::number( int( ( double( 255 * b.toDouble() ) / 100.0 ) ) ); @@ -504,7 +504,7 @@ void SvgImport::parseColorStops( VGradient *gradient, const TQDomElement &e ) { float offset; TQString temp = stop.attribute( "offset" ); - if( temp.tqcontains( '%' ) ) + if( temp.contains( '%' ) ) { temp = temp.left( temp.length() - 1 ); offset = temp.toFloat() / 100.0; @@ -582,7 +582,7 @@ void SvgImport::parseGradient( const TQDomElement &e , const TQDomElement &refer if( !id.isEmpty() ) { // Copy existing gradient if it exists - if( m_gradients.tqfind( id ) != m_gradients.end() ) + if( m_gradients.find( id ) != m_gradients.end() ) gradhelper.gradient = m_gradients[ id ].gradient; } @@ -676,8 +676,8 @@ void SvgImport::parsePA( VObject *obj, SvgGraphicsContext *gc, const TQString &c gc->fill.setType( VFill::none ); else if( params.startsWith( "url(" ) ) { - unsigned int start = params.tqfind("#") + 1; - unsigned int end = params.tqfindRev(")"); + unsigned int start = params.find("#") + 1; + unsigned int end = params.findRev(")"); TQString key = params.mid( start, end - start ); GradientHelper *gradHelper = findGradient( key ); if( gradHelper ) @@ -739,8 +739,8 @@ void SvgImport::parsePA( VObject *obj, SvgGraphicsContext *gc, const TQString &c gc->stroke.setType( VStroke::none ); else if( params.startsWith( "url(" ) ) { - unsigned int start = params.tqfind("#") + 1; - unsigned int end = params.tqfindRev(")"); + unsigned int start = params.find("#") + 1; + unsigned int end = params.findRev(")"); TQString key = params.mid( start, end - start ); GradientHelper *gradHelper = findGradient( key ); @@ -810,7 +810,7 @@ void SvgImport::parsePA( VObject *obj, SvgGraphicsContext *gc, const TQString &c else if( command == "font-family" ) { TQString family = params; - family.tqreplace( '\'' , ' ' ); + family.replace( '\'' , ' ' ); gc->font.setFamily( family ); } else if( command == "font-size" ) @@ -1006,7 +1006,7 @@ void SvgImport::parseUse( VGroup *grp, const TQDomElement &e ) m_gc.current()->matrix.translate(tx,ty); } - if(m_defs.tqcontains(key)) + if(m_defs.contains(key)) { TQDomElement a = m_defs[key]; if(a.tagName() == "g" || a.tagName() == "a") @@ -1100,7 +1100,7 @@ void SvgImport::parseDefs( const TQDomElement &e ) TQString definition = b.attribute( "id" ); if( !definition.isEmpty() ) { - if( !m_defs.tqcontains( definition ) ) + if( !m_defs.contains( definition ) ) m_defs.insert( definition, b ); } } @@ -1152,7 +1152,7 @@ void SvgImport::createText( VGroup *grp, const TQDomElement &b ) continue; TQString key = e.attribute( "xlink:href" ).mid( 1 ); - if( ! m_defs.tqcontains(key) ) + if( ! m_defs.contains(key) ) { // try to find referenced object in document VObject* obj = findObject( key ); @@ -1214,7 +1214,7 @@ void SvgImport::createText( VGroup *grp, const TQDomElement &b ) continue; TQString key = e.attribute( "xlink:href" ).mid( 1 ); - if( ! m_defs.tqcontains(key) ) + if( ! m_defs.contains(key) ) { // try to find referenced object in document VObject* obj = findObject( key ); @@ -1328,7 +1328,7 @@ void SvgImport::createObject( VGroup *grp, const TQDomElement &b, const VObject: bool bFirst = true; TQString points = b.attribute( "points" ).simplifyWhiteSpace(); - points.tqreplace( ',', ' ' ); + points.replace( ',', ' ' ); points.remove( '\r' ); points.remove( '\n' ); TQStringList pointList = TQStringList::split( ' ', points ); diff --git a/filters/karbon/xaml/xamlimport.cc b/filters/karbon/xaml/xamlimport.cc index b7f68bbb..3a755181 100644 --- a/filters/karbon/xaml/xamlimport.cc +++ b/filters/karbon/xaml/xamlimport.cc @@ -61,7 +61,7 @@ KoFilter::ConversiontqStatus XAMLImport::convert(const TQCString& from, const TQ //Find the last extension TQString strExt; TQString fileIn ( m_chain->inputFile() ); - const int result=fileIn.tqfindRev('.'); + const int result=fileIn.findRev('.'); if (result>=0) { strExt=fileIn.mid(result).lower(); @@ -133,7 +133,7 @@ XAMLImport::convert() { // allow for viewbox def with ',' or whitespace TQString viewbox( docElem.attribute( "viewBox" ) ); - TQStringList points = TQStringList::split( ' ', viewbox.tqreplace( ',', ' ').simplifyWhiteSpace() ); + TQStringList points = TQStringList::split( ' ', viewbox.replace( ',', ' ').simplifyWhiteSpace() ); gc->matrix.scale( width / points[2].toFloat() , height / points[3].toFloat() ); m_outerRect.setWidth( m_outerRect.width() * ( points[2].toFloat() / width ) ); @@ -303,19 +303,19 @@ XAMLImport::parseColor( VColor &color, const TQString &s ) TQString g = colors[1]; TQString b = colors[2].left( ( colors[2].length() - 1 ) ); - if( r.tqcontains( "%" ) ) + if( r.contains( "%" ) ) { r = r.left( r.length() - 1 ); r = TQString::number( int( ( double( 255 * r.toDouble() ) / 100.0 ) ) ); } - if( g.tqcontains( "%" ) ) + if( g.contains( "%" ) ) { g = g.left( g.length() - 1 ); g = TQString::number( int( ( double( 255 * g.toDouble() ) / 100.0 ) ) ); } - if( b.tqcontains( "%" ) ) + if( b.contains( "%" ) ) { b = b.left( b.length() - 1 ); b = TQString::number( int( ( double( 255 * b.toDouble() ) / 100.0 ) ) ); @@ -347,7 +347,7 @@ XAMLImport::parseColorStops( VGradient *gradient, const TQDomElement &e ) { float offset; TQString temp = stop.attribute( "offset" ); - if( temp.tqcontains( '%' ) ) + if( temp.contains( '%' ) ) { temp = temp.left( temp.length() - 1 ); offset = temp.toFloat() / 100.0; @@ -454,8 +454,8 @@ XAMLImport::parsePA( VObject *obj, XAMLGraphicsContext *gc, const TQString &comm gc->fill.setType( VFill::none ); else if( params.startsWith( "url(" ) ) { - unsigned int start = params.tqfind("#") + 1; - unsigned int end = params.tqfindRev(")"); + unsigned int start = params.find("#") + 1; + unsigned int end = params.findRev(")"); TQString key = params.mid( start, end - start ); gc->fill.gradient() = m_gradients[ key ].gradient; if( m_gradients[ key ].bbox ) @@ -505,8 +505,8 @@ XAMLImport::parsePA( VObject *obj, XAMLGraphicsContext *gc, const TQString &comm gc->stroke.setType( VStroke::none ); else if( params.startsWith( "url(" ) ) { - unsigned int start = params.tqfind("#") + 1; - unsigned int end = params.tqfindRev(")"); + unsigned int start = params.find("#") + 1; + unsigned int end = params.findRev(")"); TQString key = params.mid( start, end - start ); gc->stroke.gradient() = m_gradients[ key ].gradient; gc->stroke.gradient().transform( m_gradients[ key ].gradientTransform ); @@ -567,7 +567,7 @@ XAMLImport::parsePA( VObject *obj, XAMLGraphicsContext *gc, const TQString &comm else if( command == "font-family" ) { TQString family = params; - family.tqreplace( '\'' , ' ' ); + family.replace( '\'' , ' ' ); gc->font.setFamily( family ); } else if( command == "font-size" ) @@ -750,10 +750,10 @@ XAMLImport::parseGroup( VGroup *grp, const TQDomElement &e ) if( !b.attribute( "xlink:href" ).isEmpty() ) { TQString params = b.attribute( "xlink:href" ); - unsigned int start = params.tqfind("#") + 1; - unsigned int end = params.tqfindRev(")"); + unsigned int start = params.find("#") + 1; + unsigned int end = params.findRev(")"); TQString key = params.mid( start, end - start ); - if(m_paths.tqcontains(key)) + if(m_paths.contains(key)) { TQDomElement a = m_paths[key]; obj = createObject( a ); @@ -854,10 +854,10 @@ void XAMLImport::createText( VGroup *grp, const TQDomElement &b ) continue; TQString uri = e.attribute( "xlink:href" ); - unsigned int start = uri.tqfind("#") + 1; - unsigned int end = uri.tqfindRev(")"); + unsigned int start = uri.find("#") + 1; + unsigned int end = uri.findRev(")"); TQString key = uri.mid( start, end - start ); - if( ! m_paths.tqcontains(key) ) + if( ! m_paths.contains(key) ) { VObject* obj = findObject( key ); if( obj ) @@ -899,11 +899,11 @@ void XAMLImport::createText( VGroup *grp, const TQDomElement &b ) continue; TQString uri = e.attribute( "xlink:href" ); - unsigned int start = uri.tqfind("#") + 1; - unsigned int end = uri.tqfindRev(")"); + unsigned int start = uri.find("#") + 1; + unsigned int end = uri.findRev(")"); TQString key = uri.mid( start, end - start ); - if( ! m_paths.tqcontains(key) ) + if( ! m_paths.contains(key) ) { VObject* obj = findObject( key ); if( obj ) @@ -1000,7 +1000,7 @@ VObject* XAMLImport::createObject( const TQDomElement &b ) bool bFirst = true; TQString points = b.attribute( "points" ).simplifyWhiteSpace(); - points.tqreplace( ',', ' ' ); + points.replace( ',', ' ' ); points.remove( '\r' ); points.remove( '\n' ); TQStringList pointList = TQStringList::split( ' ', points ); diff --git a/filters/kpresenter/magicpoint/mgp2kpr.py b/filters/kpresenter/magicpoint/mgp2kpr.py index 73751f26..e5716989 100755 --- a/filters/kpresenter/magicpoint/mgp2kpr.py +++ b/filters/kpresenter/magicpoint/mgp2kpr.py @@ -84,14 +84,14 @@ class MgpImporter: def __setupDefaultFonts(self,command): tokens=string.split(command,' ') - _key=string.tqreplace(tokens[1], '"', '') - _val=string.tqreplace(tokens[3], '"', '') + _key=string.replace(tokens[1], '"', '') + _val=string.replace(tokens[3], '"', '') self.defFonts[_key]=_val #print self.defFonts def __setFontIndirect(self,command): tokens=string.split(command,' ') - _font=string.tqreplace(tokens[1], '"', '') + _font=string.replace(tokens[1], '"', '') if _font in self.defFonts.keys(): # we have a "default" font, find it in the map self.__setFont(None,self.defFonts[_font]) #print self.defFonts[_font] @@ -99,9 +99,9 @@ class MgpImporter: def __setFont(self,command,font=""): if command: tokens=string.split(command,' ') - font=string.tqreplace(tokens[1], '"', '').strip() #XLFD-like, eg: mincho-medium-r (family-weight-slant) + font=string.replace(tokens[1], '"', '').strip() #XLFD-like, eg: mincho-medium-r (family-weight-slant) - _numDash=string.tqfind(font,"-") #find dashes + _numDash=string.find(font,"-") #find dashes if (_numDash==-1): #mincho self.fontName=font @@ -124,7 +124,7 @@ class MgpImporter: def __setBgColor(self, command): tokens=string.split(command,' ') self.bctype="0" - self.color1=string.tqreplace(tokens[1].strip(),'"', '') #strip quotes and \n + self.color1=string.replace(tokens[1].strip(),'"', '') #strip quotes and \n def __setBgGradient(self, command): tokens=string.split(command,' ') @@ -135,8 +135,8 @@ class MgpImporter: try: dir=tokens[4] - self.color1=string.tqreplace(tokens[6].strip(),'"', '') #strip quotes and \n - self.color2=string.tqreplace(tokens[7].strip(),'"', '') + self.color1=string.replace(tokens[6].strip(),'"', '') #strip quotes and \n + self.color2=string.replace(tokens[7].strip(),'"', '') except: self.bctype="0" self.color1="black" @@ -296,14 +296,14 @@ class MgpImporter: def __setTextColor(self,command): tokens=string.split(command,' ') - self.textColor=string.tqreplace(tokens[1].strip(),'"', '') #strip quotes + self.textColor=string.replace(tokens[1].strip(),'"', '') #strip quotes #print self.textColor def __handleBar(self,command): tokens=string.split(command,' ') try: - color=string.tqreplace(tokens[1].strip(),'"', '') #strip quotes and \n + color=string.replace(tokens[1].strip(),'"', '') #strip quotes and \n width=tokens[2].strip()/1000*Y_OFFSET #in per mils of display height start=tokens[3].strip()/100*PAGE_WIDTH #start position percent of display width length=tokens[4].strip()/100*PAGE_WIDTH #length percent of display width @@ -357,7 +357,7 @@ class MgpImporter: if (line.startswith('#') or line.startswith('%%')): #skip comments continue elif (line.startswith('%')): #commands - commands=string.split(string.tqreplace(line, '%', ''),',') #list of commands, comma separated, remove '%' + commands=string.split(string.replace(line, '%', ''),',') #list of commands, comma separated, remove '%' for command in commands: command=command.strip().lower() #print command diff --git a/filters/kpresenter/ooimpress/ooimpressexport.cc b/filters/kpresenter/ooimpress/ooimpressexport.cc index 3e54a05f..0e4771cf 100644 --- a/filters/kpresenter/ooimpress/ooimpressexport.cc +++ b/filters/kpresenter/ooimpress/ooimpressexport.cc @@ -886,7 +886,7 @@ void OoImpressExport::appendPicture( TQDomDocument & doc, TQDomElement & source, { TQString str = pictureKey( key ); TQString returnstr = m_kpresenterPictureLst[str]; - const int pos=returnstr.tqfindRev('.'); + const int pos=returnstr.findRev('.'); if (pos!=-1) { const TQString extension( returnstr.mid(pos+1) ); diff --git a/filters/kpresenter/ooimpress/ooimpressimport.cc b/filters/kpresenter/ooimpress/ooimpressimport.cc index 0c286fb5..cf853dea 100644 --- a/filters/kpresenter/ooimpress/ooimpressimport.cc +++ b/filters/kpresenter/ooimpress/ooimpressimport.cc @@ -828,11 +828,11 @@ void OoImpressImport::append2DGeometry( TQDomDocument& doc, TQDomElement& e, con kdDebug(30518)<<" object transform \n"; //todo parse it TQString transform = object.attributeNS( ooNS::draw, "transform", TQString() ); - if( transform.tqcontains("rotate (")) + if( transform.contains("rotate (")) { //kdDebug(30518)<<" rotate object \n"; transform = transform.remove("rotate (" ); - transform = transform.left(transform.tqfind(")")); + transform = transform.left(transform.find(")")); //kdDebug(30518)<<" transform :"<directory()->entry( url ); - TQString extension = url.mid( url.tqfind( '.' ) ); + TQString extension = url.mid( url.find( '.' ) ); TQString fileName = TQString( "picture%1" ).tqarg( m_numPicture++ ) + extension; KoStoreDevice* out = m_chain->storageFile( "pictures/" + fileName, KoStore::Write ); @@ -2071,7 +2071,7 @@ TQString OoImpressImport::storeSound(const TQDomElement & object, TQDomElement & if (!file.exists()) return TQString(); - TQString extension = url.mid( url.tqfind( '.' ) ); + TQString extension = url.mid( url.find( '.' ) ); TQString fileName = TQString( "sound%1" ).tqarg( m_numSound++ ) + extension; fileName = "sounds/" + fileName; KoStoreDevice* out = m_chain->storageFile( fileName, KoStore::Write ); diff --git a/filters/kpresenter/powerpoint/libppt/objects.cpp b/filters/kpresenter/powerpoint/libppt/objects.cpp index 82359d15..d0343b43 100644 --- a/filters/kpresenter/powerpoint/libppt/objects.cpp +++ b/filters/kpresenter/powerpoint/libppt/objects.cpp @@ -139,7 +139,7 @@ void Object::setBackground( bool bg ) bool Object::hasProperty( std::string name ) { std::map::const_iterator i; - i = d->properties.tqfind( name ); + i = d->properties.find( name ); if( i == d->properties.end() ) return false; else diff --git a/filters/kpresenter/powerpoint/libppt/ustring.cpp b/filters/kpresenter/powerpoint/libppt/ustring.cpp index b574d7de..23b61d30 100644 --- a/filters/kpresenter/powerpoint/libppt/ustring.cpp +++ b/filters/kpresenter/powerpoint/libppt/ustring.cpp @@ -526,7 +526,7 @@ unsigned long UString::toULong(bool *ok) const return static_cast(d); } -int UString::tqfind(const UString &f, int pos) const +int UString::find(const UString &f, int pos) const { if (isNull()) return -1; diff --git a/filters/kpresenter/powerpoint/libppt/ustring.h b/filters/kpresenter/powerpoint/libppt/ustring.h index 087aff50..c0e34cf4 100644 --- a/filters/kpresenter/powerpoint/libppt/ustring.h +++ b/filters/kpresenter/powerpoint/libppt/ustring.h @@ -334,7 +334,7 @@ namespace Libppt { * @return Position of first occurence of f starting at position pos. * -1 if the search was not successful. */ - int tqfind(const UString &f, int pos = 0) const; + int find(const UString &f, int pos = 0) const; /** * @return Position of first occurence of f searching backwards from * position pos. diff --git a/filters/kspread/applixspread/applixspreadimport.cc b/filters/kspread/applixspread/applixspreadimport.cc index 16ea0d8f..ab3201c8 100644 --- a/filters/kspread/applixspread/applixspreadimport.cc +++ b/filters/kspread/applixspread/applixspreadimport.cc @@ -181,7 +181,7 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, // Search for ')' - pos = mystr.tqfind (')'); + pos = mystr.find (')'); typestr = mystr.left (pos); @@ -190,7 +190,7 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, // alllenght = alllenght - pos - 1; // Search for ':' - pos = mystr.tqfind (':'); + pos = mystr.find (':'); // Copy cellnumber informations cellnostr = mystr.left (pos); @@ -201,7 +201,7 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, // Split Table and Cell Number - pos = cellnostr.tqfind ('!'); + pos = cellnostr.find ('!'); // Copy tabnumber informations tabnostr = cellnostr.left (pos); @@ -215,7 +215,7 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, - pos = cellnostr.tqfind (TQRegExp ("[0-9]")); + pos = cellnostr.find (TQRegExp ("[0-9]")); kdDebug()<<" findpos :"<, & - mystr.tqreplace (TQRegExp ("&"), "&"); - mystr.tqreplace (TQRegExp ("<"), "<"); - mystr.tqreplace (TQRegExp (">"), ">"); + mystr.replace (TQRegExp ("&"), "&"); + mystr.replace (TQRegExp ("<"), "<"); + mystr.replace (TQRegExp (">"), ">"); // Replace part for Applix Characters @@ -265,7 +265,7 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, // initialize foundSpecialCharakter = false; - pos = mystr.tqfind ("^"); + pos = mystr.find ("^"); // is there a special character ? if (pos > -1 ) @@ -277,7 +277,7 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, newchar = specCharfind (mystr[pos+1], mystr[pos+2]); // replace the character - mystr.tqreplace (pos, 3, newchar); + mystr.replace (pos, 3, newchar); } } @@ -290,8 +290,8 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, TQString typeCharStr; TQString typeCellStr; - int pos1 = typestr.tqfind ("|"); - int pos2 = typestr.tqfindRev ("|"); + int pos1 = typestr.find ("|"); + int pos2 = typestr.findRev ("|"); typeFormStr = typestr.left (pos1); @@ -313,7 +313,7 @@ KoFilter::ConversiontqStatus APPLIXSPREADImport::convert( const TQCString& from, tabctr = tabnostr; // Searching for the rowcol part and adding to the hole string - pos = my_rc.tabname.tqfindIndex (tabnostr); + pos = my_rc.tabname.findIndex (tabnostr); if (pos > -1) str += my_rc.rc[pos]; } @@ -936,12 +936,12 @@ APPLIXSPREADImport::readColormap (TQTextStream &stream, TQPtrList &m kdDebug()<<" -> "<< mystr<%s<- -<%c><%d> \n", (*it).latin1(), ccolumn, colwidth); @@ -1120,7 +1120,7 @@ APPLIXSPREADImport::filterSHFGBG (TQString it, int *style, int *bgcolor, int m2=0, m3=0; // filter SH = Brushstyle Background - pos = it.tqfind ("SH"); + pos = it.find ("SH"); if (pos > -1) { tmpstr = it; @@ -1134,7 +1134,7 @@ APPLIXSPREADImport::filterSHFGBG (TQString it, int *style, int *bgcolor, // filter FG = FGCOLOR - pos = it.tqfind ("FG"); + pos = it.find ("FG"); if (pos > -1) { tmpstr = it; @@ -1148,7 +1148,7 @@ APPLIXSPREADImport::filterSHFGBG (TQString it, int *style, int *bgcolor, // filter BG = BGCOLOR - pos = it.tqfind ("BG"); + pos = it.find ("BG"); if (pos > -1) { tmpstr = it; diff --git a/filters/kspread/csv/csvdialog.cpp b/filters/kspread/csv/csvdialog.cpp index f6fae839..47cb19fe 100644 --- a/filters/kspread/csv/csvdialog.cpp +++ b/filters/kspread/csv/csvdialog.cpp @@ -351,7 +351,7 @@ void CSVDialog::fillTable( ) for (column = 0; column < m_dialog->m_sheet->numCols(); ++column) { const TQString header = m_dialog->m_sheet->horizontalHeader()->label(column); - if ( m_formatList.tqfind( header ) == m_formatList.end() ) + if ( m_formatList.find( header ) == m_formatList.end() ) m_dialog->m_sheet->horizontalHeader()->setLabel(column, i18n("Text")); m_dialog->m_sheet->adjustColumn(column); diff --git a/filters/kspread/csv/csvexport.cc b/filters/kspread/csv/csvexport.cc index 4e54a071..9961d218 100644 --- a/filters/kspread/csv/csvexport.cc +++ b/filters/kspread/csv/csvexport.cc @@ -93,18 +93,18 @@ TQString CSVExport::exportCSVCell( Sheet const * const sheet, int col, int row, bool quote = false; if ( !text.isEmpty() ) { - if ( text.tqfind( textQuote ) != -1 ) + if ( text.find( textQuote ) != -1 ) { TQString doubleTextQuote(textQuote); doubleTextQuote.append(textQuote); - text.tqreplace(textQuote, doubleTextQuote); + text.replace(textQuote, doubleTextQuote); quote = true; } else if ( text[0].isSpace() || text[text.length()-1].isSpace() ) quote = true; - else if ( text.tqfind( csvDelimiter ) != -1 ) + else if ( text.find( csvDelimiter ) != -1 ) quote = true; - else if ( text.tqfind( "\n" ) != -1 || text.tqfind( "\r" ) != -1 ) + else if ( text.find( "\n" ) != -1 || text.find( "\r" ) != -1 ) quote = true; } @@ -308,10 +308,10 @@ KoFilter::ConversiontqStatus CSVExport::convert( const TQCString & from, const T else name = "****************"; const TQString tname( i18n("") ); - int pos = name.tqfind( tname ); + int pos = name.find( tname ); if ( pos != -1 ) { - name.tqreplace( pos, tname.length(), sheet->sheetName() ); + name.replace( pos, tname.length(), sheet->sheetName() ); } str += name; str += m_eol; diff --git a/filters/kspread/csv/csvimport.cc b/filters/kspread/csv/csvimport.cc index c05c075c..cd93017b 100644 --- a/filters/kspread/csv/csvimport.cc +++ b/filters/kspread/csv/csvimport.cc @@ -193,7 +193,7 @@ KoFilter::ConversiontqStatus CSVFilter::convert( const TQCString& from, const TQ bool ok = false; TQString tmp ( text ); tmp.remove ( TQRegExp( "[^0-9,Ee+-]" ) ); // Keep only 0 to 9, comma, E, e, plus, minus - tmp.tqreplace ( ',', '.' ); + tmp.replace ( ',', '.' ); kdDebug(30501) << "Comma: " << text << " => " << tmp << endl; const double d = tmp.toDouble( &ok ); if ( !ok ) @@ -214,7 +214,7 @@ KoFilter::ConversiontqStatus CSVFilter::convert( const TQCString& from, const TQ bool ok = false; TQString tmp ( text ); tmp.remove ( TQRegExp( "[^0-9\\.EeD+-]" ) ); // Keep only 0 to 9, dot, E, e, D, plus, minus - tmp.tqreplace ( 'D', 'E' ); // double from FORTRAN use D instead of E + tmp.replace ( 'D', 'E' ); // double from FORTRAN use D instead of E kdDebug(30501) << "Point: " << text << " => " << tmp << endl; const double d = tmp.toDouble( &ok ); if ( !ok ) diff --git a/filters/kspread/excel/import/excelimport.cc b/filters/kspread/excel/import/excelimport.cc index 88a20e33..f1bade9e 100644 --- a/filters/kspread/excel/import/excelimport.cc +++ b/filters/kspread/excel/import/excelimport.cc @@ -692,7 +692,7 @@ void ExcelImport::Private::processCellForStyle( Cell* cell, KoXmlWriter* xmlWrit if( !xmlWriter ) return; // only IF automatic style for this format has not been already created yet - if( !styleFormats.tqcontains( cell->formatIndex() ) ) + if( !styleFormats.contains( cell->formatIndex() ) ) { styleFormats[ cell->formatIndex() ] = true; diff --git a/filters/kspread/excel/sidewinder/excel.cpp b/filters/kspread/excel/sidewinder/excel.cpp index 7d128a5b..c201ea27 100644 --- a/filters/kspread/excel/sidewinder/excel.cpp +++ b/filters/kspread/excel/sidewinder/excel.cpp @@ -5520,11 +5520,11 @@ void ExcelReader::handleFooter( FooterRecord* record ) int pos = -1, len = 0; // left part - pos = footer.tqfind( UString("&L") ); + pos = footer.find( UString("&L") ); if( pos >= 0 ) { pos += 2; - len = footer.tqfind( UString("&C") ) - pos; + len = footer.find( UString("&C") ) - pos; if( len > 0 ) { left = footer.substr( pos, len ); @@ -5533,11 +5533,11 @@ void ExcelReader::handleFooter( FooterRecord* record ) } // center part - pos = footer.tqfind( UString("&C") ); + pos = footer.find( UString("&C") ); if( pos >= 0 ) { pos += 2; - len = footer.tqfind( UString("&R") ) - pos; + len = footer.find( UString("&R") ) - pos; if( len > 0 ) { center = footer.substr( pos, len ); @@ -5546,7 +5546,7 @@ void ExcelReader::handleFooter( FooterRecord* record ) } // right part - pos = footer.tqfind( UString("&R") ); + pos = footer.find( UString("&R") ); if( pos >= 0 ) { pos += 2; @@ -5569,11 +5569,11 @@ void ExcelReader::handleHeader( HeaderRecord* record ) int pos = -1, len = 0; // left part of the header - pos = header.tqfind( UString("&L") ); + pos = header.find( UString("&L") ); if( pos >= 0 ) { pos += 2; - len = header.tqfind( UString("&C") ) - pos; + len = header.find( UString("&C") ) - pos; if( len > 0 ) { left = header.substr( pos, len ); @@ -5582,11 +5582,11 @@ void ExcelReader::handleHeader( HeaderRecord* record ) } // center part of the header - pos = header.tqfind( UString("&C") ); + pos = header.find( UString("&C") ); if( pos >= 0 ) { pos += 2; - len = header.tqfind( UString("&R") ) - pos; + len = header.find( UString("&R") ) - pos; if( len > 0 ) { center = header.substr( pos, len ); @@ -5595,7 +5595,7 @@ void ExcelReader::handleHeader( HeaderRecord* record ) } // right part of the header - pos = header.tqfind( UString("&R") ); + pos = header.find( UString("&R") ); if( pos >= 0 ) { pos += 2; diff --git a/filters/kspread/excel/sidewinder/excel.h b/filters/kspread/excel/sidewinder/excel.h index 8450d643..c114aa80 100644 --- a/filters/kspread/excel/sidewinder/excel.h +++ b/filters/kspread/excel/sidewinder/excel.h @@ -1838,7 +1838,7 @@ private: /** - Class MergedCellsRecord represents MergedCells record, which tqcontains + Class MergedCellsRecord represents MergedCells record, which contains a list of all merged cells in the current sheets. Each entry in this list define the range of cells that should be merged, namely firstRow, lastRow, firstColumn and lastColumn. diff --git a/filters/kspread/excel/sidewinder/ustring.cpp b/filters/kspread/excel/sidewinder/ustring.cpp index 497bc586..b26ee196 100644 --- a/filters/kspread/excel/sidewinder/ustring.cpp +++ b/filters/kspread/excel/sidewinder/ustring.cpp @@ -492,7 +492,7 @@ UString UString::substr(int pos, int len) const return result; } -int UString::tqfind(const UString &f, int pos) const +int UString::find(const UString &f, int pos) const { if (isNull()) return -1; diff --git a/filters/kspread/excel/sidewinder/ustring.h b/filters/kspread/excel/sidewinder/ustring.h index 0643400d..1c4f2bc5 100644 --- a/filters/kspread/excel/sidewinder/ustring.h +++ b/filters/kspread/excel/sidewinder/ustring.h @@ -333,7 +333,7 @@ namespace Swinder { * @return Position of first occurence of f starting at position pos. * -1 if the search was not successful. */ - int tqfind(const UString &f, int pos = 0) const; + int find(const UString &f, int pos = 0) const; /** * Static instance of a null string. diff --git a/filters/kspread/gnumeric/gnumericexport.cc b/filters/kspread/gnumeric/gnumericexport.cc index beb78879..cccfcc9f 100644 --- a/filters/kspread/gnumeric/gnumericexport.cc +++ b/filters/kspread/gnumeric/gnumericexport.cc @@ -1340,8 +1340,8 @@ KoFilter::ConversiontqStatus GNUMERICExport::convert( const TQCString& from, con if ( cell->isFormula() ) { TQString tmp = cell->text(); - if ( tmp.tqcontains( "==" ) ) - tmp=tmp.tqreplace( "==", "=" ); + if ( tmp.contains( "==" ) ) + tmp=tmp.replace( "==", "=" ); text = tmp; isLink = false; } @@ -1406,7 +1406,7 @@ KoFilter::ConversiontqStatus GNUMERICExport::convert( const TQCString& from, con isLink = false; TQString tmp = cell->text(); if ( tmp =="==" ) - tmp=tqreplace( "==", "=" ); + tmp=replace( "==", "=" ); /* cell->calc( TRUE ); // Incredible, cells are not calculated if the document was just opened text = cell->valueString(); */ text = tmp; break; @@ -1561,12 +1561,12 @@ TQString GNUMERICExport::convertRefToBase( const TQString & table, const TQRect TQString GNUMERICExport::convertVariable( TQString headerFooter ) { - headerFooter = headerFooter.tqreplace( "", "&[TAB]" ); - headerFooter = headerFooter.tqreplace( "", "&[DATE]" ); - headerFooter = headerFooter.tqreplace( "", "&[PAGE]" ); - headerFooter = headerFooter.tqreplace( "", "&[PAGES]" ); - headerFooter = headerFooter.tqreplace( "