summaryrefslogtreecommitdiffstats
path: root/src/core/type_conversion.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-12-17 13:17:03 +0100
committerJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-12-17 13:51:22 +0000
commit1cf9175e06db9c8c0388e21279b15b011fb593c2 (patch)
tree7f96113b0b57505f5d40e2b6cec3a5780c710216 /src/core/type_conversion.h
parentc58ebfda3cead93b716eaf185e4a11130cb34dea (diff)
Extend toQImage to automatically deduce the image format
We will use this in a subsequent commit. Change-Id: I73af6b28691eea97e076d0619f3068ec8c5324a2 Done-by: Allan Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/core/type_conversion.h')
-rw-r--r--src/core/type_conversion.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/type_conversion.h b/src/core/type_conversion.h
index cfab4d19a..da0ee3e5c 100644
--- a/src/core/type_conversion.h
+++ b/src/core/type_conversion.h
@@ -149,6 +149,8 @@ inline QImage toQImage(const SkBitmap &bitmap, QImage::Format format)
return QImage((uchar *)pixelRef->pixels(), bitmap.width(), bitmap.height(), format);
}
+QImage toQImage(const SkBitmap &bitmap);
+
inline QMatrix4x4 toQt(const SkMatrix44 &m)
{
QMatrix4x4 qtMatrix(