summaryrefslogtreecommitdiffstats
path: root/libkcal/dndfactory.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 /libkcal/dndfactory.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 'libkcal/dndfactory.cpp')
-rw-r--r--libkcal/dndfactory.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/libkcal/dndfactory.cpp b/libkcal/dndfactory.cpp
index 273c305b..9f5292d1 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;