summaryrefslogtreecommitdiffstats
path: root/kmail/messageactions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/messageactions.cpp')
-rw-r--r--kmail/messageactions.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kmail/messageactions.cpp b/kmail/messageactions.cpp
index d899972c2..6dc248e7b 100644
--- a/kmail/messageactions.cpp
+++ b/kmail/messageactions.cpp
@@ -32,9 +32,9 @@
using namespace KMail;
-MessageActions::MessageActions( KActionCollection *ac, TQWidget * tqparent ) :
- TQObject( tqparent ),
- mParent( tqparent ),
+MessageActions::MessageActions( KActionCollection *ac, TQWidget * parent ) :
+ TQObject( parent ),
+ mParent( parent ),
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->tqparent() ) {
- if ( mCurrentMessage->tqparent()->isTemplates() )
+ if ( mCurrentMessage && mCurrentMessage->parent() ) {
+ if ( mCurrentMessage->parent()->isTemplates() )
singleMsg = false;
}
const bool multiVisible = mVisibleSernums.count() > 0 || mCurrentMessage;
const bool flagsAvailable = GlobalSettings::self()->allowLocalFlags() ||
- !((mCurrentMessage && mCurrentMessage->tqparent()) ? mCurrentMessage->tqparent()->isReadOnly() : true);
+ !((mCurrentMessage && mCurrentMessage->parent()) ? mCurrentMessage->parent()->isReadOnly() : true);
mCreateTodoAction->setEnabled( singleMsg );
mReplyActionMenu->setEnabled( singleMsg );
@@ -262,7 +262,7 @@ void MessageActions::editCurrentMessage()
if ( !mCurrentMessage )
return;
KMCommand *command = 0;
- KMFolder *folder = mCurrentMessage->tqparent();
+ KMFolder *folder = mCurrentMessage->parent();
// edit, unlike send again, removes the message from the folder
// we only want that for templates and drafts folders
if ( folder && ( kmkernel->folderIsDraftOrOutbox( folder ) ||