summaryrefslogtreecommitdiffstats
path: root/kmplot/kmplot/keditparametric.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmplot/kmplot/keditparametric.cpp')
-rw-r--r--kmplot/kmplot/keditparametric.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kmplot/kmplot/keditparametric.cpp b/kmplot/kmplot/keditparametric.cpp
index 332d93f9..4f133874 100644
--- a/kmplot/kmplot/keditparametric.cpp
+++ b/kmplot/kmplot/keditparametric.cpp
@@ -103,7 +103,7 @@ void KEditParametric::setWidgets()
void KEditParametric::accept()
{
- if ( kLineEditXFunction->text().tqcontains('y') != 0 || kLineEditYFunction->text().tqcontains('y') != 0)
+ if ( kLineEditXFunction->text().contains('y') != 0 || kLineEditYFunction->text().contains('y') != 0)
{
KMessageBox::error( this, i18n( "Recursive function not allowed"));
kLineEditXFunction->setFocus();
@@ -116,7 +116,7 @@ void KEditParametric::accept()
{
TQString fname;
m_parser->fixFunctionName(fname, XParser::ParametricX, m_x_id);
- int const pos = fname.tqfind('(');
+ int const pos = fname.find('(');
kLineEditName->setText(fname.mid(1,pos-1));
}
@@ -308,7 +308,7 @@ void KEditParametric::splitEquation( const TQString equation, TQString &name, TQ
{
int start = 0;
if( equation[ 0 ] == 'x' || equation[ 0 ] == 'y' ) start++;
- int length = equation.tqfind( '(' ) - start;
+ int length = equation.find( '(' ) - start;
name = equation.mid( start, length );
expression = equation.section( '=', 1, 1 );