diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 6335dc55802871b5a43492f217b6edbb420204c4 (patch) | |
tree | 50c6c8672a52687568edea475614dfe3d98e62e5 /kregexpeditor | |
parent | 9b8c9f1f9e974ff0176108cfbd8852cd99ea68c8 (diff) | |
download | tdeutils-6335dc55802871b5a43492f217b6edbb420204c4.tar.gz tdeutils-6335dc55802871b5a43492f217b6edbb420204c4.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor')
-rw-r--r-- | kregexpeditor/KMultiFormListBox/kmultiformlistbox-multivisible.cpp | 4 | ||||
-rw-r--r-- | kregexpeditor/KWidgetStreamer/kwidgetstreamer.h | 2 | ||||
-rw-r--r-- | kregexpeditor/characterswidget.cpp | 2 | ||||
-rw-r--r-- | kregexpeditor/compoundwidget.cpp | 4 | ||||
-rw-r--r-- | kregexpeditor/editorwindow.cpp | 4 | ||||
-rwxr-xr-x | kregexpeditor/qt-only/clean | 2 | ||||
-rw-r--r-- | kregexpeditor/regexpwidget.cpp | 2 | ||||
-rw-r--r-- | kregexpeditor/singlecontainerwidget.cpp | 2 | ||||
-rw-r--r-- | kregexpeditor/userdefinedregexps.cpp | 2 |
9 files changed, 12 insertions, 12 deletions
diff --git a/kregexpeditor/KMultiFormListBox/kmultiformlistbox-multivisible.cpp b/kregexpeditor/KMultiFormListBox/kmultiformlistbox-multivisible.cpp index 0dfa991..ba37b73 100644 --- a/kregexpeditor/KMultiFormListBox/kmultiformlistbox-multivisible.cpp +++ b/kregexpeditor/KMultiFormListBox/kmultiformlistbox-multivisible.cpp @@ -154,7 +154,7 @@ void KMultiFormListBoxMultiVisible::append(KMultiFormListBoxEntry *elm) void KMultiFormListBoxMultiVisible::delElement(TQWidget *elm) { - int index = elms->tqfind(elm); + int index = elms->find(elm); TQWidget *next = elms->at(index+1); if (strcmp(next->name(),"seperator") != 0) { elms->removeRef(next); @@ -186,7 +186,7 @@ void KMultiFormListBoxMultiVisible::insertElmIntoWidget(KMultiFormListBoxEntry * // Find the location to insert the new element. int index = elms->count(); if (after) { - index = elms->tqfindRef(after); + index = elms->findRef(after); } // Now show the new element. diff --git a/kregexpeditor/KWidgetStreamer/kwidgetstreamer.h b/kregexpeditor/KWidgetStreamer/kwidgetstreamer.h index d04382f..6d9bfd7 100644 --- a/kregexpeditor/KWidgetStreamer/kwidgetstreamer.h +++ b/kregexpeditor/KWidgetStreamer/kwidgetstreamer.h @@ -37,7 +37,7 @@ <pre> KWidgetStreamer streamer; KWidgetStreamer::PropertyMap& map = streamer.propertyMap(); - KWidgetStreamer::PropertyList& list = *map.tqfind(TQLCDNUMBER_OBJECT_NAME_STRING); + KWidgetStreamer::PropertyList& list = *map.find(TQLCDNUMBER_OBJECT_NAME_STRING); list.remove("numDigits"); </pre> **/ diff --git a/kregexpeditor/characterswidget.cpp b/kregexpeditor/characterswidget.cpp index f8a6870..2656c2f 100644 --- a/kregexpeditor/characterswidget.cpp +++ b/kregexpeditor/characterswidget.cpp @@ -171,7 +171,7 @@ TQString CharactersWidget::title() const RegExpWidget* CharactersWidget::findWidgetToEdit( TQPoint globalPos ) { - if ( TQRect(mapToGlobal(TQPoint(0,0)), size()).tqcontains( globalPos ) ) + if ( TQRect(mapToGlobal(TQPoint(0,0)), size()).contains( globalPos ) ) return this; else return 0; diff --git a/kregexpeditor/compoundwidget.cpp b/kregexpeditor/compoundwidget.cpp index 3112416..00c484c 100644 --- a/kregexpeditor/compoundwidget.cpp +++ b/kregexpeditor/compoundwidget.cpp @@ -259,7 +259,7 @@ RegExp* CompoundWidget::regExp() const void CompoundWidget::mousePressEvent( TQMouseEvent* event ) { if ( event->button() == Qt::LeftButton && - TQRect( _pixmapPos, _pixmapSize ).tqcontains( event->pos() ) ) { + TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) { // Skip otherwise we will never see the mouse release // since it is eaten by Editor window. } @@ -270,7 +270,7 @@ void CompoundWidget::mousePressEvent( TQMouseEvent* event ) void CompoundWidget::mouseReleaseEvent( TQMouseEvent* event) { if ( event->button() == Qt::LeftButton && - TQRect( _pixmapPos, _pixmapSize ).tqcontains( event->pos() ) ) { + TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) { _hidden = !_hidden; _editorWindow->updateContent( 0 ); tqrepaint(); // is this necesary? diff --git a/kregexpeditor/editorwindow.cpp b/kregexpeditor/editorwindow.cpp index a7b793e..8b87998 100644 --- a/kregexpeditor/editorwindow.cpp +++ b/kregexpeditor/editorwindow.cpp @@ -95,7 +95,7 @@ void RegExpEditorWindow::mousePressEvent ( TQMouseEvent* event ) bool RegExpEditorWindow::pointSelected( TQPoint p ) const { TQRect rect = _top->selectionRect(); - return rect.tqcontains(p); + return rect.contains(p); } void RegExpEditorWindow::mouseMoveEvent ( TQMouseEvent* event ) @@ -168,7 +168,7 @@ bool RegExpEditorWindow::selectionOverlap( TQPoint pos, TQSize size ) const { TQRect child(pos, size); - return (_selection.intersects(child) && ! child.tqcontains(_selection)); + return (_selection.intersects(child) && ! child.contains(_selection)); } bool RegExpEditorWindow::hasSelection() const diff --git a/kregexpeditor/qt-only/clean b/kregexpeditor/qt-only/clean index c594401..4fa6772 100755 --- a/kregexpeditor/qt-only/clean +++ b/kregexpeditor/qt-only/clean @@ -5,7 +5,7 @@ rm -rf manual rm -rf predefined rm -rf icons rm unistd.h -tqfind -lname \* -maxdepth 1 | xargs rm +find -lname \* -maxdepth 1 | xargs rm rm tqmoc_* rm images.h rm gen_* diff --git a/kregexpeditor/regexpwidget.cpp b/kregexpeditor/regexpwidget.cpp index 1e2ec6f..53e8540 100644 --- a/kregexpeditor/regexpwidget.cpp +++ b/kregexpeditor/regexpwidget.cpp @@ -207,7 +207,7 @@ bool RegExpWidget::acceptWidgetInsert( RegExpType tp ) const RegExpWidget* RegExpWidget::widgetUnderPoint( TQPoint globalPos, bool ) { - if ( TQRect(mapToGlobal( TQPoint(0,0) ), size() ).tqcontains( globalPos ) ) + if ( TQRect(mapToGlobal( TQPoint(0,0) ), size() ).contains( globalPos ) ) return this; else return 0; diff --git a/kregexpeditor/singlecontainerwidget.cpp b/kregexpeditor/singlecontainerwidget.cpp index dc9cdec..bfa90b9 100644 --- a/kregexpeditor/singlecontainerwidget.cpp +++ b/kregexpeditor/singlecontainerwidget.cpp @@ -98,7 +98,7 @@ RegExpWidget* SingleContainerWidget::findWidgetToEdit( TQPoint globalPos ) RegExpWidget* wid = _child->findWidgetToEdit( globalPos ); if ( wid ) return wid; - else if ( TQRect(mapToGlobal(TQPoint(0,0)), size()).tqcontains( globalPos ) ) + else if ( TQRect(mapToGlobal(TQPoint(0,0)), size()).contains( globalPos ) ) return this; else return 0; diff --git a/kregexpeditor/userdefinedregexps.cpp b/kregexpeditor/userdefinedregexps.cpp index b251295..723e81f 100644 --- a/kregexpeditor/userdefinedregexps.cpp +++ b/kregexpeditor/userdefinedregexps.cpp @@ -226,7 +226,7 @@ void UserDefinedRegExps::slotSelectNewAction() WidgetWinItem::WidgetWinItem( TQString fileName, RegExp* regexp, bool usersRegExp, TQListViewItem* tqparent ) :TQListViewItem( tqparent ), _regexp( regexp ), _usersRegExp ( usersRegExp ) { - int index = fileName.tqfindRev(TQString::fromLocal8Bit(".regexp")); + int index = fileName.findRev(TQString::fromLocal8Bit(".regexp")); _name = fileName.left(index); setText( 0, _name ); |