summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimage.h
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2015-01-23 13:09:03 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-02-13 16:29:25 +0000
commit651329adb5e64b18a005e900e1b9c5e95d70258c (patch)
tree94e8eace0a8e39390191eb37ddb4e5a89e434507 /src/gui/image/qimage.h
parent9b67d89c24666d405dd00e63bb56c924738aa002 (diff)
Pass params of shareable type by const-ref rather than by value
Instead of leaving a note for Qt6 and then forget to do the actual change once again, change APIs now inside QT_VERSION >= QT_VERSION_CHECK(6,0,0) blocks. Change-Id: Ifa769904e304358a9c2accfd6c9f86eeb342f9dc Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/image/qimage.h')
-rw-r--r--src/gui/image/qimage.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h
index acfdc6fd7b..4ce99b9ab1 100644
--- a/src/gui/image/qimage.h
+++ b/src/gui/image/qimage.h
@@ -220,7 +220,11 @@ public:
void setPixel(const QPoint &pt, uint index_or_rgb);
QVector<QRgb> colorTable() const;
- void setColorTable(const QVector<QRgb> colors); // ### Qt 6: remove const
+#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
+ void setColorTable(const QVector<QRgb> &colors);
+#else
+ void setColorTable(const QVector<QRgb> colors);
+#endif
qreal devicePixelRatio() const;
void setDevicePixelRatio(qreal scaleFactor);