summaryrefslogtreecommitdiffstats
path: root/konsolekalendar/konsolekalendar.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /konsolekalendar/konsolekalendar.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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