Changeset View
Changeset View
Standalone View
Standalone View
krita/ui/kis_mimedata.cpp
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 108 | { | |||
---|---|---|---|---|---|
111 | if (mimetype == "application/x-qt-image") { | 111 | if (mimetype == "application/x-qt-image") { | ||
112 | KisConfig cfg; | 112 | KisConfig cfg; | ||
113 | 113 | | |||
114 | KisDocument *doc = createDocument(m_nodes); | 114 | KisDocument *doc = createDocument(m_nodes); | ||
115 | doc->image()->refreshGraph(); | 115 | doc->image()->refreshGraph(); | ||
116 | doc->image()->waitForDone(); | 116 | doc->image()->waitForDone(); | ||
117 | 117 | | |||
118 | return doc->image()->projection()->convertToQImage(cfg.displayProfile(QApplication::desktop()->screenNumber(qApp->activeWindow())), | 118 | return doc->image()->projection()->convertToQImage(cfg.displayProfile(QApplication::desktop()->screenNumber(qApp->activeWindow())), | ||
119 | KoColorConversionTransformation::InternalRenderingIntent, | 119 | KoColorConversionTransformation::internalRenderingIntent(), | ||
120 | KoColorConversionTransformation::InternalConversionFlags); | 120 | KoColorConversionTransformation::internalConversionFlags()); | ||
121 | } | 121 | } | ||
122 | else if (mimetype == "application/x-krita-node" || | 122 | else if (mimetype == "application/x-krita-node" || | ||
123 | mimetype == "application/zip") { | 123 | mimetype == "application/zip") { | ||
124 | 124 | | |||
125 | QByteArray ba = serializeToByteArray(m_nodes); | 125 | QByteArray ba = serializeToByteArray(m_nodes); | ||
126 | return ba; | 126 | return ba; | ||
127 | 127 | | |||
128 | } | 128 | } | ||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |