From 6fbd403fe7597f457e669bbb6551509c2097fc2d Mon Sep 17 00:00:00 2001 From: Oleksii Zbykovskyi Date: Tue, 5 Aug 2025 15:08:38 +0200 Subject: Relocate files from separate CMake files to the main one Removed useless CMakefiles and move their contents to the main CMakeLists file. Task-number: QTBUG-137566 Change-Id: Ibeb162ce43243d9af7732f39935325cbb52ecdec Reviewed-by: Volker Hilsheimer --- src/widgets/doc/snippets/graphicsview/graphicsview_snippet.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/widgets/doc/snippets/graphicsview/graphicsview_snippet.cpp') diff --git a/src/widgets/doc/snippets/graphicsview/graphicsview_snippet.cpp b/src/widgets/doc/snippets/graphicsview/graphicsview_snippet.cpp index 303f2fa9e24..b9a1034ffa9 100644 --- a/src/widgets/doc/snippets/graphicsview/graphicsview_snippet.cpp +++ b/src/widgets/doc/snippets/graphicsview/graphicsview_snippet.cpp @@ -1,16 +1,18 @@ // Copyright (C) 2020 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +#include + //! [2] class View : public QGraphicsView { Q_OBJECT - ... + //... public slots: void zoomIn() { scale(1.2, 1.2); } void zoomOut() { scale(1 / 1.2, 1 / 1.2); } void rotateLeft() { rotate(-10); } void rotateRight() { rotate(10); } - ... + //... }; //! [2] -- cgit v1.2.3