From da4be7880ff1de6415ab6256afd2514e64f5fa2e 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/kdegraphics@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kolourpaint/tools/kptoolautocrop.cpp | 2 +- kolourpaint/tools/kptoolpen.cpp | 4 ++-- kolourpaint/tools/kptoolselection.cpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'kolourpaint/tools') diff --git a/kolourpaint/tools/kptoolautocrop.cpp b/kolourpaint/tools/kptoolautocrop.cpp index d8c8100f..1f3bab0c 100644 --- a/kolourpaint/tools/kptoolautocrop.cpp +++ b/kolourpaint/tools/kptoolautocrop.cpp @@ -34,7 +34,7 @@ // at the other extreme would not be deemed similar enough. The // key is to find the median color as the reference but how do // you do this if you don't know which pixels to sample in the first -// place (that's what you're trying to tqfind)? Chicken and egg situation. +// place (that's what you're trying to find)? Chicken and egg situation. // // The other heuristic that is in doubt is the use of the average // color in determining the similarity of sides (it is possible diff --git a/kolourpaint/tools/kptoolpen.cpp b/kolourpaint/tools/kptoolpen.cpp index 57e19527..d87e3e39 100644 --- a/kolourpaint/tools/kptoolpen.cpp +++ b/kolourpaint/tools/kptoolpen.cpp @@ -266,7 +266,7 @@ void kpToolPen::hover (const TQPoint &point) } #if DEBUG_KP_TOOL_PEN && 0 - if (document ()->rect ().tqcontains (point)) + if (document ()->rect ().contains (point)) { TQImage image = kpPixmapFX::convertToImage (*document ()->pixmap ()); @@ -538,7 +538,7 @@ void kpToolPen::draw (const TQPoint &thisPoint, const TQPoint &lastPoint, const bool didSomething = wash (&painter, &maskPainter, image, - color (1 - m_mouseButton)/*color to tqreplace*/, + color (1 - m_mouseButton)/*color to replace*/, rect, rect); if (painter.isActive ()) diff --git a/kolourpaint/tools/kptoolselection.cpp b/kolourpaint/tools/kptoolselection.cpp index dc689c4b..2d796ff0 100644 --- a/kolourpaint/tools/kptoolselection.cpp +++ b/kolourpaint/tools/kptoolselection.cpp @@ -141,7 +141,7 @@ TQString kpToolSelection::haventBegunDrawUserMessage () const else return i18n ("Left drag to scale selection."); } - else if (sel && sel->tqcontains (m_currentPoint)) + else if (sel && sel->contains (m_currentPoint)) { if (m_mode == Text) { @@ -300,7 +300,7 @@ void kpToolSelection::beginDraw () } viewManager ()->restoreQueueUpdates (); } - else if (sel->tqcontains (m_currentPoint)) + else if (sel->contains (m_currentPoint)) { if (m_mode == Text && onSelectionToSelectText () && !controlOrShiftPressed ()) { @@ -408,7 +408,7 @@ const TQCursor &kpToolSelection::cursor () const return TQt::arrowCursor; } - else if (sel && sel->tqcontains (m_currentPoint)) + else if (sel && sel->contains (m_currentPoint)) { #if DEBUG_KP_TOOL_SELECTION && 1 kdDebug () << "\tsel contains currentPoint; selecting text? " -- cgit v1.2.3