1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 import "UIConstants.js" as Const
7 property string title: ""
8 property string orientation: Const.DEFAULT_ORIENTATION
10 property alias mask: _mask
15 anchors.right: parent.right
16 anchors.left: parent.left
18 y: Const.SYSTEM_BAR_HEIGHT
19 color: Const.DEFAULT_BACKGROUND_COLOR
26 onClicked: taskBar.close()
29 Component.onCompleted: {
30 Utils.setOrientation(orientation);
34 /*function reloadMenu() {
35 var buttons = root.menu;
37 var menu = taskBar.getMenu();
38 var comp = Qt.createComponent("components/Button.qml");
41 if(menu.children.length>0) {
42 l = menu.children.length;
44 menu.children[i].destroy();
47 if(buttons && buttons.length>0) {
50 var obj = comp.createObject(menu);
52 console.log("Error creating menu Button!");
57 obj.buttonClicked.connect(function(name){
70 var mask = pageStack.currentPage.mask;
71 if(mask.state=="idle") {