summaryrefslogtreecommitdiffstats
path: root/konsolekalendar/konsolekalendar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konsolekalendar/konsolekalendar.cpp')
-rw-r--r--konsolekalendar/konsolekalendar.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/konsolekalendar/konsolekalendar.cpp b/konsolekalendar/konsolekalendar.cpp
index 793c65d40..564adf530 100644
--- a/konsolekalendar/konsolekalendar.cpp
+++ b/konsolekalendar/konsolekalendar.cpp
@@ -34,9 +34,9 @@
#include <stdlib.h>
#include <iostream>
-#include <qdatetime.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqdatetime.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
#include <kdebug.h>
#include <klocale.h>
@@ -108,8 +108,8 @@ bool KonsoleKalendar::createCalendar()
bool KonsoleKalendar::showInstance()
{
bool status = true;
- QFile f;
- QString title;
+ TQFile f;
+ TQString title;
Event *event;
if ( m_variables->isDryRun() ) {
@@ -146,7 +146,7 @@ bool KonsoleKalendar::showInstance()
printSpecs();
}
- QTextStream ts( &f );
+ TQTextStream ts( &f );
if ( m_variables->getExportType() != ExportTypeHTML &&
m_variables->getExportType() != ExportTypeMonthHTML ) {
@@ -160,7 +160,7 @@ bool KonsoleKalendar::showInstance()
m_variables->getCalendar()->events( EventSortStartDate );
if( sortedList.count() > 0 )
{
- QDate dt, firstdate, lastdate;
+ TQDate dt, firstdate, lastdate;
firstdate = sortedList.first()->dtStart().date();
lastdate = sortedList.last()->dtStart().date();
for ( dt = firstdate;
@@ -189,10 +189,10 @@ bool KonsoleKalendar::showInstance()
<< "Show next activity in calendar"
<< endl;
- QDateTime datetime = m_variables->getStartDateTime();
+ TQDateTime datetime = m_variables->getStartDateTime();
datetime = datetime.addDays( 720 );
- QDate dt;
+ TQDate dt;
for ( dt = m_variables->getStartDateTime().date();
dt <= datetime.date();
dt = dt.addDays(1) ) {
@@ -214,7 +214,7 @@ bool KonsoleKalendar::showInstance()
<< "view raw events within date range list"
<< endl;
- QDate dt;
+ TQDate dt;
for ( dt = m_variables->getStartDateTime().date();
dt <= m_variables->getEndDateTime().date() && status != false;
dt = dt.addDays(1) ) {
@@ -226,7 +226,7 @@ bool KonsoleKalendar::showInstance()
}
}
} else {
- QDate firstdate, lastdate;
+ TQDate firstdate, lastdate;
if ( m_variables->getAll() ) {
kdDebug() << "konsolekalendar.cpp::showInstance() | "
<< "HTML view all events sorted list"
@@ -292,8 +292,8 @@ bool KonsoleKalendar::showInstance()
// htmlSettings.setTaskAttendees( false );
// htmlSettings.setTaskDueDate( true );
- htmlSettings.setDateStart( QDateTime( firstdate ) );
- htmlSettings.setDateEnd( QDateTime( lastdate ) ) ;
+ htmlSettings.setDateStart( TQDateTime( firstdate ) );
+ htmlSettings.setDateEnd( TQDateTime( lastdate ) ) ;
KCal::HtmlExport *Export;
Export = new HtmlExport( m_variables->getCalendar(), &htmlSettings );
@@ -306,8 +306,8 @@ bool KonsoleKalendar::showInstance()
return status;
}
-bool KonsoleKalendar::printEventList( QTextStream *ts,
- Event::List *eventList, QDate date )
+bool KonsoleKalendar::printEventList( TQTextStream *ts,
+ Event::List *eventList, TQDate date )
{
bool status = true;
@@ -327,7 +327,7 @@ bool KonsoleKalendar::printEventList( QTextStream *ts,
return( status );
}
-bool KonsoleKalendar::printEvent( QTextStream *ts, Event *event, QDate dt )
+bool KonsoleKalendar::printEvent( TQTextStream *ts, Event *event, TQDate dt )
{
bool status = false;
bool sameDay = true;
@@ -407,8 +407,8 @@ bool KonsoleKalendar::deleteEvent()
return( del.deleteEvent() );
}
-bool KonsoleKalendar::isEvent( QDateTime startdate,
- QDateTime enddate, QString summary )
+bool KonsoleKalendar::isEvent( TQDateTime startdate,
+ TQDateTime enddate, TQString summary )
{
// Search for an event with specified start and end datetime stamp and summary