diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-14 12:33:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-14 12:43:48 +0900 |
commit | 3b3f9ec8f31978030c17309fae48335bea5c1587 (patch) | |
tree | 0b493383a1501860371aacd792ec6fc08d595824 /kmail/kmsystemtray.cpp | |
parent | 99e6e1d1f43610c3573e9824a2a8a38f69930cd0 (diff) | |
download | tdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.tar.gz tdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmail/kmsystemtray.cpp')
-rw-r--r-- | kmail/kmsystemtray.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kmail/kmsystemtray.cpp b/kmail/kmsystemtray.cpp index f9041222d..b6e1f9691 100644 --- a/kmail/kmsystemtray.cpp +++ b/kmail/kmsystemtray.cpp @@ -71,7 +71,7 @@ KMSystemTray::KMSystemTray(TQWidget *parent, const char *name) mLastUpdate = time( 0 ); mUpdateTimer = new TQTimer( this, "systraytimer" ); - connect( mUpdateTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( updateNewMessages() ) ); + connect( mUpdateTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( updateNewMessages() ) ); mDefaultIcon = loadIcon( "kmail" ); mLightIconImage = loadIcon( "kmaillight" ).convertToImage(); @@ -94,15 +94,15 @@ KMSystemTray::KMSystemTray(TQWidget *parent, const char *name) /** Initiate connections between folders and this object */ foldersChanged(); - connect( kmkernel->folderMgr(), TQT_SIGNAL(changed()), TQT_SLOT(foldersChanged())); - connect( kmkernel->imapFolderMgr(), TQT_SIGNAL(changed()), TQT_SLOT(foldersChanged())); - connect( kmkernel->dimapFolderMgr(), TQT_SIGNAL(changed()), TQT_SLOT(foldersChanged())); - connect( kmkernel->searchFolderMgr(), TQT_SIGNAL(changed()), TQT_SLOT(foldersChanged())); + connect( kmkernel->folderMgr(), TQ_SIGNAL(changed()), TQ_SLOT(foldersChanged())); + connect( kmkernel->imapFolderMgr(), TQ_SIGNAL(changed()), TQ_SLOT(foldersChanged())); + connect( kmkernel->dimapFolderMgr(), TQ_SIGNAL(changed()), TQ_SLOT(foldersChanged())); + connect( kmkernel->searchFolderMgr(), TQ_SIGNAL(changed()), TQ_SLOT(foldersChanged())); - connect( kmkernel->acctMgr(), TQT_SIGNAL( checkedMail( bool, bool, const TQMap<TQString, int> & ) ), - TQT_SLOT( updateNewMessages() ) ); + connect( kmkernel->acctMgr(), TQ_SIGNAL( checkedMail( bool, bool, const TQMap<TQString, int> & ) ), + TQ_SLOT( updateNewMessages() ) ); - connect( this, TQT_SIGNAL( quitSelected() ), TQT_SLOT( tray_quit() ) ); + connect( this, TQ_SIGNAL( quitSelected() ), TQ_SLOT( tray_quit() ) ); } void KMSystemTray::buildPopupMenu() @@ -132,7 +132,7 @@ void KMSystemTray::buildPopupMenu() action->plug( mPopupMenu ); mPopupMenu->insertSeparator(); - mPopupMenu->insertItem( SmallIcon("system-log-out"), i18n("&Quit"), this, TQT_SLOT(maybeQuit()) ); + mPopupMenu->insertItem( SmallIcon("system-log-out"), i18n("&Quit"), this, TQ_SLOT(maybeQuit()) ); } void KMSystemTray::tray_quit() @@ -275,7 +275,7 @@ void KMSystemTray::foldersChanged() } /** Disconnect all previous connections */ - disconnect(this, TQT_SLOT(updateNewMessageNotification(KMFolder *))); + disconnect(this, TQ_SLOT(updateNewMessageNotification(KMFolder *))); TQStringList folderNames; TQValueList<TQGuardedPtr<KMFolder> > folderList; @@ -297,14 +297,14 @@ void KMSystemTray::foldersChanged() !currentFolder->ignoreNewMail() ) { /** If this is a new folder, start listening for messages */ - connect(currentFolder, TQT_SIGNAL(numUnreadMsgsChanged(KMFolder *)), - this, TQT_SLOT(updateNewMessageNotification(KMFolder *))); + connect(currentFolder, TQ_SIGNAL(numUnreadMsgsChanged(KMFolder *)), + this, TQ_SLOT(updateNewMessageNotification(KMFolder *))); /** Check all new folders to see if we started with any new messages */ updateNewMessageNotification(currentFolder); } else { - disconnect(currentFolder, TQT_SIGNAL(numUnreadMsgsChanged(KMFolder *)), this, TQT_SLOT(updateNewMessageNotification(KMFolder *)) ); + disconnect(currentFolder, TQ_SIGNAL(numUnreadMsgsChanged(KMFolder *)), this, TQ_SLOT(updateNewMessageNotification(KMFolder *)) ); } } } @@ -349,7 +349,7 @@ void KMSystemTray::mousePressEvent(TQMouseEvent *e) kdDebug(5006) << "Adding folder" << endl; mPopupFolders.append( it.key() ); TQString item = prettyName(it.key()) + " (" + TQString::number(it.data()) + ")"; - newMessagesPopup->insertItem(item, this, TQT_SLOT(selectedAccount(int)), 0, i); + newMessagesPopup->insertItem(item, this, TQ_SLOT(selectedAccount(int)), 0, i); ++it; } @@ -545,7 +545,7 @@ void KMSystemTray::updateNewMessages() if(mFoldersWithUnread.count() == 0) { mPopupFolders.clear(); - disconnect(this, TQT_SLOT(selectedAccount(int))); + disconnect(this, TQ_SLOT(selectedAccount(int))); mCount = 0; |