summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimage.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-02-01 14:33:38 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-06-01 15:54:50 +0200
commitf9df8512c2b378328f771b843fd96750dc875886 (patch)
tree67ffbd5fb1c21be473136d77bdaf9449f1a23a58 /src/gui/image/qimage.h
parent8c5b1f39f7fa2abcf94491e8fc7d1b5534fa0174 (diff)
Do metadata detach simpler than full detach
Avoid a full data detach when only metadata changes. This paradigm was already used one place, and made generic. Fixes: QTBUG-81674 Change-Id: I605253babc6ad9fc130e19e8cef3812690933ac5 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/image/qimage.h')
-rw-r--r--src/gui/image/qimage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h
index 9e4abd006e..aa58af4a76 100644
--- a/src/gui/image/qimage.h
+++ b/src/gui/image/qimage.h
@@ -294,6 +294,8 @@ protected:
bool convertToFormat_inplace(Format format, Qt::ImageConversionFlags flags);
QImage smoothScaled(int w, int h) const;
+ void detachMetadata(bool invalidateCache = false);
+
private:
QImageData *d;