diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kmail/messageactions.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-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/messageactions.cpp')
-rw-r--r-- | kmail/messageactions.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kmail/messageactions.cpp b/kmail/messageactions.cpp index c1f569925..d899972c2 100644 --- a/kmail/messageactions.cpp +++ b/kmail/messageactions.cpp @@ -32,9 +32,9 @@ using namespace KMail; -MessageActions::MessageActions( KActionCollection *ac, TQWidget * parent ) : - TQObject( parent ), - mParent( parent ), +MessageActions::MessageActions( KActionCollection *ac, TQWidget * tqparent ) : + TQObject( tqparent ), + mParent( tqparent ), mActionCollection( ac ), mCurrentMessage( 0 ), mMessageView( 0 ) @@ -139,13 +139,13 @@ void MessageActions::setSelectedVisibleSernums(const TQValueList< TQ_UINT32 > & void MessageActions::updateActions() { bool singleMsg = (mCurrentMessage != 0); - if ( mCurrentMessage && mCurrentMessage->parent() ) { - if ( mCurrentMessage->parent()->isTemplates() ) + if ( mCurrentMessage && mCurrentMessage->tqparent() ) { + if ( mCurrentMessage->tqparent()->isTemplates() ) singleMsg = false; } const bool multiVisible = mVisibleSernums.count() > 0 || mCurrentMessage; const bool flagsAvailable = GlobalSettings::self()->allowLocalFlags() || - !((mCurrentMessage && mCurrentMessage->parent()) ? mCurrentMessage->parent()->isReadOnly() : true); + !((mCurrentMessage && mCurrentMessage->tqparent()) ? mCurrentMessage->tqparent()->isReadOnly() : true); mCreateTodoAction->setEnabled( singleMsg ); mReplyActionMenu->setEnabled( singleMsg ); @@ -223,30 +223,30 @@ void MessageActions::slotNoQuoteReplyToMsg() void MessageActions::slotSetMsgStatusNew() { - setMessageStatus( KMMsgStatusNew ); + setMessagetqStatus( KMMsgStatusNew ); } void MessageActions::slotSetMsgStatusUnread() { - setMessageStatus( KMMsgStatusUnread ); + setMessagetqStatus( KMMsgStatusUnread ); } void MessageActions::slotSetMsgStatusRead() { - setMessageStatus( KMMsgStatusRead ); + setMessagetqStatus( KMMsgStatusRead ); } void MessageActions::slotSetMsgStatusFlag() { - setMessageStatus( KMMsgStatusFlag, true ); + setMessagetqStatus( KMMsgStatusFlag, true ); } void MessageActions::slotSetMsgStatusTodo() { - setMessageStatus( KMMsgStatusTodo, true ); + setMessagetqStatus( KMMsgStatusTodo, true ); } -void MessageActions::setMessageStatus( KMMsgStatus status, bool toggle ) +void MessageActions::setMessagetqStatus( KMMsgtqStatus status, bool toggle ) { TQValueList<TQ_UINT32> serNums = mVisibleSernums; if ( serNums.isEmpty() && mCurrentMessage ) @@ -262,7 +262,7 @@ void MessageActions::editCurrentMessage() if ( !mCurrentMessage ) return; KMCommand *command = 0; - KMFolder *folder = mCurrentMessage->parent(); + KMFolder *folder = mCurrentMessage->tqparent(); // edit, unlike send again, removes the message from the folder // we only want that for templates and drafts folders if ( folder && ( kmkernel->folderIsDraftOrOutbox( folder ) || |