summaryrefslogtreecommitdiffstats
path: root/kaddressbook/xxport/csv_xxport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/xxport/csv_xxport.cpp')
-rw-r--r--kaddressbook/xxport/csv_xxport.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kaddressbook/xxport/csv_xxport.cpp b/kaddressbook/xxport/csv_xxport.cpp
index b1ee94047..52286d3b7 100644
--- a/kaddressbook/xxport/csv_xxport.cpp
+++ b/kaddressbook/xxport/csv_xxport.cpp
@@ -50,7 +50,7 @@ bool CSVXXPort::exportContacts( const KABC::AddresseeList &list, const TQString&
return true;
if( TQFileInfo(url.path()).exists() ) {
- if(KMessageBox::questionYesNo( parentWidget(), i18n("Do you want to overwrite file \"%1\"").arg( url.path()) ) == KMessageBox::No)
+ if(KMessageBox::questionYesNo( tqparentWidget(), i18n("Do you want to overwrite file \"%1\"").arg( url.path()) ) == KMessageBox::No)
return false;
}
@@ -58,7 +58,7 @@ bool CSVXXPort::exportContacts( const KABC::AddresseeList &list, const TQString&
KTempFile tmpFile;
if ( tmpFile.status() != 0 ) {
TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.%2.</qt>" );
- KMessageBox::error( parentWidget(), txt.arg( url.url() )
+ KMessageBox::error( tqparentWidget(), txt.arg( url.url() )
.arg( strerror( tmpFile.status() ) ) );
return false;
}
@@ -66,19 +66,19 @@ bool CSVXXPort::exportContacts( const KABC::AddresseeList &list, const TQString&
doExport( tmpFile.file(), list );
tmpFile.close();
- return KIO::NetAccess::upload( tmpFile.name(), url, parentWidget() );
+ return KIO::NetAccess::upload( tmpFile.name(), url, tqparentWidget() );
} else {
TQFile file( url.path() );
if ( !file.open( IO_WriteOnly ) ) {
TQString txt = i18n( "<qt>Unable to open file <b>%1</b>.</qt>" );
- KMessageBox::error( parentWidget(), txt.arg( url.path() ) );
+ KMessageBox::error( tqparentWidget(), txt.arg( url.path() ) );
return false;
}
doExport( &file, list );
file.close();
- KMessageBox::information( parentWidget(), i18n( "The contacts have been exported successfully." ) );
+ KMessageBox::information( tqparentWidget(), i18n( "The contacts have been exported successfully." ) );
return true;
}
@@ -86,7 +86,7 @@ bool CSVXXPort::exportContacts( const KABC::AddresseeList &list, const TQString&
KABC::AddresseeList CSVXXPort::importContacts( const TQString& ) const
{
- CSVImportDialog dlg( addressBook(), parentWidget() );
+ CSVImportDialog dlg( addressBook(), tqparentWidget() );
if ( dlg.exec() )
return dlg.contacts();
else
@@ -123,7 +123,7 @@ void CSVXXPort::doExport( TQFile *fp, const KABC::AddresseeList &list )
if ( !first )
t << ",";
- t << "\"" << (*fieldIter)->value( addr ).replace( "\n", "\\n" ) << "\"";
+ t << "\"" << (*fieldIter)->value( addr ).tqreplace( "\n", "\\n" ) << "\"";
first = false;
}