diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:34:45 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-03 04:24:29 +0200 |
commit | e3649f744289c180537d2d8474dc0e39050e654f (patch) | |
tree | 5d3d773985c0bfdfed5e0aed35fe8b2441d60787 /kmail/folderstorage.cpp | |
parent | 4b4a3f32d8e71d79626206211ee6e23ee1e968b8 (diff) | |
download | tdepim-e3649f744289c180537d2d8474dc0e39050e654f.tar.gz tdepim-e3649f744289c180537d2d8474dc0e39050e654f.zip |
Rename old tq methods that no longer need a unique name
(cherry picked from commit 0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78)
Diffstat (limited to 'kmail/folderstorage.cpp')
-rw-r--r-- | kmail/folderstorage.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kmail/folderstorage.cpp b/kmail/folderstorage.cpp index 63dc91fb5..57241cd4b 100644 --- a/kmail/folderstorage.cpp +++ b/kmail/folderstorage.cpp @@ -174,7 +174,7 @@ void FolderStorage::markNewAsUnread() if (!(msgBase = getMsgBase(i))) continue; if (msgBase->isNew()) { - msgBase->setqStatus(KMMsgStatusUnread); + msgBase->seStatus(KMMsgStatusUnread); msgBase->setDirty(true); } } @@ -861,18 +861,18 @@ bool FolderStorage::isCloseToQuota() const } //----------------------------------------------------------------------------- -void FolderStorage::msgStatusChanged(const KMMsgtqStatus oldtqStatus, - const KMMsgtqStatus newtqStatus, int idx) +void FolderStorage::msgStatusChanged(const KMMsgStatus oldStatus, + const KMMsgStatus newStatus, int idx) { int oldUnread = 0; int newUnread = 0; - if (((oldtqStatus & KMMsgStatusUnread || oldtqStatus & KMMsgStatusNew) && - !(oldtqStatus & KMMsgStatusIgnored)) || + if (((oldStatus & KMMsgStatusUnread || oldStatus & KMMsgStatusNew) && + !(oldStatus & KMMsgStatusIgnored)) || (folder() == kmkernel->outboxFolder())) oldUnread = 1; - if (((newtqStatus & KMMsgStatusUnread || newtqStatus & KMMsgStatusNew) && - !(newtqStatus & KMMsgStatusIgnored)) || + if (((newStatus & KMMsgStatusUnread || newStatus & KMMsgStatusNew) && + !(newStatus & KMMsgStatusIgnored)) || (folder() == kmkernel->outboxFolder())) newUnread = 1; int deltaUnread = newUnread - oldUnread; @@ -1040,24 +1040,24 @@ void FolderStorage::setRDict( KMMsgDictREntry *rentry ) const } //----------------------------------------------------------------------------- -void FolderStorage::setqStatus(int idx, KMMsgtqStatus status, bool toggle) +void FolderStorage::seStatus(int idx, KMMsgStatus status, bool toggle) { KMMsgBase *msg = getMsgBase(idx); if ( msg ) { if (toggle) - msg->toggletqStatus(status, idx); + msg->toggleStatus(status, idx); else - msg->setqStatus(status, idx); + msg->seStatus(status, idx); } } //----------------------------------------------------------------------------- -void FolderStorage::setqStatus(TQValueList<int>& ids, KMMsgtqStatus status, bool toggle) +void FolderStorage::seStatus(TQValueList<int>& ids, KMMsgStatus status, bool toggle) { for ( TQValueList<int>::Iterator it = ids.begin(); it != ids.end(); ++it ) { - FolderStorage::setqStatus(*it, status, toggle); + FolderStorage::seStatus(*it, status, toggle); } } |