Changeset View
Changeset View
Standalone View
Standalone View
kmail/kmreaderwin.cpp
Show First 20 Lines • Show All 741 Lines • ▼ Show 20 Lines | void KMReaderWin::slotShowMessage( KMime::Message::Ptr message, const QString& encoding ) | ||||
win->showMessage( encoding, message ); | win->showMessage( encoding, message ); | ||||
win->show(); | win->show(); | ||||
} | } | ||||
void KMReaderWin::slotDeleteMessage(const Akonadi::Item& item) | void KMReaderWin::slotDeleteMessage(const Akonadi::Item& item) | ||||
{ | { | ||||
if ( !item.isValid() ) | if ( !item.isValid() ) | ||||
return; | return; | ||||
KMTrashMsgCommand *command = new KMTrashMsgCommand( item.parentCollection(), item, -1 ); | KMTrashMsgCommand *command = new KMTrashMsgCommand( MailCommon::Util::parentCollectionFromItem(item), item, -1 ); | ||||
command->start(); | command->start(); | ||||
} | } | ||||
bool KMReaderWin::printSelectedText(bool preview) | bool KMReaderWin::printSelectedText(bool preview) | ||||
{ | { | ||||
const QString str = mViewer->selectedText(); | const QString str = mViewer->selectedText(); | ||||
if(str.isEmpty()) | if(str.isEmpty()) | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |