summaryrefslogtreecommitdiffstats
path: root/libkdepim/kimportdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/kimportdialog.cpp')
-rw-r--r--libkdepim/kimportdialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/libkdepim/kimportdialog.cpp b/libkdepim/kimportdialog.cpp
index 904415982..0e08eec29 100644
--- a/libkdepim/kimportdialog.cpp
+++ b/libkdepim/kimportdialog.cpp
@@ -323,7 +323,7 @@ void KImportDialog::readFile( int rows )
pDialog.setAutoClose(true);
KProgress *progress = pDialog.progressBar();
- progress->setTotalSteps( mFile.tqcontains(mSeparator, false) );
+ progress->setTotalSteps( mFile.contains(mSeparator, false) );
progress->setValue(0);
int progressValue = 0;
@@ -443,7 +443,7 @@ void KImportDialog::setCellText(int row, int col, const TQString& text)
if ((mTable->numRows() - 1) < row) mTable->setNumRows(row + 1);
if ((mTable->numCols() - 1) < col) mTable->setNumCols(col + 1);
- KImportColumn *c = mColumnDict.tqfind(col);
+ KImportColumn *c = mColumnDict.find(col);
TQString formattedText;
if (c) formattedText = c->preview(text,findFormat(col));
else formattedText = text;
@@ -492,7 +492,7 @@ void KImportDialog::tableSelected()
TQTableSelection selection = mTable->selection(mTable->currentSelection());
TQListViewItem *item = mHeaderList->firstChild();
- KImportColumn *col = mColumnDict.tqfind(selection.leftCol());
+ KImportColumn *col = mColumnDict.find(selection.leftCol());
if (col) {
while(item) {
if (item->text(0) == col->header()) {
@@ -550,9 +550,9 @@ void KImportDialog::assignColumn(TQListViewItem *item)
for(int i=selection.leftCol();i<=selection.rightCol();++i) {
if (i >= 0) {
mTable->horizontalHeader()->setLabel(i,colItem->text(0));
- mColumnDict.tqreplace(i,colItem->column());
+ mColumnDict.replace(i,colItem->column());
int format = mFormatCombo->currentItem() + 1;
- mFormats.tqreplace(i,format);
+ mFormats.replace(i,format);
colItem->column()->addColId(i);
}
}
@@ -616,8 +616,8 @@ void KImportDialog::assignTemplate()
continue;
KImportColumn *col = mColumns.at(i);
mTable->horizontalHeader()->setLabel( tableColumn, col->header() );
- mColumnDict.tqreplace( tableColumn, col );
- mFormats.tqreplace( tableColumn, format );
+ mColumnDict.replace( tableColumn, col );
+ mFormats.replace( tableColumn, format );
col->addColId( tableColumn );
}
@@ -633,7 +633,7 @@ void KImportDialog::removeColumn()
for(int i=selection.leftCol();i<=selection.rightCol();++i) {
if (i >= 0) {
mTable->horizontalHeader()->setLabel(i,TQString::number(i+1));
- KImportColumn *col = mColumnDict.tqfind(i);
+ KImportColumn *col = mColumnDict.find(i);
if (col) {
mColumnDict.remove(i);
mFormats.remove(i);
@@ -674,7 +674,7 @@ void KImportDialog::applyConverter()
int KImportDialog::findFormat(int column)
{
- TQMap<int,int>::ConstIterator formatIt = mFormats.tqfind(column);
+ TQMap<int,int>::ConstIterator formatIt = mFormats.find(column);
int format;
if (formatIt == mFormats.end()) format = KImportColumn::FormatUndefined;
else format = *formatIt;
@@ -698,7 +698,7 @@ void KImportDialog::addColumn(KImportColumn *col)
void KImportDialog::setData( uint row, uint col, const TQString &value )
{
TQString val = value;
- val.tqreplace( "\\n", "\n" );
+ val.replace( "\\n", "\n" );
if ( row >= mData.count() ) {
mData.resize( row + 1 );
@@ -713,7 +713,7 @@ void KImportDialog::setData( uint row, uint col, const TQString &value )
rowVector->resize( col + 1 );
}
- KImportColumn *c = mColumnDict.tqfind( col );
+ KImportColumn *c = mColumnDict.find( col );
if ( c )
rowVector->at( col ) = c->preview( val, findFormat(col) );
else
@@ -734,7 +734,7 @@ void KImportDialog::saveTemplate()
if ( fileName.isEmpty() )
return;
- if ( !fileName.tqcontains( ".desktop" ) )
+ if ( !fileName.contains( ".desktop" ) )
fileName += ".desktop";
TQString name = KInputDialog::getText( i18n( "Template Name" ), i18n( "Please enter a name for the template:" ) );