summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_condition.cc
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 /kspread/kspread_condition.cc
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 'kspread/kspread_condition.cc')
-rw-r--r--kspread/kspread_condition.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/kspread/kspread_condition.cc b/kspread/kspread_condition.cc
index fdca8e46..876dfbf0 100644
--- a/kspread/kspread_condition.cc
+++ b/kspread/kspread_condition.cc
@@ -475,14 +475,14 @@ void Conditions::loadOasisConditions( const TQDomElement & element )
void Conditions::loadOasisConditionValue( const TQString &styleCondition, Conditional &newCondition )
{
TQString val( styleCondition );
- if ( val.tqcontains( "cell-content()" ) )
+ if ( val.contains( "cell-content()" ) )
{
val = val.remove( "cell-content()" );
loadOasisCondition( val,newCondition );
}
//GetFunction ::= cell-content-is-between(Value, Value) | cell-content-is-not-between(Value, Value)
//for the moment we support just int/double value, not text/date/time :(
- if ( val.tqcontains( "cell-content-is-between(" ) )
+ if ( val.contains( "cell-content-is-between(" ) )
{
val = val.remove( "cell-content-is-between(" );
val = val.remove( ")" );
@@ -490,7 +490,7 @@ void Conditions::loadOasisConditionValue( const TQString &styleCondition, Condit
loadOasisValidationValue( listVal, newCondition );
newCondition.cond = Conditional::Between;
}
- if ( val.tqcontains( "cell-content-is-not-between(" ) )
+ if ( val.contains( "cell-content-is-not-between(" ) )
{
val = val.remove( "cell-content-is-not-between(" );
val = val.remove( ")" );
@@ -505,33 +505,33 @@ void Conditions::loadOasisConditionValue( const TQString &styleCondition, Condit
void Conditions::loadOasisCondition( TQString &valExpression, Conditional &newCondition )
{
TQString value;
- if (valExpression.tqfind( "<=" )==0 )
+ if (valExpression.find( "<=" )==0 )
{
value = valExpression.remove( 0,2 );
newCondition.cond = Conditional::InferiorEqual;
}
- else if (valExpression.tqfind( ">=" )==0 )
+ else if (valExpression.find( ">=" )==0 )
{
value = valExpression.remove( 0,2 );
newCondition.cond = Conditional::SuperiorEqual;
}
- else if (valExpression.tqfind( "!=" )==0 )
+ else if (valExpression.find( "!=" )==0 )
{
//add Differentto attribute
value = valExpression.remove( 0,2 );
newCondition.cond = Conditional::DifferentTo;
}
- else if ( valExpression.tqfind( "<" )==0 )
+ else if ( valExpression.find( "<" )==0 )
{
value = valExpression.remove( 0,1 );
newCondition.cond = Conditional::Inferior;
}
- else if(valExpression.tqfind( ">" )==0 )
+ else if(valExpression.find( ">" )==0 )
{
value = valExpression.remove( 0,1 );
newCondition.cond = Conditional::Superior;
}
- else if (valExpression.tqfind( "=" )==0 )
+ else if (valExpression.find( "=" )==0 )
{
value = valExpression.remove( 0,1 );
newCondition.cond = Conditional::Equal;