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

Implement better handling of QML property groups

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: Documentation
    • Labels:
      None
    • Commits:
      5a93528d3396166395ebda66243e6735c6f537d2, 6e8bd8a46010349d57c3637c8e510e65f98d63bd

      Description

      Currently, qdoc does not support a \qmlpropertygroup command, so the handling of grouped QML properties (e.g. anchors in Item) is ad hoc.

      The \qmlpropertygroup command is added, and qdoc is taught to generate better output for it. The format is, e.g.:

      \qmlpropertygroup QtQuick2::Item::anchors
      \qmlproperty AnchorLine QtQuick2::Item::anchors.top
      \qmlproperty AnchorLine QtQuick2::Item::anchors.bottom
      \qmlproperty AnchorLine QtQuick2::Item::anchors.left
      \qmlproperty AnchorLine QtQuick2::Item::anchors.right
      \qmlproperty AnchorLine QtQuick2::Item::anchors.horizontalCenter
      \qmlproperty AnchorLine QtQuick2::Item::anchors.verticalCenter
      \qmlproperty AnchorLine QtQuick2::Item::anchors.baseline
      \qmlproperty Item QtQuick2::Item::anchors.fill
      \qmlproperty Item QtQuick2::Item::anchors.centerIn
      \qmlproperty real QtQuick2::Item::anchors.margins
      \qmlproperty real QtQuick2::Item::anchors.topMargin
      \qmlproperty real QtQuick2::Item::anchors.bottomMargin
      \qmlproperty real QtQuick2::Item::anchors.leftMargin
      \qmlproperty real QtQuick2::Item::anchors.rightMargin
      \qmlproperty real QtQuick2::Item::anchors.horizontalCenterOffset
      \qmlproperty real QtQuick2::Item::anchors.verticalCenterOffset
      \qmlproperty real QtQuick2::Item::anchors.baselineOffset
      \qmlproperty bool QtQuick2::Item::anchors.alignWhenCentered

        Attachments

        For Gerrit Dashboard: QTBUG-32341
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            gbk Martin Smith (Qt)
            Reporter:
            gbk Martin Smith (Qt)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes