Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37291

qdoc: Auto-linking to functions are sometimes resolved incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.0 Alpha
    • 5.2.1
    • Build tools: qdoc
    • None

    Description

      Auto-linking to functions (strings that end with '()') sometimes can also be resolved to QML types. The correct action would be to not create a link at all if the autolinking doesn't resolve to a function.

      http://doc-snapshot.qt-project.org/qt5-stable/qtwidgets-widgets-mousebuttons-example.html

      • search for 'wheelEvent()' -> links to WheelEvent QML type

      http://doc-snapshot.qt-project.org/qt5-stable/qfilesystemmodel.html#details

      • search for 'path()' -> links to Path QML type

      Note: Both of these examples are errors in the documentation and will be fixed, but they demonstrate the invalid linking issue. These are hard to spot as they don't generate any warnings.

      Attachments

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

        Activity

          People

            gbk Martin Smith (Qt)
            treinio Topi Reiniƶ
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes