summaryrefslogtreecommitdiffstats
path: root/kmail/kmsystemtray.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 /kmail/kmsystemtray.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 'kmail/kmsystemtray.cpp')
-rw-r--r--kmail/kmsystemtray.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kmail/kmsystemtray.cpp b/kmail/kmsystemtray.cpp
index f10faabe6..3a5840a85 100644
--- a/kmail/kmsystemtray.cpp
+++ b/kmail/kmsystemtray.cpp
@@ -57,8 +57,8 @@ using KMail::AccountManager;
* with its count of unread messages, allowing the user to jump
* to the first unread message in each folder.
*/
-KMSystemTray::KMSystemTray(TQWidget *parent, const char *name)
- : KSystemTray( parent, name ),
+KMSystemTray::KMSystemTray(TQWidget *tqparent, const char *name)
+ : KSystemTray( tqparent, name ),
mParentVisible( true ),
mPosOfMainWin( 0, 0 ),
mDesktopOfMainWin( 0 ),
@@ -211,7 +211,7 @@ void KMSystemTray::updateCount()
// and which has a transparent background.
// Unfortunately this required the following twisted code because for some
// reason text that is drawn on a transparent pixmap is invisible
- // (apparently the alpha channel isn't changed when the text is drawn).
+ // (aptqparently the alpha channel isn't changed when the text is drawn).
// Therefore I have to draw the text on a solid background and then remove
// the background by making it transparent with TQPixmap::setMask. This
// involves the slow createHeuristicMask() function (from the API docs:
@@ -225,11 +225,11 @@ void KMSystemTray::updateCount()
// unread messages, but every other approach I tried failed miserably.
// IK, 2003-09-22
TQPixmap numberPixmap( oldPixmapWidth, oldPixmapHeight );
- numberPixmap.fill( Qt::white );
+ numberPixmap.fill( TQt::white );
TQPainter p( &numberPixmap );
p.setFont( countFont );
- p.setPen( Qt::blue );
- p.drawText( numberPixmap.rect(), Qt::AlignCenter, countString );
+ p.setPen( TQt::blue );
+ p.drawText( numberPixmap.rect(), TQt::AlignCenter, countString );
numberPixmap.setMask( numberPixmap.createHeuristicMask() );
TQImage numberImage = numberPixmap.convertToImage();
@@ -483,7 +483,7 @@ void KMSystemTray::updateNewMessages()
int unread = fldr->countUnread();
TQMap<TQGuardedPtr<KMFolder>, int>::Iterator it =
- mFoldersWithUnread.find(fldr);
+ mFoldersWithUnread.tqfind(fldr);
bool unmapped = (it == mFoldersWithUnread.end());
/** If the folder is not mapped yet, increment count by numUnread