diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
commit | a374efce3a207b39514be3c52264091400ce297e (patch) | |
tree | 77bdf654b55826d4f59b53a5621310206bcaead1 /kmplot/kmplot/keditparametric.cpp | |
parent | f81a494f3957d5cf38c787973415597941934727 (diff) | |
download | tdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip |
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmplot/kmplot/keditparametric.cpp')
-rw-r--r-- | kmplot/kmplot/keditparametric.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kmplot/kmplot/keditparametric.cpp b/kmplot/kmplot/keditparametric.cpp index 67ee0421..332d93f9 100644 --- a/kmplot/kmplot/keditparametric.cpp +++ b/kmplot/kmplot/keditparametric.cpp @@ -22,7 +22,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ -// Qt includes +// TQt includes #include <tqcheckbox.h> // KDE includes @@ -41,8 +41,8 @@ #include "xparser.h" #include "View.h" -KEditParametric::KEditParametric( XParser* parser, TQWidget* parent, const char* name ) : - QEditParametric( parent, name ), m_parser(parser) +KEditParametric::KEditParametric( XParser* parser, TQWidget* tqparent, const char* name ) : + QEditParametric( tqparent, name ), m_parser(parser) { connect( customMinRange, TQT_SIGNAL ( toggled(bool) ), this, TQT_SLOT( customMinRange_toggled(bool) ) ); connect( customMaxRange, TQT_SIGNAL ( toggled(bool) ), this, TQT_SLOT( customMaxRange_toggled(bool) ) ); @@ -103,7 +103,7 @@ void KEditParametric::setWidgets() void KEditParametric::accept() { - if ( kLineEditXFunction->text().contains('y') != 0 || kLineEditYFunction->text().contains('y') != 0) + if ( kLineEditXFunction->text().tqcontains('y') != 0 || kLineEditYFunction->text().tqcontains('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.find('('); + int const pos = fname.tqfind('('); 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.find( '(' ) - start; + int length = equation.tqfind( '(' ) - start; name = equation.mid( start, length ); expression = equation.section( '=', 1, 1 ); |