Warning, /graphics/krita/3rdparty/ext_qt/0001-Use-fast-path-for-unsupported-mime-types.patch is written in an unsupported language. File is not indexed.

0001 From 0fef4e1bd771814a729c38e5066e5970c2e013cd Mon Sep 17 00:00:00 2001
0002 From: Dmitry Kazakov <dimula73@gmail.com>
0003 Date: Wed, 19 Jun 2019 15:04:31 +0300
0004 Subject: [PATCH 01/47] Use fast path for unsupported mime types
0005 
0006 We don't need to request the entire image every time
0007 Windows asks for the list of supported MIME types. That
0008 can make graphical applications very slow (because the image
0009 might be quite big)
0010 
0011 Change-Id: I84223417661eceffa1362f8045c89e260b68e0a7
0012 ---
0013  src/plugins/platforms/windows/qwindowsmime.cpp | 4 ++++
0014  1 file changed, 4 insertions(+)
0015 
0016 diff --git a/src/plugins/platforms/windows/qwindowsmime.cpp b/src/plugins/platforms/windows/qwindowsmime.cpp
0017 index 030d8d1e0f..b4f325736b 100644
0018 --- a/src/plugins/platforms/windows/qwindowsmime.cpp
0019 +++ b/src/plugins/platforms/windows/qwindowsmime.cpp
0020 @@ -1082,6 +1082,10 @@ bool QWindowsMimeImage::canConvertToMime(const QString &mimeType, IDataObject *p
0021  bool QWindowsMimeImage::canConvertFromMime(const FORMATETC &formatetc, const QMimeData *mimeData) const
0022  {
0023      int cf = getCf(formatetc);
0024 +
0025 +    if (cf != CF_DIBV5 && cf != CF_DIB && cf != CF_PNG)
0026 +        return false;
0027 +
0028      if (!mimeData->hasImage())
0029          return false;
0030      const QImage image = qvariant_cast<QImage>(mimeData->imageData());
0031 -- 
0032 2.20.1.windows.1
0033