diff options
| author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 00:37:32 +0000 |
|---|---|---|
| committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 00:37:32 +0000 |
| commit | f6f9c296c3f9d39a8c3d0ee64a542a47f450be28 (patch) | |
| tree | d38fce8091ce66977004a5cb115768c7810aee30 /lib/pilotMemo.cc | |
| parent | e340db64991a06761aa6395ffe760b53e4c1dfbc (diff) | |
| download | kpilot-f6f9c296c3f9d39a8c3d0ee64a542a47f450be28.tar.gz kpilot-f6f9c296c3f9d39a8c3d0ee64a542a47f450be28.zip | |
TQt4 port kpilot
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1238903 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/pilotMemo.cc')
| -rw-r--r-- | lib/pilotMemo.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/pilotMemo.cc b/lib/pilotMemo.cc index 946a995..fab0ae8 100644 --- a/lib/pilotMemo.cc +++ b/lib/pilotMemo.cc @@ -74,25 +74,25 @@ PilotRecord *PilotMemo::pack() } -TQString PilotMemo::getTextRepresentation(Qt::TextFormat richText) +TQString PilotMemo::getTextRepresentation(TQt::TextFormat richText) { - if (richText==Qt::RichText) + if (richText==TQt::RichText) { return i18n("<i>Title:</i> %1<br>\n<i>MemoText:</i><br>%2"). - arg(rtExpand(getTitle(), richText)).arg(rtExpand(text(), richText)); + tqarg(rtExpand(getTitle(), richText)).tqarg(rtExpand(text(), richText)); } else { - return i18n("Title: %1\nMemoText:\n%2").arg(getTitle()).arg(text()); + return i18n("Title: %1\nMemoText:\n%2").tqarg(getTitle()).tqarg(text()); } } TQString PilotMemo::getTitle() const { - if (fText.isEmpty()) return TQString::null; + if (fText.isEmpty()) return TQString(); - int memoTitleLen = fText.find('\n'); + int memoTitleLen = fText.tqfind('\n'); if (-1 == memoTitleLen) memoTitleLen=fText.length(); return fText.left(memoTitleLen); } @@ -106,7 +106,7 @@ TQString PilotMemo::shortTitle() const return t; t.truncate(40); - int spaceIndex = t.findRev(' '); + int spaceIndex = t.tqfindRev(' '); if (spaceIndex > 32) { |
