diff options
Diffstat (limited to 'libkcal/dndfactory.cpp')
-rw-r--r-- | libkcal/dndfactory.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libkcal/dndfactory.cpp b/libkcal/dndfactory.cpp index 273c305b6..9f5292d1d 100644 --- a/libkcal/dndfactory.cpp +++ b/libkcal/dndfactory.cpp @@ -21,8 +21,8 @@ Boston, MA 02110-1301, USA. */ -#include <qapplication.h> -#include <qclipboard.h> +#include <tqapplication.h> +#include <tqclipboard.h> #include <kiconloader.h> #include <kdebug.h> @@ -45,7 +45,7 @@ DndFactory::DndFactory( Calendar *cal ) : { } -ICalDrag *DndFactory::createDrag( Incidence *incidence, QWidget *owner ) +ICalDrag *DndFactory::createDrag( Incidence *incidence, TQWidget *owner ) { CalendarLocal cal( mCalendar->timeZoneId() ); Incidence *i = incidence->clone(); @@ -60,7 +60,7 @@ ICalDrag *DndFactory::createDrag( Incidence *incidence, QWidget *owner ) return icd; } -Event *DndFactory::createDrop(QDropEvent *de) +Event *DndFactory::createDrop(TQDropEvent *de) { kdDebug(5800) << "DndFactory::createDrop()" << endl; @@ -79,7 +79,7 @@ Event *DndFactory::createDrop(QDropEvent *de) return 0; } -Todo *DndFactory::createDropTodo(QDropEvent *de) +Todo *DndFactory::createDropTodo(TQDropEvent *de) { kdDebug(5800) << "VCalFormat::createDropTodo()" << endl; @@ -110,7 +110,7 @@ bool DndFactory::copyIncidence( Incidence *selectedInc ) { if ( !selectedInc ) return false; - QClipboard *cb = QApplication::clipboard(); + QClipboard *cb = TQApplication::clipboard(); CalendarLocal cal( mCalendar->timeZoneId() ); Incidence *inc = selectedInc->clone(); @@ -120,13 +120,13 @@ bool DndFactory::copyIncidence( Incidence *selectedInc ) return true; } -Incidence *DndFactory::pasteIncidence(const QDate &newDate, const QTime *newTime) +Incidence *DndFactory::pasteIncidence(const TQDate &newDate, const TQTime *newTime) { // kdDebug(5800) << "DnDFactory::pasteEvent()" << endl; CalendarLocal cal( mCalendar->timeZoneId() ); - QClipboard *cb = QApplication::clipboard(); + QClipboard *cb = TQApplication::clipboard(); if ( !ICalDrag::decode( cb->data(), &cal ) && !VCalDrag::decode( cb->data(), &cal ) ) { @@ -149,31 +149,31 @@ Incidence *DndFactory::pasteIncidence(const QDate &newDate, const QTime *newTime int daysOffset = anEvent->dtStart().date().daysTo( anEvent->dtEnd().date() ); // new end date if event starts at the same time on the new day - QDateTime endDate( newDate.addDays(daysOffset), anEvent->dtEnd().time() ); + TQDateTime endDate( newDate.addDays(daysOffset), anEvent->dtEnd().time() ); if ( newTime ) { // additional offset for new time of day int addSecsOffset( anEvent->dtStart().time().secsTo( *newTime )); endDate=endDate.addSecs( addSecsOffset ); - anEvent->setDtStart( QDateTime( newDate, *newTime ) ); + anEvent->setDtStart( TQDateTime( newDate, *newTime ) ); } else { - anEvent->setDtStart( QDateTime( newDate, anEvent->dtStart().time() ) ); + anEvent->setDtStart( TQDateTime( newDate, anEvent->dtStart().time() ) ); } anEvent->setDtEnd( endDate ); } else if ( inc->type() == "Todo" ) { Todo *anTodo = static_cast<Todo*>( inc ); if ( newTime ) { - anTodo->setDtDue( QDateTime( newDate, *newTime ) ); + anTodo->setDtDue( TQDateTime( newDate, *newTime ) ); } else { - anTodo->setDtDue( QDateTime( newDate, anTodo->dtDue().time() ) ); + anTodo->setDtDue( TQDateTime( newDate, anTodo->dtDue().time() ) ); } } else if ( inc->type() == "Journal" ) { Journal *anJournal = static_cast<Journal*>( inc ); if ( newTime ) { - anJournal->setDtStart( QDateTime( newDate, *newTime ) ); + anJournal->setDtStart( TQDateTime( newDate, *newTime ) ); } else { - anJournal->setDtStart( QDateTime( newDate ) ); + anJournal->setDtStart( TQDateTime( newDate ) ); } } else { kdDebug(5850) << "Trying to paste unknown incidence of type " << inc->type() << endl; |