diff options
author | Aleksei Nikiforov <darktemplar@basealt.ru> | 2019-01-21 15:15:22 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2019-01-26 11:46:11 +0100 |
commit | c8b0c382c6330865df50ae7cf7360c8a2c08ebe6 (patch) | |
tree | 33449f3db4b81fd161812a649ba78d491c8d8d15 /vcl/qt5 | |
parent | bf359d01ac8b1e0292e8a92c38e58c03e6c17d8b (diff) |
tdf#120836 KDE5: Clipboard: don't put images to clipboard
Image generation is very slow.
Change-Id: I34d45ed1f4d665613700f01cceec59069b091a79
Reviewed-on: https://gerrit.libreoffice.org/66680
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Clipboard.cxx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/vcl/qt5/Qt5Clipboard.cxx b/vcl/qt5/Qt5Clipboard.cxx index 7407e2b062b0..92bb3a89da3d 100644 --- a/vcl/qt5/Qt5Clipboard.cxx +++ b/vcl/qt5/Qt5Clipboard.cxx @@ -277,36 +277,6 @@ void VclQt5Clipboard::setContents( } } - // Add image data if present - if (bHasImage) - { - css::datatransfer::DataFlavor aFlavor; - //FIXME: other image formats? - aFlavor.MimeType = "image/png"; - aFlavor.DataType = cppu::UnoType<Sequence<sal_Int8>>::get(); - - Any aValue; - try - { - aValue = xTrans->getTransferData(aFlavor); - } - catch (...) - { - } - - if (aValue.getValueType() == cppu::UnoType<Sequence<sal_Int8>>::get()) - { - Sequence<sal_Int8> aData; - aValue >>= aData; - - QImage image; - image.loadFromData(reinterpret_cast<const uchar*>(aData.getConstArray()), - aData.getLength()); - - pMimeData->setImageData(image); - } - } - // Add text data // TODO: consider checking if text of suitable type is present { |