Rename method

wilder-work
Montel Laurent 11 years ago
parent ab45f02ddb
commit c2721e6a28
  1. 10
      kmreadermainwin.cpp
  2. 2
      kmreadermainwin.h

@ -408,12 +408,12 @@ void KMReaderMainWin::slotMoveItem(QAction *action)
if ( mMsg.isValid() ) {
Akonadi::ItemMoveJob *job = new Akonadi::ItemMoveJob( mMsg, collection,this );
connect( job, SIGNAL(result(KJob*)), this, SLOT(slotCopyResult(KJob*)) );
connect( job, SIGNAL(result(KJob*)), this, SLOT(slotCopyMoveResult(KJob*)) );
}
else
{
Akonadi::ItemCreateJob *job = new Akonadi::ItemCreateJob( mMsg, collection, this );
connect( job, SIGNAL(result(KJob*)), this, SLOT(slotCopyResult(KJob*)) );
connect( job, SIGNAL(result(KJob*)), this, SLOT(slotCopyMoveResult(KJob*)) );
}
}
}
@ -427,17 +427,17 @@ void KMReaderMainWin::slotCopyItem(QAction*action)
if ( mMsg.isValid() ) {
Akonadi::ItemCopyJob *job = new Akonadi::ItemCopyJob( mMsg, collection,this );
connect( job, SIGNAL(result(KJob*)), this, SLOT(slotCopyResult(KJob*)) );
connect( job, SIGNAL(result(KJob*)), this, SLOT(slotCopyMoveResult(KJob*)) );
}
else
{
Akonadi::ItemCreateJob *job = new Akonadi::ItemCreateJob( mMsg, collection, this );
connect( job, SIGNAL(result(KJob*)), this, SLOT(slotCopyResult(KJob*)) );
connect( job, SIGNAL(result(KJob*)), this, SLOT(slotCopyMoveResult(KJob*)) );
}
}
}
void KMReaderMainWin::slotCopyResult( KJob * job )
void KMReaderMainWin::slotCopyMoveResult( KJob * job )
{
if ( job->error() ) {
KMessageBox::sorry( this, i18n("Cannot copy item. %1", job->errorString() ) );

@ -75,7 +75,7 @@ private slots:
/// forwarding is set.
void slotReplyOrForwardFinished();
void slotCopyItem(QAction*);
void slotCopyResult( KJob * job );
void slotCopyMoveResult( KJob * job );
void slotMoveItem(QAction *action);
private:

Loading…
Cancel
Save