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

#if QT_CONFIG breaks Find Usages and other features that depend on the code model

    XMLWordPrintable

Details

    Description

      Example: open the qtdeclarative project, load qquickdrag_p.h, go to the QQuickDragGrabber::setTarget() function (currently line 99), right-click and select Find Usages. It doesn't even try to find any usages, presumably because this entire class is inside #if QT_CONFIG(draganddrop). I'm not sure if there's supposed to be an attempt to detect which features are enabled in my build; but if so, that's not working. Maybe it would be better to assume that all features are enabled, if detecting which ones are actually enabled is hard or error-prone?

      This might be a dup of QTCREATORBUG-18500 but I'm not sure.

      I'm trying to figure out how DnD works in Qt Quick, and not having the code model working for these blocks is hindering me quite a bit. I guess I have to comment out all those #ifs first.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes