importing Ubuntu.Components makes Image source property non notify-able

Bug #1395690 reported by Albert Astals Cid
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Critical
Zsombor Egri
Vivid
New
Undecided
Unassigned
ubuntu-ui-toolkit (Ubuntu RTM)
New
Undecided
Unassigned

Bug Description

The following code works

import QtQuick 2.3

Image {
    id: image

    visible: source != ""

    Component.onCompleted: image.source = "myimage.jpg"
}

but if you add the Ubuntu.Components import it breaks

import QtQuick 2.3
import Ubuntu.Components 1.1

Image {
    id: image

    visible: source != ""

    Component.onCompleted: image.source = "myimage.jpg"
}

and you get

QQmlExpression: Expression file:///home/tsdgeos_work/borrame/main.qml:8:14 depends on non-NOTIFYable properties:
    QQuickImage::source

Related branches

Revision history for this message
Michał Sawicz (saviq) wrote :
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Zsombor Egri (zsombi)
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → Critical
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 1.1.1341+15.04.20141124-0ubuntu1

---------------
ubuntu-ui-toolkit (1.1.1341+15.04.20141124-0ubuntu1) vivid; urgency=medium

  [ Christian Dywan ]
  * Re-introduce NOTIFY to Image under a different name.
   Fixes LP: #1395690 LP: #1395793

  [ Florian Boucault ]
  * TextArea/TextField: make sure that the copy/paste popup is far
    enough from the finger for it to be visible and legible.
    Fixes LP: #1384422

  [ Zoltán Balogh ]
  * Updated test plan executer script
 -- Ubuntu daily release <email address hidden> Mon, 24 Nov 2014 22:14:25 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.