~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to kmail/kmreadermainwin.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-08-28 23:32:45 UTC
  • mto: This revision was merged to the branch mainline in revision 136.
  • Revision ID: james.westby@ubuntu.com-20090828233245-i7jr2n3f31iqll33
Tags: upstream-4.3.1
ImportĀ upstreamĀ versionĀ 4.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
}
125
125
 
126
126
//-----------------------------------------------------------------------------
127
 
void KMReaderMainWin::showMsg( const QString & encoding, KMMessage *msg )
 
127
void KMReaderMainWin::showMsg( const QString & encoding, KMMessage *msg,
 
128
                               unsigned long serNumOfOriginalMessage, int nodeIdOffset )
128
129
{
129
130
  mReaderWin->setOverrideEncoding( encoding );
130
131
  mReaderWin->setMsg( msg, true );
 
132
  if ( serNumOfOriginalMessage != 0 ) {
 
133
    Q_ASSERT( nodeIdOffset != -1 );
 
134
    mReaderWin->setOriginalMsg( serNumOfOriginalMessage, nodeIdOffset );
 
135
  }
131
136
  mReaderWin->slotTouchMessage();
132
137
  setCaption( msg->subject() );
133
138
  mMsg = msg;
316
321
  updateMessageMenu();
317
322
  updateCustomTemplateMenus();
318
323
 
319
 
  mCopyTextAction = new KAction( KStandardAction::copy(
320
 
                   mReaderWin, SLOT( slotCopySelectedText() ), actionCollection() ) );
321
 
 
322
324
  connect( mReaderWin, SIGNAL(popupMenu(KMMessage&,const KUrl&,const QPoint&)),
323
325
           this, SLOT(slotMsgPopup(KMMessage&,const KUrl&,const QPoint&)) );
324
326
  connect( mReaderWin, SIGNAL(urlClicked(const KUrl&,int)),