aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickcontentitem_p.h
Commit message (Collapse)AuthorAgeFilesLines
* QQuickContentItem: make use of QQmlMetaType::prettyTypeName()J-P Nurmi2018-04-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a064824 added QQuickContentItem to provide more useful debug output. This improves the debug output further by providing the correct QML type name for types inherited from Pane and Popup, such as Frame and Dialog. With: ApplicationWindow { Pane { Component.onCompleted: console.log(contentItem) } Frame { Component.onCompleted: console.log(contentItem) } Popup { Component.onCompleted: console.log(contentItem) } Dialog { Component.onCompleted: console.log(contentItem) } Component.onCompleted: console.log(contentItem) } Before: qml: QQuickContentItem(0x7fa3397cfa70, "ApplicationWindow") qml: QQuickContentItem(0x7fa3397d6f10, "Popup") qml: QQuickContentItem(0x7fa3397d3f00, "Popup") qml: QQuickContentItem(0x7fa339534990, "Pane") qml: QQuickContentItem(0x7fa339534e40, "Pane") After: qml: QQuickContentItem(0x7fbebfce3210, "ApplicationWindow") qml: QQuickContentItem(0x7fbebfcea790, "Dialog") qml: QQuickContentItem(0x7fbebfce7730, "Popup") qml: QQuickContentItem(0x7fbebfcf61d0, "Frame") qml: QQuickContentItem(0x7fbebfcf4d20, "Pane") Change-Id: Ie8ab2b0c576f3bda7edf9840f7d030d3eef383f3 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add QQuickContentItem to produce more useful debug outputMitch Curtis2018-03-231-0/+69
With the following code: ApplicationWindow { Component.onCompleted: print(contentItem) } Before: QQuickItem(0x16043e52600) After: QQuickContentItem(0x28a89b96440, "ApplicationWindow") QQuickWindow has a similar concept (QQuickRootItem). Change-Id: I6504b62c69cfd7d9036d5c200a65542b953bc7bc Reviewed-by: J-P Nurmi <jpnurmi@qt.io>