]> git.pld-linux.org Git - packages/kde4-kdepim.git/commitdiff
- fixed copy selected text to clipboard (with html code)
authorKarol Krenski <charles@pld-linux.org>
Tue, 18 Jan 2011 22:52:12 +0000 (22:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
like:
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<body><h2 style="margin-top: 0px;">KMail 1.13.5</h2></body>

Changed files:
    kmail-copySelectedText.patch -> 1.1

kmail-copySelectedText.patch [new file with mode: 0644]

diff --git a/kmail-copySelectedText.patch b/kmail-copySelectedText.patch
new file mode 100644 (file)
index 0000000..65e3d64
--- /dev/null
@@ -0,0 +1,28 @@
+--- kdepim-4.4.9/kmail/kmreaderwin.cpp.orig    2010-12-22 18:52:28.000000000 +0100
++++ kdepim-4.4.9/kmail/kmreaderwin.cpp 2011-01-18 22:58:03.202991913 +0100
+@@ -2187,22 +2187,9 @@
+ //-----------------------------------------------------------------------------
+ void KMReaderWin::slotCopySelectedText()
+ {
+-  QString selection;
+-  if ( htmlMail() ) {
+-    QMimeData *mimeData = new QMimeData();
+-    selection = mViewer->selectedTextAsHTML();
+-    mimeData->setText(selection);
+-    if(!selection.isEmpty()) {
+-      selection.replace( QChar::Nbsp, ' ' );
+-      mimeData->setHtml(selection);
+-    }
+-    QApplication::clipboard()->setMimeData( mimeData, QClipboard::Clipboard );
+-  } else {
+-    selection = mViewer->selectedText();
+-    selection.replace( QChar::Nbsp, ' ' );
+-    QApplication::clipboard()->setText( selection );
+-  }
+-
++  QString selection = mViewer->selectedText();
++  selection.replace( QChar::Nbsp, ' ' );
++  QApplication::clipboard()->setText( selection );
+ }
This page took 0.036355 seconds and 4 git commands to generate.