Skip to content

Commit

Permalink
add Loader.trace
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed Feb 5, 2021
1 parent f7836d0 commit b3197ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/Loader.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Item {
signal loaded; ///< when requested component it loaded event signal
property string source; ///< component's URL
property Object item; ///< item for storing requested component
property bool trace; ///< log loading objects

///@private
function discardItem() {
Expand Down Expand Up @@ -31,7 +32,8 @@ Item {
if (!source)
return

log('loading ' + source + '')
if (this.trace)
log('loading ' + source + '')
var path = source.split('.')
var ctor = _globals
while(path.length) {
Expand Down

0 comments on commit b3197ab

Please sign in to comment.