summaryrefslogtreecommitdiffstats
path: root/kalarm/dcophandler.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/dcophandler.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/dcophandler.cpp')
-rw-r--r--kalarm/dcophandler.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kalarm/dcophandler.cpp b/kalarm/dcophandler.cpp
index 42af4ce9b..5f6e85074 100644
--- a/kalarm/dcophandler.cpp
+++ b/kalarm/dcophandler.cpp
@@ -256,7 +256,7 @@ bool DcopHandler::scheduleFile(const KURL& file,
TQColor bg = convertBgColour(bgColor);
if (!bg.isValid())
return false;
- return theApp()->scheduleEvent(KAEvent::FILE, file.url(), start.dateTime(), lateCancel, kaEventFlags, bg, Qt::black, TQFont(),
+ return theApp()->scheduleEvent(KAEvent::FILE, file.url(), start.dateTime(), lateCancel, kaEventFlags, bg, TQt::black, TQFont(),
audioFile.url(), -1, reminderMins, recurrence, subRepeatInterval, subRepeatCount);
}
@@ -268,8 +268,8 @@ bool DcopHandler::scheduleCommand(const TQString& commandLine,
const KARecurrence& recurrence, int subRepeatInterval, int subRepeatCount)
{
unsigned kaEventFlags = convertStartFlags(start, flags);
- return theApp()->scheduleEvent(KAEvent::COMMAND, commandLine, start.dateTime(), lateCancel, kaEventFlags, Qt::black, Qt::black, TQFont(),
- TQString::null, -1, 0, recurrence, subRepeatInterval, subRepeatCount);
+ return theApp()->scheduleEvent(KAEvent::COMMAND, commandLine, start.dateTime(), lateCancel, kaEventFlags, TQt::black, TQt::black, TQFont(),
+ TQString(), -1, 0, recurrence, subRepeatInterval, subRepeatCount);
}
/******************************************************************************
@@ -310,8 +310,8 @@ bool DcopHandler::scheduleEmail(const TQString& fromID, const TQString& addresse
kdError(5950) << "DCOP call scheduleEmail(): invalid email attachment: " << bad << endl;
return false;
}
- return theApp()->scheduleEvent(KAEvent::EMAIL, message, start.dateTime(), lateCancel, kaEventFlags, Qt::black, Qt::black, TQFont(),
- TQString::null, -1, 0, recurrence, subRepeatInterval, subRepeatCount, senderId, addrs, subject, atts);
+ return theApp()->scheduleEvent(KAEvent::EMAIL, message, start.dateTime(), lateCancel, kaEventFlags, TQt::black, TQt::black, TQFont(),
+ TQString(), -1, 0, recurrence, subRepeatInterval, subRepeatCount, senderId, addrs, subject, atts);
}
@@ -325,7 +325,7 @@ DateTime DcopHandler::convertStartDateTime(const TQString& startDateTime)
if (startDateTime.length() > 10)
{
// Both a date and a time are specified
- start = TQDateTime::fromString(startDateTime, Qt::ISODate);
+ start = TQDateTime::fromString(startDateTime, TQt::ISODate);
}
else
{
@@ -339,12 +339,12 @@ DateTime DcopHandler::convertStartDateTime(const TQString& startDateTime)
if (t.isEmpty())
{
// It's a date
- start = TQDate::fromString(startDateTime, Qt::ISODate);
+ start = TQDate::fromString(startDateTime, TQt::ISODate);
}
else
{
// It's a time, so use today as the date
- start.set(TQDate::tqcurrentDate(), TQTime::fromString(t, Qt::ISODate));
+ start.set(TQDate::tqcurrentDate(), TQTime::fromString(t, TQt::ISODate));
}
}
if (!start.isValid())
@@ -419,14 +419,14 @@ bool DcopHandler::convertRecurrence(DateTime& start, KARecurrence& recurrence, c
if (!start.isValid())
return false;
TQDateTime end;
- if (endDateTime.find('T') < 0)
+ if (endDateTime.tqfind('T') < 0)
{
if (!start.isDateOnly())
{
kdError(5950) << "DCOP call: alarm is date-only, but recurrence end is date/time" << endl;
return false;
}
- end.setDate(TQDate::fromString(endDateTime, Qt::ISODate));
+ end.setDate(TQDate::fromString(endDateTime, TQt::ISODate));
}
else
{
@@ -435,7 +435,7 @@ bool DcopHandler::convertRecurrence(DateTime& start, KARecurrence& recurrence, c
kdError(5950) << "DCOP call: alarm is timed, but recurrence end is date-only" << endl;
return false;
}
- end = TQDateTime::fromString(endDateTime, Qt::ISODate);
+ end = TQDateTime::fromString(endDateTime, TQt::ISODate);
}
if (!end.isValid())
{
@@ -675,7 +675,7 @@ bool DcopHandlerOld::process(const TQCString& func, const TQByteArray& data, TQC
TQStringList mailAttachments;
TQDateTime dateTime, endTime;
TQColor bgColour;
- TQColor fgColour(Qt::black);
+ TQColor fgColour(TQt::black);
TQFont font;
TQ_UINT32 flags;
int lateCancel = 0;