summaryrefslogtreecommitdiffstats
path: root/demos/declarative/calculator/calculator.qml
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative/calculator/calculator.qml')
-rw-r--r--demos/declarative/calculator/calculator.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/declarative/calculator/calculator.qml b/demos/declarative/calculator/calculator.qml
index 66705e2..1644968 100644
--- a/demos/declarative/calculator/calculator.qml
+++ b/demos/declarative/calculator/calculator.qml
@@ -1,10 +1,12 @@
import Qt 4.6
+import "calculator.js" as CalcEngine
Rectangle {
width: 320; height: 270; color: palette.window
+ function doOp(operation) { CalcEngine.doOperation(operation); }
+
SystemPalette { id: palette }
- Script { source: "calculator.js" }
Column {
x: 2; spacing: 10;