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 | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kopainter | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
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
Diffstat (limited to 'lib/kopainter')
-rw-r--r-- | lib/kopainter/koIconChooser.cc | 4 | ||||
-rw-r--r-- | lib/kopainter/kogradientmanager.cc | 10 | ||||
-rw-r--r-- | lib/kopainter/svgpathparser.cc | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/lib/kopainter/koIconChooser.cc b/lib/kopainter/koIconChooser.cc index 4c7aab32..06efc8cf 100644 --- a/lib/kopainter/koIconChooser.cc +++ b/lib/kopainter/koIconChooser.cc @@ -125,7 +125,7 @@ void KoIconChooser::addItem(KoIconItem *item) bool KoIconChooser::removeItem(KoIconItem *item) { - int index = mIconList.tqfind(item); + int index = mIconList.find(item); bool ok = mIconList.remove(item); if( ok ) { @@ -155,7 +155,7 @@ KoIconItem *KoIconChooser::currentItem() // does NOT emit selected() (should it?) void KoIconChooser::setCurrentItem(KoIconItem *item) { - int index = mIconList.tqfind(item); + int index = mIconList.find(item); // item is available if(index != -1 && mNCols > 0) diff --git a/lib/kopainter/kogradientmanager.cc b/lib/kopainter/kogradientmanager.cc index 242b5470..c95a5671 100644 --- a/lib/kopainter/kogradientmanager.cc +++ b/lib/kopainter/kogradientmanager.cc @@ -38,7 +38,7 @@ KoGradientManager::~KoGradientManager() KoGradient* KoGradientManager::loadGradient(const TQString& filename) { TQString strExt; - const int result=filename.tqfindRev('.'); + const int result=filename.findRev('.'); if (result>=0) { strExt=filename.mid(result).lower(); @@ -466,7 +466,7 @@ KoGradient* KoGradientManager::parseSvgGradient(const TQDomElement& element) TQColor c; float off; TQString temp = colorstop.attribute( "offset" ); - if( temp.tqcontains( '%' ) ) + if( temp.contains( '%' ) ) { temp = temp.left( temp.length() - 1 ); off = temp.toFloat() / 100.0; @@ -521,19 +521,19 @@ void KoGradientManager::parseSvgColor(TQColor &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/lib/kopainter/svgpathparser.cc b/lib/kopainter/svgpathparser.cc index 1bdc3095..9295cdd2 100644 --- a/lib/kopainter/svgpathparser.cc +++ b/lib/kopainter/svgpathparser.cc @@ -93,7 +93,7 @@ SVGPathParser::parseSVG( const TQString &s, bool process ) if( !s.isEmpty() ) { TQString d = s; - d = d.tqreplace( ',', ' ' ); + d = d.replace( ',', ' ' ); d = d.simplifyWhiteSpace(); const char *ptr = d.latin1(); |