summaryrefslogtreecommitdiffstats
path: root/kalarm/alarmtext.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kalarm/alarmtext.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/alarmtext.cpp')
-rw-r--r--kalarm/alarmtext.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kalarm/alarmtext.cpp b/kalarm/alarmtext.cpp
index 46051711..5be991f0 100644
--- a/kalarm/alarmtext.cpp
+++ b/kalarm/alarmtext.cpp
@@ -32,17 +32,17 @@ TQString AlarmText::mToPrefix;
TQString AlarmText::mCcPrefix;
TQString AlarmText::mDatePrefix;
TQString AlarmText::mSubjectPrefix;
-TQString AlarmText::mFromPrefixEn = TQString::fromLatin1("From:");
-TQString AlarmText::mToPrefixEn = TQString::fromLatin1("To:");
-TQString AlarmText::mCcPrefixEn = TQString::fromLatin1("Cc:");
-TQString AlarmText::mDatePrefixEn = TQString::fromLatin1("Date:");
-TQString AlarmText::mSubjectPrefixEn = TQString::fromLatin1("Subject:");
+TQString AlarmText::mFromPrefixEn = TQString::tqfromLatin1("From:");
+TQString AlarmText::mToPrefixEn = TQString::tqfromLatin1("To:");
+TQString AlarmText::mCcPrefixEn = TQString::tqfromLatin1("Cc:");
+TQString AlarmText::mDatePrefixEn = TQString::tqfromLatin1("Date:");
+TQString AlarmText::mSubjectPrefixEn = TQString::tqfromLatin1("Subject:");
void AlarmText::setText(const TQString& text)
{
mBody = text;
- mIsScript = text.startsWith(TQString::fromLatin1("#!"));
+ mIsScript = text.startsWith(TQString::tqfromLatin1("#!"));
mIsEmail = false;
mTo = mFrom = mCc = mTime = mSubject = TQString::null;
mKMailSerialNum = 0;
@@ -271,7 +271,7 @@ TQString AlarmText::summary(const KAEvent& event, int maxLines, bool* truncated)
}
if (truncated)
*truncated = false;
- if (text.contains('\n') < maxLines)
+ if (text.tqcontains('\n') < maxLines)
return text;
int newline = -1;
for (int i = 0; i < maxLines; ++i)
@@ -284,5 +284,5 @@ TQString AlarmText::summary(const KAEvent& event, int maxLines, bool* truncated)
return text.left(newline); // text ends in newline
if (truncated)
*truncated = true;
- return text.left(newline + (maxLines <= 1 ? 0 : 1)) + TQString::fromLatin1("...");
+ return text.left(newline + (maxLines <= 1 ? 0 : 1)) + TQString::tqfromLatin1("...");
}