-rw-r--r-- | libkcal/sharpformat.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/libkcal/sharpformat.cpp b/libkcal/sharpformat.cpp index 9b757f7..b8c2aa7 100644 --- a/libkcal/sharpformat.cpp +++ b/libkcal/sharpformat.cpp @@ -24,3 +24,3 @@ #include <qapplication.h> -#include <qptrlist.h> +#include <q3ptrlist.h> #include <qregexp.h> @@ -29,3 +29,3 @@ #include <qfile.h> -#include <qtextstream.h> +#include <q3textstream.h> #include <qtextcodec.h> @@ -368,3 +368,3 @@ bool SharpFormat::load( Calendar *calendar, Calendar *existngCal ) QFile file( fileName ); - if (!file.open( IO_ReadOnly ) ) { + if (!file.open( QIODevice::ReadOnly ) ) { return false; @@ -372,3 +372,3 @@ bool SharpFormat::load( Calendar *calendar, Calendar *existngCal ) } - QTextStream ts( &file ); + Q3TextStream ts( &file ); ts.setCodec( QTextCodec::codecForName("utf8") ); @@ -390,3 +390,3 @@ bool SharpFormat::load( Calendar *calendar, Calendar *existngCal ) file.setName( fileName ); - if (!file.open( IO_ReadOnly ) ) { + if (!file.open( QIODevice::ReadOnly ) ) { return false; @@ -477,3 +477,3 @@ bool SharpFormat::save( Calendar *calendar) QString command; - QPtrList<Event> er = calendar->rawEvents(); + Q3PtrList<Event> er = calendar->rawEvents(); Event* ev = er.first(); @@ -505,6 +505,6 @@ bool SharpFormat::save( Calendar *calendar) QFile fileIn( fileNameIn ); - if (!fileIn.open( IO_WriteOnly ) ) { + if (!fileIn.open( QIODevice::WriteOnly ) ) { return false; } - QTextStream tsIn( &fileIn ); + Q3TextStream tsIn( &fileIn ); tsIn.setCodec( QTextCodec::codecForName("utf8") ); @@ -519,3 +519,3 @@ bool SharpFormat::save( Calendar *calendar) QFile file( fileName ); - if (!file.open( IO_ReadOnly ) ) { + if (!file.open( QIODevice::ReadOnly ) ) { return false; @@ -523,3 +523,3 @@ bool SharpFormat::save( Calendar *calendar) } - QTextStream ts( &file ); + Q3TextStream ts( &file ); ts.setCodec( QTextCodec::codecForName("utf8") ); @@ -546,3 +546,3 @@ bool SharpFormat::save( Calendar *calendar) QFile file( fileName ); - if (!file.open( IO_WriteOnly ) ) { + if (!file.open( QIODevice::WriteOnly ) ) { return false; @@ -550,3 +550,3 @@ bool SharpFormat::save( Calendar *calendar) } - QTextStream ts( &file ); + Q3TextStream ts( &file ); ts.setCodec( QTextCodec::codecForName("utf8") ); @@ -564,3 +564,3 @@ bool SharpFormat::save( Calendar *calendar) QFile file( fileName ); - if (!file.open( IO_WriteOnly ) ) { + if (!file.open( QIODevice::WriteOnly ) ) { return false; @@ -568,3 +568,3 @@ bool SharpFormat::save( Calendar *calendar) } - QTextStream ts( &file ); + Q3TextStream ts( &file ); ts.setCodec( QTextCodec::codecForName("utf8") ); @@ -582,3 +582,3 @@ bool SharpFormat::save( Calendar *calendar) qApp->processEvents(); - QPtrList<Todo> tl = calendar->rawTodos(); + Q3PtrList<Todo> tl = calendar->rawTodos(); Todo* to = tl.first(); @@ -607,6 +607,6 @@ bool SharpFormat::save( Calendar *calendar) QFile fileIn( fileNameIn ); - if (!fileIn.open( IO_WriteOnly ) ) { + if (!fileIn.open( QIODevice::WriteOnly ) ) { return false; } - QTextStream tsIn( &fileIn ); + Q3TextStream tsIn( &fileIn ); tsIn.setCodec( QTextCodec::codecForName("utf8") ); @@ -617,6 +617,6 @@ bool SharpFormat::save( Calendar *calendar) QFile file( fileName ); - if (!file.open( IO_ReadOnly ) ) { + if (!file.open( QIODevice::ReadOnly ) ) { return false; } - QTextStream ts( &file ); + Q3TextStream ts( &file ); ts.setCodec( QTextCodec::codecForName("utf8") ); @@ -644,3 +644,3 @@ bool SharpFormat::save( Calendar *calendar) QFile file( fileName ); - if (!file.open( IO_WriteOnly ) ) { + if (!file.open( QIODevice::WriteOnly ) ) { return false; @@ -648,3 +648,3 @@ bool SharpFormat::save( Calendar *calendar) } - QTextStream ts( &file ); + Q3TextStream ts( &file ); ts.setCodec( QTextCodec::codecForName("utf8") ); @@ -662,3 +662,3 @@ bool SharpFormat::save( Calendar *calendar) QFile file( fileName ); - if (!file.open( IO_WriteOnly ) ) { + if (!file.open( QIODevice::WriteOnly ) ) { return false; @@ -666,3 +666,3 @@ bool SharpFormat::save( Calendar *calendar) } - QTextStream ts( &file ); + Q3TextStream ts( &file ); ts.setCodec( QTextCodec::codecForName("utf8") ); @@ -785,3 +785,3 @@ QString SharpFormat::getEventString( Event* event ) int count = 1; - QPtrList<Recurrence::rMonthPos> rmp; + Q3PtrList<Recurrence::rMonthPos> rmp; rmp = rec->monthPositions(); |