~saviq/ubuntu/saucy/qtdeclarative-opensource-src/add-qtquick-delegate-range

« back to all changes in this revision

Viewing changes to tests/auto/qml/qqmlecmascript/data/scarceResourceCopy.variant.qml

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
import Qt.test 1.0
 
3
 
 
4
// Here we import a scarce resource directly.
 
5
// The instance has a property which is a copy
 
6
// of the scarce resource, so it should not be
 
7
// detached (but we should automatically release
 
8
// the resource from our engine internal list).
 
9
 
 
10
QtObject {
 
11
    property MyScarceResourceObject a;
 
12
    a: MyScarceResourceObject { id: scarceResourceProvider }
 
13
    property variant scarceResourceCopy: scarceResourceProvider.scarceResource
 
14
}
 
15