Move Weather Anchor Layout example to manual tests

Pick-to: 6.5
Change-Id: I8782a83b5c12b4f57bf9ef9063818cb124bddd56
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
This commit is contained in:
Jan Arve Sæther 2023-02-28 17:41:48 +01:00
parent c6dbae9550
commit a84b2e5973
17 changed files with 35 additions and 72 deletions

View File

@ -146,7 +146,6 @@ manifestmeta.ios.names = "QtCore/Contiguous Cache Example" \
"QtWidgets/Embedded Dialogs" \
"QtWidgets/Graphics View Flow Layout Example" \
"QtWidgets/Simple Anchor Layout Example" \
"QtWidgets/Weather Anchor Layout Example" \
"QtWidgets/Address Book" \
"QtWidgets/Basic Sort/Filter Model Example" \
"QtWidgets/Chart Example" \

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

View File

@ -1,14 +0,0 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\example graphicsview/weatheranchorlayout
\title Weather Anchor Layout Example
\ingroup examples-graphicsview-layout
\brief Demonstrates anchor layout on a graphics view scene.
The Weather Anchor Layout example shows more complex use of the
QGraphicsAnchorLayout class to create a real-world window layout.
\image weatheranchorlayout-example.png
*/

View File

@ -10,7 +10,6 @@ qt_internal_add_example(diagramscene)
qt_internal_add_example(flowlayout)
qt_internal_add_example(anchorlayout)
qt_internal_add_example(simpleanchorlayout)
qt_internal_add_example(weatheranchorlayout)
if(QT_FEATURE_cursor AND QT_FEATURE_draganddrop)
qt_internal_add_example(dragdroprobot)
endif()

View File

@ -9,7 +9,6 @@ SUBDIRS = \
dragdroprobot \
flowlayout \
anchorlayout \
simpleanchorlayout \
weatheranchorlayout
simpleanchorlayout
contains(DEFINES, QT_NO_CURSOR)|!qtConfig(draganddrop): SUBDIRS -= dragdroprobot

View File

@ -1,53 +0,0 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
project(weatheranchorlayout LANGUAGES CXX)
if(NOT DEFINED INSTALL_EXAMPLESDIR)
set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/graphicsview/weatheranchorlayout")
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
qt_standard_project_setup()
qt_add_executable(weatheranchorlayout
main.cpp
)
set_target_properties(weatheranchorlayout PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(weatheranchorlayout PRIVATE
Qt6::Core
Qt6::Gui
Qt6::Widgets
)
# Resources:
set(weatheranchorlayout_resource_files
"images/5days.jpg"
"images/details.jpg"
"images/place.jpg"
"images/tabbar.jpg"
"images/title.jpg"
"images/weather-few-clouds.png"
)
qt_add_resources(weatheranchorlayout "weatheranchorlayout"
PREFIX
"/"
FILES
${weatheranchorlayout_resource_files}
)
install(TARGETS weatheranchorlayout
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)

View File

@ -20,7 +20,6 @@
"graphicsview/flowlayout Example", "examples/widgets/graphicsview/flowlayout", "flowlayout", 10, -1
"graphicsview/portedasteroids Example", "examples/widgets/graphicsview/portedasteroids", "portedasteroids", 10, -1
"graphicsview/portedcanvas Example", "examples/widgets/graphicsview/portedcanvas", "portedcanvas", 10, -1
"graphicsview/weatheranchorlayout Example", "examples/widgets/graphicsview/weatheranchorlayout", "weatheranchorlayout", 10, -1
"itemviews/addressbook Example", "examples/widgets/itemviews/addressbook", "addressbook", 0, -1
"itemviews/basicsortfiltermodel Example", "examples/widgets/itemviews/basicsortfiltermodel", "basicsortfiltermodel", 10, -1
"itemviews/chart Example", "examples/widgets/itemviews/chart", "chart", 0, -1

View File

@ -0,0 +1,34 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
#####################################################################
## weatheranchorlayout Binary:
#####################################################################
cmake_minimum_required(VERSION 3.16)
qt_internal_add_manual_test(weatheranchorlayout
GUI
SOURCES
main.cpp
LIBRARIES
Qt::Gui
Qt::Widgets
)
# Resources:
set(weatheranchorlayout_resource_files
"images/5days.jpg"
"images/details.jpg"
"images/place.jpg"
"images/tabbar.jpg"
"images/title.jpg"
"images/weather-few-clouds.png"
)
qt_add_resources(weatheranchorlayout "weatheranchorlayout"
PREFIX
"/"
FILES
${weatheranchorlayout_resource_files}
)

View File

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

Before

Width:  |  Height:  |  Size: 849 B

After

Width:  |  Height:  |  Size: 849 B

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB