From f6567333aac7d5e565bb30683e0465c8baf4e719 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Tue, 7 Jan 2025 10:38:11 +0100 Subject: [PATCH] QGtk3Interface: code tidies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The class is not meant to be copied. Therefore disable copy/moves. This gets rid of a warning in QMetaType, since the class is also a Q_GADGET. Change-Id: Ie463ebd0c0dac9f2c37c4ffa88e1920ad313fd00 Reviewed-by: Thorbjørn Lindeijer --- src/plugins/platformthemes/gtk3/qgtk3interface_p.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platformthemes/gtk3/qgtk3interface_p.h b/src/plugins/platformthemes/gtk3/qgtk3interface_p.h index c43932a4fa3..adeb703ec56 100644 --- a/src/plugins/platformthemes/gtk3/qgtk3interface_p.h +++ b/src/plugins/platformthemes/gtk3/qgtk3interface_p.h @@ -53,6 +53,7 @@ class QGtk3Storage; class QGtk3Interface { Q_GADGET + Q_DISABLE_COPY_MOVE(QGtk3Interface) public: QGtk3Interface(QGtk3Storage *); ~QGtk3Interface();