diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-12-12 14:54:50 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-12-14 20:06:32 +0100 |
commit | 33254fb41f29b510d3d74dbaab60f0a67ef56d46 (patch) | |
tree | f79f0857335ee41141e40c6924c2f60bb9f1ec27 /examples/widgets/painting/concentriccircles/CMakeLists.txt | |
parent | 92b5992a29e6a5463200157ab9934fae9a3ec8cb (diff) |
Turn the "concentriccircles" example into snippets, update screenshot
The example has a lot of code and documentation, but in essence shows
how to use float-based QPainter APIs and how to set a render hint. That
is two lines of code, which we can show as snippets.
Update the screenshot of the example with a higher-resolution version.
Pick-to: 6.7 6.6
Fixes: QTBUG-119983
Change-Id: Iafcb813dff6ab8c269176f7994c95947ebf5e559
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'examples/widgets/painting/concentriccircles/CMakeLists.txt')
-rw-r--r-- | examples/widgets/painting/concentriccircles/CMakeLists.txt | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/examples/widgets/painting/concentriccircles/CMakeLists.txt b/examples/widgets/painting/concentriccircles/CMakeLists.txt deleted file mode 100644 index 995a974b25..0000000000 --- a/examples/widgets/painting/concentriccircles/CMakeLists.txt +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (C) 2022 The Qt Company Ltd. -# SPDX-License-Identifier: BSD-3-Clause - -cmake_minimum_required(VERSION 3.16) -project(concentriccircles LANGUAGES CXX) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/painting/concentriccircles") - -find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets) - -qt_standard_project_setup() - -qt_add_executable(concentriccircles - circlewidget.cpp circlewidget.h - main.cpp - window.cpp window.h -) - -set_target_properties(concentriccircles PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) - -target_link_libraries(concentriccircles PRIVATE - Qt6::Core - Qt6::Gui - Qt6::Widgets -) - -install(TARGETS concentriccircles - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) |