summaryrefslogtreecommitdiff
path: root/lo.xcent
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2019-05-31 16:40:34 +0000
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-06-13 23:18:58 +0200
commitbcca1cf28cbd6c961d59bd8b8a8e58184dfc3823 (patch)
treea0ea40c0ab19a32f4da2a7247631454006378692 /lo.xcent
parent1b39bae5debe3bf952449bd7d2910defcea92b9e (diff)
tdf#122239 Qt5 implement lazy clipboard handling
This changes the Qt5Clipboard to a lazy loading one, which will just deliver data on read requests. This fixes not only the PRIMARY selection problems with Writer, but will generally speed up C'n'P, inside LO, because the data has not to be copied or transferred via QMimeData. This is mainly done by implementing the "mirror" interface of the Qt5Transferable, the Qt5MimeData using the retrieveData override. To prevent clipboard loss on shutdown, this sets a deep copied QMimeData of the current XTransferable, to make it persistent. This code explicitly doesn't use any of the QMimeData convenience functions and relies completely on LO's string handling, so we won't mix in eventual Qt bugs; all bugs are ours... Change-Id: I43d92a95df8fcac88dc41b00021cea0b5f040413 Reviewed-on: https://gerrit.libreoffice.org/73288 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'lo.xcent')
0 files changed, 0 insertions, 0 deletions