CMake: Allow omitting the version of QML modules

Also, drop all the VERSION 1.0 lines from the examples and tests. 1.0 is
actually a bad default version since it's before all the Qt versions.

[ChangeLog][QML] You can now omit the VERSION argument to
qt_add_qml_module(). This will automatically generate the highest
possible version.

Task-number: QTBUG-99146
Change-Id: Ic10ec69b87c224e0e94e1785f65653815d4c778c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
(cherry picked from commit 2d44365f69)
This commit is contained in:
Ulf Hermann 2022-06-10 15:51:08 +02:00
parent bdbe02dea4
commit 1d090673bf
128 changed files with 17 additions and 138 deletions

View File

@ -26,7 +26,6 @@ target_link_libraries(dynamicsceneexample PUBLIC
qt_add_qml_module(dynamicsceneexample
URI dynamicscene
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"GenericSceneItem.qml"

View File

@ -33,7 +33,6 @@ target_link_libraries(networkaccessmanagerfactory PUBLIC
qt_add_qml_module(networkaccessmanagerfactory
URI Example
VERSION 1.0
QML_FILES view.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -26,7 +26,6 @@ target_link_libraries(qmli18n PRIVATE
qt_add_qml_module(qmli18n
URI i18n
VERSION 1.0
QML_FILES
qml-i18n.qml
NO_RESOURCE_TARGET_PATH

View File

@ -35,7 +35,6 @@ endforeach()
#![1]
qt_add_qml_module(qmlqtimeexample
OUTPUT_DIRECTORY imports/TimeExample
VERSION 1.0
URI "TimeExample"
SOURCES timemodel.cpp timemodel.h
AUTO_RESOURCE_PREFIX

View File

@ -31,7 +31,6 @@ target_link_libraries(adding PUBLIC
qt_add_qml_module(adding
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -33,7 +33,6 @@ target_link_libraries(attached PUBLIC
qt_add_qml_module(attached
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -34,7 +34,6 @@ target_link_libraries(binding PUBLIC
qt_add_qml_module(binding
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -32,7 +32,6 @@ target_link_libraries(coercion PUBLIC
qt_add_qml_module(coercion
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -32,7 +32,6 @@ target_link_libraries(default PUBLIC
qt_add_qml_module(default
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -33,7 +33,6 @@ target_link_libraries(extended PUBLIC
qt_add_qml_module(extended
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -33,7 +33,6 @@ target_link_libraries(grouped PUBLIC
qt_add_qml_module(grouped
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -32,7 +32,6 @@ target_link_libraries(methods PUBLIC
qt_add_qml_module(methods
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -32,7 +32,6 @@ target_link_libraries(properties PUBLIC
qt_add_qml_module(properties
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -33,7 +33,6 @@ target_link_libraries(signal PUBLIC
qt_add_qml_module(signal
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -34,7 +34,6 @@ target_link_libraries(valuesource PUBLIC
qt_add_qml_module(valuesource
URI People
VERSION 1.0
QML_FILES example.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -33,7 +33,6 @@ target_link_libraries(chapter1-basics PUBLIC
#![0]
qt_add_qml_module(chapter1-basics
URI Charts
VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick

View File

@ -33,7 +33,6 @@ target_link_libraries(chapter2-methods PUBLIC
qt_add_qml_module(chapter2-methods
URI Charts
VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick

View File

@ -33,7 +33,6 @@ target_link_libraries(chapter3-bindings PUBLIC
qt_add_qml_module(chapter3-bindings
URI Charts
VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick

View File

@ -34,7 +34,6 @@ target_link_libraries(chapter4-customPropertyTypes PUBLIC
#![1]
qt_add_qml_module(chapter4-customPropertyTypes
URI Charts
VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick

View File

@ -34,7 +34,6 @@ target_link_libraries(chapter5-listproperties PUBLIC
qt_add_qml_module(chapter5-listproperties
URI Charts
VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
DEPENDENCIES QtQuick

View File

@ -30,7 +30,6 @@ target_link_libraries(chapter6-plugins PRIVATE
qt_add_qml_module(chapter6-plugins
URI ChartsApp
VERSION 1.0
QML_FILES app.qml
NO_RESOURCE_TARGET_PATH
)

View File

@ -2,7 +2,6 @@
# SPDX-License-Identifier: BSD-3-Clause
qt6_add_qml_module(chartsplugin
VERSION 1.0
URI "Charts"
PLUGIN_TARGET chartsplugin
DEPENDENCIES QtQuick

View File

@ -22,7 +22,6 @@ qt_add_executable(xmlhttprequestexample
qt_add_qml_module(xmlhttprequestexample
URI xmlhttprequest
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"methods.js"

View File

@ -33,7 +33,6 @@ add_dependencies(animationexample animation_shared)
qt_add_qml_module(animationexample
URI animation
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"animation.qml"

View File

@ -31,7 +31,6 @@ target_link_libraries(canvasexample PRIVATE
qt_add_qml_module(canvasexample
URI canvas
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"LabeledSlider.qml"

View File

@ -32,7 +32,6 @@ target_link_libraries(dialcontrolexample PUBLIC
qt_add_qml_module(dialcontrolexample
URI dialcontrol
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"Dial.qml"

View File

@ -30,7 +30,6 @@ target_link_libraries(flipableexample PUBLIC
qt_add_qml_module(flipableexample
URI flipable
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"flipable.qml"

View File

@ -33,7 +33,6 @@ target_link_libraries(maskedmousearea PUBLIC
qt_add_qml_module(maskedmousearea
URI Example
VERSION 1.0
QML_FILES
maskedmousearea.qml
RESOURCES

View File

@ -21,7 +21,6 @@ qt_add_executable(painteditemexample WIN32 MACOSX_BUNDLE main.cpp)
qt_add_qml_module(painteditemexample
URI painteditem
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"textballoons.qml"

View File

@ -8,7 +8,6 @@ endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quick/customitems/painteditem/TextBalloon")
qt_add_qml_module(qmltextballoon
VERSION 1.0
URI "TextBalloon"
PLUGIN_TARGET qmltextballoon
AUTO_RESOURCE_PREFIX

View File

@ -29,7 +29,6 @@ add_dependencies(delegatechooserexample delegatechooser_shared)
qt_add_qml_module(delegatechooserexample
URI delegatechooser
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"delegatechooser.qml"

View File

@ -24,7 +24,6 @@ qt_add_executable(draganddropexample
qt_add_qml_module(draganddropexample
URI draganddrop
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"draganddrop.qml"

View File

@ -28,7 +28,6 @@ target_link_libraries(embeddedinwidgetsexample PRIVATE
# Resources:
qt_add_qml_module(embeddedinwidgetsexample
URI embeddedinwidgets
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"main.qml"

View File

@ -22,7 +22,6 @@ qt_add_executable(externaldraganddropexample
qt_add_qml_module(externaldraganddropexample
URI externaldraganddrop
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"DragAndDropTextItem.qml"

View File

@ -31,7 +31,6 @@ target_link_libraries(imageelementsexample PRIVATE
qt_add_qml_module(imageelementsexample
URI imageelements
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"animatedimage.qml"

View File

@ -16,7 +16,6 @@ set(QT_QML_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/examples/quick/imageprovider)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick)
qt6_add_qml_module(qmlimageproviderplugin
VERSION 1.0
URI "ImageProviderCore"
AUTO_RESOURCE_PREFIX
PLUGIN_TARGET qmlimageproviderplugin

View File

@ -16,7 +16,6 @@ set(QT_QML_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/examples/quick/imageresponseprov
find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick)
qt6_add_qml_module(qmlimageresponseproviderplugin
VERSION 1.0
URI "ImageResponseProviderCore"
AUTO_RESOURCE_PREFIX
PLUGIN_TARGET qmlimageresponseproviderplugin

View File

@ -29,7 +29,6 @@ target_link_libraries(itemvariablerefreshrateexample PRIVATE
qt_add_qml_module(itemvariablerefreshrateexample
URI itemvariablerefreshrate
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"itemvariablerefreshrate.qml"

View File

@ -28,7 +28,6 @@ target_link_libraries(keyinteractionexample PRIVATE
# Resources:
qt_add_qml_module(keyinteractionexample
URI keyinteraction
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"ContextMenu.qml"

View File

@ -22,7 +22,6 @@ qt_add_executable(layoutsexample
qt_add_qml_module(layoutsexample
URI layouts
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"layouts.qml"

View File

@ -22,7 +22,6 @@ qt_add_executable(localstorageexample
qt_add_qml_module(localstorageexample
URI localstorage
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"Database.js"

View File

@ -29,7 +29,6 @@ target_link_libraries(abstractitemmodelexample PRIVATE
# Resources:
qt_add_qml_module(abstractitemmodelexample
URI abstractitemmodel
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"view.qml"

View File

@ -29,7 +29,6 @@ target_link_libraries(objectlistmodelexample PRIVATE
# Resources:
qt_add_qml_module(objectlistmodelexample
URI objectlistmodel
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"view.qml"

View File

@ -28,7 +28,6 @@ target_link_libraries(stringlistmodelexample PRIVATE
# Resources:
qt_add_qml_module(stringlistmodelexample
URI stringlistmodel
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"view.qml"

View File

@ -28,7 +28,6 @@ target_link_libraries(mouseareaexample PRIVATE
# Resources:
qt_add_qml_module(mouseareaexample
URI mousearea
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"mousearea-wheel-example.qml"

View File

@ -33,7 +33,6 @@ add_dependencies(itemswitcherexample itemswitcher_shared)
# Resources:
qt_add_qml_module(itemswitcherexample
URI itemswitcher
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"qml/main.qml"

View File

@ -33,7 +33,6 @@ add_dependencies(testbedexample testbed_shared)
# Resources:
qt_add_qml_module(testbedexample
URI testbed
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"qml/FpsItem.qml"

View File

@ -32,7 +32,6 @@ add_dependencies(affectorsexample affectors_shared)
# Resources:
qt_add_qml_module(affectorsexample
URI affectors
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"affectors.qml"

View File

@ -32,7 +32,6 @@ add_dependencies(emittersexample emitters_shared)
# Resources:
qt_add_qml_module(emittersexample
URI emitters
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"burstandpulse.qml"

View File

@ -32,7 +32,6 @@ add_dependencies(imageparticleexample imageparticle_shared)
# Resources:
qt_add_qml_module(imageparticleexample
URI imageparticle
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"allatonce.qml"

View File

@ -32,7 +32,6 @@ add_dependencies(itemparticleexample itemparticle_shared)
# Resources:
qt_add_qml_module(itemparticleexample
URI itemparticle
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"itemparticle.qml"

View File

@ -32,7 +32,6 @@ add_dependencies(systemexample system_shared)
# Resources:
qt_add_qml_module(systemexample
URI system
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"dynamiccomparison.qml"

View File

@ -30,7 +30,6 @@ add_dependencies(pointerhandlersexample pointerhandlers_shared)
qt_add_qml_module(pointerhandlersexample
URI pointerhandlers
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"components/Button.qml"

View File

@ -24,7 +24,6 @@ qt_add_executable(positionersexample
qt_add_qml_module(positionersexample
URI positioners
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"positioners-attachedproperties.qml"

View File

@ -31,7 +31,6 @@ target_link_libraries(quick-accessibility PRIVATE
qt_add_qml_module(quick-accessibility
URI accessibility
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"accessibility.qml"

View File

@ -33,7 +33,6 @@ target_link_libraries(qquickwidgetversuswindow_opengl PRIVATE
qt_add_qml_module(qquickwidgetversuswindow_opengl
URI fbitem
VERSION 1.0
QML_FILES test.qml
RESOURCE_PREFIX /qquickwidgetversuswindow_opengl
NO_RESOURCE_TARGET_PATH

View File

@ -30,7 +30,6 @@ target_link_libraries(quickwidget PRIVATE
qt_add_qml_module(quickwidget
URI QuickWidgetExample
VERSION 1.0
QML_FILES
rotatingsquare.qml
RESOURCE_PREFIX /quickwidget

View File

@ -35,7 +35,6 @@ target_link_libraries(rendercontrol_d3d11example PUBLIC
qt_add_qml_module(rendercontrol_d3d11example
URI rendercontrol
AUTO_RESOURCE_PREFIX
VERSION 1.0
QML_FILES
"demo.qml"
)

View File

@ -31,7 +31,6 @@ target_link_libraries(rendercontrol_openglexample PRIVATE
# Resources:
qt_add_qml_module(rendercontrol_openglexample
URI rendercontrol
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"demo.qml"

View File

@ -24,7 +24,6 @@ qt_add_executable(righttoleftexample
qt_add_qml_module(righttoleftexample
URI righttoleft
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"layoutdirection/layoutdirection.qml"

View File

@ -27,7 +27,6 @@ target_link_libraries(customgeometry_declarative PRIVATE
qt_add_qml_module(customgeometry_declarative
URI CustomGeometry
VERSION 1.0
QML_FILES main.qml
RESOURCE_PREFIX /scenegraph/customgeometry
NO_RESOURCE_TARGET_PATH

View File

@ -28,7 +28,6 @@ target_link_libraries(custommaterial_declarative PRIVATE
qt_add_qml_module(custommaterial_declarative
URI ExampleCustomMaterial
VERSION 1.0
QML_FILES
main.qml
RESOURCE_PREFIX /scenegraph/custommaterial

View File

@ -28,7 +28,6 @@ target_link_libraries(customrendernode PRIVATE
qt_add_qml_module(customrendernode
URI SceneGraphRendering
VERSION 1.0
QML_FILES
main.qml
RESOURCE_PREFIX /scenegraph/customrendernode

View File

@ -35,7 +35,6 @@ target_link_libraries(d3d11underqml PUBLIC
qt_add_qml_module(d3d11underqml
URI D3D11UnderQML
VERSION 1.0
QML_FILES
main.qml
RESOURCES

View File

@ -33,7 +33,6 @@ target_link_libraries(fboitem PRIVATE
qt_add_qml_module(fboitem
URI SceneGraphRendering
VERSION 1.0
QML_FILES main.qml
RESOURCES shaders/checker.frag.qsb
RESOURCE_PREFIX /scenegraph/fboitem

View File

@ -35,7 +35,6 @@ target_link_libraries(graph PRIVATE
qt_add_qml_module(graph
URI Graph
VERSION 1.0
QML_FILES
main.qml
RESOURCES

View File

@ -43,7 +43,6 @@ endif()
qt_add_qml_module(metaltextureimport
URI MetalTextureImport
VERSION 1.0
QML_FILES
main.qml
RESOURCES

View File

@ -40,7 +40,6 @@ endif()
qt_add_qml_module(metalunderqml
URI MetalUnderQML
VERSION 1.0
QML_FILES
main.qml
RESOURCES

View File

@ -34,7 +34,6 @@ target_link_libraries(openglunderqml PRIVATE
qt_add_qml_module(openglunderqml
URI OpenGLUnderQML
VERSION 1.0
QML_FILES main.qml
RESOURCE_PREFIX /scenegraph/openglunderqml
NO_RESOURCE_TARGET_PATH

View File

@ -28,7 +28,6 @@ target_link_libraries(threadedanimation PRIVATE
qt_add_qml_module(threadedanimation
URI Spinner
VERSION 1.0
QML_FILES main.qml
RESOURCES spinner.png
RESOURCE_PREFIX /scenegraph/threadedanimation

View File

@ -28,7 +28,6 @@ target_link_libraries(twotextureproviders PRIVATE
qt_add_qml_module(twotextureproviders
URI SceneGraphRendering
VERSION 1.0
QML_FILES
main.qml
RESOURCE_PREFIX /scenegraph/twotextureproviders

View File

@ -33,7 +33,6 @@ target_link_libraries(vulkantextureimport PRIVATE
qt_add_qml_module(vulkantextureimport
URI VulkanTextureImport
VERSION 1.0
QML_FILES
main.qml
RESOURCES

View File

@ -33,7 +33,6 @@ target_link_libraries(vulkanunderqml PRIVATE
qt_add_qml_module(vulkanunderqml
URI VulkanUnderQML
VERSION 1.0
QML_FILES
main.qml
RESOURCES

View File

@ -29,7 +29,6 @@ target_link_libraries(shadereffectsexample PRIVATE
qt_add_qml_module(shadereffectsexample
URI shadereffects
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"shadereffects.qml"

View File

@ -33,7 +33,6 @@ add_dependencies(shapesexample shapes_shared)
qt_add_qml_module(shapesexample
URI shapes
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"clippedtigers.qml"

View File

@ -33,7 +33,6 @@ target_link_libraries(gameoflife PUBLIC
qt_add_qml_module(gameoflife
URI GameOfLifeModel
VERSION 1.0
QML_FILES main.qml
RESOURCES gosperglidergun.cells
NO_RESOURCE_TARGET_PATH

View File

@ -33,7 +33,6 @@ target_link_libraries(qml_pixelator PUBLIC
qt_add_qml_module(qml_pixelator
URI ImageModel
VERSION 1.0
QML_FILES main.qml
RESOURCES qt.png
NO_RESOURCE_TARGET_PATH

View File

@ -33,7 +33,6 @@ add_dependencies(textexample text_shared)
qt_add_qml_module(textexample
URI text
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"fonts/availableFonts.qml"

View File

@ -33,7 +33,6 @@ add_dependencies(threadingexample threading_shared)
qt_add_qml_module(threadingexample
URI threading
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"threadedlistmodel/dataloader.mjs"

View File

@ -33,7 +33,6 @@ add_dependencies(touchinteractionexample touchinteraction_shared)
qt_add_qml_module(touchinteractionexample
URI touchinteraction
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"flickable/Panel.qml"

View File

@ -25,7 +25,6 @@ set_target_properties(dynamicview1 PROPERTIES
qt_add_qml_module(dynamicview1
URI dynamicview
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
dynamicview.qml

View File

@ -25,7 +25,6 @@ set_target_properties(dynamicview2 PROPERTIES
qt_add_qml_module(dynamicview2
URI dynamicview
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
dynamicview.qml

View File

@ -25,7 +25,6 @@ set_target_properties(dynamicview3 PROPERTIES
qt_add_qml_module(dynamicview3
URI dynamicview
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
dynamicview.qml

View File

@ -25,7 +25,6 @@ set_target_properties(dynamicview4 PROPERTIES
qt_add_qml_module(dynamicview4
URI dynamicview
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
dynamicview.qml

View File

@ -25,7 +25,6 @@ set_target_properties(samegame1 PROPERTIES
qt_add_qml_module(samegame1
URI samegame
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"Block.qml"

View File

@ -25,7 +25,6 @@ set_target_properties(samegame2 PROPERTIES
qt_add_qml_module(samegame2
URI samegame
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"Block.qml"

View File

@ -25,7 +25,6 @@ set_target_properties(samegame3 PROPERTIES
qt_add_qml_module(samegame3
URI samegame
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"Block.qml"

View File

@ -25,7 +25,6 @@ set_target_properties(samegame4 PROPERTIES
qt_add_qml_module(samegame4
URI samegame
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"BoomBlock.qml"

View File

@ -36,7 +36,6 @@ add_dependencies(viewsexample views_shared)
qt_add_qml_module(viewsexample
URI views
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"delegatemodel/dragselection.qml"

View File

@ -31,7 +31,6 @@ target_link_libraries(windowexample PRIVATE
qt_add_qml_module(windowexample
URI window
VERSION 1.0
AUTO_RESOURCE_PREFIX
QML_FILES
"AllScreens.qml"

View File

@ -22,7 +22,6 @@ qt_add_executable(attachedstylepropertiesexample
qt_add_qml_module(attachedstylepropertiesexample
URI App
VERSION 1.0
QML_FILES
attachedstyleproperties.qml
NO_RESOURCE_TARGET_PATH

View File

@ -6,7 +6,6 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quickcontrols/attachedstyleproper
qt_add_qml_module(MyStyle
URI MyStyle
VERSION 1.0
IMPORTS
QtQuick.Controls.Material
QML_FILES

View File

@ -27,7 +27,6 @@ target_link_libraries(chattutorial-chapter1 PRIVATE
qt_add_qml_module(chattutorial-chapter1
URI chapter1
VERSION 1.0
QML_FILES
"main.qml"
)

View File

@ -27,7 +27,6 @@ target_link_libraries(chattutorial-chapter2 PRIVATE
qt_add_qml_module(chattutorial-chapter2
URI chapter2
VERSION 1.0
QML_FILES
"main.qml"
RESOURCES

View File

@ -28,7 +28,6 @@ target_link_libraries(chattutorial-chapter3 PRIVATE
# Resources:
qt_add_qml_module(chattutorial-chapter3
URI chapter3
VERSION 1.0
QML_FILES
"ContactPage.qml"
"ConversationPage.qml"

View File

@ -31,7 +31,6 @@ target_link_libraries(chattutorial-chapter4 PRIVATE
# Resources:
qt_add_qml_module(chattutorial-chapter4
URI chapter4
VERSION 1.0
QML_FILES
"ContactPage.qml"
"ConversationPage.qml"

View File

@ -31,7 +31,6 @@ target_link_libraries(chattutorial-chapter5 PRIVATE
# Resources:
qt_add_qml_module(chattutorial-chapter5
URI chapter5
VERSION 1.0
QML_FILES
"+Material/ChatToolBar.qml"
"ChatToolBar.qml"

View File

@ -21,7 +21,6 @@ qt_add_executable(contactlistexample WIN32 MACOSX_BUNDLE
qt_add_qml_module(contactlistexample
URI contactlist
VERSION 1.0
NO_RESOURCE_TARGET_PATH
QML_FILES
"ContactDelegate.ui.qml"

View File

@ -35,7 +35,6 @@ target_link_libraries(eventcalendar PUBLIC
qt_add_qml_module(eventcalendar
URI App
VERSION 1.0
QML_FILES
MonthGridDelegate.qml
eventcalendar.qml

View File

@ -20,7 +20,6 @@ qt_add_executable(flatstyleexample WIN32 MACOSX_BUNDLE
qt_add_qml_module(flatstyleexample
URI flatstyle
VERSION 1.0
NO_RESOURCE_TARGET_PATH
QML_FILES
"MainForm.ui.qml"

Some files were not shown because too many files have changed in this diff Show More