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

qmlplugindump creates invalid output for singletons

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 RC
    • 5.4.1
    • Quick: Other
    • None
    • Ubuntu 15.04
      x86_64
    • 4b018848f7a7055976895de8a4b8208b58a36fac

    Description

      When exporting singleton types in qmldir files, qmplugindump creates invalid output and breaks autocompletion in QtCreator for those qml modules.

      The exports and exportMetaObjectRevisions have invalid values.

      For example:

          Component {
              prototype: "QObject"
              name: "Palette"
              exports: ["Palette -1.-1"]
              exportMetaObjectRevisions: [-1]
              isComposite: true
              Property { name: "normal"; type: "PaletteValues_QMLTYPE_2"; isPointer: true }
              Property { name: "selected"; type: "PaletteValues_QMLTYPE_2"; isPointer: true }
          }
          Component {
              prototype: "QObject"
              name: "PaletteValues"
              exports: ["PaletteValues -1.-1"]
              exportMetaObjectRevisions: [-1]
              isComposite: true
              Property { name: "background"; type: "QColor" }
              Property { name: "backgroundText"; type: "QColor" }
              Property { name: "base"; type: "QColor" }
              Property { name: "baseText"; type: "QColor" }
              Property { name: "foreground"; type: "QColor" }
              Property { name: "foregroundText"; type: "QColor" }
              Property { name: "overlay"; type: "QColor" }
              Property { name: "overlayText"; type: "QColor" }
              Property { name: "field"; type: "QColor" }
              Property { name: "fieldText"; type: "QColor" }
              Property { name: "selection"; type: "QColor" }
          }
          Component {
              prototype: "QObject"
              name: "UbuntuColors"
              exports: ["UbuntuColors -1.-1"]
              exportMetaObjectRevisions: [-1]
              isComposite: true
              isCreatable: false
              isSingleton: true
              Property { name: "orange"; type: "QColor"; isReadonly: true }
              Property { name: "lightAubergine"; type: "QColor"; isReadonly: true }
              Property { name: "midAubergine"; type: "QColor"; isReadonly: true }
              Property { name: "darkAubergine"; type: "QColor"; isReadonly: true }
              Property { name: "warmGrey"; type: "QColor"; isReadonly: true }
              Property { name: "coolGrey"; type: "QColor"; isReadonly: true }
              Property { name: "orangeGradient"; type: "QQuickGradient"; isPointer: true }
              Property { name: "greyGradient"; type: "QQuickGradient"; isPointer: true }
              Property { name: "lightGrey"; type: "QColor"; isReadonly: true }
              Property { name: "darkGrey"; type: "QColor"; isReadonly: true }
              Property { name: "red"; type: "QColor"; isReadonly: true }
              Property { name: "green"; type: "QColor"; isReadonly: true }
              Property { name: "blue"; type: "QColor"; isReadonly: true }
              Property { name: "purple"; type: "QColor"; isReadonly: true }
          }
      

      Attachments

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

        Activity

          People

            mabenell Marco Benelli
            zbenjamin Benjamin Zeller
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes