|
@@ -10,6 +10,7 @@
|
10
|
10
|
</layout>
|
11
|
11
|
<menu name="File">
|
12
|
12
|
<item id="save" shortcut="Ctrl+S">Save…</item>
|
|
13
|
+ <item id="print" shortcut="Ctrl+P">Print…</item>
|
13
|
14
|
</menu>
|
14
|
15
|
<program>
|
15
|
16
|
<![CDATA[
|
|
@@ -22,6 +23,10 @@
|
22
|
23
|
}
|
23
|
24
|
var unitText = (unit == 0 ? "Kg" : "Lb");
|
24
|
25
|
dataView = findChildObject(this, 'view');
|
|
26
|
+ var printMenu = findChildObject(this, 'print');
|
|
27
|
+ printMenu.triggered.connect(function() {
|
|
28
|
+ dataView.print();
|
|
29
|
+ });
|
25
|
30
|
var fileID;
|
26
|
31
|
var target = findChildObject(this, 'target');
|
27
|
32
|
var compare = findChildObject(this, 'compare');
|