GUI: Clipboard copying of e-mail addresses from the header view
commit434f677d4909e751ef59d2c8b5e2899b05eae022
authorJan Kundrát <jkt@kde.org>
Sun, 5 Feb 2017 17:16:49 +0000 (5 18:16 +0100)
committerJan Kundrát <jkt@kde.org>
Mon, 6 Feb 2017 11:29:54 +0000 (6 12:29 +0100)
treeb27a76b72375a0fe9ac026bf3c7acbcf933e88e5
parentd42deaec263c1a0cd00d0391f0b75b48c3471b0d
GUI: Clipboard copying of e-mail addresses from the header view

Previously, the context menu offered some options for accessing the
QLabel (this class is actually just a pretty QLabel)'s text, for
selecting all of it, and copying stuff.

The most important, IMHO, is to have access to the actual e-mail address
(as requested by the associated bugreport), and to the human readable
text for the sake of completeness.

The code is still a tad inconsistent because the List-Post header for
indicating an active mailing list does not currently use the
OneEnvelopeAddress class. Mailing list addresses will therefore remain
unaffected by this patch; their copy action is still going to copy a
complete mailto: URL.

BUG: 374830
Change-Id: I4e515045d0241e4c1064389aa777f58e72c7c999
src/Gui/OneEnvelopeAddress.cpp
src/Gui/OneEnvelopeAddress.h