Comment 4 for bug 1349769

Revision history for this message
Tim Peeters (tpeeters) wrote :

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