Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30174

CMake projects: When renaming files, entries in set_source_files_properties() are not processed

    XMLWordPrintable

Details

    • fa2965788 (13.0)

    Description

      Code
      CMakeLists.txt:

      set_source_files_properties(MySingleton.qml PROPERTIES
          QT_QML_SINGLETON_TYPE TRUE
      )
      
      qt_add_qml_module(appProjectWithQmlSingleton
          URI ProjectWithQmlSingleton
          VERSION 1.0
          QML_FILES Main.qml MySingleton.qml
      )
      

       

      Steps to reproduce
      In Qt Creator's Projects view, right-click "MySingleton.qml" and rename it to "ASingleton.qml"

       

      Outcomes

      • The entry in qt_add_qml_module() is renamed to "ASingleton.qml"(expected)
      • The entry in set_source_files_properties() remains as "MySingleton.qml" (not expected). This leads to build errors.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cadam Cristian Adam
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes