From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: 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 --- kmail/kmsystemtray.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kmail/kmsystemtray.cpp') 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, 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 -- cgit v1.2.1