summaryrefslogtreecommitdiffstats
path: root/kalarm/dcophandler.cpp
diff options
context:
space:
mode:
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 42af4ce9..5f6e8507 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;