|
Line
Link Here
|
| 0 |
-- a/kmail/kmreaderwin.cpp |
0 |
++ b/kmail/kmreaderwin.cpp |
|
Lines 2187-2208
void KMReaderWin::slotToggleMimePartTree()
Link Here
|
| 2187 |
//----------------------------------------------------------------------------- |
2187 |
//----------------------------------------------------------------------------- |
| 2188 |
void KMReaderWin::slotCopySelectedText() |
2188 |
void KMReaderWin::slotCopySelectedText() |
| 2189 |
{ |
2189 |
{ |
| 2190 |
QString selection; |
2190 |
QString selection = mViewer->selectedText(); |
| 2191 |
if ( htmlMail() ) { |
2191 |
selection.replace( QChar::Nbsp, ' ' ); |
| 2192 |
QMimeData *mimeData = new QMimeData(); |
2192 |
QApplication::clipboard()->setText( selection ); |
| 2193 |
selection = mViewer->selectedTextAsHTML(); |
|
|
| 2194 |
mimeData->setText(selection); |
| 2195 |
if(!selection.isEmpty()) { |
| 2196 |
selection.replace( QChar::Nbsp, ' ' ); |
| 2197 |
mimeData->setHtml(selection); |
| 2198 |
} |
| 2199 |
QApplication::clipboard()->setMimeData( mimeData, QClipboard::Clipboard ); |
| 2200 |
} else { |
| 2201 |
selection = mViewer->selectedText(); |
| 2202 |
selection.replace( QChar::Nbsp, ' ' ); |
| 2203 |
QApplication::clipboard()->setText( selection ); |
| 2204 |
} |
| 2205 |
|
| 2206 |
} |
2193 |
} |