Files correlati : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe Bug : Commento: Merge 1.0 libraries
42 lines
799 B
QML
42 lines
799 B
QML
import QtQuick 1.0
|
|
import "backtrace1.js" as Script
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property int result:0
|
|
|
|
Component.onCompleted:
|
|
{
|
|
root.result = 10;
|
|
Script.functionInScript(4,5);
|
|
root.name = "nemo";
|
|
Script.logger(root.simpleBinding);
|
|
}
|
|
|
|
//DO NOT CHANGE CODE ABOVE
|
|
//ADD CODE FROM HERE
|
|
|
|
property string name
|
|
property int simpleBinding: result
|
|
|
|
VisualItemModel {
|
|
id: itemModel
|
|
Rectangle { height: 30; width: 80; color: "red" }
|
|
Rectangle { height: 30; width: 80; color: "green" }
|
|
Rectangle { height: 30; width: 80; color: "blue" }
|
|
}
|
|
|
|
ListView {
|
|
anchors.fill: parent
|
|
model: itemModel
|
|
|
|
Component.onCompleted:
|
|
{
|
|
Script.logger("List Loaded");
|
|
}
|
|
}
|
|
|
|
}
|
|
|