summaryrefslogtreecommitdiffstats
path: root/kmail/kmreadermainwin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmreadermainwin.cpp')
-rw-r--r--kmail/kmreadermainwin.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kmail/kmreadermainwin.cpp b/kmail/kmreadermainwin.cpp
index f07ba8fe3..af62b411d 100644
--- a/kmail/kmreadermainwin.cpp
+++ b/kmail/kmreadermainwin.cpp
@@ -156,15 +156,15 @@ void KMReaderMainWin::showMsg( const TQString & encoding, KMMessage *msg,
menuBar()->show();
toolBar( "mainToolBar" )->show();
- connect ( msg->tqparent(), TQT_SIGNAL( destroyed( TQObject* ) ), this, TQT_SLOT( slotFolderRemoved( TQObject* ) ) );
+ connect ( msg->parent(), TQT_SIGNAL( destroyed( TQObject* ) ), this, TQT_SLOT( slotFolderRemoved( TQObject* ) ) );
}
void KMReaderMainWin::slotFolderRemoved( TQObject* folderPtr )
{
assert(mMsg);
- assert(folderPtr == mMsg->tqparent());
- if( mMsg && folderPtr == mMsg->tqparent() )
+ assert(folderPtr == mMsg->parent());
+ if( mMsg && folderPtr == mMsg->parent() )
mMsg->setParent( 0 );
}
@@ -181,18 +181,18 @@ void KMReaderMainWin::slotTrashMsg()
if ( !mMsg )
return;
// find the real msg by its sernum
- KMFolder* tqparent;
+ KMFolder* parent;
int index;
- KMMsgDict::instance()->getLocation( mMsg->getMsgSerNum(), &tqparent, &index );
- if ( tqparent && !tqparent->isTrash() ) {
+ KMMsgDict::instance()->getLocation( mMsg->getMsgSerNum(), &parent, &index );
+ if ( parent && !parent->isTrash() ) {
// open the folder (ref counted)
- tqparent->open("trashmsg");
- KMMessage *msg = tqparent->getMsg( index );
+ parent->open("trashmsg");
+ KMMessage *msg = parent->getMsg( index );
if (msg) {
- KMDeleteMsgCommand *command = new KMDeleteMsgCommand( tqparent, msg );
+ KMDeleteMsgCommand *command = new KMDeleteMsgCommand( parent, msg );
command->start();
}
- tqparent->close("trashmsg");
+ parent->close("trashmsg");
}
close();
}
@@ -235,9 +235,9 @@ void KMReaderMainWin::slotPrintMsg()
void KMReaderMainWin::slotForwardInlineMsg()
{
KMCommand *command = 0;
- if ( mReaderWin->message() && mReaderWin->message()->tqparent() ) {
+ if ( mReaderWin->message() && mReaderWin->message()->parent() ) {
command = new KMForwardInlineCommand( this, mReaderWin->message(),
- mReaderWin->message()->tqparent()->identity() );
+ mReaderWin->message()->parent()->identity() );
} else {
command = new KMForwardInlineCommand( this, mReaderWin->message() );
}
@@ -250,9 +250,9 @@ void KMReaderMainWin::slotForwardInlineMsg()
void KMReaderMainWin::slotForwardAttachedMsg()
{
KMCommand *command = 0;
- if ( mReaderWin->message() && mReaderWin->message()->tqparent() ) {
+ if ( mReaderWin->message() && mReaderWin->message()->parent() ) {
command = new KMForwardAttachedCommand( this, mReaderWin->message(),
- mReaderWin->message()->tqparent()->identity() );
+ mReaderWin->message()->parent()->identity() );
} else {
command = new KMForwardAttachedCommand( this, mReaderWin->message() );
}
@@ -265,9 +265,9 @@ void KMReaderMainWin::slotForwardAttachedMsg()
void KMReaderMainWin::slotForwardDigestMsg()
{
KMCommand *command = 0;
- if ( mReaderWin->message() && mReaderWin->message()->tqparent() ) {
+ if ( mReaderWin->message() && mReaderWin->message()->parent() ) {
command = new KMForwardDigestCommand( this, mReaderWin->message(),
- mReaderWin->message()->tqparent()->identity() );
+ mReaderWin->message()->parent()->identity() );
} else {
command = new KMForwardDigestCommand( this, mReaderWin->message() );
}
@@ -487,9 +487,9 @@ void KMReaderMainWin::slotMsgPopup(KMMessage &aMsg, const KURL &aUrl, const TQPo
return;
}
- if ( ! ( aMsg.tqparent() && ( aMsg.tqparent()->isSent() ||
- aMsg.tqparent()->isDrafts() ||
- aMsg.tqparent()->isTemplates() ) ) ) {
+ if ( ! ( aMsg.parent() && ( aMsg.parent()->isSent() ||
+ aMsg.parent()->isDrafts() ||
+ aMsg.parent()->isTemplates() ) ) ) {
// add the reply and forward actions only if we are not in a sent-mail,
// templates or drafts folder
//