~loic.molinari/+junk/qtdeclarative-shadereffectsource-changes

« back to all changes in this revision

Viewing changes to tests/auto/quick/qquickrepeater/data/dynamicmodelcrash.qml

  • Committer: Loïc Molinari
  • Date: 2012-04-21 17:59:51 UTC
  • Revision ID: loic.molinari@canonical.com-20120421175951-bqx68caaf5zrp76l
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
 
 
3
Item {
 
4
    ListModel {
 
5
        id: lm;
 
6
    }
 
7
 
 
8
    Component.onCompleted: {
 
9
        lm.append({ subModel: [ {d:0} ] });
 
10
        rep.model = lm.get(0).subModel;
 
11
        rep.model;
 
12
        lm.remove(0);
 
13
        rep.model;
 
14
    }
 
15
 
 
16
    Repeater {
 
17
        objectName: "rep"
 
18
        id: rep
 
19
    }
 
20
}