rename qml2puppet to qmlpuppet

Reduce confusion that the 2 does not mean qml is transported.

It was the version when we had 1 and 2, but one is gone long ago.

Task-number: QDS-13345
Change-Id: Ie1664f4fd489182e5e234e31b4bf92a5f547323e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenßen
2024-12-12 10:27:26 +01:00
committed by Tim Jenssen
parent 6751080884
commit e35b6faf9c
204 changed files with 69 additions and 70 deletions

1
.gitignore vendored
View File

@@ -157,7 +157,6 @@ tmp/
/bin/cplusplus-mkvisitor /bin/cplusplus-mkvisitor
/bin/cplusplus-update-frontend /bin/cplusplus-update-frontend
/bin/qbs* /bin/qbs*
/bin/qml2puppet
/bin/qmlpuppet /bin/qmlpuppet
/bin/qtcreator /bin/qtcreator
/bin/qtcreator_crash_handler /bin/qtcreator_crash_handler

View File

@@ -406,7 +406,7 @@ def deploy_qt_mac(qtc_binary_path, qt_install):
additional_paths.append(os.path.join(bin_path, app)) additional_paths.append(os.path.join(bin_path, app))
additional_paths.append(os.path.join(libexec_path, 'qbs_processlauncher')) additional_paths.append(os.path.join(libexec_path, 'qbs_processlauncher'))
# qml2puppet # qml2puppet
puppets = glob(os.path.join(libexec_path, 'qml2puppet*')) puppets = glob(os.path.join(libexec_path, 'qmlpuppet*'))
for puppet in puppets: for puppet in puppets:
additional_paths.append(puppet) additional_paths.append(puppet)
# qtdiag, qtplugininfo # qtdiag, qtplugininfo

View File

@@ -766,7 +766,7 @@ int main(int argc, char **argv)
info.resources = (appDirPath / RELATIVE_DATA_PATH).cleanPath(); info.resources = (appDirPath / RELATIVE_DATA_PATH).cleanPath();
info.userResources = userResourcePath(settings->fileName(), Constants::IDE_ID); info.userResources = userResourcePath(settings->fileName(), Constants::IDE_ID);
info.libexec = (appDirPath / RELATIVE_LIBEXEC_PATH).cleanPath(); info.libexec = (appDirPath / RELATIVE_LIBEXEC_PATH).cleanPath();
// sync with src\tools\qml2puppet\qml2puppet\qmlpuppet.cpp -> QString crashReportsPath() // sync with src\tools\qmlpuppet\qmlpuppet\qmlpuppet.cpp -> QString crashReportsPath()
info.crashReports = info.userResources / "crashpad_reports"; info.crashReports = info.userResources / "crashpad_reports";
info.luaPlugins = info.resources / "lua-plugins"; info.luaPlugins = info.resources / "lua-plugins";
info.userLuaPlugins = info.userResources / "lua-plugins"; info.userLuaPlugins = info.userResources / "lua-plugins";

View File

@@ -39,7 +39,7 @@ inline constexpr char EDIT3DVIEW_SNAP_ROTATION_INTERVAL[] = "Edit3DViewSnapRotat
inline constexpr char EDIT3DVIEW_SNAP_SCALE[] = "Edit3DViewSnapScale"; inline constexpr char EDIT3DVIEW_SNAP_SCALE[] = "Edit3DViewSnapScale";
inline constexpr char EDIT3DVIEW_SNAP_SCALE_INTERVAL[] = "Edit3DViewSnapScaleInterval"; inline constexpr char EDIT3DVIEW_SNAP_SCALE_INTERVAL[] = "Edit3DViewSnapScaleInterval";
inline constexpr char ALWAYS_SAVE_IN_CRUMBLEBAR[] = "AlwaysSaveInCrumbleBar"; inline constexpr char ALWAYS_SAVE_IN_CRUMBLEBAR[] = "AlwaysSaveInCrumbleBar";
inline constexpr char USE_DEFAULT_PUPPET[] = "UseDefaultQml2Puppet"; inline constexpr char USE_DEFAULT_PUPPET[] = "UseDefaultQmlPuppet";
inline constexpr char PUPPET_TOPLEVEL_BUILD_DIRECTORY[] = "PuppetToplevelBuildDirectory"; inline constexpr char PUPPET_TOPLEVEL_BUILD_DIRECTORY[] = "PuppetToplevelBuildDirectory";
inline constexpr char PUPPET_DEFAULT_DIRECTORY[] = "PuppetDefaultDirectory"; inline constexpr char PUPPET_DEFAULT_DIRECTORY[] = "PuppetDefaultDirectory";
inline constexpr char CONTROLS_STYLE[] = "ControlsStyle"; inline constexpr char CONTROLS_STYLE[] = "ControlsStyle";

View File

@@ -21,7 +21,7 @@ namespace {
Utils::FilePath qmlPuppetExecutablePath(const Utils::FilePath &workingDirectory) Utils::FilePath qmlPuppetExecutablePath(const Utils::FilePath &workingDirectory)
{ {
return workingDirectory return workingDirectory
.pathAppended(QString{"qml2puppet-"} + QCoreApplication::applicationVersion()) .pathAppended(QString{"qmlpuppet-"} + QCoreApplication::applicationVersion())
.withExecutableSuffix(); .withExecutableSuffix();
} }

View File

@@ -28,7 +28,7 @@ endif()
add_subdirectory(processlauncher) add_subdirectory(processlauncher)
if (WITH_QMLDESIGNER) if (WITH_QMLDESIGNER)
add_subdirectory(qml2puppet) add_subdirectory(qmlpuppet)
add_subdirectory(sqlitetester) add_subdirectory(sqlitetester)
endif() endif()
add_subdirectory(qtcdebugger) ## windows only add_subdirectory(qtcdebugger) ## windows only

View File

@@ -8,7 +8,7 @@ if (NOT QT_CREATOR_API_DEFINED)
endif() endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../cmake")
project(qml2puppet) project(qmlpuppet)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON) set(CMAKE_AUTORCC ON)
@@ -29,7 +29,7 @@ if (NOT QT_CREATOR_API_DEFINED)
set(IS_STAND_ALONE_PUPPET_BUILD ON) set(IS_STAND_ALONE_PUPPET_BUILD ON)
endif() endif()
add_qtc_executable(qml2puppet add_qtc_executable(qmlpuppet
${DESTINATION} ${DESTINATION}
CONDITION TARGET Qt::Quick CONDITION TARGET Qt::Quick
DEPENDS DEPENDS
@@ -39,49 +39,49 @@ add_qtc_executable(qml2puppet
INCLUDES INCLUDES
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
SOURCES SOURCES
qml2puppet/qml2puppetmain.cpp qmlpuppet/qmlpuppetmain.cpp
qml2puppet/qmlbase.h qmlpuppet/qmlbase.h
qml2puppet/qmlpuppet.h qml2puppet/qmlpuppet.cpp qmlpuppet/qmlpuppet.h qmlpuppet/qmlpuppet.cpp
qml2puppet/configcrashpad.h qmlpuppet/configcrashpad.h
qmlpuppet.qrc qmlpuppet.qrc
PROPERTIES PROPERTIES
OUTPUT_NAME qml2puppet-${IDE_VERSION} OUTPUT_NAME qmlpuppet-${IDE_VERSION}
) )
if (IS_STAND_ALONE_PUPPET_BUILD) if (IS_STAND_ALONE_PUPPET_BUILD)
include(../../libs/qmlpuppetcommunication/QmlPuppetCommunication.cmake) include(../../libs/qmlpuppetcommunication/QmlPuppetCommunication.cmake)
configure_file(../../app/app_version.h.cmakein app/app_version.h ESCAPE_QUOTES) configure_file(../../app/app_version.h.cmakein app/app_version.h ESCAPE_QUOTES)
else() else()
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
DEPENDS app_version DEPENDS app_version
) )
endif() endif()
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
CONDITION Qt6_VERSION CONDITION Qt6_VERSION
SOURCES SOURCES
editor3d_qt6.qrc editor3d_qt6.qrc
) )
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
CONDITION UNIX AND (NOT APPLE) CONDITION UNIX AND (NOT APPLE)
DEPENDS rt DEPENDS rt
) )
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
SOURCES_PREFIX instances SOURCES_PREFIX instances
SOURCES SOURCES
nodeinstanceclientproxy.cpp nodeinstanceclientproxy.h nodeinstanceclientproxy.cpp nodeinstanceclientproxy.h
) )
find_package(Qt6 COMPONENTS Quick3D QUIET) find_package(Qt6 COMPONENTS Quick3D QUIET)
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
CONDITION TARGET Qt::Quick3D CONDITION TARGET Qt::Quick3D
FEATURE_INFO "Qt Quick 3D support" FEATURE_INFO "Qt Quick 3D support"
DEPENDS Qt::Quick3D Qt::Quick3DPrivate DEPENDS Qt::Quick3D Qt::Quick3DPrivate
DEFINES QUICK3D_MODULE DEFINES QUICK3D_MODULE
SOURCES_PREFIX qml2puppet/editor3d SOURCES_PREFIX qmlpuppet/editor3d
SOURCES SOURCES
generalhelper.cpp generalhelper.h generalhelper.cpp generalhelper.h
mousearea3d.cpp mousearea3d.h mousearea3d.cpp mousearea3d.h
@@ -97,7 +97,7 @@ extend_qtc_executable(qml2puppet
) )
find_package(Qt6 COMPONENTS Quick3DAssetImport QUIET) find_package(Qt6 COMPONENTS Quick3DAssetImport QUIET)
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
CONDITION TARGET Qt::Quick3DAssetImport CONDITION TARGET Qt::Quick3DAssetImport
FEATURE_INFO "Qt Quick 3D asset import" FEATURE_INFO "Qt Quick 3D asset import"
DEPENDS Qt::Quick3DAssetImportPrivate DEPENDS Qt::Quick3DAssetImportPrivate
@@ -105,7 +105,7 @@ extend_qtc_executable(qml2puppet
) )
find_package(Qt6 COMPONENTS Quick3DParticles QUIET) find_package(Qt6 COMPONENTS Quick3DParticles QUIET)
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
CONDITION TARGET Qt::Quick3DParticles CONDITION TARGET Qt::Quick3DParticles
FEATURE_INFO "Qt Quick 3D particles" FEATURE_INFO "Qt Quick 3D particles"
DEPENDS Qt::Quick3DParticles Qt::Quick3DParticlesPrivate DEPENDS Qt::Quick3DParticles Qt::Quick3DParticlesPrivate
@@ -114,21 +114,21 @@ extend_qtc_executable(qml2puppet
# Quick3DAssetUtils optionally depends on QuickTimeline, so find also it to make the CI build work # Quick3DAssetUtils optionally depends on QuickTimeline, so find also it to make the CI build work
find_package(Qt6 COMPONENTS Quick3DAssetUtils QuickTimeline QUIET) find_package(Qt6 COMPONENTS Quick3DAssetUtils QuickTimeline QUIET)
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
CONDITION TARGET Qt::Quick3DAssetUtils CONDITION TARGET Qt::Quick3DAssetUtils
FEATURE_INFO "Qt Quick 3D asset utils" FEATURE_INFO "Qt Quick 3D asset utils"
DEPENDS Qt::Quick3DAssetUtilsPrivate DEPENDS Qt::Quick3DAssetUtilsPrivate
DEFINES QUICK3D_ASSET_UTILS_MODULE DEFINES QUICK3D_ASSET_UTILS_MODULE
) )
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
SOURCES_PREFIX qml2puppet/import3d SOURCES_PREFIX qmlpuppet/import3d
SOURCES SOURCES
import3d.cpp import3d.h import3d.cpp import3d.h
) )
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
SOURCES_PREFIX qml2puppet/instances SOURCES_PREFIX qmlpuppet/instances
SOURCES SOURCES
anchorchangesnodeinstance.cpp anchorchangesnodeinstance.h anchorchangesnodeinstance.cpp anchorchangesnodeinstance.h
behaviornodeinstance.cpp behaviornodeinstance.h behaviornodeinstance.cpp behaviornodeinstance.h
@@ -167,7 +167,7 @@ extend_qtc_executable(qml2puppet
animationdriver.cpp animationdriver.h animationdriver.cpp animationdriver.h
) )
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
SOURCES_PREFIX qmlprivategate SOURCES_PREFIX qmlprivategate
SOURCES SOURCES
qmlprivategate.cpp qmlprivategate.h qmlprivategate.cpp qmlprivategate.h
@@ -177,40 +177,40 @@ if (DEFINED MULTILANGUAGE_SUPPORT_SUBDIRECTORY AND Qt6_VERSION VERSION_GREATER_E
add_subdirectory(${MULTILANGUAGE_SUPPORT_SUBDIRECTORY} multilanguagesupport_static_build) add_subdirectory(${MULTILANGUAGE_SUPPORT_SUBDIRECTORY} multilanguagesupport_static_build)
endif() endif()
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
CONDITION TARGET QtCreator::multilanguage-support CONDITION TARGET QtCreator::multilanguage-support
DEPENDS QtCreator::multilanguage-support DEPENDS QtCreator::multilanguage-support
FEATURE_INFO "multilanguage-support in qml2puppet" FEATURE_INFO "multilanguage-support in qmlpuppet"
) )
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
PUBLIC_INCLUDES src/libs PUBLIC_INCLUDES src/libs
) )
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
CONDITION TARGET Nanotrace CONDITION TARGET Nanotrace
DEPENDS Nanotrace DEPENDS Nanotrace
) )
if (Qt6_VERSION VERSION_GREATER_EQUAL 6.4.0) if (Qt6_VERSION VERSION_GREATER_EQUAL 6.4.0)
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
# QT_QML_DEBUG is disabled in release builds, but is necessary to have the preview debug channel # QT_QML_DEBUG is disabled in release builds, but is necessary to have the preview debug channel
DEFINES ENABLE_INTERNAL_QML_RUNTIME QT_QML_DEBUG DEFINES ENABLE_INTERNAL_QML_RUNTIME QT_QML_DEBUG
PUBLIC_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/qml2puppet/runner PUBLIC_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/qmlpuppet/runner
SOURCES_PREFIX qml2puppet/runner SOURCES_PREFIX qmlpuppet/runner
SOURCES SOURCES
qmlruntime.h qmlruntime.cpp qmlruntime.h qmlruntime.cpp
qmlconfiguration.h loadwatcher.h qmlconfiguration.h loadwatcher.h
) )
# Turn the tool into its own self-contained qml module # Turn the tool into its own self-contained qml module
qt_add_qml_module(qml2puppet qt_add_qml_module(qmlpuppet
URI QmlRuntime.QmlConfiguration URI QmlRuntime.QmlConfiguration
VERSION 1.0 VERSION 1.0
RESOURCE_PREFIX "/qt-project.org/imports" RESOURCE_PREFIX "/qt-project.org/imports"
) )
if (QTC_STATIC_BUILD) if (QTC_STATIC_BUILD)
qt_import_qml_plugins(qml2puppet PATH_TO_SCAN ${SRCDIR}) qt_import_qml_plugins(qmlpuppet PATH_TO_SCAN ${SRCDIR})
endif() endif()
endif() endif()
@@ -218,7 +218,7 @@ endif()
# Crashpad # Crashpad
# only windows requires separate crashpad client per process until client->SetHandlerIPCPipe() # only windows requires separate crashpad client per process until client->SetHandlerIPCPipe()
# is implemented (check the TODO inside startCrashpad()) # is implemented (check the TODO inside startCrashpad())
extend_qtc_executable(qml2puppet extend_qtc_executable(qmlpuppet
CONDITION BUILD_WITH_CRASHPAD AND WIN32 CONDITION BUILD_WITH_CRASHPAD AND WIN32
DEFINES DEFINES
CRASHPAD_BACKEND_URL="${CRASHPAD_BACKEND_URL}" CRASHPAD_BACKEND_URL="${CRASHPAD_BACKEND_URL}"
@@ -229,7 +229,7 @@ extend_qtc_executable(qml2puppet
# add application icon # add application icon
# IDE_LOGO_PATH in a default QtCreator build is empty, all icons are found by relative paths # IDE_LOGO_PATH in a default QtCreator build is empty, all icons are found by relative paths
# So we can not use the icon then. # So we can not use the icon then.
if (TARGET qml2puppet AND NOT "${IDE_LOGO_PATH}" STREQUAL "") if (TARGET qmlpuppet AND NOT "${IDE_LOGO_PATH}" STREQUAL "")
if (WIN32) if (WIN32)
set(RC_APPLICATION_NAME "${IDE_DISPLAY_NAME}") set(RC_APPLICATION_NAME "${IDE_DISPLAY_NAME}")
set(RC_VERSION "${IDE_VERSION}.0") set(RC_VERSION "${IDE_VERSION}.0")
@@ -240,7 +240,7 @@ if (TARGET qml2puppet AND NOT "${IDE_LOGO_PATH}" STREQUAL "")
string(REPLACE " " "\\x20" RC_COPYRIGHT "${RC_COPYRIGHT}") string(REPLACE " " "\\x20" RC_COPYRIGHT "${RC_COPYRIGHT}")
string(REPLACE "." "," RC_VERSION "${RC_VERSION}") string(REPLACE "." "," RC_VERSION "${RC_VERSION}")
target_compile_definitions(qml2puppet PRIVATE target_compile_definitions(qmlpuppet PRIVATE
RC_APPLICATION_NAME=${RC_APPLICATION_NAME} RC_APPLICATION_NAME=${RC_APPLICATION_NAME}
RC_VERSION=${RC_VERSION} RC_VERSION=${RC_VERSION}
RC_VERSION_STRING=${RC_VERSION_STRING} RC_VERSION_STRING=${RC_VERSION_STRING}
@@ -248,6 +248,6 @@ if (TARGET qml2puppet AND NOT "${IDE_LOGO_PATH}" STREQUAL "")
RC_ICON_PATH=${IDE_ICON_PATH} RC_ICON_PATH=${IDE_ICON_PATH}
) )
target_sources(qml2puppet PRIVATE windows_application_icon/qml2puppet.rc) target_sources(qmlpuppet PRIVATE windows_application_icon/qmlpuppet.rc)
endif() endif()
endif() endif()

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

Before

Width:  |  Height:  |  Size: 172 B

After

Width:  |  Height:  |  Size: 172 B

View File

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 202 B

View File

Before

Width:  |  Height:  |  Size: 990 B

After

Width:  |  Height:  |  Size: 990 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 981 B

After

Width:  |  Height:  |  Size: 981 B

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 463 B

View File

Before

Width:  |  Height:  |  Size: 887 B

After

Width:  |  Height:  |  Size: 887 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -558,7 +558,7 @@ static bool isConnections(QObject *object)
return false; return false;
} }
// This is used in share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp // This is used in share/qtcreator/qml/qmlpuppet/qmlpuppet/instances/objectnodeinstance.cpp
QObject *createPrimitive(const QString &typeName, int majorNumber, int minorNumber, QQmlContext *context) QObject *createPrimitive(const QString &typeName, int majorNumber, int minorNumber, QQmlContext *context)
{ {
QTypeRevision revision = QTypeRevision::zero(); QTypeRevision revision = QTypeRevision::zero();

View File

@@ -1,4 +1,4 @@
Product { Product {
name: "qml2puppet" name: "qmlpuppet"
files: ["*", "**/*"] files: ["*", "**/*"]
} }

View File

@@ -25,9 +25,9 @@ be met: https://www.gnu.org/licenses/gpl-3.0.html.</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>qml2puppet</string> <string>qmlpuppet</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>org.qt-project.qtcreator.qml2puppet</string> <string>org.qt-project.qtcreator.qmlpuppet</string>
<key>LSUIElement</key> <key>LSUIElement</key>
<string>1</string> <string>1</string>
</dict> </dict>

View File

@@ -52,7 +52,7 @@ namespace {
/* asynchronous_start */ true); /* asynchronous_start */ true);
// TODO: research using this method, should avoid creating a separate CrashpadClient for the // TODO: research using this method, should avoid creating a separate CrashpadClient for the
// puppet (needed only on windows according to docs). // puppet (needed only on windows according to docs).
// client->SetHandlerIPCPipe(L"\\\\.\\pipe\\qml2puppet"); // client->SetHandlerIPCPipe(L"\\\\.\\pipe\\qmlpuppet");
return success; return success;
} }

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