simpler program to reproduce the warning:
import QtQuick 2.0 import Ubuntu.Components 1.1
MainView { width: units.gu(40) height: units.gu(50)
Component.onCompleted: icon.visible = true Page { title: i18n.tr("Simple")
Image { visible: false id: icon anchors { centerIn: parent } width: visible ? 100 : 0 height: visible ? 100 : 0 source: "image://theme/search" sourceSize { width: icon.width height: icon.height } } } }
simpler program to reproduce the warning:
import QtQuick 2.0
import Ubuntu.Components 1.1
MainView {
width: units.gu(40)
height: units.gu(50)
Component. onCompleted: icon.visible = true
Page {
title: i18n.tr("Simple")
Image {
visible: false
centerIn: parent //theme/ search"
sourceSize {
width: icon.width
height: icon.height
id: icon
anchors {
}
width: visible ? 100 : 0
height: visible ? 100 : 0
source: "image:
}
}
}
}