Public bug reported:

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 }
    }

Upstream Bug: https://bugreports.qt.io/browse/QTBUG-49284

** Affects: qtdeclarative-opensource-src (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  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: "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 }
+     }
+ 
+ Upstream Bug: https://bugreports.qt.io/browse/QTBUG-49284

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1541346

Title:
  qmlplugindump can not correctly handle singleton types

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtdeclarative-opensource-src/+bug/1541346/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to