diff options
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 ) || |