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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 4.6.1
    • C/C++/Obj-C++ Support
    • Linux, macOS

      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.

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

            Unassigned Unassigned
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes