summaryrefslogtreecommitdiffabout
path: root/kmicromail/libmailwrapper/settings.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/libmailwrapper/settings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/libmailwrapper/settings.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kmicromail/libmailwrapper/settings.cpp b/kmicromail/libmailwrapper/settings.cpp
index 9436d43..fc01528 100644
--- a/kmicromail/libmailwrapper/settings.cpp
+++ b/kmicromail/libmailwrapper/settings.cpp
@@ -2,7 +2,7 @@
#include <qdir.h>
#include <qtextcodec.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qfile.h>
//#include <opie2/odebug.h>
@@ -376,11 +376,11 @@ QString SMTPaccount::getSignature()
return QString();
QFile file( signature );
- if (!file.open( IO_ReadOnly ) ) {
+ if (!file.open( QIODevice::ReadOnly ) ) {
return QString();
}
- QTextStream ts( &file );
+ Q3TextStream ts( &file );
ts.setCodec( QTextCodec::codecForName("utf8") );
QString text = ts.read();
file.close();
@@ -399,11 +399,11 @@ void SMTPaccount::setSignature( QString b )
save();
}
QFile fileIn( signature );
- if (!fileIn.open( IO_WriteOnly ) ) {
+ if (!fileIn.open( QIODevice::WriteOnly ) ) {
qDebug("OM: Cannot write signature file %s ", signature.latin1() );
return ;
}
- QTextStream tsIn( &fileIn );
+ Q3TextStream tsIn( &fileIn );
tsIn.setCodec( QTextCodec::codecForName("utf8") );
tsIn << b ;
fileIn.close();