Version 0.2
[marketstoday] / src / qml / Library / MenuBar.qml
1 /*
2 @version: 0.1
3 @author: Sudheer K. <scifi1947 at gmail.com>
4 @license: GNU General Public License
5 */
6
7 import Qt 4.7
8
9 Item {
10     id: menuBar
11     signal tickersClicked
12     signal optionsClicked
13     property int itemHeight: menuBar.height
14
15     BorderImage { source: "images/toolbar.sci"; width: parent.width; height: parent.height + 14; y: -7 }
16
17     Item {
18         id: container
19         anchors.fill: parent
20
21         Button {
22             id: buttonTickers
23             text: "Add/Remove Tickers"
24             anchors.right: parent.horizontalCenter; anchors.horizontalCenterOffset: -75; y: 3; width: 150; height: 32
25             onClicked: menuBar.tickersClicked()
26         }
27
28         Button {
29             id: buttonOptions
30             text: "Update Settings"
31             anchors.left: parent.horizontalCenter; anchors.horizontalCenterOffset: 75; y: 3; width: 150; height: 32
32             onClicked: menuBar.optionsClicked()
33         }
34     }
35 }