From 651329adb5e64b18a005e900e1b9c5e95d70258c Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Fri, 23 Jan 2015 13:09:03 +0400 Subject: 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 Reviewed-by: Oswald Buddenhagen Reviewed-by: Thiago Macieira --- src/widgets/graphicsview/qgraphicswidget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/widgets/graphicsview/qgraphicswidget.h') diff --git a/src/widgets/graphicsview/qgraphicswidget.h b/src/widgets/graphicsview/qgraphicswidget.h index 8e64e180a5..3ecdeac158 100644 --- a/src/widgets/graphicsview/qgraphicswidget.h +++ b/src/widgets/graphicsview/qgraphicswidget.h @@ -137,7 +137,11 @@ public: #ifndef QT_NO_ACTION //actions void addAction(QAction *action); +#if QT_VERSION >= QT_VERSION_CHECK(6,0,0) + void addActions(const QList &actions); +#else void addActions(QList actions); +#endif void insertAction(QAction *before, QAction *action); void insertActions(QAction *before, QList actions); void removeAction(QAction *action); -- cgit v1.2.3