All of the plugins have the same name by using the template

Bug #1350690 reported by XiaoGuo, Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

All of the plugins have the same name by using the template. Previously, it had a customized name using the project. I have found that all of the plugins from different project have the same name as "Myapp". The plugin project could be reused by some other projects. A customized name is useful to differentiate from others.

set(
    Myappbackend_SRCS
    modules/Myapp/backend.cpp
    modules/Myapp/mytype.cpp
    modules/Myapp/readenv.cpp
)

add_library(Myappbackend MODULE
    ${Myappbackend_SRCS}
)

set_target_properties(Myappbackend PROPERTIES
         LIBRARY_OUTPUT_DIRECTORY Myapp)

qt5_use_modules(Myappbackend Gui Qml Quick)

# Copy qmldir file to build dir for running in QtCreator
add_custom_target(Myappbackend-qmldir ALL
    COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/modules/Myapp/qmldir ${CMAKE_CURRENT_BINARY_DIR}/Myapp
    DEPENDS ${QMLFILES}
)

# Install plugin file
install(TARGETS Myappbackend DESTINATION ${QT_IMPORTS_DIR}/Myapp/)
install(FILES modules/Myapp/qmldir DESTINATION ${QT_IMPORTS_DIR}/Myapp/)

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

this is one of the screenshot

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

This is another screenshot.

Revision history for this message
Zoltan Balogh (bzoltan) wrote :

Please use the "hook" field in the project wizard to change the default myapp name for your project.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Invalid
Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

I think it is good to make the project name as the default value instead of the "myapp" in the hook. Normally a developer just accepts what is right from the wizard. Finally, when they realize that they need to customize it, it is too late and troublesome to do it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.