Move item views puzzle example to manual test

Pick-to: 6.5 6.6
Change-Id: Idbb4222861be86275a86f731e75127b8496a08a7
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tor Arne Vestbø 2023-06-26 14:41:17 +02:00
parent 645e011d7d
commit a18c55e738
17 changed files with 1 additions and 23 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

View File

@ -1,15 +0,0 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\example itemviews/puzzle
\title Item Views Puzzle Example
\ingroup examples-itemviews
\brief The Puzzle example shows how to enable drag and drop with a custom model
to allow items to be transferred between a view and another widget.
\image itemviewspuzzle-example.png
This example is an implementation of a simple jigsaw puzzle game using the
built-in support for drag and drop provided by Qt's model/view framework.
*/

View File

@ -15,9 +15,6 @@ qt_internal_add_example(simplewidgetmapper)
qt_internal_add_example(spinboxdelegate)
qt_internal_add_example(spreadsheet)
qt_internal_add_example(stardelegate)
if(QT_FEATURE_draganddrop)
qt_internal_add_example(puzzle)
endif()
if(TARGET Qt6::Xml)
qt_internal_add_example(simpledommodel)
endif()

View File

@ -8,12 +8,10 @@ SUBDIRS = addressbook \
fetchmore \
frozencolumn \
pixelator \
puzzle \
simpledommodel \
simpletreemodel \
simplewidgetmapper \
spinboxdelegate \
spreadsheet \
stardelegate
!qtConfig(draganddrop): SUBDIRS -= puzzle
!qtHaveModule(xml): SUBDIRS -= simpledommodel

View File

@ -1818,8 +1818,6 @@
Note that the model will typically need to provide implementations of the
QAbstractItemModel::insertRows() and QAbstractItemModel::setData() functions.
\sa {itemviews/puzzle}{Item Views Puzzle Example}
\section1 Proxy Models
In the model/view framework, items of data supplied by a single model can be shared

View File

@ -88,7 +88,7 @@ extern bool qt_sendSpontaneousEvent(QObject *receiver, QEvent *event);
that can be taken for views that are intended to display items with equal sizes
is to set the \l uniformItemSizes property to true.
\sa {View Classes}, {Item Views Puzzle Example}, QTreeView, QTableView, QListWidget
\sa {View Classes}, QTreeView, QTableView, QListWidget
*/
/*!

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB