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

Some UI files in QtCreator do not trigger an ExtraCompiler

    XMLWordPrintable

Details

    • b1b52ac6746f5e7d935ecb106e48a87b656447c0 (qt-creator/qt-creator/4.9)

    Description

      It seems that for statisticsdialog.ui in the scxml editor in QtCreator no ExtraCompiler is created.

      It seems that QmakeProFile::updateGeneratedFiles is only using the files of the pro file and not the pri file.

      As a workaround the following sub optimal code seems to fix it.

      diff --git a/src/plugins/qmakeprojectmanager/qmakeparsernodes.cpp b/src/plugins/qmakeprojectmanager/qmakeparsernodes.cpp
      index 1e8ff76337..a021d0104d 100644
      --- a/src/plugins/qmakeprojectmanager/qmakeparsernodes.cpp
      +++ b/src/plugins/qmakeprojectmanager/qmakeparsernodes.cpp
      @@ -231,7 +231,12 @@ void QmakePriFile::makeEmpty()
       
       QSet<FileName> QmakePriFile::files(const FileType &type) const
       {
      -    return m_files.value(type);
      +    QSet<FileName> fileNames = m_files.value(type);
      +
      +    for (QmakePriFile *priFile : m_children)
      +        fileNames += priFile->files(type);
      +
      +    return fileNames;
       }
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            bubke Marco Bubke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes