summaryrefslogtreecommitdiffstats
path: root/kugar/lib
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /kugar/lib
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-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 'kugar/lib')
-rw-r--r--kugar/lib/inputmask.cpp4
-rw-r--r--kugar/lib/mfieldobject.cpp4
-rw-r--r--kugar/lib/mreportengine.cpp30
3 files changed, 19 insertions, 19 deletions
diff --git a/kugar/lib/inputmask.cpp b/kugar/lib/inputmask.cpp
index 8194a211..6fb49220 100644
--- a/kugar/lib/inputmask.cpp
+++ b/kugar/lib/inputmask.cpp
@@ -255,7 +255,7 @@ TQString InputMask::maskString( uint pos, const TQString &str, bool clear ) cons
if ( str.length() != 1 || i == 0 || ( i > 0 && ( !m_maskData[ i - 1 ].separator || m_maskData[ i - 1 ].maskChar != str[ ( int ) strIndex ] ) ) )
{
s += fill.mid( i, n - i + 1 );
- i = n + 1; // update i to tqfind + 1
+ i = n + 1; // update i to find + 1
}
}
else
@@ -276,7 +276,7 @@ TQString InputMask::maskString( uint pos, const TQString &str, bool clear ) cons
default:
s += str[ ( int ) strIndex ];
}
- i = n + 1; // updates i to tqfind + 1
+ i = n + 1; // updates i to find + 1
}
}
}
diff --git a/kugar/lib/mfieldobject.cpp b/kugar/lib/mfieldobject.cpp
index b0918c8c..7f7b994a 100644
--- a/kugar/lib/mfieldobject.cpp
+++ b/kugar/lib/mfieldobject.cpp
@@ -203,7 +203,7 @@ void MFieldObject::formatNegValue()
/** Formats the string representation of a number with comma separators */
void MFieldObject::formatCommas()
{
- // text = text.tqreplace(".", ",");
+ // text = text.replace(".", ",");
TQString tmp;
int i, j;
int offset;
@@ -215,7 +215,7 @@ void MFieldObject::formatCommas()
offset = 0;
// Look for decimal point
- int pos = text.tqfindRev( "." );
+ int pos = text.findRev( "." );
// If a decimal was not found, start at end of string
if ( pos == -1 )
diff --git a/kugar/lib/mreportengine.cpp b/kugar/lib/mreportengine.cpp
index 654e1fff..4e1544d3 100644
--- a/kugar/lib/mreportengine.cpp
+++ b/kugar/lib/mreportengine.cpp
@@ -933,9 +933,9 @@ void MReportEngine::setLineAttributes( MLineObject* line, TQDomNamedNodeMap* att
TQString tmp = attr->namedItem( "Color" ).nodeValue();
- line->setColor( tmp.left( tmp.tqfind( "," ) ).toInt(),
- tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(),
- tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() );
+ line->setColor( tmp.left( tmp.find( "," ) ).toInt(),
+ tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(),
+ tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() );
line->setWidth( attr->namedItem( "Width" ).nodeValue().toInt() );
line->setStyle( attr->namedItem( "Style" ).nodeValue().toInt() );
@@ -953,19 +953,19 @@ void MReportEngine::setLabelAttributes( MLabelObject* label, TQDomNamedNodeMap*
scaleDeltaHeight( attr->namedItem( "Height" ).nodeValue().toInt() ) );
tmp = attr->namedItem( "BackgroundColor" ).nodeValue();
- label->setBackgroundColor( tmp.left( tmp.tqfind( "," ) ).toInt(),
- tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(),
- tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() );
+ label->setBackgroundColor( tmp.left( tmp.find( "," ) ).toInt(),
+ tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(),
+ tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() );
tmp = attr->namedItem( "ForegroundColor" ).nodeValue();
- label->setForegroundColor( tmp.left( tmp.tqfind( "," ) ).toInt(),
- tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(),
- tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() );
+ label->setForegroundColor( tmp.left( tmp.find( "," ) ).toInt(),
+ tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(),
+ tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() );
tmp = attr->namedItem( "BorderColor" ).nodeValue();
- label->setBorderColor( tmp.left( tmp.tqfind( "," ) ).toInt(),
- tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(),
- tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() );
+ label->setBorderColor( tmp.left( tmp.find( "," ) ).toInt(),
+ tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(),
+ tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() );
label->setBorderWidth( attr->namedItem( "BorderWidth" ).nodeValue().toInt() );
label->setBorderStyle( attr->namedItem( "BorderStyle" ).nodeValue().toInt() );
@@ -1008,9 +1008,9 @@ void MReportEngine::setFieldAttributes( MFieldObject* field, TQDomNamedNodeMap*
TQString tmp = attr->namedItem( "NegValueColor" ).nodeValue();
- field->setNegValueColor( tmp.left( tmp.tqfind( "," ) ).toInt(),
- tmp.mid( tmp.tqfind( "," ) + 1, ( tmp.tqfindRev( "," ) - tmp.tqfind( "," ) ) - 1 ).toInt(),
- tmp.right( tmp.length() - tmp.tqfindRev( "," ) - 1 ).toInt() );
+ field->setNegValueColor( tmp.left( tmp.find( "," ) ).toInt(),
+ tmp.mid( tmp.find( "," ) + 1, ( tmp.findRev( "," ) - tmp.find( "," ) ) - 1 ).toInt(),
+ tmp.right( tmp.length() - tmp.findRev( "," ) - 1 ).toInt() );
setLabelAttributes( ( MLabelObject * ) field, attr );
}