diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kspread/kspread_autofill.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread/kspread_autofill.cc')
-rw-r--r-- | kspread/kspread_autofill.cc | 202 |
1 files changed, 101 insertions, 101 deletions
diff --git a/kspread/kspread_autofill.cc b/kspread/kspread_autofill.cc index c5e0084f0..8a84e9048 100644 --- a/kspread/kspread_autofill.cc +++ b/kspread/kspread_autofill.cc @@ -30,7 +30,7 @@ #include <math.h> -#include <qregexp.h> +#include <tqregexp.h> #include <kconfig.h> #include <kdebug.h> @@ -45,11 +45,11 @@ using namespace KSpread; -QStringList *AutoFillSequenceItem::month = 0L; -QStringList *AutoFillSequenceItem::shortMonth = 0L; -QStringList *AutoFillSequenceItem::day = 0L; -QStringList *AutoFillSequenceItem::shortDay = 0L; -QStringList *AutoFillSequenceItem::other = 0L; +TQStringList *AutoFillSequenceItem::month = 0L; +TQStringList *AutoFillSequenceItem::shortMonth = 0L; +TQStringList *AutoFillSequenceItem::day = 0L; +TQStringList *AutoFillSequenceItem::shortDay = 0L; +TQStringList *AutoFillSequenceItem::other = 0L; /********************************************************************************** * * AutoFillDeltaSequence @@ -66,7 +66,7 @@ AutoFillDeltaSequence::AutoFillDeltaSequence( AutoFillSequence *_first, AutoFill return; } - m_sequence = new QMemArray<double> ( _first->count() ); + m_sequence = new TQMemArray<double> ( _first->count() ); AutoFillSequenceItem *item = _first->getFirst(); AutoFillSequenceItem *item2 = _next->getFirst(); @@ -135,14 +135,14 @@ AutoFillSequenceItem::AutoFillSequenceItem( double _d ) m_Type = FLOAT; } -AutoFillSequenceItem::AutoFillSequenceItem( const QString &_str ) +AutoFillSequenceItem::AutoFillSequenceItem( const TQString &_str ) { m_String = _str; m_Type = STRING; if ( month == 0L ) { - month = new QStringList(); + month = new TQStringList(); month->append( i18n("January") ); month->append( i18n("February") ); month->append( i18n("March") ); @@ -159,7 +159,7 @@ AutoFillSequenceItem::AutoFillSequenceItem( const QString &_str ) if ( shortMonth == 0L ) { - shortMonth = new QStringList(); + shortMonth = new TQStringList(); shortMonth->append( i18n("Jan") ); shortMonth->append( i18n("Feb") ); shortMonth->append( i18n("Mar") ); @@ -176,7 +176,7 @@ AutoFillSequenceItem::AutoFillSequenceItem( const QString &_str ) if ( day == 0L ) { - day = new QStringList(); + day = new TQStringList(); day->append( i18n("Monday") ); day->append( i18n("Tuesday") ); day->append( i18n("Wednesday") ); @@ -188,7 +188,7 @@ AutoFillSequenceItem::AutoFillSequenceItem( const QString &_str ) if ( shortDay == 0L ) { - shortDay = new QStringList(); + shortDay = new TQStringList(); shortDay->append( i18n("Mon") ); shortDay->append( i18n("Tue") ); shortDay->append( i18n("Wed") ); @@ -200,44 +200,44 @@ AutoFillSequenceItem::AutoFillSequenceItem( const QString &_str ) if( other==0L) { - // other=new QStringList(); + // other=new TQStringList(); KConfig *config = Factory::global()->config(); config->setGroup( "Parameters" ); - other=new QStringList(config->readListEntry("Other list")); + other=new TQStringList(config->readListEntry("Other list")); } - if ( month->find( _str ) != month->end() ) + if ( month->tqfind( _str ) != month->end() ) { m_Type = MONTH; return; } - if ( shortMonth->find( _str ) != shortMonth->end() ) + if ( shortMonth->tqfind( _str ) != shortMonth->end() ) { m_Type = SHORTMONTH; return; } - if ( day->find( _str ) != day->end() ) + if ( day->tqfind( _str ) != day->end() ) { m_Type = DAY; return; } - if ( shortDay->find( _str ) != shortDay->end() ) + if ( shortDay->tqfind( _str ) != shortDay->end() ) { m_Type = SHORTDAY; return; } - if( other->find(_str)!=other->end()) + if( other->tqfind(_str)!=other->end()) { m_Type = OTHER; m_OtherBegin=0; m_OtherEnd=other->count(); - int index= other->findIndex(_str); + int index= other->tqfindIndex(_str); //find end and begin of qstringlist of other. - for ( QStringList::Iterator it = other->find(_str); it != other->end();++it ) + for ( TQStringList::Iterator it = other->tqfind(_str); it != other->end();++it ) { if((*it)=="\\") { @@ -246,8 +246,8 @@ AutoFillSequenceItem::AutoFillSequenceItem( const QString &_str ) } index++; } - index= other->findIndex(_str); - for ( QStringList::Iterator it = other->find(_str); it != other->begin();--it ) + index= other->tqfindIndex(_str); + for ( TQStringList::Iterator it = other->tqfind(_str); it != other->begin();--it ) { if((*it)=="\\") { @@ -286,8 +286,8 @@ bool AutoFillSequenceItem::getDelta( AutoFillSequenceItem *seq, double &_delta ) return false; case MONTH: { - int i = month->findIndex( m_String ); - int j = month->findIndex( seq->getString() ); + int i = month->tqfindIndex( m_String ); + int j = month->tqfindIndex( seq->getString() ); int k = j; if ( j + 1 == i ) @@ -299,8 +299,8 @@ bool AutoFillSequenceItem::getDelta( AutoFillSequenceItem *seq, double &_delta ) case SHORTMONTH: { - int i = shortMonth->findIndex( m_String ); - int j = shortMonth->findIndex( seq->getString() ); + int i = shortMonth->tqfindIndex( m_String ); + int j = shortMonth->tqfindIndex( seq->getString() ); int k = j; if ( j + 1 == i ) @@ -312,8 +312,8 @@ bool AutoFillSequenceItem::getDelta( AutoFillSequenceItem *seq, double &_delta ) case DAY: { - int i = day->findIndex( m_String ); - int j = day->findIndex( seq->getString() ); + int i = day->tqfindIndex( m_String ); + int j = day->tqfindIndex( seq->getString() ); int k = j; if ( j + 1 == i ) @@ -326,8 +326,8 @@ bool AutoFillSequenceItem::getDelta( AutoFillSequenceItem *seq, double &_delta ) case SHORTDAY: { - int i = shortDay->findIndex( m_String ); - int j = shortDay->findIndex( seq->getString() ); + int i = shortDay->tqfindIndex( m_String ); + int j = shortDay->tqfindIndex( seq->getString() ); int k = j; if ( j + 1 == i ) @@ -340,8 +340,8 @@ bool AutoFillSequenceItem::getDelta( AutoFillSequenceItem *seq, double &_delta ) { if( m_OtherEnd!= seq->getIOtherEnd() || m_OtherBegin!= seq->getIOtherBegin()) return false; - int i = other->findIndex( m_String ); - int j = other->findIndex( seq->getString() ); + int i = other->tqfindIndex( m_String ); + int j = other->tqfindIndex( seq->getString() ); int k = j; if ( j < i ) k += (m_OtherEnd - m_OtherBegin - 1); @@ -356,9 +356,9 @@ bool AutoFillSequenceItem::getDelta( AutoFillSequenceItem *seq, double &_delta ) } } -QString AutoFillSequenceItem::getSuccessor( int _no, double _delta ) +TQString AutoFillSequenceItem::getSuccessor( int _no, double _delta ) { - QString erg; + TQString erg; switch( m_Type ) { case INTEGER: @@ -373,7 +373,7 @@ QString AutoFillSequenceItem::getSuccessor( int _no, double _delta ) break; case MONTH: { - int i = month->findIndex( m_String ); + int i = month->tqfindIndex( m_String ); int j = i + _no * (int) _delta; while (j < 0) j += month->count(); @@ -383,7 +383,7 @@ QString AutoFillSequenceItem::getSuccessor( int _no, double _delta ) break; case SHORTMONTH: { - int i = shortMonth->findIndex( m_String ); + int i = shortMonth->tqfindIndex( m_String ); int j = i + _no * (int) _delta; while (j < 0) j += shortMonth->count(); @@ -393,7 +393,7 @@ QString AutoFillSequenceItem::getSuccessor( int _no, double _delta ) break; case DAY: { - int i = day->findIndex( m_String ); + int i = day->tqfindIndex( m_String ); int j = i + _no * (int) _delta; while (j < 0) j += day->count(); @@ -403,7 +403,7 @@ QString AutoFillSequenceItem::getSuccessor( int _no, double _delta ) break; case SHORTDAY: { - int i = shortDay->findIndex( m_String ); + int i = shortDay->tqfindIndex( m_String ); int j = i + _no * (int) _delta; while (j < 0) j += shortDay->count(); @@ -413,7 +413,7 @@ QString AutoFillSequenceItem::getSuccessor( int _no, double _delta ) break; case OTHER: { - int i = other->findIndex( m_String )-(m_OtherBegin+1); + int i = other->tqfindIndex( m_String )-(m_OtherBegin+1); int j = i + _no * (int) _delta; int k = j % (m_OtherEnd - m_OtherBegin-1); erg = (*other->at( (k+m_OtherBegin+1) )); @@ -424,12 +424,12 @@ QString AutoFillSequenceItem::getSuccessor( int _no, double _delta ) break; } - return QString( erg ); + return TQString( erg ); } -QString AutoFillSequenceItem::getPredecessor( int _no, double _delta ) +TQString AutoFillSequenceItem::getPredecessor( int _no, double _delta ) { - QString erg; + TQString erg; switch( m_Type ) { case INTEGER: @@ -444,7 +444,7 @@ QString AutoFillSequenceItem::getPredecessor( int _no, double _delta ) break; case MONTH: { - int i = month->findIndex( m_String ); + int i = month->tqfindIndex( m_String ); int j = i - _no * (int) _delta; while ( j < 0 ) j += month->count(); @@ -454,7 +454,7 @@ QString AutoFillSequenceItem::getPredecessor( int _no, double _delta ) break; case SHORTMONTH: { - int i = shortMonth->findIndex( m_String ); + int i = shortMonth->tqfindIndex( m_String ); int j = i - _no * (int) _delta; while ( j < 0 ) j += shortMonth->count(); @@ -464,7 +464,7 @@ QString AutoFillSequenceItem::getPredecessor( int _no, double _delta ) break; case DAY: { - int i = day->findIndex( m_String ); + int i = day->tqfindIndex( m_String ); int j = i - _no * (int) _delta; while ( j < 0 ) j += day->count(); @@ -474,7 +474,7 @@ QString AutoFillSequenceItem::getPredecessor( int _no, double _delta ) break; case SHORTDAY: { - int i = shortDay->findIndex( m_String ); + int i = shortDay->tqfindIndex( m_String ); int j = i - _no * (int) _delta; while ( j < 0 ) j += shortDay->count(); @@ -484,7 +484,7 @@ QString AutoFillSequenceItem::getPredecessor( int _no, double _delta ) break; case OTHER: { - int i = other->findIndex( m_String ) - (m_OtherBegin + 1); + int i = other->tqfindIndex( m_String ) - (m_OtherBegin + 1); int j = i - _no * (int) _delta; while ( j < 0 ) j += (m_OtherEnd - m_OtherBegin - 1); @@ -497,7 +497,7 @@ QString AutoFillSequenceItem::getPredecessor( int _no, double _delta ) break; } - return QString( erg ); + return TQString( erg ); } /********************************************************************************** @@ -512,7 +512,7 @@ AutoFillSequence::AutoFillSequence( Cell *_cell ) if ( _cell->isFormula() ) { - QString d = _cell->encodeFormula(); + TQString d = _cell->encodeFormula(); sequence.append( new AutoFillSequenceItem( d ) ); } else if ( _cell->value().isNumber() ) @@ -542,12 +542,12 @@ bool AutoFillSequence::matches( AutoFillSequence* _seq, AutoFillDeltaSequence *_ void AutoFillSequence::fillCell( Cell *src, Cell *dest, AutoFillDeltaSequence *delta, int _block, bool down ) { - QString erg = ""; + TQString erg = ""; // Special handling for formulas if ( sequence.first() != 0L && sequence.first()->getType() == AutoFillSequenceItem::FORMULA ) { - QString f = dest->decodeFormula( sequence.first()->getString() ); + TQString f = dest->decodeFormula( sequence.first()->getString() ); dest->setCellText( f ); dest->copyFormat( src ); return; @@ -576,7 +576,7 @@ void AutoFillSequence::fillCell( Cell *src, Cell *dest, AutoFillDeltaSequence *d * **********************************************************************************/ -void Sheet::autofill( QRect &src, QRect &dest ) +void Sheet::autofill( TQRect &src, TQRect &dest ) { if (src == dest) { @@ -603,13 +603,13 @@ void Sheet::autofill( QRect &src, QRect &dest ) for ( int y = src.top(); y <= src.bottom(); y++ ) { int x; - QPtrList<Cell> destList; + TQPtrList<Cell> destList; for ( x = src.right() + 1; x <= dest.right(); x++ ) destList.append( nonDefaultCell( x, y ) ); - QPtrList<Cell> srcList; + TQPtrList<Cell> srcList; for ( x = src.left(); x <= src.right(); x++ ) srcList.append( cellAt( x, y ) ); - QPtrList<AutoFillSequence> seqList; + TQPtrList<AutoFillSequence> seqList; seqList.setAutoDelete( true ); for ( x = src.left(); x <= src.right(); x++ ) seqList.append( new AutoFillSequence( cellAt( x, y ) ) ); @@ -623,15 +623,15 @@ void Sheet::autofill( QRect &src, QRect &dest ) for ( int x = src.left(); x <= dest.right(); x++ ) { int y; - QPtrList<Cell> destList; + TQPtrList<Cell> destList; for ( y = src.bottom() + 1; y <= dest.bottom(); y++ ) destList.append( nonDefaultCell( x, y ) ); - QPtrList<Cell> srcList; + TQPtrList<Cell> srcList; for ( y = src.top(); y <= src.bottom(); y++ ) { srcList.append( cellAt( x, y ) ); } - QPtrList<AutoFillSequence> seqList; + TQPtrList<AutoFillSequence> seqList; seqList.setAutoDelete( true ); for ( y = src.top(); y <= src.bottom(); y++ ) seqList.append( new AutoFillSequence( cellAt( x, y ) ) ); @@ -648,18 +648,18 @@ void Sheet::autofill( QRect &src, QRect &dest ) for ( int y = dest.top(); y <= dest.bottom(); y++ ) { int x; - QPtrList<Cell> destList; + TQPtrList<Cell> destList; for ( x = dest.left(); x < src.left(); x++ ) { destList.append( nonDefaultCell( x, y ) ); } - QPtrList<Cell> srcList; + TQPtrList<Cell> srcList; for ( x = src.left(); x <= src.right(); x++ ) { srcList.append( cellAt( x, y ) ); } - QPtrList<AutoFillSequence> seqList; + TQPtrList<AutoFillSequence> seqList; seqList.setAutoDelete( true ); for ( x = src.left(); x <= src.right(); x++ ) seqList.append( new AutoFillSequence( cellAt( x, y ) ) ); @@ -672,20 +672,20 @@ void Sheet::autofill( QRect &src, QRect &dest ) { if (src.top() != dest.bottom() ) dest.setBottom(dest.bottom() - 1); - int startVal = QMIN( dest.left(), src.left()); - int endVal = QMAX(src.right(), dest.right()); + int startVal = TQMIN( dest.left(), src.left()); + int endVal = TQMAX(src.right(), dest.right()); for ( int x = startVal; x <= endVal; x++ ) { int y; - QPtrList<Cell> destList; + TQPtrList<Cell> destList; for ( y = dest.top(); y < src.top(); y++ ) destList.append( nonDefaultCell( x, y ) ); - QPtrList<Cell> srcList; + TQPtrList<Cell> srcList; for ( y = src.top(); y <= src.bottom(); ++y ) { srcList.append( cellAt( x, y ) ); } - QPtrList<AutoFillSequence> seqList; + TQPtrList<AutoFillSequence> seqList; seqList.setAutoDelete( true ); for ( y = src.top(); y <= src.bottom(); y++ ) seqList.append( new AutoFillSequence( cellAt( x, y ) ) ); @@ -703,9 +703,9 @@ void Sheet::autofill( QRect &src, QRect &dest ) } -void Sheet::fillSequence( QPtrList<Cell>& _srcList, - QPtrList<Cell>& _destList, - QPtrList<AutoFillSequence>& _seqList, +void Sheet::fillSequence( TQPtrList<Cell>& _srcList, + TQPtrList<Cell>& _destList, + TQPtrList<AutoFillSequence>& _seqList, bool down) { doc()->emitBeginOperation(true); @@ -721,14 +721,14 @@ void Sheet::fillSequence( QPtrList<Cell>& _srcList, } -QVariant getDiff( const Value& value1, const Value& value2 , AutoFillSequenceItem::Type type ) +TQVariant getDiff( const Value& value1, const Value& value2 , AutoFillSequenceItem::Type type ) { if ( type == AutoFillSequenceItem::FLOAT ) - return QVariant( value2.asFloat() - value1.asFloat() ); + return TQVariant( value2.asFloat() - value1.asFloat() ); if ( type == AutoFillSequenceItem::TIME || type == AutoFillSequenceItem::DATE ) - return QVariant( (int)( value2.asInteger() - value1.asInteger() ) ); + return TQVariant( (int)( value2.asInteger() - value1.asInteger() ) ); - return QVariant( (int)0 ); + return TQVariant( (int)0 ); // note: date and time difference can be calculated as // the difference of the serial number /* if( (type == AutoFillSequenceItem::FLOAT) || @@ -739,15 +739,15 @@ QVariant getDiff( const Value& value1, const Value& value2 , AutoFillSequenceIt return 0.0;*/ } -bool Sheet::FillSequenceWithInterval(QPtrList<Cell>& _srcList, - QPtrList<Cell>& _destList, - QPtrList<AutoFillSequence>& _seqList, +bool Sheet::FillSequenceWithInterval(TQPtrList<Cell>& _srcList, + TQPtrList<Cell>& _destList, + TQPtrList<AutoFillSequence>& _seqList, bool down) { if (_srcList.first()->isFormula()) return false; - QPtrList<AutoFillDeltaSequence> deltaList; + TQPtrList<AutoFillDeltaSequence> deltaList; deltaList.setAutoDelete( true ); bool ok = false; @@ -755,8 +755,8 @@ bool Sheet::FillSequenceWithInterval(QPtrList<Cell>& _srcList, { AutoFillSequenceItem::Type type; - QValueVector< QVariant > tmp( _seqList.count() ); /*= new QValueList< QVariant > ( _seqList.count() )*/; - QValueVector< QVariant > diff( _seqList.count() ); /*= new QValueList< QVariant > ( _seqList.count() )*/; + TQValueVector< TQVariant > tmp( _seqList.count() ); /*= new TQValueList< TQVariant > ( _seqList.count() )*/; + TQValueVector< TQVariant > diff( _seqList.count() ); /*= new TQValueList< TQVariant > ( _seqList.count() )*/; int p = -1; int count = 0; int tmpcount = 0; @@ -813,7 +813,7 @@ bool Sheet::FillSequenceWithInterval(QPtrList<Cell>& _srcList, } } - QVariant delta = getDiff(cellValue , cell2Value , type ); + TQVariant delta = getDiff(cellValue , cell2Value , type ); if (count < 1) { @@ -856,7 +856,7 @@ bool Sheet::FillSequenceWithInterval(QPtrList<Cell>& _srcList, // we have found something: if (count > 0 && (tmpcount > 0 || count == 1)) { - QVariant cellValue( (int) 0 ); + TQVariant cellValue( (int) 0 ); Cell * dest; Cell * src; @@ -880,7 +880,7 @@ bool Sheet::FillSequenceWithInterval(QPtrList<Cell>& _srcList, else cellValue = (int)src->value().asInteger(); - QString res; + TQString res; // copy all the data while (dest) { @@ -895,9 +895,9 @@ bool Sheet::FillSequenceWithInterval(QPtrList<Cell>& _srcList, i += count; } - QVariant currentDiff = diff.at( i ); + TQVariant currentDiff = diff.at( i ); - if (cellValue.type() == QVariant::Double) + if (cellValue.type() == TQVariant::Double) if (down) cellValue = cellValue.asDouble() + currentDiff.asDouble(); else @@ -1075,8 +1075,8 @@ bool Sheet::FillSequenceWithInterval(QPtrList<Cell>& _srcList, return ok; } -void Sheet::FillSequenceWithCopy(QPtrList<Cell>& _srcList, - QPtrList<Cell>& _destList, +void Sheet::FillSequenceWithCopy(TQPtrList<Cell>& _srcList, + TQPtrList<Cell>& _destList, bool down) { // We did not find any valid interval. So just copy over the marked @@ -1115,7 +1115,7 @@ void Sheet::FillSequenceWithCopy(QPtrList<Cell>& _srcList, { if ( _srcList.at( s )->isFormula() ) { - QString d = _srcList.at( s )->encodeFormula(); + TQString d = _srcList.at( s )->encodeFormula(); cell->setCellText( cell->decodeFormula( d ) ); } else if(_srcList.at( s )->value().isNumber() && _srcList.count()==1) @@ -1130,7 +1130,7 @@ void Sheet::FillSequenceWithCopy(QPtrList<Cell>& _srcList, { // FIXME this is a workaround to avoid those nasty one minute off // "dragging down" time is inaccurate overa large lists! - // This is the best approximation I could find (raphael) + // This is the best approximation I could tqfind (raphael) if (down) { // factor = 1.000002/24. + 0.000000001; @@ -1147,43 +1147,43 @@ void Sheet::FillSequenceWithCopy(QPtrList<Cell>& _srcList, else val = (_srcList.at( s )->value().asFloat() + (incr * factor)); - QString tmp; + TQString tmp; tmp = tmp.setNum(val); cell->setCellText( tmp ); ++incr; } else if((AutoFillSequenceItem::month != 0L) - && AutoFillSequenceItem::month->find( _srcList.at( s )->text()) != 0L - && AutoFillSequenceItem::month->find( _srcList.at( s )->text()) != AutoFillSequenceItem::month->end() + && AutoFillSequenceItem::month->tqfind( _srcList.at( s )->text()) != 0L + && AutoFillSequenceItem::month->tqfind( _srcList.at( s )->text()) != AutoFillSequenceItem::month->end() && _srcList.count() == 1) { - QString strMonth=_srcList.at( s )->text(); - int i = AutoFillSequenceItem::month->findIndex( strMonth )+incr; + TQString strMonth=_srcList.at( s )->text(); + int i = AutoFillSequenceItem::month->tqfindIndex( strMonth )+incr; int k = (i) % AutoFillSequenceItem::month->count(); cell->setCellText((*AutoFillSequenceItem::month->at( k ))); incr++; } else if(AutoFillSequenceItem::day != 0L - && AutoFillSequenceItem::day->find( _srcList.at( s )->text()) != 0L - && AutoFillSequenceItem::day->find( _srcList.at( s )->text()) + && AutoFillSequenceItem::day->tqfind( _srcList.at( s )->text()) != 0L + && AutoFillSequenceItem::day->tqfind( _srcList.at( s )->text()) != AutoFillSequenceItem::day->end() && _srcList.count()==1) { - QString strDay=_srcList.at( s )->text(); - int i = AutoFillSequenceItem::day->findIndex( strDay )+incr; + TQString strDay=_srcList.at( s )->text(); + int i = AutoFillSequenceItem::day->tqfindIndex( strDay )+incr; int k = (i) % AutoFillSequenceItem::day->count(); cell->setCellText((*AutoFillSequenceItem::day->at( k ))); incr++; } else { - QRegExp number("(\\d+)"); + TQRegExp number("(\\d+)"); int pos =number.search(_srcList.at( s )->text()); if( pos!=-1 ) { - QString tmp=number.cap(1); + TQString tmp=number.cap(1); int num=tmp.toInt()+incr; - cell->setCellText(_srcList.at( s )->text().replace(number,QString::number(num))); + cell->setCellText(_srcList.at( s )->text().tqreplace(number,TQString::number(num))); ++incr; } else if ( !_srcList.at( s )->link().isEmpty() ) |